Most of the constants in HdmiCec are internal use only. Moved them
to service, and dispersed the rest to other relevant classes.
Also moved HdmiCecMessage class to service as it doesn't need to be
open ouside the service.
Change-Id: I7b2ce3bf465330aa4d7fcd05f9aefa1e6c8b056a
setProhibitMode sets a flag inside the service that indicates if
input switch request will be processed or not. Sets to true when
TV is doing something for which TV display should be fixed, like
channel scan, software update - collectively called 'prohibit mode'.
Change-Id: I8ac623023210b58b684b9af3ac475a5fe0d09435
Added an argument queryDevicePowerStatus on which routing control action flow
should be based.
Bug: 15845652
Change-Id: Ib8a2d31792aad67289308167d07f660c3438be78
For non-repeat keys like power or mute key Hdmi-Cec
doesn't support press&hold feature. This change sends
user control pressed immediataly if the given keycode
is non-repeatable key.
Change-Id: Id571e67d94125a8c6a3553135b8e714b721405f3
CEC spec mentions that logical address allocation uses
the same address for source and destination while <Polling Message>
uses device's source address.
Bug: 16045547
Change-Id: Id18f328755501c62a98a1040b287c180cb889c9b
Hdmi-Cec's system audio mode delegates audio control to
audio receiver from tv. It requires to delegate
volume change including mute to audio receiver
instead of consuming by tv.
In order to do this this change introduces three apis.
One is added to IAudioService, the others are added
to IHdmiControlService as hidden apis.
1. IAudioService#setHdmiSystemAudioSupported;
This is to notify system audio mode change to audio
service so that it determines to notify volume or mute
change to HdmiControlService.
2. IHdmiControlService#setSystemAudioVolume;
This is to notify volume change to HdmiControlService.
It's called only where system audio mode is on.
3. IHdmiControlService#setSystemAudioMute;
This is to notify volume change to HdmiControlService .
It's called only where system audio mode is on.
Change-Id: I3d8534b37ddf1a812e32012059a8778772044bf0
- Add BrocastIntent listener to catch SCREEN_ON/OFF intents.
- Add callbacks onTransitionToStandBy(), onStandBy() in HdmiCecLocalDevice.java.
- When it gets the SCREEN_OFF intent, the state will be TRANSITION_TO_STANDBY,
then when there is no outstanding actions, the state will be STANDBY.
- When the state is STANDBY, the TV device will broadcast <StandBy>.
- When it gets the SCREEN_ON intent, the state will be TRANSITION_TO_ON,
then when the initialization is done, the state will be ON.
- When the state is ON and it receives <StandBy> CEC message, it will force
the system to go to sleep.
- When the state is STANDBY and it receives the cec messages to wake-up the
system, it will force the system to wake up from sleep.
- Manage the active source state for the playback device.
Change-Id: Ib473219a0b0deb5224df89386db5a83720000411
When showing apps on top of keyguard, properly put up
a bouncer when a notification is clicked.
Bug: 15588412
Change-Id: I48bcc5cc17c32856c11e7ab28182cdc3f253ad98
When the stack is collapsed, the second card is padded slightly
to appear as if it was in the bottom stack.
Bug: 15169254
Change-Id: I9e9418dc057ffec01c7f56358ec60bac477497a4