Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
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()
70 when(mAmbientDisplayConfiguration.doubleTapGestureEnabled(anyInt())).thenReturn(false); in testIsChecked_configIsNotSet_shouldReturnFalse()
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()
[all …]
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()
DTapScreenGesturePreferenceControllerTest.java46 private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in TapScreenGesturePreferenceControllerTest
54 mController.setConfig(mAmbientDisplayConfiguration); in setUp()
60 when(mAmbientDisplayConfiguration.tapGestureEnabled(anyInt())).thenReturn(true); in testIsChecked_configIsSet_shouldReturnTrue()
67 when(mAmbientDisplayConfiguration.tapGestureEnabled(anyInt())).thenReturn(false); in testIsChecked_configIsNotSet_shouldReturnFalse()
73 when(mAmbientDisplayConfiguration.tapSensorAvailable()).thenReturn(false); in getAvailabilityStatus_gestureNotSupported_UNSUPPORTED_ON_DEVICE()
81 when(mAmbientDisplayConfiguration.tapSensorAvailable()).thenReturn(true); in getAvailabilityStatus_gestureSupported_AVAILABLE()