Added in API level 14

BatteryInfo

open class BatteryInfo
kotlin.Any
   ↳ android.app.ApplicationErrorReport.BatteryInfo

Describes a battery usage report.

Summary

Public constructors

Create an uninitialized instance of BatteryInfo.

Create an instance of BatteryInfo initialized from a Parcel.

Public methods
open Unit
dump(pw: Printer!, prefix: String!)

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

Added in API level 14
BatteryInfo()

Create an uninitialized instance of BatteryInfo.

BatteryInfo

Added in API level 14
BatteryInfo(in: Parcel!)

Create an instance of BatteryInfo initialized from a Parcel.

Public methods

dump

Added in API level 14
open fun dump(
    pw: Printer!,
    prefix: String!
): Unit

Dump a BatteryInfo instance to a Printer.

writeToParcel

Added in API level 14
open fun writeToParcel(
    dest: Parcel!,
    flags: Int
): Unit

Save a BatteryInfo instance to a parcel.

Properties

checkinDetails

Added in API level 14
var checkinDetails: String!

Checkin details.

durationMicros

Added in API level 14
var durationMicros: Long

Duration in microseconds over which the process used the above percentage of battery.

usageDetails

Added in API level 14
var usageDetails: String!

Dump of various info impacting battery use.

usagePercent

Added in API level 14
var usagePercent: Int

Percentage of the battery that was used up by the process.