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.java51 private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in DoubleTapScreenPreferenceControllerTest
62 mController.setConfig(mAmbientDisplayConfiguration); in setUp()
68 when(mAmbientDisplayConfiguration.doubleTapGestureEnabled(anyInt())).thenReturn(true); in testIsChecked_configIsSet_shouldReturnTrue()
75 when(mAmbientDisplayConfiguration.doubleTapGestureEnabled(anyInt())).thenReturn(false); in testIsChecked_configIsNotSet_shouldReturnFalse()
82 when(mAmbientDisplayConfiguration.doubleTapSensorAvailable()).thenReturn(true); in isSuggestionCompleted_ambientDisplay_falseWhenNotVisited()
89 .isSuggestionComplete(mAmbientDisplayConfiguration, prefs)).isFalse(); in isSuggestionCompleted_ambientDisplay_falseWhenNotVisited()
94 when(mAmbientDisplayConfiguration.doubleTapSensorAvailable()).thenReturn(false); in isSuggestionCompleted_ambientDisplay_trueWhenVisited()
103 .isSuggestionComplete(mAmbientDisplayConfiguration, prefs)).isTrue(); in isSuggestionCompleted_ambientDisplay_trueWhenVisited()
108 when(mAmbientDisplayConfiguration.doubleTapSensorAvailable()).thenReturn(false); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE()
109 when(mAmbientDisplayConfiguration.ambientDisplayAvailable()).thenReturn(false); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE()
[all …]
DPickupGesturePreferenceControllerTest.java53 private AmbientDisplayConfiguration mAmbientDisplayConfiguration; field in PickupGesturePreferenceControllerTest
63 mController.setConfig(mAmbientDisplayConfiguration); in setUp()
69 when(mAmbientDisplayConfiguration.pickupGestureEnabled(anyInt())).thenReturn(true); in testIsChecked_configIsSet_shouldReturnTrue()
77 when(mAmbientDisplayConfiguration.pickupGestureEnabled(anyInt())).thenReturn(false); in testIsChecked_configIsNotSet_shouldReturnFalse()
97 when(mAmbientDisplayConfiguration.dozePickupSensorAvailable()).thenReturn(false); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE()
98 when(mAmbientDisplayConfiguration.ambientDisplayAvailable()).thenReturn(false); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE()
106 when(mAmbientDisplayConfiguration.dozePickupSensorAvailable()).thenReturn(true); in getAvailabilityStatus_aodSupported_aodOff_AVAILABLE()
107 when(mAmbientDisplayConfiguration.ambientDisplayAvailable()).thenReturn(true); in getAvailabilityStatus_aodSupported_aodOff_AVAILABLE()
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()