Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/
DAppScanStats.java492 private static void recordScreenOnOffMetrics(boolean isScreenOn) { in recordScreenOnOffMetrics() argument
493 if (isScreenOn) { in recordScreenOnOffMetrics()
535 boolean isScreenOn; in recordBatchScanRadioResultCount()
537 isScreenOn = sIsScreenOn; in recordBatchScanRadioResultCount()
542 if (isScreenOn) { in recordBatchScanRadioResultCount()
553 static void setScreenState(boolean isScreenOn) { in setScreenState() argument
555 if (sIsScreenOn == isScreenOn) { in setScreenState()
562 recordScreenOnOffMetrics(isScreenOn); in setScreenState()
563 sIsScreenOn = isScreenOn; in setScreenState()
DScanManager.java194 mScreenOn = isScreenOn(); in ScanManager()
1909 private boolean isScreenOn() { in isScreenOn() method in ScanManager
1935 if (isScreenOn()) {
/packages/apps/Dialer/java/com/android/incallui/
DProximitySensor.java157 } else if (powerManager.isScreenOn()) { in onInCallShowing()
175 return !powerManager.isScreenOn(); in isScreenReallyOff()
/packages/apps/Messaging/tests/src/com/android/messaging/
DTestUtil.java65 if (!pm.isScreenOn()) { in haltIfTestsAreNotAbleToRun()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DScreenOnTracker.java71 public boolean isScreenOn() { in isScreenOn() method in ScreenOnTracker
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DCameraMicIndicatorsPermissionTest.kt125 private var isScreenOn = false in <lambda>() variable
172 if (!isScreenOn) { in <lambda>()
176 isScreenOn = true in <lambda>()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DHostEmulationManagerTest.java620 when(mPowerManager.isScreenOn()).thenReturn(false); in testOnHostEmulationData_stateW4Select_defaultServiceExists_requiresScreenOn()
651 when(mPowerManager.isScreenOn()).thenReturn(true); in testOnHostEmulationData_stateW4Select_defaultServiceExists_notOnHost()
714 when(mPowerManager.isScreenOn()).thenReturn(true); in testOnHostEmulationData_stateW4Select_noDefaultService_matchingActiveService()
760 when(mPowerManager.isScreenOn()).thenReturn(true); in testOnHostEmulationData_stateW4Select_noDefaultService_noBoundActiveService()
858 when(mPowerManager.isScreenOn()).thenReturn(true); in testOnHostEmulationData_stateXfer_selectAid_activeService()
899 when(mPowerManager.isScreenOn()).thenReturn(true); in testOnHostEmulationData_stateXfer_selectAid_noActiveService()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarApiTestBase.java193 SUSPEND_TIMEOUT_MS, () -> !powerManager.isScreenOn()); in suspendToRamAndResume()
/packages/apps/Traceur/uitests/src/com/android/traceur/uitest/
DTraceurAppTests.java65 if (!mDevice.isScreenOn()) { in setUp()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPermissionRequest.java117 if (powerManager.isScreenOn() in onReceive()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DHostEmulationManager.java652 } else if (!mPowerManager.isScreenOn()) { in onHostEmulationData()
704 if (defaultServiceInfo.requiresScreenOn() && !mPowerManager.isScreenOn()) { in onHostEmulationData()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_scan/
DScanManagerTest.java341 private Message createScreenOnOffMessage(boolean isScreenOn) { in createScreenOnOffMessage() argument
343 message.what = isScreenOn ? ScanManager.MSG_SCREEN_ON : ScanManager.MSG_SCREEN_OFF; in createScreenOnOffMessage()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertDialog.java662 if (!(isChangingConfigurations() || latestMessage == null) && pm.isScreenOn()) { in onUserLeaveHint()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java1679 && mDecodedProto.wifiSystemStateEntries[i].isScreenOn == screenOn) { in assertSystemStateEntryEquals()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiMetrics.java5369 mWifiLogProto.wifiSystemStateEntries[i].isScreenOn = in consolidateProto()