Searched refs:batteryStatus (Results 1 – 6 of 6) 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,
333 if (mHealthInfo.batteryStatus == BatteryManager.BATTERY_STATUS_UNKNOWN) { in isPoweredLocked()359 && mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_UNKNOWN in shouldSendBatteryLowLocked()381 return mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_CHARGING; in shouldShutdownLocked()453 dst.batteryStatus = src.batteryStatus; in copy()471 mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_UNKNOWN in processValuesLocked()492 mBatteryStats.setBatteryState(mHealthInfo.batteryStatus, mHealthInfo.batteryHealth, in processValuesLocked()504 if (force || (mHealthInfo.batteryStatus != mLastBatteryStatus || in processValuesLocked()560 if (mHealthInfo.batteryStatus != mLastBatteryStatus || in processValuesLocked()565 … mHealthInfo.batteryStatus, mHealthInfo.batteryHealth, mHealthInfo.batteryPresent ? 1 : 0, in processValuesLocked()585 && mHealthInfo.batteryStatus != in processValuesLocked()[all …]
45 int batteryStatus; member
1636 public byte batteryStatus; field in BatteryStats.HistoryItem1850 | ((((int)batteryStatus)<<16)&0xf0000) in writeToParcel()1886 batteryStatus = (byte)((bat>>16)&0xf); in readFromParcel()1930 batteryStatus = 0; in clear()1962 batteryStatus = o.batteryStatus; in setToCommon()1996 && batteryStatus == o.batteryStatus in sameNonEvent()6348 if (oldStatus != rec.batteryStatus) { in printNextItem()6349 oldStatus = rec.batteryStatus; in printNextItem()
3288 + " batteryStatus=" + cur.batteryStatus in writeHistoryDelta()3381 return ((h.batteryStatus&STATE_BATTERY_STATUS_MASK)<<STATE_BATTERY_STATUS_SHIFT) in buildStateInt()3522 cur.batteryStatus = (byte)((stateInt>>STATE_BATTERY_STATUS_SHIFT) in readHistoryDelta()3542 + " batteryStatus=" + cur.batteryStatus in readHistoryDelta()3646 && mHistoryLastWritten.batteryStatus == cur.batteryStatus in addHistoryBufferLocked()12266 mHistoryCur.batteryStatus = (byte)status; in setBatteryStateLocked()12275 int oldStatus = mHistoryCur.batteryStatus; in setBatteryStateLocked()12296 mHistoryCur.batteryStatus = (byte)status; in setBatteryStateLocked()12328 if (mHistoryCur.batteryStatus != status) { in setBatteryStateLocked()12329 mHistoryCur.batteryStatus = (byte)status; in setBatteryStateLocked()[all …]