Merge "Add a test for shouldDeviceBePutToSleep when performing the first state transition" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6d9c998500
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package com.android.server.display;
|
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;
|
||||||
import static android.view.Display.DEFAULT_DISPLAY_GROUP;
|
import static android.view.Display.DEFAULT_DISPLAY_GROUP;
|
||||||
import static android.view.Display.TYPE_EXTERNAL;
|
import static android.view.Display.TYPE_EXTERNAL;
|
||||||
@@ -441,6 +442,11 @@ public class LogicalDisplayMapperTest {
|
|||||||
/* isOverrideActive= */false,
|
/* isOverrideActive= */false,
|
||||||
/* isInteractive= */true,
|
/* isInteractive= */true,
|
||||||
/* isBootCompleted= */true));
|
/* isBootCompleted= */true));
|
||||||
|
assertFalse(mLogicalDisplayMapper.shouldDeviceBePutToSleep(DEVICE_STATE_CLOSED,
|
||||||
|
INVALID_DEVICE_STATE,
|
||||||
|
/* isOverrideActive= */false,
|
||||||
|
/* isInteractive= */true,
|
||||||
|
/* isBootCompleted= */true));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user