java.lang.Object |
↳ |
lineageos.power.PerformanceProfile |
Class Overview
Encapsulates information about an available system power/peformance profile, managed
by the PerformanceManager.
Summary
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_ELIDE_DUPLICATES |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
Public Constructors |
|
PerformanceProfile(int id, float weight, String name, String description)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
From interface
java.lang.Comparable
|
Fields
Public Constructors
public
PerformanceProfile
(int id, float weight, String name, String description)
Parameters |
id |
int |
weight |
float |
name |
String |
description |
String |
Public Methods
Parameters |
other |
PerformanceProfile |
public
int
describeContents
()
public
boolean
equals
(Object other)
public
String
getDescription
()
A localized description of the profile, suitable for display.
Returns |
String |
description
|
public
int
getId
()
Unique identifier for this profile. Must match values used by the PowerHAL.
public
String
getName
()
A localized name for the profile, suitable for display.
public
float
getWeight
()
The profile's weight, from 0 to 1, with 0 being lowest (power save), 1 being
highest (performance), and 0.5 as the balanced default profile. Other
values may be seen, depending on the device. This value can be used for
sorting.
public
String
toString
()
public
void
writeToParcel
(Parcel dest, int flags)
Parameters |
dest |
Parcel |
flags |
int |