BatteryInfo
open class BatteryInfo
| kotlin.Any | |
| ↳ | android.app.ApplicationErrorReport.BatteryInfo |
Describes a battery usage report.
Summary
| Public constructors | |
|---|---|
|
Create an uninitialized instance of BatteryInfo. |
|
BatteryInfo(in: Parcel!)Create an instance of BatteryInfo initialized from a Parcel. |
|
| Public methods | |
|---|---|
| open Unit |
Dump a BatteryInfo instance to a Printer. |
| open Unit |
writeToParcel(dest: Parcel!, flags: Int)Save a BatteryInfo instance to a parcel. |
| Properties | |
|---|---|
| String! |
Checkin details. |
| Long |
Duration in microseconds over which the process used the above percentage of battery. |
| String! |
Dump of various info impacting battery use. |
| Int |
Percentage of the battery that was used up by the process. |
Public constructors
BatteryInfo
BatteryInfo(in: Parcel!)
Create an instance of BatteryInfo initialized from a Parcel.
Public methods
dump
open fun dump(
pw: Printer!,
prefix: String!
): Unit
Dump a BatteryInfo instance to a Printer.
writeToParcel
open fun writeToParcel(
dest: Parcel!,
flags: Int
): Unit
Save a BatteryInfo instance to a parcel.
Properties
durationMicros
var durationMicros: Long
Duration in microseconds over which the process used the above percentage of battery.
usageDetails
var usageDetails: String!
Dump of various info impacting battery use.
usagePercent
var usagePercent: Int
Percentage of the battery that was used up by the process.