/frameworks/base/core/java/android/os/health/ |
D | SystemHealthManager.java | 43 private final IBatteryStats mBatteryStats; field in SystemHealthManager 50 mBatteryStats = IBatteryStats.Stub.asInterface( in SystemHealthManager() 80 final HealthStatsParceler parceler = mBatteryStats.takeUidSnapshot(uid); in takeUidSnapshot() 115 final HealthStatsParceler[] parcelers = mBatteryStats.takeUidSnapshots(uids); in takeUidSnapshots()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | Notifier.java | 87 private final IBatteryStats mBatteryStats; field in Notifier 132 mBatteryStats = batteryStats; in Notifier() 157 mBatteryStats.noteInteractive(true); in Notifier() 179 mBatteryStats.noteStartWakelockFromSource(workSource, ownerPid, tag, in onWakeLockAcquired() 182 mBatteryStats.noteStartWakelock(ownerUid, ownerPid, tag, historyTag, in onWakeLockAcquired() 216 mBatteryStats.noteChangeWakelockFromSource(workSource, ownerPid, tag, historyTag, in onWakeLockChanging() 245 mBatteryStats.noteStopWakelockFromSource(workSource, ownerPid, tag, in onWakeLockReleased() 248 mBatteryStats.noteStopWakelock(ownerUid, ownerPid, tag, in onWakeLockReleased() 324 mBatteryStats.noteInteractive(interactive); in onWakefulnessChangeStarted() 463 mBatteryStats.noteUserActivity(uid, event); in onUserActivity() [all …]
|
D | PowerManagerService.java | 187 private IBatteryStats mBatteryStats; field in PowerManagerService 577 mBatteryStats = BatteryStatsService.getService(); in systemReady() 578 mNotifier = new Notifier(Looper.getMainLooper(), mContext, mBatteryStats, in systemReady()
|
/frameworks/base/core/java/android/os/ |
D | BatteryManager.java | 208 private final IBatteryStats mBatteryStats; field in BatteryManager 215 mBatteryStats = IBatteryStats.Stub.asInterface( in BatteryManager() 229 return mBatteryStats.isCharging(); in isCharging()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | DataConnectionStats.java | 41 private final IBatteryStats mBatteryStats; field in DataConnectionStats 50 mBatteryStats = BatteryStatsService.getService(); in DataConnectionStats() 94 mBatteryStats.notePhoneDataConnectionState(networkType, visible); in notePhoneDataConnectionState()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WifiScanningServiceTest.java | 83 @Mock IBatteryStats mBatteryStats; field in WifiScanningServiceTest 112 mWifiScannerImplFactory, mBatteryStats, mWifiInjector); in setUp() 322 mWifiScannerImplFactory, mBatteryStats); in construct() 421 verify(mBatteryStats).noteWifiScanStartedFromSource(eq(workSource)); in doSuccessfulSingleScan() 431 verify(mBatteryStats).noteWifiScanStoppedFromSource(eq(workSource)); in doSuccessfulSingleScan() 515 verifyNoMoreInteractions(mBatteryStats); in sendSingleScanRequestWhichFailsToStart() 550 verify(mBatteryStats).noteWifiScanStartedFromSource(eq(workSource)); in sendSingleScanRequestWhichFailsAfterStart() 561 verify(mBatteryStats).noteWifiScanStoppedFromSource(eq(workSource)); in sendSingleScanRequestWhichFailsAfterStart() 744 verify(mBatteryStats).noteWifiScanStartedFromSource(eq(workSource1)); in sendMultipleSingleScanRequestWhilePreviousScanRunning() 766 verify(mBatteryStats).noteWifiScanStoppedFromSource(eq(workSource1)); in sendMultipleSingleScanRequestWhilePreviousScanRunning() [all …]
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobServiceContext.java | 107 private final IBatteryStats mBatteryStats; field in JobServiceContext 150 mBatteryStats = batteryStats; in JobServiceContext() 210 mBatteryStats.noteJobStart(job.getBatteryName(), job.getSourceUid()); in executeRunnableJob() 590 mBatteryStats.noteJobFinish(mRunningJob.getBatteryName(), in closeAndCleanupJobH()
|
D | JobSchedulerService.java | 144 IBatteryStats mBatteryStats; field in JobSchedulerService 775 mBatteryStats = IBatteryStats.Stub.asInterface(ServiceManager.getService( in onBootPhase() 782 new JobServiceContext(this, mBatteryStats, mJobPackageTracker, in onBootPhase()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SupplicantStateTracker.java | 52 private final IBatteryStats mBatteryStats; field in SupplicantStateTracker 95 mBatteryStats = (IBatteryStats)ServiceManager.getService(BatteryStats.SERVICE_NAME); in SupplicantStateTracker() 193 mBatteryStats.noteWifiSupplicantStateChanged(supplState, failedAuth); in sendSupplicantStateChangedBroadcast()
|
D | WifiServiceImpl.java | 147 private final IBatteryStats mBatteryStats; field in WifiServiceImpl 344 mBatteryStats = BatteryStatsService.getService(); in WifiServiceImpl() 1660 mBatteryStats.noteFullWifiLockAcquiredFromSource(wifiLock.mWorkSource); in noteAcquireWifiLock() 1670 mBatteryStats.noteFullWifiLockReleasedFromSource(wifiLock.mWorkSource); in noteReleaseWifiLock() 1848 mBatteryStats.noteWifiMulticastEnabled(uid); in acquireMulticastLock() 1884 mBatteryStats.noteWifiMulticastDisabled(uid); in removeMulticasterLocked()
|
D | WifiStateMachine.java | 977 private final IBatteryStats mBatteryStats; field in WifiStateMachine 1015 mBatteryStats = IBatteryStats.Stub.asInterface(mFacade.getService( in WifiStateMachine() 2250 mBatteryStats.noteWifiRunningChanged(mLastRunningWifiUids, in updateBatteryWorkSource() 2256 mBatteryStats.noteWifiRunning(mRunningWifiUids); in updateBatteryWorkSource() 2263 mBatteryStats.noteWifiStopped(mLastRunningWifiUids); in updateBatteryWorkSource() 2985 mBatteryStats.noteWifiOn(); in setWifiState() 2987 mBatteryStats.noteWifiOff(); in setWifiState() 3009 mBatteryStats.noteWifiOn(); in setWifiApState() 3011 mBatteryStats.noteWifiOff(); in setWifiApState() 3320 mBatteryStats.noteWifiRssiChanged(newRssi); in sendRssiChangeBroadcast()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayPowerController.java | 124 private final IBatteryStats mBatteryStats; field in DisplayPowerController 266 mBatteryStats = BatteryStatsService.getService(); in DisplayPowerController() 476 mBatteryStats.noteScreenState(mPowerState.getScreenState()); in initialize() 477 mBatteryStats.noteScreenBrightness(mPowerState.getScreenBrightness()); in initialize() 794 mBatteryStats.noteScreenState(state); 837 mBatteryStats.noteScreenBrightness(target);
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessRecord.java | 62 private final BatteryStatsImpl mBatteryStats; // where to collect runtime statistics field in ProcessRecord 346 synchronized (mBatteryStats) { in dump() 347 wtime = mBatteryStats.getProcessWakeTime(info.uid, in dump() 437 mBatteryStats = _batteryStats; in ProcessRecord()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 131 private final IBatteryStats mBatteryStats; field in TelephonyRegistry 292 mBatteryStats = BatteryStatsService.getService(); in TelephonyRegistry() 1353 mBatteryStats.notePhoneState(state.getState()); in broadcastServiceStateChanged() 1374 mBatteryStats.notePhoneSignalStrength(signalStrength); in broadcastSignalStrengthChanged() 1402 mBatteryStats.notePhoneOff(); in broadcastCallStateChanged() 1404 mBatteryStats.notePhoneOn(); in broadcastCallStateChanged()
|
D | BatteryService.java | 109 private final IBatteryStats mBatteryStats; field in BatteryService 156 mBatteryStats = BatteryStatsService.getService(); in BatteryService() 359 mBatteryStats.setBatteryState(mBatteryProps.batteryStatus, mBatteryProps.batteryHealth, in processValuesLocked()
|
D | DeviceIdleController.java | 116 private IBatteryStats mBatteryStats; field in DeviceIdleController 1036 mBatteryStats.noteDeviceIdleMode(msg.what == MSG_REPORT_IDLE_ON in handleMessage() 1055 mBatteryStats.noteDeviceIdleMode(BatteryStats.DEVICE_IDLE_MODE_OFF, in handleMessage() 1083 mBatteryStats.noteDeviceIdleMode(BatteryStats.DEVICE_IDLE_MODE_OFF, in handleMessage() 1354 mBatteryStats = BatteryStatsService.getService(); in onBootPhase() 1637 mBatteryStats.noteEvent(BatteryStats.HistoryItem.EVENT_TEMP_WHITELIST_START, in addPowerSaveTempWhitelistAppDirectInternal() 1694 mBatteryStats.noteEvent(BatteryStats.HistoryItem.EVENT_TEMP_WHITELIST_FINISH, in checkTempAppWhitelistTimeout()
|
D | NetworkManagementService.java | 213 private IBatteryStats mBatteryStats; field in NetworkManagementService 355 if (mBatteryStats != null) { in getBatteryStats() 356 return mBatteryStats; in getBatteryStats() 358 mBatteryStats = IBatteryStats.Stub.asInterface(ServiceManager.getService( in getBatteryStats() 360 return mBatteryStats; in getBatteryStats()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 134 private IBatteryStats mBatteryStats; field in UsageStatsService 223 mBatteryStats = IBatteryStats.Stub.asInterface( in onBootPhase() 516 mBatteryStats.noteEvent(BatteryStats.HistoryItem.EVENT_PACKAGE_INACTIVE, in notifyBatteryStats() 519 mBatteryStats.noteEvent(BatteryStats.HistoryItem.EVENT_PACKAGE_ACTIVE, in notifyBatteryStats()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | WifiScanningServiceImpl.java | 255 private final IBatteryStats mBatteryStats; field in WifiScanningServiceImpl 266 mBatteryStats = batteryStats; in WifiScanningServiceImpl() 593 mBatteryStats.noteWifiScanStartedFromSource(mScanWorkSource); in enter() 602 mBatteryStats.noteWifiScanStoppedFromSource(mScanWorkSource); in exit() 1849 mBatteryStats.noteWifiBatchedScanStartedFromSource(mWorkSource, csph); in reportBatchedScanStart() 1860 mBatteryStats.noteWifiBatchedScanStoppedFromSource(mWorkSource); in reportBatchedScanStop()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssLocationProvider.java | 402 private final IBatteryStats mBatteryStats; field in GnssLocationProvider 685 mBatteryStats = IBatteryStats.Stub.asInterface(ServiceManager.getService( in GnssLocationProvider() 1250 mBatteryStats.noteStartGps(uid); in updateClientUids() 1268 mBatteryStats.noteStopGps(uid); in updateClientUids()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncManager.java | 212 private final IBatteryStats mBatteryStats; field in SyncManager 565 mBatteryStats = IBatteryStats.Stub.asInterface(ServiceManager.getService( in SyncManager() 1558 mBatteryStats.noteSyncStart(mEventName, mSyncAdapterUid); in bindToSyncAdapter() 1577 mBatteryStats.noteSyncFinish(mEventName, mSyncAdapterUid); in close()
|