Home
last modified time | relevance | path

Searched refs:mScreenOffHandler (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; field in ScreenOffHandlerUnitTest
133 SparseIntArray result = mScreenOffHandler.parseModeAssignmentSettingValue(actualModeString); in testParseSetting_valid_returnNonNull()
154 result = mScreenOffHandler.parseModeAssignmentSettingValue(actualModeString); in testParseSetting_valid_returnNonNull()
169 result = mScreenOffHandler.parseModeAssignmentSettingValue(actualModeString); in testParseSetting_valid_returnNonNull()
182 result = mScreenOffHandler.parseModeAssignmentSettingValue(actualModeString); in testParseSetting_valid_returnNonNull()
193 result = mScreenOffHandler.parseModeAssignmentSettingValue(actualModeString); in testParseSetting_valid_returnNonNull()
214 SparseIntArray result = mScreenOffHandler.parseModeAssignmentSettingValue(actualModeString); in testParseSetting_invalid_returnNull()
235 result = mScreenOffHandler.parseModeAssignmentSettingValue(actualModeString); in testParseSetting_invalid_returnNull()
244 result = mScreenOffHandler.parseModeAssignmentSettingValue(""); in testParseSetting_invalid_returnNull()
265 mScreenOffHandler.updateUserActivity(displayId, mClock.now()); in testUpdateUserActivity_noUserAssignedInModeOn_shouldTurnOffDisplay()
[all …]
DCarPowerManagementServiceUnitTest.java240 private FakeScreenOffHandler mScreenOffHandler; field in CarPowerManagementServiceUnitTest
284 mScreenOffHandler = new FakeScreenOffHandler( in setUp()
1110 .setScreenOffHandler(mScreenOffHandler) in testInitializePowerPolicy_invalidPowerState_powerPolicyRefactorFlagEnabled()
1708 mScreenOffHandler.getDisplayUserActivityTime(displayId)).isAtMost( in testNotifyUserActivity_withoutTimestamp()
1721 mScreenOffHandler.getDisplayUserActivityTime(displayId)).isEqualTo( in testNotifyUserActivity_withTimestamp()
1944 .setScreenOffHandler(mScreenOffHandler) in testDisableWifiAndTethering()
2307 mScreenOffHandler.setIsAutoPowerSaving(isPowerSaving); in testCanTurnOnDisplay_isNotPowerSaving()
2319 mScreenOffHandler.setIsAutoPowerSaving(isPowerSaving); in testCanTurnOnDisplay_displayOff()
2321 mScreenOffHandler.setDisplayPowerInfo(displayId, ScreenOffHandler.DISPLAY_POWER_MODE_OFF); in testCanTurnOnDisplay_displayOff()
2332 mScreenOffHandler.setIsAutoPowerSaving(isPowerSaving); in testCanTurnOnDisplay_displayOn()
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertDialog.java177 private final ScreenOffHandler mScreenOffHandler = new ScreenOffHandler(); field in CellBroadcastAlertDialog
576 mScreenOffHandler.startScreenOnTimer(message); in onCreate()
1026 mScreenOffHandler.startScreenOnTimer(message); in onNewIntent()
1079 mScreenOffHandler.stopScreenOnTimer(); in dismissAllFromNotification()
1148 mScreenOffHandler.stopScreenOnTimer(); in dismiss()
/packages/services/Car/service/src/com/android/car/power/
DScreenOffHandler.java514 private final WeakReference<ScreenOffHandler> mScreenOffHandler; field in ScreenOffHandler.EventHandler
518 mScreenOffHandler = new WeakReference<ScreenOffHandler>(screenOffHandler); in EventHandler()
533 ScreenOffHandler screenOffHandler = mScreenOffHandler.get(); in handleMessage()
DCarPowerManagementService.java340 private final ScreenOffHandler mScreenOffHandler; field in CarPowerManagementService
392 private @Nullable ScreenOffHandler mScreenOffHandler; field in CarPowerManagementService.Builder
482 mScreenOffHandler = screenOffHandler; in setScreenOffHandler()
580 mScreenOffHandler = Objects.requireNonNullElseGet(builder.mScreenOffHandler, () -> in CarPowerManagementService()
610 mScreenOffHandler.init(); in init()
692 mScreenOffHandler.dump(writer); in dump()
752 mScreenOffHandler.dumpProto(proto); in dumpProto()
1862 mScreenOffHandler.handleDisplayStateChange(displayId, on); in doHandleDisplayStateChange()
1887 return mScreenOffHandler.canTurnOnDisplay(displayId); in canTurnOnDisplay()
1894 mScreenOffHandler.updateUserActivity(displayId, eventTime); in notifyUserActivity()