/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()
|
D | BatteryStatsImpl.java | 10390 public boolean isCharging() { in isCharging() method in BatteryStatsImpl
|
/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 | 369 assertFalse(mDeviceIdleController.isCharging()); in testUpdateChargingLocked() 373 assertFalse(mDeviceIdleController.isCharging()); in testUpdateChargingLocked() 377 assertTrue(mDeviceIdleController.isCharging()); in testUpdateChargingLocked() 381 assertTrue(mDeviceIdleController.isCharging()); in testUpdateChargingLocked() 385 assertFalse(mDeviceIdleController.isCharging()); in testUpdateChargingLocked() 1995 assertFalse(mDeviceIdleController.isCharging()); in verifyStateConditions() 2004 assertFalse(mDeviceIdleController.isCharging()); in verifyStateConditions() 2015 assertFalse(mDeviceIdleController.isCharging()); in verifyStateConditions() 2023 assertFalse(mDeviceIdleController.isCharging()); in verifyStateConditions() 2034 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/base/services/usage/java/com/android/server/usage/ |
D | AppStandbyController.java | 399 setChargingState(mInjector.isCharging()); in onBootPhase() 1643 boolean isCharging() { in isCharging() method in AppStandbyController.Injector 1644 return mContext.getSystemService(BatteryManager.class).isCharging(); in isCharging()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | DeviceStateMonitor.java | 695 boolean retval = bm.isCharging(); in isDeviceCharging()
|
/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 | 2730 boolean isCharging() { in isCharging() method in DeviceIdleController
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 11145 HSPLandroid/os/BatteryManager;->isCharging()Z 19978 HSPLcom/android/internal/app/IBatteryStats$Stub$Proxy;->isCharging()Z 20979 HSPLcom/android/internal/os/BatteryStatsImpl;->isCharging()Z 21191 HSPLcom/android/internal/os/CachedDeviceState$Readonly;->isCharging()Z
|
D | hiddenapi-greylist-max-o.txt | 86791 Lcom/android/internal/app/IBatteryStats$Stub$Proxy;->isCharging()Z 88641 Lcom/android/internal/os/BatteryStatsImpl;->isCharging()Z
|
/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/non-updatable-api/ |
D | current.txt | 34311 method public boolean isCharging();
|
/frameworks/base/api/ |
D | current.txt | 34455 method public boolean isCharging();
|