Home
last modified time | relevance | path

Searched refs:ScreenOffHandler (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DScreenOffHandlerUnitTest.java91 private ScreenOffHandler mScreenOffHandler;
264 updateDisplayPowerModeSetting(displayId, ScreenOffHandler.DISPLAY_POWER_MODE_ON); in testUpdateUserActivity_noUserAssignedInModeOn_shouldTurnOffDisplay()
292 updateDisplayPowerModeSetting(displayId, ScreenOffHandler.DISPLAY_POWER_MODE_ON); in testUpdateUserActivity_userAssignedInModeOn_shouldKeepScreenOn()
314 updateDisplayPowerModeSetting(displayId, ScreenOffHandler.DISPLAY_POWER_MODE_ON); in testUserActivity_bootIncomplete()
335 ScreenOffHandler.DISPLAY_POWER_MODE_OFF); in testCanTurnOnDisplay()
340 ScreenOffHandler.DISPLAY_POWER_MODE_ON); in testCanTurnOnDisplay()
360 updateDisplayPowerModeSetting(displayId, ScreenOffHandler.DISPLAY_POWER_MODE_ON); in testHandleDisplayStateChange_modeOn()
382 updateDisplayPowerModeSetting(displayId, ScreenOffHandler.DISPLAY_POWER_MODE_ALWAYS_ON); in testHandleDisplayStateChange_modeAlwaysOn()
405 updateDisplayPowerModeSetting(displayId, ScreenOffHandler.DISPLAY_POWER_MODE_OFF); in testHandleDisplayStateChange_modeOff()
428 mScreenOffHandler = new ScreenOffHandler(mContext, mSystemInterface, in setService()
DCarPowerManagementServiceUnitTest.java2321 mScreenOffHandler.setDisplayPowerInfo(displayId, ScreenOffHandler.DISPLAY_POWER_MODE_OFF); in testCanTurnOnDisplay_displayOff()
2334 mScreenOffHandler.setDisplayPowerInfo(displayId, ScreenOffHandler.DISPLAY_POWER_MODE_ON); in testCanTurnOnDisplay_displayOn()
3254 private static final class FakeScreenOffHandler extends ScreenOffHandler {
/packages/services/Car/service/src/com/android/car/power/
DScreenOffHandler.java65 class ScreenOffHandler { class
66 private static final String TAG = CarLog.tagFor(ScreenOffHandler.class);
130 ScreenOffHandler(Context context, SystemInterface systemInterface, Looper looper) { in ScreenOffHandler() method in ScreenOffHandler
135 ScreenOffHandler(Context context, SystemInterface systemInterface, Looper looper, in ScreenOffHandler() method in ScreenOffHandler
514 private final WeakReference<ScreenOffHandler> mScreenOffHandler;
516 private EventHandler(Looper looper, ScreenOffHandler screenOffHandler) { in EventHandler()
518 mScreenOffHandler = new WeakReference<ScreenOffHandler>(screenOffHandler); in EventHandler()
533 ScreenOffHandler screenOffHandler = mScreenOffHandler.get(); in handleMessage()
DCarPowerManagementService.java340 private final ScreenOffHandler mScreenOffHandler;
392 private @Nullable ScreenOffHandler mScreenOffHandler;
481 public Builder setScreenOffHandler(ScreenOffHandler screenOffHandler) { in setScreenOffHandler()
581 new ScreenOffHandler(mContext, mSystemInterface, mHandler.getLooper())); in CarPowerManagementService()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertDialog.java177 private final ScreenOffHandler mScreenOffHandler = new ScreenOffHandler();
300 private class ScreenOffHandler extends Handler { class in CellBroadcastAlertDialog
305 ScreenOffHandler() {} in ScreenOffHandler() method in CellBroadcastAlertDialog.ScreenOffHandler