OSDN Git Service

CEC: Revisit the behavior of HDMI_SYSTEM_AUDIO_ENABLED
authorDonghyun Cho <donghyun@google.com>
Tue, 27 Dec 2016 09:31:09 +0000 (18:31 +0900)
committerDonghyun Cho <donghyun@google.com>
Mon, 13 Mar 2017 11:00:58 +0000 (20:00 +0900)
commitc1fa9afbcd1cafd205d46b2fd0bdaadccb7d29ea
treeaca17d258ea13d202c83afdf9933d7ca77e95cb9
parentccdc6b82b8ea4868c740409f8b68cc8f84467183
CEC: Revisit the behavior of HDMI_SYSTEM_AUDIO_ENABLED

Currently the system setting, HDMI_SYSTEM_AUDIO_ENABLED, is used to
store the latest system audio mode status so that TV can keep this
status over reboot. But because the name is a little confusing and the
behavior isn't intuitive, it is likely to use this in a wrong way.
This change renames this setting to HDMI_SYSTEM_AUDIO_CONTROL_ENABLED
and tweak the purpose of it. Now, it will act more like a switch for
System Audio Control feature, so user can disable or enable this feature
entirely. With this way, implementation of audio output option will
also become easier.

Bug: 31449672
Test: Tested on archer
Change-Id: Ice8717135272d4b86665a3452bfe7527c0d6c08b
(cherry picked from commit 7b7aa8fb31ccf0cd3f36162a52f080263dd89e77)
core/java/android/provider/Settings.java
core/proto/android/providers/settings.proto
core/tests/coretests/src/android/provider/SettingsBackupTest.java
packages/SettingsProvider/src/com/android/providers/settings/SettingsProtoDumpUtil.java
services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java
services/core/java/com/android/server/hdmi/HdmiControlService.java
services/core/java/com/android/server/hdmi/HotplugDetectionAction.java
services/core/java/com/android/server/hdmi/SystemAudioAction.java
services/core/java/com/android/server/hdmi/SystemAudioAutoInitiationAction.java