Home
last modified time | relevance | path

Searched refs:ACTION_SCREEN_OFF (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemScreenInteractiveHelper.java50 screenIntentFilter.addAction(Intent.ACTION_SCREEN_OFF); in onSystemReady()
58 } else if (Intent.ACTION_SCREEN_OFF.equals(intent.getAction())) { in onSystemReady()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/data/repository/
DPowerRepositoryImplTest.kt87 assertThat(filterCaptor.value.hasAction(Intent.ACTION_SCREEN_OFF)).isTrue() in isInteractive_registersForBroadcasts()
151 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_OFF)) in isInteractive_emitsFalseWhenTheScreenTurnsOff()
165 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_OFF)) in isInteractive_emitsCorrectlyOverTime()
169 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_OFF)) in isInteractive_emitsCorrectlyOverTime()
/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java53 case Intent.ACTION_SCREEN_OFF:
75 filter.addAction(Intent.ACTION_SCREEN_OFF); in onBootPhase()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlsActivity.kt170 if (action == Intent.ACTION_SCREEN_OFF || in <lambda>()
178 filter.addAction(Intent.ACTION_SCREEN_OFF) in <lambda>()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/idle/
DCarIdlenessTracker.java87 filter.addAction(Intent.ACTION_SCREEN_OFF); in startTracking()
153 } else if (action.equals(intent.ACTION_SCREEN_OFF)) { in onReceive()
DDeviceIdlenessTracker.java127 filter.addAction(Intent.ACTION_SCREEN_OFF); in startTracking()
276 case Intent.ACTION_SCREEN_OFF: in onReceive()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/idle/
DDeviceIdlenessTrackerTest.java195 Intent screenOffIntent = new Intent(Intent.ACTION_SCREEN_OFF); in testAlarmSkippedIfAlreadyIdle()
209 Intent screenOffIntent = new Intent(Intent.ACTION_SCREEN_OFF); in testAlarmSkippedIfNoThresholdChange()
242 Intent screenOffIntent = new Intent(Intent.ACTION_SCREEN_OFF); in testThresholdChangeWithStablePowerChange()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java216 if (filter.hasAction(Intent.ACTION_SCREEN_OFF)) { in setUp()
388 assertThat(intentFilter.hasAction(Intent.ACTION_SCREEN_OFF)).isFalse(); in setNightModeCustomType_bedtime_shouldHaveNoScreenOffRegistered()
490 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in setNightModeActivatedForCustomMode_customTypeBedtime_withParamOnAndBedtime_thenCustomTypeScheduleAndScreenOff_shouldDeactivateNightMode()
818 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOn_afterScreenOff()
829 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOff_afterScreenOff()
862 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOff_afterStartEnd()
873 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOn_afterStartEnd()
885 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOn_beforeStartEnd()
896 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOff_beforeStartEnd()
944 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_appliesOnlyWhenScreenOff()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DDefaultDeviceEffectsApplierTest.java268 assertThat(intentFilterCaptor.getValue().getAction(0)).isEqualTo(Intent.ACTION_SCREEN_OFF); in apply_nightModeFromApp_appliedOnScreenOff()
272 screenOffReceiver.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in apply_nightModeFromApp_appliedOnScreenOff()
324 argThat(filter -> Intent.ACTION_SCREEN_OFF.equals(filter.getAction(0))), in apply_nightModeWithScreenOn_willBeAppliedLaterBasedOnOrigin()
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/wallpaper/
DLiveWallpaper.kt73 wakeStateChangeIntentFilter.addAction(Intent.ACTION_SCREEN_OFF) in onCreate()
98 Intent.ACTION_SCREEN_OFF -> { in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/data/repository/
DPowerRepository.kt119 addAction(Intent.ACTION_SCREEN_OFF) in wakeUp()
/frameworks/base/services/core/java/com/android/server/power/
DFaceDownDetector.java192 intentFilter.addAction(Intent.ACTION_SCREEN_OFF); in registerScreenReceiver()
474 if (Intent.ACTION_SCREEN_OFF.equals(intent.getAction())) { in onReceive()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java177 case Intent.ACTION_SCREEN_OFF:
229 filter.addAction(Intent.ACTION_SCREEN_OFF); in systemReady()
/frameworks/base/services/core/java/com/android/server/notification/
DDefaultDeviceEffectsApplier.java49 Intent.ACTION_SCREEN_OFF);
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java107 mContext.sendBroadcast(new Intent(Intent.ACTION_SCREEN_OFF)); in correctlyReportsScreenInteractive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DScreenPinningRequest.java254 filter.addAction(Intent.ACTION_SCREEN_OFF); in onAttachedToWindow()
414 } else if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) {
/frameworks/base/services/core/java/com/android/server/policy/
DSideFpsEventHandler.java117 new IntentFilter(Intent.ACTION_SCREEN_OFF)); in SideFpsEventHandler()
DLegacyGlobalActions.java136 filter.addAction(Intent.ACTION_SCREEN_OFF); in LegacyGlobalActions()
746 || Intent.ACTION_SCREEN_OFF.equals(action)) {
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/
DSystemUIDialogTest.java99 assertTrue(intentFilterCaptor.getValue().hasAction(Intent.ACTION_SCREEN_OFF)); in testRegisterReceiver()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DClock.java418 IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_OFF); in updateShowSeconds()
550 if (Intent.ACTION_SCREEN_OFF.equals(action)) {
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
DFaceDownDetectorTest.java191 mFaceDownDetector.mScreenReceiver.onReceive(sContext, new Intent(Intent.ACTION_SCREEN_OFF)); in faceDownToScreenOff_followedByScreenOnAndUserInteraction_doesNotDisable()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustAgentWrapper.java125 if (Intent.ACTION_SCREEN_OFF.equals(intent.getAction())) {
490 IntentFilter trustableFilter = new IntentFilter(Intent.ACTION_SCREEN_OFF); in TrustAgentWrapper()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/
DAccessibilityMenuService.java200 hideMenuFilter.addAction(Intent.ACTION_SCREEN_OFF); in onServiceConnected()
/frameworks/base/services/core/java/com/android/server/attention/
DAttentionManagerService.java180 new IntentFilter(Intent.ACTION_SCREEN_OFF)); in onBootPhase()
921 if (Intent.ACTION_SCREEN_OFF.equals(intent.getAction())) { in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DSystemUIDialog.java592 INTENT_FILTER.addAction(Intent.ACTION_SCREEN_OFF);

123