diff options
author | Jinsuk Kim <jinsukkim@google.com> | 2014-03-24 18:02:29 +0900 |
---|---|---|
committer | Jinsuk Kim <jinsukkim@google.com> | 2014-04-02 14:46:14 +0900 |
commit | 4e90fcd1907e0c1f1fa1dc991fbd7fda5e49a482 (patch) | |
tree | afd4c32444e2803268c2d0c43dc16dc51082d194 /core/java/android/app/Activity.java | |
parent | 40a00a341b72490c6291b3aac65bc7a10b3e10ad (diff) | |
download | frameworks_base-4e90fcd1907e0c1f1fa1dc991fbd7fda5e49a482.zip frameworks_base-4e90fcd1907e0c1f1fa1dc991fbd7fda5e49a482.tar.gz frameworks_base-4e90fcd1907e0c1f1fa1dc991fbd7fda5e49a482.tar.bz2 |
Maintain display power status for playback device
With this CL, the power status of TV/display is keep tracked of
by hdmi cec server part, specfically HdmiCecDevicePlayback.
Turned the HdmiCecDevice to abstract class from which classes of
concrete device type(HdmiCecDevicePlayback, HdmiCecDeviceTV) are
inherited. The display power status code is put in HdmiCecDevicePlayback
only. HdmiCecDeviceTv will have its own logic that manages power status of
devices connected to it. For now it only has a bare minimum code.
Will be worked on in follow up CLs.
Other changes:
- Replaced sendGiveDevicePowerStatus() with isTvOn() so that the status
can be queried by clients.
- Defensively check the availability of HdmiCecService so that
HdmiCecManager.getClient() returns null in case the service couldn't
be initialized. This ensures clients of the service gets the nulled-out
HdmiCecClient when called in the state/configuration where the service
is not available, thus proceed accordingly.
Change-Id: Idaf69e73cfbd639c0b40b1bd4b6146f011246180
Diffstat (limited to 'core/java/android/app/Activity.java')
0 files changed, 0 insertions, 0 deletions