Home
last modified time | relevance | path

Searched refs:mAmbientDisplayConfiguration (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
H A DDozeSensorsTest.java89 private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in DozeSensorsTest
126 when(mAmbientDisplayConfiguration.tapSensorTypeMapping()) in setUp()
128 when(mAmbientDisplayConfiguration.getWakeLockScreenDebounce()).thenReturn(5000L); in setUp()
129 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(true); in setUp()
212 when(mAmbientDisplayConfiguration.enabled(anyInt())).thenReturn(true); in testDozeSensorSetListening()
233 when(mAmbientDisplayConfiguration.enabled(anyInt())).thenReturn(true); in testDozeSensorSettingDisabled()
254 when(mAmbientDisplayConfiguration.enabled(anyInt())).thenReturn(true); in testDozeSensorIgnoreSetting()
278 when(mAmbientDisplayConfiguration.enabled(anyInt())).thenReturn(true); in testUpdateListeningAfterAlreadyRegistered()
436 mAmbientDisplayConfiguration, mWakeLock, mCallback, mProxCallback, mDozeLog, in testGesturesAllInitiallyRespectSettings()
448 when(mAmbientDisplayConfiguration.enabled(anyInt())).thenReturn(true); in aodOnlySensor_onlyRegisteredWhenAodSensorsIncluded()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DDozeParametersTest.java74 @Mock private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in DozeParametersTest
119 mAmbientDisplayConfiguration, in setup()
171 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()
H A DCentralSurfacesImplTest.java252 @Mock private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in CentralSurfacesImplTest
370 mAmbientDisplayConfiguration, in setup()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDozeParameters.java79 private final AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in DozeParameters
136 mAmbientDisplayConfiguration = ambientDisplayConfiguration; in DozeParameters()
176 mAmbientDisplayConfiguration.quickPickupSensorEnabled(mUserTracker.getUserId()); in updateQuickPickupEnabled()
425 mDozeAlwaysOn = mAmbientDisplayConfiguration.alwaysOnEnabled(mUserTracker.getUserId()); in onTuningChanged()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
H A DNotificationInterruptStateProviderImpl.java70 private final AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in NotificationInterruptStateProviderImpl
128 mAmbientDisplayConfiguration = ambientDisplayConfiguration; in NotificationInterruptStateProviderImpl()
471 if (!mAmbientDisplayConfiguration.pulseOnNotificationEnabled(mUserTracker.getUserId())) { in shouldHeadsUpWhenDozing()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
H A DNotificationInterruptStateProviderImplTest.java98 AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in NotificationInterruptStateProviderImplTest
134 mAmbientDisplayConfiguration, in setup()
168 when(mAmbientDisplayConfiguration.pulseOnNotificationEnabled(anyInt())).thenReturn(true); in ensureStateForHeadsUpWhenDozing()
251 when(mAmbientDisplayConfiguration.pulseOnNotificationEnabled(anyInt())).thenReturn(false); in testShouldNotHeadsUpWhenDozing_pulseDisabled()
/aosp14/frameworks/base/services/core/java/com/android/server/power/
H A DPowerManagerService.java311 private final AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in PowerManagerService
1151 mAmbientDisplayConfiguration = mInjector.createAmbientDisplayConfiguration(context);
1538 mAlwaysOnEnabled = mAmbientDisplayConfiguration.alwaysOnEnabled(UserHandle.USER_CURRENT);
6629 return mAmbientDisplayConfiguration.ambientDisplayAvailable();