Applet Manager services: Difference between revisions

(3 intermediate revisions by the same user not shown)
Line 1,572: Line 1,572:
No input, returns an output u32.
No input, returns an output u32.


This returns the output from omm [[#Cmd26]].
This returns the output from [[#GetOperationModeSystemInfo_2|omm GetOperationModeSystemInfo]].


== ISelfController ==
== ISelfController ==
Line 2,371: Line 2,371:
|rowspan="2"| 1 || [1.0.0-3.0.2]
|rowspan="2"| 1 || [1.0.0-3.0.2]
|-
|-
| [7.0.0+]
| [7.0.0+] IsAutoPowerDownRequested
|-
|-
| 2 || [1.0.0-3.0.2]
| 2 || [1.0.0-3.0.2]
|-
|-
| 3 || SetHandlingContext
| 3 || [[#SetHandlingContext]]
|-
|-
| 4 || LoadAndApplySettings
| 4 || LoadAndApplySettings
Line 2,382: Line 2,382:
|}
|}


[3.0.0+] SetHandlingContext now takes an additional 0x10-bytes of input.
== SetHandlingContext ==
[3.0.0+] Now takes an additional 0x10-bytes of input.


= omm =
= omm =
Line 2,388: Line 2,389:


Operation Mode Manager (OMM) is a service responsible for arbitrating the operation changes between docked and handheld modes.
Operation Mode Manager (OMM) is a service responsible for arbitrating the operation changes between docked and handheld modes.
Besides [[PTM_services]], this is the only service that interacts with the [[Dock]] through [[USB_services|usb:pd*]].
Besides [[PTM_services|PTM]], this is the only service that interacts with the [[Dock]] through [[USB_services|usb:pd*]].


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Cmd || Name || Notes
! Cmd || Name
|-
|-
| 0 || GetOperationMode ||
| 0 || GetOperationMode
|-
|-
| 1 || GetOperationModeChangeEvent ||
| 1 || GetOperationModeChangeEvent
|-
|-
| 2 || EnableAudioVisual ||
| 2 || EnableAudioVisual
|-
|-
| 3 || DisableAudioVisual ||
| 3 || DisableAudioVisual
|-
|-
| 4 || EnterSleepAndWait ||
| 4 || EnterSleepAndWait
|-
|-
| 5 || GetCradleStatus ||
| 5 || GetCradleStatus
|-
|-
| 6 || FadeInDisplay ||
| 6 || FadeInDisplay
|-
|-
| 7 || FadeOutDisplay ||
| 7 || FadeOutDisplay
|-
|-
| 8 || [2.0.0+] GetCradleFwVersion ||
| 8 || [2.0.0+] GetCradleFwVersion
|-
|-
| 9 || [2.0.0+] NotifyCecSettingsChanged ||
| 9 || [2.0.0+] NotifyCecSettingsChanged
|-
|-
| 10 || [3.0.0+] SetOperationModePolicy ||
| 10 || [3.0.0+] SetOperationModePolicy
|-
|-
| 11 || [3.0.0+] GetDefaultDisplayResolution ||
| 11 || [3.0.0+] GetDefaultDisplayResolution
|-
|-
| 12 || [3.0.0+] GetDefaultDisplayResolutionChangeEvent ||
| 12 || [3.0.0+] GetDefaultDisplayResolutionChangeEvent
|-
|-
| 13 || [3.0.0+] UpdateDefaultDisplayResolution ||
| 13 || [3.0.0+] UpdateDefaultDisplayResolution
|-
|-
| 14 || [3.0.0+] ShouldSleepOnBoot ||
| 14 || [3.0.0+] ShouldSleepOnBoot
|-
|-
| 15 || [4.0.0+] NotifyHdcpApplicationExecutionStarted ||
| 15 || [4.0.0+] NotifyHdcpApplicationExecutionStarted
|-
|-
| 16 || [4.0.0+] NotifyHdcpApplicationExecutionFinished ||
| 16 || [4.0.0+] NotifyHdcpApplicationExecutionFinished
|-
|-
| 17 || [4.0.0+] NotifyHdcpApplicationDrawingStarted ||
| 17 || [4.0.0+] NotifyHdcpApplicationDrawingStarted
|-
|-
| 18 || [4.0.0+] NotifyHdcpApplicationDrawingFinished ||
| 18 || [4.0.0+] NotifyHdcpApplicationDrawingFinished
|-
|-
| 19 || [4.0.0+] GetHdcpAuthenticationFailedEvent ||
| 19 || [4.0.0+] GetHdcpAuthenticationFailedEvent
|-
|-
| 20 || [4.0.0+] GetHdcpAuthenticationFailedEmulationEnabled ||
| 20 || [4.0.0+] GetHdcpAuthenticationFailedEmulationEnabled
|-
|-
| 21 || [4.0.0+] SetHdcpAuthenticationFailedEmulation ||
| 21 || [4.0.0+] SetHdcpAuthenticationFailedEmulation
|-
|-
| 22 || [4.0.0+] GetHdcpStateChangeEvent ||
| 22 || [4.0.0+] GetHdcpStateChangeEvent
|-
|-
| 23 || [4.0.0+] GetHdcpState ||
| 23 || [4.0.0+] GetHdcpState
|-
|-
| 24 || [5.0.0+] ShowCardUpdateProcessing ||
| 24 || [5.0.0+] ShowCardUpdateProcessing
|-
|-
| 25 || [5.0.0+] SetApplicationCecSettingsAndNotifyChanged ||
| 25 || [5.0.0+] SetApplicationCecSettingsAndNotifyChanged
|-
|-
| 26 || [7.0.0+] ||
| 26 || [7.0.0+] [[#GetOperationModeSystemInfo]]
|-
|-
| 27 || [9.0.0+] ||
| 27 || [9.0.0+]  
|}
|}


== Cmd26 ==
== GetOperationModeSystemInfo ==
No input, returns an output u32.
No input, returns an output u32.


This is used by [[#GetOperationModeSystemInfo]].
This is used by [[#GetOperationModeSystemInfo|ICommonStateGetter GetOperationModeSystemInfo]].


= spsm =
= spsm =