Merge "Add a test for shouldDeviceBePutToSleep when performing the first state transition" into tm-qpr-dev am: 6d9c998500 am: b72bdd10c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21084423 Change-Id: Ie612d5d7aea81a78eaa7d018b970f7910c0bee9c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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;
|
||||
@@ -537,6 +538,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
|
||||
|
||||
Reference in New Issue
Block a user