Home
last modified time | relevance | path

Searched refs:mBatteryStats (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/java/android/os/health/
DSystemHealthManager.java43 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/
DNotifier.java87 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 …]
DPowerManagerService.java187 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/
DBatteryManager.java208 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/
DDataConnectionStats.java41 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/
DWifiScanningServiceTest.java83 @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/
DJobServiceContext.java107 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()
DJobSchedulerService.java144 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/
DSupplicantStateTracker.java52 private final IBatteryStats mBatteryStats; field in SupplicantStateTracker
95 mBatteryStats = (IBatteryStats)ServiceManager.getService(BatteryStats.SERVICE_NAME); in SupplicantStateTracker()
193 mBatteryStats.noteWifiSupplicantStateChanged(supplState, failedAuth); in sendSupplicantStateChangedBroadcast()
DWifiServiceImpl.java147 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()
DWifiStateMachine.java977 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/
DDisplayPowerController.java124 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/
DProcessRecord.java62 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/
DTelephonyRegistry.java131 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()
DBatteryService.java109 private final IBatteryStats mBatteryStats; field in BatteryService
156 mBatteryStats = BatteryStatsService.getService(); in BatteryService()
359 mBatteryStats.setBatteryState(mBatteryProps.batteryStatus, mBatteryProps.batteryHealth, in processValuesLocked()
DDeviceIdleController.java116 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()
DNetworkManagementService.java213 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/
DUsageStatsService.java134 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/
DWifiScanningServiceImpl.java255 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/
DGnssLocationProvider.java402 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/
DSyncManager.java212 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()