/frameworks/base/core/java/com/android/internal/os/ |
D | CachedDeviceState.java | 46 public CachedDeviceState(boolean isCharging, boolean isScreenInteractive) { in CachedDeviceState() argument 47 mCharging = isCharging; in CachedDeviceState() 83 public boolean isCharging() { in isCharging() method in CachedDeviceState.Readonly
|
D | BinderCallsStats.java | 118 if (mDeviceState == null || mDeviceState.isCharging()) { in callStarted() 176 if (mDeviceState == null || mDeviceState.isCharging()) { in processCallEnded()
|
D | LooperStats.java | 143 return mDeviceState != null && !mDeviceState.isCharging(); in deviceStateAllowsCollection()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | CachedDeviceStateServiceTest.java | 122 assertThat(deviceState.isCharging()).isTrue(); in correctlyReportsCharging() 126 assertThat(deviceState.isCharging()).isFalse(); in correctlyReportsCharging() 131 assertThat(deviceState.isCharging()).isTrue(); in correctlyReportsCharging() 136 assertThat(deviceState.isCharging()).isFalse(); in correctlyReportsCharging()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | DiskStatsLoggingService.java | 60 if (!isCharging(this) || !isDumpsysTaskEnabled(getContentResolver())) { in onStartJob() 108 private static boolean isCharging(Context context) { in isCharging() method in DiskStatsLoggingService 112 return batteryManager.isCharging(); in isCharging()
|
/frameworks/base/core/java/android/os/ |
D | BatteryManager.java | 285 public boolean isCharging() { in isCharging() method in BatteryManager 287 return mBatteryStats.isCharging(); in isCharging()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | DeviceIdleControllerTest.java | 317 assertFalse(mDeviceIdleController.isCharging()); in testUpdateChargingLocked() 321 assertFalse(mDeviceIdleController.isCharging()); in testUpdateChargingLocked() 325 assertTrue(mDeviceIdleController.isCharging()); in testUpdateChargingLocked() 329 assertTrue(mDeviceIdleController.isCharging()); in testUpdateChargingLocked() 333 assertFalse(mDeviceIdleController.isCharging()); in testUpdateChargingLocked() 1747 assertFalse(mDeviceIdleController.isCharging()); in verifyStateConditions() 1756 assertFalse(mDeviceIdleController.isCharging()); in verifyStateConditions() 1767 assertFalse(mDeviceIdleController.isCharging()); in verifyStateConditions() 1775 assertFalse(mDeviceIdleController.isCharging()); in verifyStateConditions() 1786 assertFalse(mDeviceIdleController.isCharging()); in verifyStateConditions() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | ConnOnActivityStartTest.java | 332 while (mBatteryManager.isCharging() && SystemClock.uptimeMillis() < endTime) { in assertBatteryOn() 335 assertFalse("Power should be disconnected", mBatteryManager.isCharging()); in assertBatteryOn()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | QuotaController.java | 774 if (mChargeTracker.isCharging() || mInParole) { in isWithinQuotaLocked() 1234 final boolean isCharging = mChargeTracker.isCharging(); in handleNewChargingStateLocked() 1236 Slog.d(TAG, "handleNewChargingStateLocked: " + isCharging); in handleNewChargingStateLocked() 1239 mPkgTimers.forEach((t) -> t.onStateChangedLocked(nowElapsed, isCharging)); in handleNewChargingStateLocked() 1469 public boolean isCharging() { in isCharging() method in QuotaController.ChargingTracker 1624 && !mChargeTracker.isCharging() && mRunningBgJobs.size() == 0) { in stopTrackingJob() 1682 return !mChargeTracker.isCharging() && !mForegroundUids.get(mUid); in shouldTrackLocked() 2550 pw.println("Is charging: " + mChargeTracker.isCharging()); in dumpControllerStateLocked() 2674 proto.write(StateControllerProto.QuotaController.IS_CHARGING, mChargeTracker.isCharging()); in dumpControllerStateLocked()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IBatteryStats.aidl | 59 boolean isCharging(); in isCharging() method
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | DiskStatsLoggingServiceTest.java | 181 when(batteryManager.isCharging()).thenReturn(true); in testDontCrashOnRun()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | DeviceStateMonitor.java | 634 return bm.isCharging(); in isDeviceCharging()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppStandbyController.java | 399 setChargingState(mInjector.isCharging()); in onBootPhase() 1642 boolean isCharging() { in isCharging() method in AppStandbyController.Injector 1643 return mContext.getSystemService(BatteryManager.class).isCharging(); in isCharging()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 425 public boolean isCharging() { in isCharging() method in BatteryStatsService 427 return mStats.isCharging(); in isCharging()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppStandbyControllerTests.java | 169 boolean isCharging() { in isCharging() method in AppStandbyControllerTests.MyInjector
|
/frameworks/base/services/core/java/com/android/server/ |
D | DeviceIdleController.java | 2570 boolean isCharging() { in isCharging() method in DeviceIdleController
|
/frameworks/base/services/ |
D | art-profile | 3164 HSPLcom/android/server/am/BatteryStatsService;->isCharging()Z 13609 HSPLcom/android/server/usage/AppStandbyController$Injector;->isCharging()Z
|
/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
D | android-28.jar | META-INF/
META-INF/MANIFEST.MF
javax/
javax/net/
javax/ ... |