Searched refs:batteryStatus (Results 1 – 4 of 4) sorted by relevance
90 Intent batteryStatus = mContext.registerReceiver( in isBatteryLevelSufficient() local92 float batteryPercentage = calculateBatteryPercentage(batteryStatus); in isBatteryLevelSufficient()94 batteryStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, /* defaultValue= */ -1) > 0; in isBatteryLevelSufficient()100 private float calculateBatteryPercentage(Intent batteryStatus) { in calculateBatteryPercentage() argument101 int level = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, /* defaultValue= */ -1); in calculateBatteryPercentage()102 int scale = batteryStatus.getIntExtra(BatteryManager.EXTRA_SCALE, /* defaultValue= */ -1); in calculateBatteryPercentage()
14 val batteryStatus: Int, constant in com.android.systemui.power.BatteryStateSnapshot39 batteryStatus: Int,47 batteryStatus,
329 if (mHealthInfo.batteryStatus == BatteryManager.BATTERY_STATUS_UNKNOWN) { in isPoweredLocked()355 && mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_UNKNOWN in shouldSendBatteryLowLocked()374 return mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_CHARGING; in shouldShutdownLocked()445 dst.batteryStatus = src.batteryStatus; in copy()463 mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_UNKNOWN in processValuesLocked()484 mBatteryStats.setBatteryState(mHealthInfo.batteryStatus, mHealthInfo.batteryHealth, in processValuesLocked()495 if (force || (mHealthInfo.batteryStatus != mLastBatteryStatus || in processValuesLocked()551 if (mHealthInfo.batteryStatus != mLastBatteryStatus || in processValuesLocked()556 … mHealthInfo.batteryStatus, mHealthInfo.batteryHealth, mHealthInfo.batteryPresent ? 1 : 0, in processValuesLocked()576 && mHealthInfo.batteryStatus != in processValuesLocked()[all …]
45 int batteryStatus; member