Home
last modified time | relevance | path

Searched refs:alwaysOnEnabled (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java126 when(mAmbientDisplayConfigMock.alwaysOnEnabled(anyInt())).thenReturn(false); in testInitialize_goesToDoze()
136 when(mAmbientDisplayConfigMock.alwaysOnEnabled(anyInt())).thenReturn(true); in testInitialize_goesToAod()
156 when(mAmbientDisplayConfigMock.alwaysOnEnabled(anyInt())).thenReturn(true); in testInitialize_afterDockPaused_goesToDoze()
169 when(mAmbientDisplayConfigMock.alwaysOnEnabled(anyInt())).thenReturn(false); in testInitialize_alwaysOnSuppressed_alwaysOnDisabled_goesToDoze()
180 when(mAmbientDisplayConfigMock.alwaysOnEnabled(anyInt())).thenReturn(true); in testInitialize_alwaysOnSuppressed_alwaysOnEnabled_goesToDoze()
202 when(mAmbientDisplayConfigMock.alwaysOnEnabled(anyInt())).thenReturn(false); in testInitialize_alwaysOnSuppressed_alwaysOnDisabled_afterDockPaused_goesToDoze()
215 when(mAmbientDisplayConfigMock.alwaysOnEnabled(anyInt())).thenReturn(true); in testInitialize_alwaysOnSuppressed_alwaysOnEnabled_afterDockPaused_goesToDoze()
227 when(mAmbientDisplayConfigMock.alwaysOnEnabled(anyInt())).thenReturn(false); in testPulseDone_goesToDoze()
240 when(mAmbientDisplayConfigMock.alwaysOnEnabled(anyInt())).thenReturn(true); in testPulseDone_goesToAoD()
254 when(mAmbientDisplayConfigMock.alwaysOnEnabled(anyInt())).thenReturn(true); in testPulseDone_alwaysOnSuppressed_goesToSuppressed()
[all …]
DDozeSuppressorTest.java155 when(mConfig.alwaysOnEnabled(anyInt())).thenReturn(false); in testDozeResume_exitCarMode()
170 when(mConfig.alwaysOnEnabled(anyInt())).thenReturn(true); in testDozeAoDResume_exitCarMode()
257 when(mConfig.alwaysOnEnabled(anyInt())).thenReturn(true); in testPowerSaveChanged_notActive()
273 when(mConfig.alwaysOnEnabled(anyInt())).thenReturn(true); in testAlwaysOnSuppressedChanged_nowSuppressed()
288 when(mConfig.alwaysOnEnabled(anyInt())).thenReturn(true); in testAlwaysOnSuppressedChanged_notSuppressed()
DDozeDockHandlerTest.java68 doReturn(true).when(mConfig).alwaysOnEnabled(anyInt()); in setUp()
111 doReturn(false).when(mConfig).alwaysOnEnabled(anyInt()); in onEvent_noneWhileDisabledAod_requestsDozeState()
DDozeConfigurationTest.java55 assertEquals(defaultValue, mDozeConfig.alwaysOnEnabled(UserHandle.USER_CURRENT)); in alwaysOn_followsConfigByDefault()
DDozeConfigurationUtil.java58 when(config.alwaysOnEnabled(anyInt())).thenReturn(false); in createMockConfig()
DDozeSensorsTest.java127 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(true); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DFoldAodAnimationController.kt69 private var alwaysOnEnabled: Boolean = false in <lambda>() variable in com.android.systemui.unfold.FoldAodAnimationController
105 alwaysOnEnabled && in <lambda>()
152 } else if (isFolded && !isFoldHandled && alwaysOnEnabled && isDozing) { in <lambda>()
214 alwaysOnEnabled = alwaysOn in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSuppressor.java154 mMachine.requestState(mConfig.alwaysOnEnabled(mUserTracker.getUserId()) in handleCarModeExited()
172 && mConfig.alwaysOnEnabled(mUserTracker.getUserId())) {
187 if (mConfig.alwaysOnEnabled(mUserTracker.getUserId()) && !suppressed) {
DDozeDockHandler.java106 nextState = mConfig.alwaysOnEnabled(mUserTracker.getUserId()) ? State.DOZE_AOD in onEvent()
DDozeSensors.java255 && mConfig.alwaysOnEnabled(mUserTracker.getUserId()), in DozeSensors()
296 && (mConfig.alwaysOnEnabled(mUserTracker.getUserId()) || mScreenOffUdfpsEnabled); in udfpsLongPressConfigured()
DDozeMachine.java435 } else if (mAmbientDisplayConfig.alwaysOnEnabled(mUserTracker.getUserId())) { in resolveIntermediateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DDozeParametersTest.java171 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(true); in testGetAlwaysOn()
180 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(true); in testGetAlwaysOn_whenBatterySaver()
192 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(true); in testGetAlwaysOn_whenBatterySaverCallback()
316 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(enabled); in setAodEnabledForTest()
/frameworks/base/core/java/android/hardware/display/
DAmbientDisplayConfiguration.java77 || alwaysOnEnabled(user) in enabled()
143 && !alwaysOnEnabled(user); in quickPickupSensorEnabled()
225 public boolean alwaysOnEnabled(int user) { in alwaysOnEnabled() method in AmbientDisplayConfiguration
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScrimState.java174 final boolean alwaysOnEnabled = mDozeParameters.getAlwaysOn(); in prepare()
180 mFrontAlpha = (alwaysOnEnabled || isDocked || quickPickupEnabled) in prepare()
DDozeParameters.java425 mDozeAlwaysOn = mAmbientDisplayConfiguration.alwaysOnEnabled(mUserTracker.getUserId()); in onTuningChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/
DBiometricContextProviderTest.java75 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(true); in setup()
95 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(false); in testIsAod()
/frameworks/base/services/core/java/com/android/server/biometrics/log/
DBiometricContextProvider.java108 return mAmbientDisplayConfiguration.alwaysOnEnabled(UserHandle.USER_CURRENT); in BiometricContextProvider()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java728 when(mAmbientDisplayConfigurationMock.alwaysOnEnabled(UserHandle.USER_CURRENT)) in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1462 mAlwaysOnEnabled = mAmbientDisplayConfiguration.alwaysOnEnabled(UserHandle.USER_CURRENT);
/frameworks/base/core/api/
Dtest-current.txt1202 method public boolean alwaysOnEnabled(int);
/frameworks/base/boot/
Dboot-image-profile.txt8065 HSPLandroid/hardware/display/AmbientDisplayConfiguration;->alwaysOnEnabled(I)Z
/frameworks/base/config/
Dboot-image-profile.txt8067 HSPLandroid/hardware/display/AmbientDisplayConfiguration;->alwaysOnEnabled(I)Z