Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1c02ba8 authored by Nathalie Le Clair's avatar Nathalie Le Clair
Browse files

Rename send_standby_on_sleep

The name of this setting has been changed to power_control_mode. Change
the name of this configuration flag accordingly.

Bug: 180316277
Test: HdmiCecConfigTest
Change-Id: I092fbe6a1047af47d6365433453d58499542d5a9
parent fdeb85d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4759,7 +4759,7 @@
    <bool name="config_cecHdmiCecVersion20_allowed">true</bool>
    <bool name="config_cecHdmiCecVersion20_default">false</bool>

    <bool name="config_cecSendStandbyOnSleep_userConfigurable">true</bool>
    <bool name="config_cecPowerControlMode_userConfigurable">true</bool>
    <bool name="config_cecPowerControlModeTv_allowed">true</bool>
    <bool name="config_cecPowerControlModeTv_default">true</bool>
    <bool name="config_cecPowerControlModeBroadcast_allowed">true</bool>
+1 −1
Original line number Diff line number Diff line
@@ -4240,7 +4240,7 @@
  <java-symbol type="bool" name="config_cecHdmiCecVersion20_allowed" />
  <java-symbol type="bool" name="config_cecHdmiCecVersion20_default" />

  <java-symbol type="bool" name="config_cecSendStandbyOnSleep_userConfigurable" />
  <java-symbol type="bool" name="config_cecPowerControlMode_userConfigurable" />
  <java-symbol type="bool" name="config_cecPowerControlModeTv_allowed" />
  <java-symbol type="bool" name="config_cecPowerControlModeTv_default" />
  <java-symbol type="bool" name="config_cecPowerControlModeBroadcast_allowed" />
+1 −1
Original line number Diff line number Diff line
@@ -319,7 +319,7 @@ public class HdmiCecConfig {

        Setting powerControlMode = registerSetting(
                HdmiControlManager.CEC_SETTING_NAME_POWER_CONTROL_MODE,
                R.bool.config_cecSendStandbyOnSleep_userConfigurable);
                R.bool.config_cecPowerControlMode_userConfigurable);
        powerControlMode.registerValue(HdmiControlManager.POWER_CONTROL_MODE_TV,
                R.bool.config_cecPowerControlModeTv_allowed,
                R.bool.config_cecPowerControlModeTv_default);
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ final class FakeHdmiCecConfig extends HdmiCecConfig {
                R.bool.config_cecHdmiCecVersion20_default);

        doReturn(true).when(resources).getBoolean(
                R.bool.config_cecSendStandbyOnSleep_userConfigurable);
                R.bool.config_cecPowerControlMode_userConfigurable);
        doReturn(true).when(resources).getBoolean(
                R.bool.config_cecPowerControlModeTv_allowed);
        doReturn(true).when(resources).getBoolean(
+1 −1
Original line number Diff line number Diff line
@@ -403,7 +403,7 @@ public final class HdmiCecConfigTest {

    @Test
    public void setStringValue_NotConfigurable() {
        setBooleanResource(R.bool.config_cecSendStandbyOnSleep_userConfigurable, false);
        setBooleanResource(R.bool.config_cecPowerControlMode_userConfigurable, false);
        HdmiCecConfig hdmiCecConfig = new HdmiCecConfig(mContext, mStorageAdapter);
        assertThrows(IllegalArgumentException.class,
                () -> hdmiCecConfig.setStringValue(