Applet Manager services: Difference between revisions

No edit summary
Line 175: Line 175:
| 3 || [[#GetEvent]]
| 3 || [[#GetEvent]]
|-
|-
| 4 || [10.0.0+] IsLocked
| 4 || [10.0.0+] [[#IsLocked]]
|}
|}


Line 190: Line 190:
===== GetEvent =====
===== GetEvent =====
No input, returns an output Event handle with autoclear=false.
No input, returns an output Event handle with autoclear=false.
==== IsLocked ====
No input, returns an output u8 bool.


=== IGlobalStateController ===
=== IGlobalStateController ===
Line 360: Line 363:
| 190 || [9.0.0+] [[#PushToNotificationStorageChannel]] ||
| 190 || [9.0.0+] [[#PushToNotificationStorageChannel]] ||
|-
|-
| 200 || [10.0.0+] RequestApplicationSoftReset ||
| 200 || [10.0.0+] [[#RequestApplicationSoftReset]] ||
|-
|-
| 201 || [10.0.0+] RestartApplicationTimer ||
| 201 || [10.0.0+] [[#RestartApplicationTimer]] ||
|}
|}


Line 442: Line 445:


[[qlaunch]] will only push data for this when launching the Application when the Alarm was triggered, where the system was previously in sleep-mode. This data is the [[Glue_services|Notification]] ApplicationParameter.
[[qlaunch]] will only push data for this when launching the Application when the Alarm was triggered, where the system was previously in sleep-mode. This data is the [[Glue_services|Notification]] ApplicationParameter.
===== RequestApplicationSoftReset =====
No input/output.
===== RestartApplicationTimer =====
No input/output.


===== IAppletAccessor =====
===== IAppletAccessor =====
Line 504: Line 513:
| 51 || [8.0.0+] [[#GetHomeButtonDoubleClickEnabled]] ||  
| 51 || [8.0.0+] [[#GetHomeButtonDoubleClickEnabled]] ||  
|-
|-
| 52 || [10.0.0+] IsHomeButtonShortPressedBlocked ||  
| 52 || [10.0.0+] [[#IsHomeButtonShortPressedBlocked]] ||  
|}
|}


Line 539: Line 548:


=== GetHomeButtonDoubleClickEnabled ===
=== GetHomeButtonDoubleClickEnabled ===
No input, returns an output u8 bool.
=== IsHomeButtonShortPressedBlocked ===
No input, returns an output u8 bool.
No input, returns an output u8 bool.


Line 638: Line 650:
| 130 || [9.0.0+] [[#GetGpuErrorDetectedSystemEvent]] ||
| 130 || [9.0.0+] [[#GetGpuErrorDetectedSystemEvent]] ||
|-
|-
| 140 || [10.0.0+] SetApplicationMemoryReservation ||
| 140 || [10.0.0+] [[#SetApplicationMemoryReservation]] ||
|-
|-
| 150 || [10.0.0+] ShouldSetGpuTimeSliceManually ||
| 150 || [10.0.0+] [[#ShouldSetGpuTimeSliceManually]] ||
|}
|}


Line 765: Line 777:


Normally the output bool is set to 0, however when no users are available it's set to 1 with '''total_entries''' = -1.
Normally the output bool is set to 0, however when no users are available it's set to 1 with '''total_entries''' = -1.
==== SetApplicationMemoryReservation ====
Takes an input u64, no output.
The input u64 must be 0x1000-byte aligned.
==== ShouldSetGpuTimeSliceManually ====
No input, returns an output u8 bool.


== IOverlayAppletProxy ==
== IOverlayAppletProxy ==
Line 819: Line 839:
| 30 || [9.0.0+] [[#SetHealthWarningShowingState]]
| 30 || [9.0.0+] [[#SetHealthWarningShowingState]]
|-
|-
| 31 || [10.0.0+] IsHealthWarningRequired
| 31 || [10.0.0+] [[#IsHealthWarningRequired]]
|-
|-
| 90 || [7.0.0+] [[#SetRequiresGpuResourceUse]]
| 90 || [7.0.0+] [[#SetRequiresGpuResourceUse]]
Line 868: Line 888:


This writes the input bool into state, signals an Event, and returns 0.
This writes the input bool into state, signals an Event, and returns 0.
==== IsHealthWarningRequired ====
No input, returns an output u8 bool.


==== SetRequiresGpuResourceUse ====
==== SetRequiresGpuResourceUse ====
Line 948: Line 971:
| 33 || [[#EndBlockingHomeButton]] ||
| 33 || [[#EndBlockingHomeButton]] ||
|-
|-
| 34 || [10.0.0+] SelectApplicationLicense ||
| 34 || [10.0.0+] [[#SelectApplicationLicense]] ||
|-
|-
| 40 || [[#NotifyRunning]] ||
| 40 || [[#NotifyRunning]] ||
Line 968: Line 991:
| 71 || [3.0.0+] [[#RequestToReboot]] ||
| 71 || [3.0.0+] [[#RequestToReboot]] ||
|-
|-
| 72 || [10.0.0+] RequestToSleep ||
| 72 || [10.0.0+] [[#RequestToSleep]] ||
|-
|-
| 80 || [4.0.0+] [[#ExitAndRequestToShowThanksMessage]] ||  
| 80 || [4.0.0+] [[#ExitAndRequestToShowThanksMessage]] ||  
Line 1,097: Line 1,120:
==== EndBlockingHomeButton ====
==== EndBlockingHomeButton ====
No input/output.
No input/output.
==== SelectApplicationLicense ====
Takes an input array of [[#ApplicationLicenseType]], returns an output [[#ApplicationLicenseType]].


==== NotifyRunning ====
==== NotifyRunning ====
Line 1,132: Line 1,158:


On success, official sw will enter an infinite loop with sleep-thread value 86400000000000.
On success, official sw will enter an infinite loop with sleep-thread value 86400000000000.
==== RequestToSleep ====
No input/output.


==== ExitAndRequestToShowThanksMessage ====
==== ExitAndRequestToShowThanksMessage ====
Line 1,342: Line 1,371:
| 50 || [[#SetOutOfFocusApplicationSuspendingEnabled]] ||
| 50 || [[#SetOutOfFocusApplicationSuspendingEnabled]] ||
|-
|-
| 60 || [10.0.0+] PresetLibraryAppletGpuTimeSliceZero ||
| 60 || [10.0.0+] [[#PresetLibraryAppletGpuTimeSliceZero]] ||
|-
|-
| 100 || [[#PushInData]] ||  
| 100 || [[#PushInData]] ||  
Line 1,373: Line 1,402:


Official sw will assert prior to using this if applet-service was not initialized as *Application.
Official sw will assert prior to using this if applet-service was not initialized as *Application.
==== PresetLibraryAppletGpuTimeSliceZero ====
No input/output.
sdknso only uses with with [[Software_Keyboard|swkbd-inline]], immediately after creating the LibraryApplet.


==== PushInData ====
==== PushInData ====
Line 1,479: Line 1,513:
| 66 || [6.0.0+] [[#SetCpuBoostMode]] ||
| 66 || [6.0.0+] [[#SetCpuBoostMode]] ||
|-
|-
| 67 || [10.0.0+] CancelCpuBoostMode ||
| 67 || [10.0.0+] [[#CancelCpuBoostMode]] ||
|-
|-
| 80 || [6.0.0+] [[#PerformSystemButtonPressingIfInFocus]] ||
| 80 || [6.0.0+] [[#PerformSystemButtonPressingIfInFocus]] ||
Line 1,493: Line 1,527:
| 300 || [9.0.0+] [[#GetSettingsPlatformRegion]] ||
| 300 || [9.0.0+] [[#GetSettingsPlatformRegion]] ||
|-
|-
| 400 || [10.0.0+] ActivateMigrationService ||
| 400 || [10.0.0+] [[#ActivateMigrationService]] ||
|-
|-
| 401 || [10.0.0+] DeactivateMigrationService ||
| 401 || [10.0.0+] [[#DeactivateMigrationService]] ||
|}
|}


Line 1,636: Line 1,670:
=== SetCpuBoostMode ===
=== SetCpuBoostMode ===
Takes an input u32 '''CpuBoostMode''' (only modes 0 and 1 are valid) and passes it to [[PPC_services#apm:sys|SetCpuBoostMode]].
Takes an input u32 '''CpuBoostMode''' (only modes 0 and 1 are valid) and passes it to [[PPC_services#apm:sys|SetCpuBoostMode]].
=== CancelCpuBoostMode ===
No input/output.


=== PerformSystemButtonPressingIfInFocus ===
=== PerformSystemButtonPressingIfInFocus ===
Line 1,657: Line 1,694:


This just returns the output from [[Settings_services#GetPlatformRegion|setsys GetPlatformRegion]].
This just returns the output from [[Settings_services#GetPlatformRegion|setsys GetPlatformRegion]].
=== ActivateMigrationService ===
No input/output.
=== DeactivateMigrationService ===
No input/output.


== ISelfController ==
== ISelfController ==
Line 1,705: Line 1,748:
| 43 || [5.0.0+] [[#GetSystemSharedBufferHandle]]
| 43 || [5.0.0+] [[#GetSystemSharedBufferHandle]]
|-
|-
| 44 || [10.0.0+] CreateManagedDisplaySeparableLayer
| 44 || [10.0.0+] [[#CreateManagedDisplaySeparableLayer]]
|-
|-
| 45 || [10.0.0+] SetManagedDisplayLayerSeparationMode
| 45 || [10.0.0+] [[#SetManagedDisplayLayerSeparationMode]]
|-
|-
| 50 || [[#SetHandlesRequestToDisplay]]
| 50 || [[#SetHandlesRequestToDisplay]]
Line 1,858: Line 1,901:


Same as [[#GetSystemSharedLayerHandle]] except this just gets the SharedBufferHandle.
Same as [[#GetSystemSharedLayerHandle]] except this just gets the SharedBufferHandle.
=== CreateManagedDisplaySeparableLayer ===
No input, returns two output u64s.
=== SetManagedDisplayLayerSeparationMode ===
Takes an input u32, no output.


=== SetHandlesRequestToDisplay ===
=== SetHandlesRequestToDisplay ===
Line 2,348: Line 2,397:
| 100 || [7.0.0+] [[#SetCpuBoostModeForApplet]] ||
| 100 || [7.0.0+] [[#SetCpuBoostModeForApplet]] ||
|-
|-
| 101 || [10.0.0+] CancelCpuBoostModeForApplet ||
| 101 || [10.0.0+] [[#CancelCpuBoostModeForApplet]] ||
|-
|-
| 110 || [9.0.0+] [[#PushToAppletBoundChannelForDebug]] ||
| 110 || [9.0.0+] [[#PushToAppletBoundChannelForDebug]] ||
Line 2,395: Line 2,444:


The cached value loaded from [[Settings_services#GetDebugModeFlag]] must be 1, otherwise an error is returned.
The cached value loaded from [[Settings_services#GetDebugModeFlag]] must be 1, otherwise an error is returned.
=== CancelCpuBoostModeForApplet ===
No input/output.


=== PushToAppletBoundChannelForDebug ===
=== PushToAppletBoundChannelForDebug ===
Line 3,190: Line 3,242:


This struct is "nn::am::service::AppletResourceUsageInfo". This struct is 0x20-bytes.
This struct is "nn::am::service::AppletResourceUsageInfo". This struct is 0x20-bytes.
= ApplicationLicenseType =
This is "nn::oe::ApplicationLicenseType". This is 1-byte.


= Notes =
= Notes =