Renamed method
Test: make Bug: 111405682 Change-Id: If3e48c5ee5f90aefb2795ce31025fabec689e7ad
This commit is contained in:
@@ -53,7 +53,7 @@ public class WakeLockScreenGesturePreferenceController extends GesturePreference
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
// No hardware support for this Gesture
|
||||
if (!getAmbientConfig().wakeLockScreenGestureAvailable()) {
|
||||
if (!getAmbientConfig().wakeScreenGestureAvailable()) {
|
||||
return UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
|
@@ -71,7 +71,7 @@ public class WakeLockScreenGesturePreferenceControllerTest {
|
||||
|
||||
@Test
|
||||
public void getAvailabilityStatus_gestureNotSupported_UNSUPPORTED_ON_DEVICE() {
|
||||
when(mAmbientDisplayConfiguration.wakeLockScreenGestureAvailable()).thenReturn(false);
|
||||
when(mAmbientDisplayConfiguration.wakeScreenGestureAvailable()).thenReturn(false);
|
||||
final int availabilityStatus = mController.getAvailabilityStatus();
|
||||
|
||||
assertThat(availabilityStatus).isEqualTo(UNSUPPORTED_ON_DEVICE);
|
||||
@@ -79,7 +79,7 @@ public class WakeLockScreenGesturePreferenceControllerTest {
|
||||
|
||||
@Test
|
||||
public void getAvailabilityStatus_gestureSupported_AVAILABLE() {
|
||||
when(mAmbientDisplayConfiguration.wakeLockScreenGestureAvailable()).thenReturn(true);
|
||||
when(mAmbientDisplayConfiguration.wakeScreenGestureAvailable()).thenReturn(true);
|
||||
final int availabilityStatus = mController.getAvailabilityStatus();
|
||||
|
||||
assertThat(availabilityStatus).isEqualTo(AVAILABLE);
|
||||
|
Reference in New Issue
Block a user