Loading packages/SystemUI/res/values/strings.xml +0 −4 Original line number Diff line number Diff line Loading @@ -1861,10 +1861,6 @@ not appear on production builds ever. --> <string name="tuner_doze" translatable="false">Ambient Display</string> <!-- Ambient display, Sensors wake up device of the tuner. Non-translatable since it should not appear on production builds ever. --> <string name="tuner_doze_sensors_wake_up_fully" translatable="false">Wake up device on double tap or lift</string> <!-- Ambient display always-on of the tuner. Non-translatable since it should not appear on production builds ever. --> <string name="tuner_doze_always_on" translatable="false">Always on</string> Loading packages/SystemUI/res/xml/tuner_prefs.xml +0 −5 Original line number Diff line number Diff line Loading @@ -142,11 +142,6 @@ android:title="@string/tuner_doze_always_on" sysui:defValue="false" /> <com.android.systemui.tuner.TunerSwitch android:key="doze_sensors_wake_up_fully" android:title="@string/tuner_doze_sensors_wake_up_fully" sysui:defValue="false" /> </PreferenceScreen> <Preference Loading packages/SystemUI/src/com/android/systemui/doze/DozeTriggers.java +1 −5 Original line number Diff line number Diff line Loading @@ -99,11 +99,7 @@ public class DozeTriggers implements DozeMachine.Part { } private void onSensor(int pulseReason, boolean sensorPerformedProxCheck) { if (mDozeParameters.getSensorsWakeUpFully()) { mMachine.wakeUp(); } else { requestPulse(pulseReason, sensorPerformedProxCheck); } if (pulseReason == DozeLog.PULSE_REASON_SENSOR_PICKUP) { final long timeSinceNotification = Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java +0 −9 Original line number Diff line number Diff line Loading @@ -59,9 +59,6 @@ public class DozeParameters { pw.print(" getPickupVibrationThreshold(): "); pw.println(getPickupVibrationThreshold()); pw.print(" getPickupSubtypePerformsProxCheck(): ");pw.println( dumpPickupSubtypePerformsProxCheck()); if (mAmbientDisplayConfiguration.alwaysOnAvailable()) { pw.print(" getSensorsWakeUpFully(): "); pw.println(getSensorsWakeUpFully()); } } private String dumpPickupSubtypePerformsProxCheck() { Loading Loading @@ -122,12 +119,6 @@ public class DozeParameters { return mAmbientDisplayConfiguration.alwaysOnEnabled(UserHandle.USER_CURRENT); } public boolean getSensorsWakeUpFully() { return mAmbientDisplayConfiguration.alwaysOnAvailable() && Settings.Secure.getIntForUser(mContext.getContentResolver(), DOZE_SENSORS_WAKE_UP_FULLY, 0, UserHandle.USER_CURRENT) != 0; } private boolean getBoolean(String propName, int resId) { return SystemProperties.getBoolean(propName, mContext.getResources().getBoolean(resId)); } Loading packages/SystemUI/tests/src/com/android/systemui/doze/DozeConfigurationUtil.java +0 −1 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ public class DozeConfigurationUtil { DozeParameters params = mock(DozeParameters.class, noDefaultAnswer(doneHolder)); when(params.getPulseOnSigMotion()).thenReturn(false); when(params.getSensorsWakeUpFully()).thenReturn(false); when(params.getPickupVibrationThreshold()).thenReturn(0); when(params.getProxCheckBeforePulse()).thenReturn(true); when(params.getPickupSubtypePerformsProxCheck(anyInt())).thenReturn(true); Loading Loading
packages/SystemUI/res/values/strings.xml +0 −4 Original line number Diff line number Diff line Loading @@ -1861,10 +1861,6 @@ not appear on production builds ever. --> <string name="tuner_doze" translatable="false">Ambient Display</string> <!-- Ambient display, Sensors wake up device of the tuner. Non-translatable since it should not appear on production builds ever. --> <string name="tuner_doze_sensors_wake_up_fully" translatable="false">Wake up device on double tap or lift</string> <!-- Ambient display always-on of the tuner. Non-translatable since it should not appear on production builds ever. --> <string name="tuner_doze_always_on" translatable="false">Always on</string> Loading
packages/SystemUI/res/xml/tuner_prefs.xml +0 −5 Original line number Diff line number Diff line Loading @@ -142,11 +142,6 @@ android:title="@string/tuner_doze_always_on" sysui:defValue="false" /> <com.android.systemui.tuner.TunerSwitch android:key="doze_sensors_wake_up_fully" android:title="@string/tuner_doze_sensors_wake_up_fully" sysui:defValue="false" /> </PreferenceScreen> <Preference Loading
packages/SystemUI/src/com/android/systemui/doze/DozeTriggers.java +1 −5 Original line number Diff line number Diff line Loading @@ -99,11 +99,7 @@ public class DozeTriggers implements DozeMachine.Part { } private void onSensor(int pulseReason, boolean sensorPerformedProxCheck) { if (mDozeParameters.getSensorsWakeUpFully()) { mMachine.wakeUp(); } else { requestPulse(pulseReason, sensorPerformedProxCheck); } if (pulseReason == DozeLog.PULSE_REASON_SENSOR_PICKUP) { final long timeSinceNotification = Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java +0 −9 Original line number Diff line number Diff line Loading @@ -59,9 +59,6 @@ public class DozeParameters { pw.print(" getPickupVibrationThreshold(): "); pw.println(getPickupVibrationThreshold()); pw.print(" getPickupSubtypePerformsProxCheck(): ");pw.println( dumpPickupSubtypePerformsProxCheck()); if (mAmbientDisplayConfiguration.alwaysOnAvailable()) { pw.print(" getSensorsWakeUpFully(): "); pw.println(getSensorsWakeUpFully()); } } private String dumpPickupSubtypePerformsProxCheck() { Loading Loading @@ -122,12 +119,6 @@ public class DozeParameters { return mAmbientDisplayConfiguration.alwaysOnEnabled(UserHandle.USER_CURRENT); } public boolean getSensorsWakeUpFully() { return mAmbientDisplayConfiguration.alwaysOnAvailable() && Settings.Secure.getIntForUser(mContext.getContentResolver(), DOZE_SENSORS_WAKE_UP_FULLY, 0, UserHandle.USER_CURRENT) != 0; } private boolean getBoolean(String propName, int resId) { return SystemProperties.getBoolean(propName, mContext.getResources().getBoolean(resId)); } Loading
packages/SystemUI/tests/src/com/android/systemui/doze/DozeConfigurationUtil.java +0 −1 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ public class DozeConfigurationUtil { DozeParameters params = mock(DozeParameters.class, noDefaultAnswer(doneHolder)); when(params.getPulseOnSigMotion()).thenReturn(false); when(params.getSensorsWakeUpFully()).thenReturn(false); when(params.getPickupVibrationThreshold()).thenReturn(0); when(params.getProxCheckBeforePulse()).thenReturn(true); when(params.getPickupSubtypePerformsProxCheck(anyInt())).thenReturn(true); Loading