Home
last modified time | relevance | path

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

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
H A DDoubleTapScreenPreferenceControllerTest.java48 private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in DoubleTapScreenPreferenceControllerTest
57 mController.setConfig(mAmbientDisplayConfiguration); in setUp()
63 when(mAmbientDisplayConfiguration.doubleTapGestureEnabled(anyInt())).thenReturn(true); in testIsChecked_configIsSet_shouldReturnTrue()
77 when(mAmbientDisplayConfiguration.doubleTapSensorAvailable()).thenReturn(true); in isSuggestionCompleted_ambientDisplay_falseWhenNotVisited()
84 .isSuggestionComplete(mAmbientDisplayConfiguration, prefs)).isFalse(); in isSuggestionCompleted_ambientDisplay_falseWhenNotVisited()
89 when(mAmbientDisplayConfiguration.doubleTapSensorAvailable()).thenReturn(false); in isSuggestionCompleted_ambientDisplay_trueWhenVisited()
98 .isSuggestionComplete(mAmbientDisplayConfiguration, prefs)).isTrue(); in isSuggestionCompleted_ambientDisplay_trueWhenVisited()
103 when(mAmbientDisplayConfiguration.doubleTapSensorAvailable()).thenReturn(false); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE()
104 when(mAmbientDisplayConfiguration.ambientDisplayAvailable()).thenReturn(false); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE()
112 when(mAmbientDisplayConfiguration.doubleTapSensorAvailable()).thenReturn(true); in getAvailabilityStatus_aodSupported_aodOff_AVAILABLE()
[all …]
H A DPickupGesturePreferenceControllerTest.java50 private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in PickupGesturePreferenceControllerTest
58 mController.setConfig(mAmbientDisplayConfiguration); in setUp()
64 when(mAmbientDisplayConfiguration.pickupGestureEnabled(anyInt())).thenReturn(true); in testIsChecked_configIsSet_shouldReturnTrue()
72 when(mAmbientDisplayConfiguration.pickupGestureEnabled(anyInt())).thenReturn(false); in testIsChecked_configIsNotSet_shouldReturnFalse()
92 when(mAmbientDisplayConfiguration.dozePickupSensorAvailable()).thenReturn(false); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE()
93 when(mAmbientDisplayConfiguration.ambientDisplayAvailable()).thenReturn(false); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE()
101 when(mAmbientDisplayConfiguration.dozePickupSensorAvailable()).thenReturn(true); in getAvailabilityStatus_aodSupported_aodOff_AVAILABLE()
102 when(mAmbientDisplayConfiguration.ambientDisplayAvailable()).thenReturn(true); in getAvailabilityStatus_aodSupported_aodOff_AVAILABLE()
H A DTapScreenGesturePreferenceControllerTest.java45 private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in TapScreenGesturePreferenceControllerTest
53 mController.setConfig(mAmbientDisplayConfiguration); in setUp()
59 when(mAmbientDisplayConfiguration.tapGestureEnabled(anyInt())).thenReturn(true); in testIsChecked_configIsSet_shouldReturnTrue()
66 when(mAmbientDisplayConfiguration.tapGestureEnabled(anyInt())).thenReturn(false); in testIsChecked_configIsNotSet_shouldReturnFalse()
72 when(mAmbientDisplayConfiguration.tapSensorAvailable()).thenReturn(false); in getAvailabilityStatus_gestureNotSupported_UNSUPPORTED_ON_DEVICE()
80 when(mAmbientDisplayConfiguration.tapSensorAvailable()).thenReturn(true); in getAvailabilityStatus_gestureSupported_AVAILABLE()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
H A DDozeSensorsTest.java84 private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in DozeSensorsTest
118 when(mAmbientDisplayConfiguration.tapSensorTypeMapping()) in setUp()
120 when(mAmbientDisplayConfiguration.getWakeLockScreenDebounce()).thenReturn(5000L); in setUp()
121 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(true); in setUp()
122 when(mAmbientDisplayConfiguration.enabled(UserHandle.USER_CURRENT)).thenReturn(true); in setUp()
202 when(mAmbientDisplayConfiguration.enabled(anyInt())).thenReturn(true); in testDozeSensorSetListening()
223 when(mAmbientDisplayConfiguration.enabled(anyInt())).thenReturn(true); in testDozeSensorSettingDisabled()
244 when(mAmbientDisplayConfiguration.enabled(anyInt())).thenReturn(true); in testDozeSensorIgnoreSetting()
268 when(mAmbientDisplayConfiguration.enabled(anyInt())).thenReturn(true); in testUpdateListeningAfterAlreadyRegistered()
426 mAmbientDisplayConfiguration, mWakeLock, mCallback, mProxCallback, mDozeLog, in testGesturesAllInitiallyRespectSettings()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DDozeParametersTest.java60 @Mock private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in DozeParametersTest
95 mAmbientDisplayConfiguration, in setup()
139 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(true); in testGetAlwaysOn()
148 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(true); in testGetAlwaysOn_whenBatterySaver()
266 when(mAmbientDisplayConfiguration.alwaysOnEnabled(anyInt())).thenReturn(enabled); in setAodEnabledForTest()
H A DStatusBarTest.java208 @Mock private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in StatusBarTest
301 mDreamManager, mAmbientDisplayConfiguration, mNotificationFilter, in setup()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDozeParameters.java70 private final AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in DozeParameters
115 mAmbientDisplayConfiguration = ambientDisplayConfiguration; in DozeParameters()
227 return mAmbientDisplayConfiguration.quickPickupSensorEnabled(UserHandle.USER_CURRENT); in isQuickPickupEnabled()
355 mDozeAlwaysOn = mAmbientDisplayConfiguration.alwaysOnEnabled(UserHandle.USER_CURRENT); in onTuningChanged()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
H A DNotificationInterruptStateProviderImplTest.java76 AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in NotificationInterruptStateProviderImplTest
99 mAmbientDisplayConfiguration, in setup()
141 when(mAmbientDisplayConfiguration.pulseOnNotificationEnabled(anyInt())).thenReturn(true); in ensureStateForHeadsUpWhenDozing()
230 when(mAmbientDisplayConfiguration.pulseOnNotificationEnabled(anyInt())).thenReturn(false); in testShouldNotHeadsUpWhenDozing_pulseDisabled()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
H A DNotificationInterruptStateProviderImpl.java66 private final AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in NotificationInterruptStateProviderImpl
89 mAmbientDisplayConfiguration = ambientDisplayConfiguration; in NotificationInterruptStateProviderImpl()
268 if (!mAmbientDisplayConfiguration.pulseOnNotificationEnabled(UserHandle.USER_CURRENT)) { in shouldHeadsUpWhenDozing()
/aosp12/frameworks/base/services/core/java/com/android/server/power/
H A DPowerManagerService.java273 private final AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in PowerManagerService
963 mAmbientDisplayConfiguration = mInjector.createAmbientDisplayConfiguration(context);
1335 mAlwaysOnEnabled = mAmbientDisplayConfiguration.alwaysOnEnabled(UserHandle.USER_CURRENT);
5806 return mAmbientDisplayConfiguration.ambientDisplayAvailable();