Home
last modified time | relevance | path

Searched refs:isScreenOn (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/core/
DInstrumentationUiAutomatorBridge.java51 public boolean isScreenOn() { in isScreenOn() method in InstrumentationUiAutomatorBridge
54 return pm.isScreenOn(); in isScreenOn()
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/
DDeviceFoldStateProvider.kt78 private var isScreenOn = false variable
266 isScreenOn = true in cancelAnimation()
271 isScreenOn = false in cancelAnimation()
283 if (isScreenOn && !isFolded) { in updateHingeAngleProviderState()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DViewMediatorCallback.java81 boolean isScreenOn(); in isScreenOn() method
/frameworks/base/core/java/android/service/dreams/
DDreamManagerInternal.java60 public abstract boolean canStartDreaming(boolean isScreenOn); in canStartDreaming() argument
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerInternal.java67 public abstract void onScreenStateChanged(boolean isScreenOn); in onScreenStateChanged() argument
DVrManagerService.java252 private void setScreenOn(boolean isScreenOn) { in setScreenOn() argument
253 setSystemState(FLAG_SCREEN_ON, isScreenOn); in setScreenOn()
715 public void onScreenStateChanged(boolean isScreenOn) { in onScreenStateChanged() argument
716 VrManagerService.this.setScreenOn(isScreenOn); in onScreenStateChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImplTest.java150 when(mPowerManager.isScreenOn()).thenReturn(true); in ensureStateForHeadsUpWhenAwake()
346 when(mPowerManager.isScreenOn()).thenReturn(false); in testShouldNotHeadsUp_deviceNotInUse()
743 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldNotFullScreen_willHun()
760 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldFullScreen_packageSnoozed()
779 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldNotFullScreen_snoozed_occluding_withStrictRules()
800 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldHeadsUp_snoozed_occluding_withStrictRules()
825 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldNotFullScreen_snoozed_lockedShade_withStrictRules()
846 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldHeadsUp_snoozed_lockedShade_withStrictRules()
871 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldNotFullScreen_snoozed_unlocked_withStrictRules()
892 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldHeadsUp_snoozed_unlocked_withStrictRules()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java622 if(!isScreenOn()) {
636 if(isScreenOn()) {
648 public boolean isScreenOn() throws RemoteException {
649 return mUiAutomatorBridge.isScreenOn();
DUiAutomatorBridge.java88 public abstract boolean isScreenOn(); in isScreenOn() method in UiAutomatorBridge
DUiDevice.java739 public boolean isScreenOn() throws RemoteException { in isScreenOn() method in UiDevice
741 return getAutomatorBridge().getInteractionController().isScreenOn(); in isScreenOn()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java364 assertFalse(mDeviceIdleController.isScreenOn()); in testUpdateInteractivityLocked()
369 assertFalse(mDeviceIdleController.isScreenOn()); in testUpdateInteractivityLocked()
374 assertTrue(mDeviceIdleController.isScreenOn()); in testUpdateInteractivityLocked()
379 assertTrue(mDeviceIdleController.isScreenOn()); in testUpdateInteractivityLocked()
384 assertFalse(mDeviceIdleController.isScreenOn()); in testUpdateInteractivityLocked()
2300 assertFalse(mDeviceIdleController.isScreenOn() in verifyStateConditions()
2309 assertFalse(mDeviceIdleController.isScreenOn() in verifyStateConditions()
2320 assertFalse(mDeviceIdleController.isScreenOn() in verifyStateConditions()
2328 assertFalse(mDeviceIdleController.isScreenOn() in verifyStateConditions()
2339 assertFalse(mDeviceIdleController.isScreenOn() in verifyStateConditions()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DImmersiveModeConfirmation.java190 boolean onPowerKeyDown(boolean isScreenOn, long time, boolean inImmersiveMode, in onPowerKeyDown() argument
192 if (!isScreenOn && (time - mPanicTime < mPanicThresholdMs)) { in onPowerKeyDown()
196 if (isScreenOn && inImmersiveMode && !navBarEmpty) { in onPowerKeyDown()
/frameworks/base/tests/TrustTests/src/android/trust/test/lib/
DScreenLockRule.kt68 if (!uiDevice.isScreenOn) { in <lambda>()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDeviceStateMonitor.java217 boolean screenOn = isScreenOn();
279 mIsScreenOn = isScreenOn(); in DeviceStateMonitor()
712 private boolean isScreenOn() { in isScreenOn() method in DeviceStateMonitor
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/
DShellUiAutomatorBridge.java117 public boolean isScreenOn() { in isScreenOn() method in ShellUiAutomatorBridge
/frameworks/base/services/core/java/com/android/server/policy/
DWindowManagerPolicy.java328 void onPowerKeyDown(boolean isScreenOn); in onPowerKeyDown() argument
849 public boolean isScreenOn(); in isScreenOn() method
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTestWindowManagerPolicy.java154 public boolean isScreenOn() { in isScreenOn() method in TestWindowManagerPolicy
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java374 private boolean canStartDreamingInternal(boolean isScreenOn) { in canStartDreamingInternal() argument
377 if (isScreenOn && isDreamingInternal()) { in canStartDreamingInternal()
1041 public boolean canStartDreaming(boolean isScreenOn) { in canStartDreaming() argument
1042 return canStartDreamingInternal(isScreenOn); in canStartDreaming()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DLinkBandwidthEstimator.java265 obtainMessage(MSG_SCREEN_STATE_CHANGED, isScreenOn()).sendToTarget();
307 handleScreenStateChanged(isScreenOn()); in LinkBandwidthEstimator()
402 private boolean isScreenOn() { in isScreenOn() method in LinkBandwidthEstimator
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DCentralSurfacesImplTest.java721 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldHeadsUp_nonSuppressedGroupSummary()
744 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldHeadsUp_suppressedGroupSummary()
767 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldHeadsUp_suppressedHeadsUp()
788 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldHeadsUp_noSuppressedHeadsUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/temporarydisplay/
DTemporaryViewDisplayController.kt217 val newWakeLock = if (!powerManager.isScreenOn) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImpl.java450 boolean inUse = mPowerManager.isScreenOn() && !mStatusBarStateController.isDreaming(); in shouldHeadsUpWhenAwake()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavigationBarView.java555 public void onScreenStateChanged(boolean isScreenOn) { in onScreenStateChanged() argument
556 mScreenOn = isScreenOn; in onScreenStateChanged()
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java394 if (sInstance.mPowerManager.isScreenOn()) { in beginShutdownSequence()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java156 mScreenOffTime = mPowerManager.isScreenOn() ? -1 : SystemClock.elapsedRealtime(); in start()

12