to top
Android APIs
public static class

ApplicationErrorReport.BatteryInfo

extends Object
java.lang.Object
   ↳ android.app.ApplicationErrorReport.BatteryInfo

Class Overview

Describes a battery usage report.

Summary

Fields
public String checkinDetails Checkin details.
public long durationMicros Duration in microseconds over which the process used the above percentage of battery.
public String usageDetails Dump of various info impacting battery use.
public int usagePercent Percentage of the battery that was used up by the process.
Public Constructors
ApplicationErrorReport.BatteryInfo()
Create an uninitialized instance of BatteryInfo.
ApplicationErrorReport.BatteryInfo(Parcel in)
Create an instance of BatteryInfo initialized from a Parcel.
Public Methods
void dump(Printer pw, String prefix)
Dump a BatteryInfo instance to a Printer.
void writeToParcel(Parcel dest, int flags)
Save a BatteryInfo instance to a parcel.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public String checkinDetails

Added in API level 14

Checkin details.

public long durationMicros

Added in API level 14

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

public String usageDetails

Added in API level 14

Dump of various info impacting battery use.

public int usagePercent

Added in API level 14

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

Public Constructors

public ApplicationErrorReport.BatteryInfo ()

Added in API level 14

Create an uninitialized instance of BatteryInfo.

public ApplicationErrorReport.BatteryInfo (Parcel in)

Added in API level 14

Create an instance of BatteryInfo initialized from a Parcel.

Public Methods

public void dump (Printer pw, String prefix)

Added in API level 14

Dump a BatteryInfo instance to a Printer.

public void writeToParcel (Parcel dest, int flags)

Added in API level 14

Save a BatteryInfo instance to a parcel.