Home
last modified time | relevance | path

Searched refs:screenOff (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DRefreshRateStatsTest.cpp72 std::chrono::milliseconds screenOff = times.get("ScreenOff")->get(); in TEST_F() local
76 EXPECT_LT(screenOff, times.get("ScreenOff")->get()); in TEST_F()
81 screenOff = mRefreshRateStats->getTotalTimes().get("ScreenOff")->get(); in TEST_F()
85 EXPECT_EQ(screenOff, times.get("ScreenOff")->get()); in TEST_F()
94 EXPECT_LT(screenOff, times.get("ScreenOff")->get()); in TEST_F()
98 screenOff = mRefreshRateStats->getTotalTimes().get("ScreenOff")->get(); in TEST_F()
103 EXPECT_LT(screenOff, times.get("ScreenOff")->get()); in TEST_F()
119 std::chrono::milliseconds screenOff = times.get("ScreenOff")->get(); in TEST_F() local
123 EXPECT_LT(screenOff, times.get("ScreenOff")->get()); in TEST_F()
129 screenOff = mRefreshRateStats->getTotalTimes().get("ScreenOff")->get(); in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjProfiler.java123 private void updateSystemServerCpuTime(boolean onBattery, boolean screenOff, in updateSystemServerCpuTime() argument
131 cpuTimeMs - mLastSystemServerCpuTimeMs, onBattery, screenOff); in updateSystemServerCpuTime()
200 public void addCpuTimeMs(long cpuTimeMs, boolean onBattery, boolean screenOff) { in addCpuTimeMs() argument
201 addCpuTimeUs(cpuTimeMs * 1000, onBattery, screenOff); in addCpuTimeMs()
208 public void addCpuTimeUs(long cpuTimeUs, boolean onBattery, boolean screenOff) { in addCpuTimeUs() argument
211 if (screenOff) { in addCpuTimeUs()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBroadcastQueueModernImplTest.java1034 final Intent screenOff = new Intent(Intent.ACTION_SCREEN_OFF); in testDeliveryGroupPolicy_diffReceivers() local
1045 mImpl.enqueueBroadcastLocked(makeBroadcastRecord(screenOff, screenOnOffOptions, in testDeliveryGroupPolicy_diffReceivers()
1053 verifyPendingRecords(greenQueue, List.of(screenOff)); in testDeliveryGroupPolicy_diffReceivers()
1054 verifyPendingRecords(redQueue, List.of(screenOff)); in testDeliveryGroupPolicy_diffReceivers()
1055 verifyPendingRecords(blueQueue, List.of(screenOff)); in testDeliveryGroupPolicy_diffReceivers()
1061 mImpl.enqueueBroadcastLocked(makeBroadcastRecord(screenOff, screenOnOffOptions, in testDeliveryGroupPolicy_diffReceivers()
1066 verifyPendingRecords(redQueue, List.of(screenOff)); in testDeliveryGroupPolicy_diffReceivers()
1073 final Intent screenOff = new Intent(Intent.ACTION_SCREEN_OFF); in testDeliveryGroupPolicy_ordered_diffReceivers() local
1084 mImpl.enqueueBroadcastLocked(makeBroadcastRecord(screenOff, screenOnOffOptions, in testDeliveryGroupPolicy_ordered_diffReceivers()
1092 verifyPendingRecords(greenQueue, List.of(screenOff)); in testDeliveryGroupPolicy_ordered_diffReceivers()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java318 private void setScreenOff(boolean screenOff) { in setScreenOff() argument
319 if (mScreenOff != screenOff) { in setScreenOff()
320 mScreenOff = screenOff; in setScreenOff()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DBiometricUnlockController.java704 final boolean screenOff = !mUpdateMonitor.isDeviceInteractive(); in onBiometricAuthFailed()
705 if (!mVibratorHelper.hasVibrator() && (screenOff || (mUpdateMonitor.isDreaming() in onBiometricAuthFailed()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java4225 final boolean screenOff = !Display.isOnState(screenState); in updateTimeBasesLocked()
4228 (unplugged && screenOff) != mOnBatteryScreenOffTimeBase.isRunning(); in updateTimeBasesLocked()
4255 mOnBatteryScreenOffTimeBase.setRunning(unplugged && screenOff, in updateTimeBasesLocked()