com.pax.dal.entity
Class BatterySipper
- java.lang.Object
-
- com.pax.dal.entity.BatterySipper
-
public final class BatterySipper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field and Description static byteAPPstatic byteBLUETOOTHstatic byteCELLstatic byteFLASHLIGHTstatic bytePHONEstatic byteSCREENstatic byteWIFI
-
Constructor Summary
Constructors Constructor and Description BatterySipper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetPackageName()doublegetPercent()获取耗电百分比Gets the percentage of power consumedintgetType()doublegetValue()获取耗电量,单位:mAhObtain power consumption, unit :mAhvoidsetPackageName(java.lang.String packageName)设置应用包名Set the application package namevoidsetPercent(double percent)设置耗电百分比Set the percentage of electricity consumedvoidsetType(int type)设置耗电类型Set the power consumption typevoidsetValue(double value)设置耗电量,单位:mAhSet power consumption, unit :mAh
-
-
-
Field Detail
-
CELL
public static final byte CELL
- See Also:
- Constant Field Values
-
PHONE
public static final byte PHONE
- See Also:
- Constant Field Values
-
WIFI
public static final byte WIFI
- See Also:
- Constant Field Values
-
BLUETOOTH
public static final byte BLUETOOTH
- See Also:
- Constant Field Values
-
FLASHLIGHT
public static final byte FLASHLIGHT
- See Also:
- Constant Field Values
-
SCREEN
public static final byte SCREEN
- See Also:
- Constant Field Values
-
APP
public static final byte APP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BatterySipper
public BatterySipper()
-
-
Method Detail
-
getPackageName
public java.lang.String getPackageName()
-
getPercent
public double getPercent()
获取耗电百分比Gets the percentage of power consumed
-
getType
public int getType()
-
getValue
public double getValue()
获取耗电量,单位:mAhObtain power consumption, unit :mAh
-
setPackageName
public void setPackageName(java.lang.String packageName)
设置应用包名Set the application package name
-
setPercent
public void setPercent(double percent)
设置耗电百分比Set the percentage of electricity consumed
-
setType
public void setType(int type)
设置耗电类型Set the power consumption type
-
setValue
public void setValue(double value)
设置耗电量,单位:mAhSet power consumption, unit :mAh
-
-