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

Commit b72bdd10 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add a test for `shouldDeviceBePutToSleep` when performing the first...

Merge "Add a test for `shouldDeviceBePutToSleep` when performing the first state transition" into tm-qpr-dev am: 6d9c9985

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21084423



Change-Id: Iadf8542d47ef8ecff3c89a0b7c88a1dce8c7e450
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e48ab2d2 6d9c9985
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.server.display;

import static android.hardware.devicestate.DeviceStateManager.INVALID_DEVICE_STATE;
import static android.view.Display.DEFAULT_DISPLAY;
import static android.view.Display.DEFAULT_DISPLAY_GROUP;
import static android.view.Display.TYPE_EXTERNAL;
@@ -441,6 +442,11 @@ public class LogicalDisplayMapperTest {
                /* isOverrideActive= */false,
                /* isInteractive= */true,
                /* isBootCompleted= */true));
        assertFalse(mLogicalDisplayMapper.shouldDeviceBePutToSleep(DEVICE_STATE_CLOSED,
                INVALID_DEVICE_STATE,
                /* isOverrideActive= */false,
                /* isInteractive= */true,
                /* isBootCompleted= */true));
    }

    @Test