/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | SystemScreenInteractiveHelper.java | 50 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/ |
D | PowerRepositoryImplTest.kt | 87 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/ |
D | CachedDeviceStateService.java | 53 case Intent.ACTION_SCREEN_OFF: 75 filter.addAction(Intent.ACTION_SCREEN_OFF); in onBootPhase()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ControlsActivity.kt | 170 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/ |
D | CarIdlenessTracker.java | 87 filter.addAction(Intent.ACTION_SCREEN_OFF); in startTracking() 153 } else if (action.equals(intent.ACTION_SCREEN_OFF)) { in onReceive()
|
D | DeviceIdlenessTracker.java | 127 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/ |
D | DeviceIdlenessTrackerTest.java | 195 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/ |
D | UiModeManagerServiceTest.java | 216 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/ |
D | DefaultDeviceEffectsApplierTest.java | 268 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/ |
D | LiveWallpaper.kt | 73 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/ |
D | PowerRepository.kt | 119 addAction(Intent.ACTION_SCREEN_OFF) in wakeUp()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | FaceDownDetector.java | 192 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/ |
D | BatterySaverController.java | 177 case Intent.ACTION_SCREEN_OFF: 229 filter.addAction(Intent.ACTION_SCREEN_OFF); in systemReady()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | DefaultDeviceEffectsApplier.java | 49 Intent.ACTION_SCREEN_OFF);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | CachedDeviceStateServiceTest.java | 107 mContext.sendBroadcast(new Intent(Intent.ACTION_SCREEN_OFF)); in correctlyReportsScreenInteractive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | ScreenPinningRequest.java | 254 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/ |
D | SideFpsEventHandler.java | 117 new IntentFilter(Intent.ACTION_SCREEN_OFF)); in SideFpsEventHandler()
|
D | LegacyGlobalActions.java | 136 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/ |
D | SystemUIDialogTest.java | 99 assertTrue(intentFilterCaptor.getValue().hasAction(Intent.ACTION_SCREEN_OFF)); in testRegisterReceiver()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | Clock.java | 418 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/ |
D | FaceDownDetectorTest.java | 191 mFaceDownDetector.mScreenReceiver.onReceive(sContext, new Intent(Intent.ACTION_SCREEN_OFF)); in faceDownToScreenOff_followedByScreenOnAndUserInteraction_doesNotDisable()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustAgentWrapper.java | 125 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/ |
D | AccessibilityMenuService.java | 200 hideMenuFilter.addAction(Intent.ACTION_SCREEN_OFF); in onServiceConnected()
|
/frameworks/base/services/core/java/com/android/server/attention/ |
D | AttentionManagerService.java | 180 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/ |
D | SystemUIDialog.java | 592 INTENT_FILTER.addAction(Intent.ACTION_SCREEN_OFF);
|