All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
long |
computeBatteryTimeRemaining() |
long |
computeChargeTimeRemaining() |
protected void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
void |
enforceCallingPermission() |
BatteryStatsImpl |
getActiveStatistics() |
long |
getAwakeTimeBattery() |
long |
getAwakeTimePlugged() |
String |
getPlatformLowPowerStats() |
static IBatteryStats |
getService() |
byte[] |
getStatistics() |
ParcelFileDescriptor |
getStatisticsStream() |
void |
initPowerManagement()
At the time when the constructor runs, the power manager has not yet been
initialized.
|
boolean |
isCharging() |
boolean |
isOnBattery() |
void |
noteAlarmFinish(String name,
int uid) |
void |
noteAlarmStart(String name,
int uid) |
void |
noteBleScanStarted(WorkSource ws) |
void |
noteBleScanStopped(WorkSource ws) |
void |
noteBluetoothControllerActivity(BluetoothActivityEnergyInfo info) |
void |
noteChangeWakelockFromSource(WorkSource ws,
int pid,
String name,
String historyName,
int type,
WorkSource newWs,
int newPid,
String newName,
String newHistoryName,
int newType,
boolean newUnimportantForLogging) |
void |
noteConnectivityChanged(int type,
String extra) |
void |
noteDeviceIdleMode(int mode,
String activeReason,
int activeUid) |
void |
noteEvent(int code,
String name,
int uid) |
void |
noteFlashlightOff(int uid) |
void |
noteFlashlightOn(int uid) |
void |
noteFullWifiLockAcquired(int uid) |
void |
noteFullWifiLockAcquiredFromSource(WorkSource ws) |
void |
noteFullWifiLockReleased(int uid) |
void |
noteFullWifiLockReleasedFromSource(WorkSource ws) |
void |
noteInteractive(boolean interactive) |
void |
noteJobFinish(String name,
int uid) |
void |
noteJobStart(String name,
int uid) |
void |
noteLongPartialWakelockFinish(String name,
String historyName,
int uid) |
void |
noteLongPartialWakelockStart(String name,
String historyName,
int uid) |
void |
noteMobileRadioPowerState(int powerState,
long timestampNs,
int uid) |
void |
noteModemControllerActivity(ModemActivityInfo info) |
void |
noteNetworkInterfaceType(String iface,
int networkType) |
void |
noteNetworkStatsEnabled() |
void |
notePackageInstalled(String pkgName,
int versionCode) |
void |
notePackageUninstalled(String pkgName) |
void |
notePhoneDataConnectionState(int dataType,
boolean hasData) |
void |
notePhoneOff() |
void |
notePhoneOn() |
void |
notePhoneSignalStrength(SignalStrength signalStrength) |
void |
notePhoneState(int state) |
void |
noteResetAudio() |
void |
noteResetBleScan() |
void |
noteResetCamera() |
void |
noteResetFlashlight() |
void |
noteResetVideo() |
void |
noteScreenBrightness(int brightness) |
void |
noteScreenState(int state) |
void |
noteStartAudio(int uid) |
void |
noteStartCamera(int uid) |
void |
noteStartGps(int uid) |
void |
noteStartSensor(int uid,
int sensor) |
void |
noteStartVideo(int uid) |
void |
noteStartWakelock(int uid,
int pid,
String name,
String historyName,
int type,
boolean unimportantForLogging) |
void |
noteStartWakelockFromSource(WorkSource ws,
int pid,
String name,
String historyName,
int type,
boolean unimportantForLogging) |
void |
noteStopAudio(int uid) |
void |
noteStopCamera(int uid) |
void |
noteStopGps(int uid) |
void |
noteStopSensor(int uid,
int sensor) |
void |
noteStopVideo(int uid) |
void |
noteStopWakelock(int uid,
int pid,
String name,
String historyName,
int type) |
void |
noteStopWakelockFromSource(WorkSource ws,
int pid,
String name,
String historyName,
int type) |
void |
noteSyncFinish(String name,
int uid) |
void |
noteSyncStart(String name,
int uid) |
void |
noteUserActivity(int uid,
int event) |
void |
noteVibratorOff(int uid) |
void |
noteVibratorOn(int uid,
long durationMillis) |
void |
noteWakeUp(String reason,
int reasonUid) |
void |
noteWifiBatchedScanStartedFromSource(WorkSource ws,
int csph) |
void |
noteWifiBatchedScanStoppedFromSource(WorkSource ws) |
void |
noteWifiControllerActivity(WifiActivityEnergyInfo info) |
void |
noteWifiMulticastDisabled(int uid) |
void |
noteWifiMulticastDisabledFromSource(WorkSource ws) |
void |
noteWifiMulticastEnabled(int uid) |
void |
noteWifiMulticastEnabledFromSource(WorkSource ws) |
void |
noteWifiOff() |
void |
noteWifiOn() |
void |
noteWifiRadioPowerState(int powerState,
long tsNanos,
int uid) |
void |
noteWifiRssiChanged(int newRssi) |
void |
noteWifiRunning(WorkSource ws) |
void |
noteWifiRunningChanged(WorkSource oldWs,
WorkSource newWs) |
void |
noteWifiScanStarted(int uid) |
void |
noteWifiScanStartedFromSource(WorkSource ws) |
void |
noteWifiScanStopped(int uid) |
void |
noteWifiScanStoppedFromSource(WorkSource ws) |
void |
noteWifiState(int wifiState,
String accessPoint) |
void |
noteWifiStopped(WorkSource ws) |
void |
noteWifiSupplicantStateChanged(int supplState,
boolean failedAuth) |
void |
onLowPowerModeChanged(boolean enabled) |
void |
publish(Context context) |
void |
scheduleWriteToDisk()
Schedules a write to disk to occur.
|
void |
setBatteryState(int status,
int health,
int plugType,
int level,
int temp,
int volt,
int chargeUAh) |
void |
shutdown() |
HealthStatsParceler |
takeUidSnapshot(int requestUid)
Gets a snapshot of the system health for a particular uid.
|
HealthStatsParceler[] |
takeUidSnapshots(int[] requestUids)
Gets a snapshot of the system health for a number of uids.
|