Home
last modified time | relevance | path

Searched refs:isCharging (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DCachedDeviceState.java46 public CachedDeviceState(boolean isCharging, boolean isScreenInteractive) { in CachedDeviceState() argument
47 mCharging = isCharging; in CachedDeviceState()
83 public boolean isCharging() { in isCharging() method in CachedDeviceState.Readonly
DBinderCallsStats.java118 if (mDeviceState == null || mDeviceState.isCharging()) { in callStarted()
176 if (mDeviceState == null || mDeviceState.isCharging()) { in processCallEnded()
DLooperStats.java143 return mDeviceState != null && !mDeviceState.isCharging(); in deviceStateAllowsCollection()
DBatteryStatsImpl.java10390 public boolean isCharging() { in isCharging() method in BatteryStatsImpl
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java122 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/
DDiskStatsLoggingService.java60 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/
DBatteryManager.java285 public boolean isCharging() { in isCharging() method in BatteryManager
287 return mBatteryStats.isCharging(); in isCharging()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java369 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/
DConnOnActivityStartTest.java332 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/
DQuotaController.java774 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/
DIBatteryStats.aidl59 boolean isCharging(); in isCharging() method
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DDiskStatsLoggingServiceTest.java181 when(batteryManager.isCharging()).thenReturn(true); in testDontCrashOnRun()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppStandbyController.java399 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/
DDeviceStateMonitor.java695 boolean retval = bm.isCharging(); in isDeviceCharging()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java425 public boolean isCharging() { in isCharging() method in BatteryStatsService
427 return mStats.isCharging(); in isCharging()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java169 boolean isCharging() { in isCharging() method in AppStandbyControllerTests.MyInjector
/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java2730 boolean isCharging() { in isCharging() method in DeviceIdleController
/frameworks/base/config/
Dboot-image-profile.txt11145 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
Dhiddenapi-greylist-max-o.txt86791 Lcom/android/internal/app/IBatteryStats$Stub$Proxy;->isCharging()Z
88641 Lcom/android/internal/os/BatteryStatsImpl;->isCharging()Z
/frameworks/base/services/
Dart-profile3164 HSPLcom/android/server/am/BatteryStatsService;->isCharging()Z
13609 HSPLcom/android/server/usage/AppStandbyController$Injector;->isCharging()Z
/frameworks/base/non-updatable-api/
Dcurrent.txt34311 method public boolean isCharging();
/frameworks/base/api/
Dcurrent.txt34455 method public boolean isCharging();