Merge "Wireless charging on aod and lockscreen"
This commit is contained in:
committed by
Android (Google) Code Review
commit
efd14bf5a5
@@ -323,4 +323,16 @@ public class BatteryManager {
|
||||
public long getLongProperty(int id) {
|
||||
return queryProperty(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the plugType given is wired
|
||||
* @param plugType {@link #BATTERY_PLUGGED_AC}, {@link #BATTERY_PLUGGED_USB},
|
||||
* or {@link #BATTERY_PLUGGED_WIRELESS}
|
||||
*
|
||||
* @return true if plugType is wired
|
||||
* @hide
|
||||
*/
|
||||
public static boolean isPlugWired(int plugType) {
|
||||
return plugType == BATTERY_PLUGGED_USB || plugType == BATTERY_PLUGGED_AC;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ oneway interface IStatusBar
|
||||
void animateCollapsePanels();
|
||||
void togglePanel();
|
||||
|
||||
void showChargingAnimation(int batteryLevel);
|
||||
void showWirelessChargingAnimation(int batteryLevel);
|
||||
|
||||
/**
|
||||
* Notifies the status bar of a System UI visibility flag change.
|
||||
|
||||
Reference in New Issue
Block a user