Home
last modified time | relevance | path

Searched refs:batteryPercentage (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/wifi/java/src/android/net/wifi/sharedconnectivity/app/
DNetworkProviderInfo.java162 public Builder setBatteryPercentage(@IntRange(from = 0, to = 100) int batteryPercentage) { in setBatteryPercentage()
163 mBatteryPercentage = batteryPercentage; in setBatteryPercentage()
217 int batteryPercentage, int connectionStrength) { in validate() argument
223 if (batteryPercentage < 0 || batteryPercentage > 100) { in validate()
232 @NonNull String modelName, int batteryPercentage, boolean isBatteryCharging, in NetworkProviderInfo() argument
234 validate(deviceType, deviceName, modelName, batteryPercentage, connectionStrength); in NetworkProviderInfo()
238 mBatteryPercentage = batteryPercentage; in NetworkProviderInfo()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DUpdateInstaller.java92 float batteryPercentage = calculateBatteryPercentage(batteryStatus); in isBatteryLevelSufficient() local
96 ? batteryPercentage >= mConstants.BATTERY_THRESHOLD_CHARGING in isBatteryLevelSufficient()
97 : batteryPercentage >= mConstants.BATTERY_THRESHOLD_NOT_CHARGING; in isBatteryLevelSufficient()