Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e971fe9 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Renamed method

Test: make
Bug: 111405682
Change-Id: If3e48c5ee5f90aefb2795ce31025fabec689e7ad
parent 3142d56f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }

+2 −2
Original line number Diff line number Diff line
@@ -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);