Searched refs:batteryStatus (Results 1 – 16 of 16) 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,
61 Intent batteryStatus = mContext.registerReceiver(mBatteryLevelReceiver, filter); in BatteryTrigger() local62 if (batteryStatus != null) { in BatteryTrigger()63 mBatteryLevel = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, 0); in BatteryTrigger()
41 dst.batteryStatus = src.batteryStatus; in copy()69 dst.batteryStatus = src.batteryStatus; in copyV1Battery()
366 if (mHealthInfo.batteryStatus == BatteryManager.BATTERY_STATUS_UNKNOWN) { in isPoweredLocked()399 && mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_UNKNOWN in shouldSendBatteryLowLocked()425 return mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_CHARGING; in shouldShutdownLocked()476 Trace.traceCounter(Trace.TRACE_TAG_POWER, "BatteryStatus", info.batteryStatus); in update()510 mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_UNKNOWN in processValuesLocked()524 mHealthInfo.batteryStatus, in processValuesLocked()546 || (mHealthInfo.batteryStatus != mLastBatteryStatus in processValuesLocked()604 if (mHealthInfo.batteryStatus != mLastBatteryStatus || in processValuesLocked()609 … mHealthInfo.batteryStatus, mHealthInfo.batteryHealth, mHealthInfo.batteryPresent ? 1 : 0, in processValuesLocked()613 Integer.toString(mHealthInfo.batteryStatus)); in processValuesLocked()[all …]
2828 Intent batteryStatus = mContext.registerReceiver(null, ifilter); in checkChargeStatus() local2831 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1); in checkChargeStatus()2839 int level = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, -1); in checkChargeStatus()2840 int scale = batteryStatus.getIntExtra(BatteryManager.EXTRA_SCALE, -1); in checkChargeStatus()
574 fun logHandleBatteryUpdate(batteryStatus: BatteryStatus?) { in logHandleBatteryUpdate()579 bool1 = batteryStatus != null in logHandleBatteryUpdate()580 int1 = batteryStatus?.status ?: -1 in logHandleBatteryUpdate()581 int2 = batteryStatus?.chargingStatus ?: -1 in logHandleBatteryUpdate()582 long1 = (batteryStatus?.level ?: -1).toLong() in logHandleBatteryUpdate()583 long2 = (batteryStatus?.maxChargingWattage ?: -1).toLong() in logHandleBatteryUpdate()
51 int batteryStatus; member
239 final BatteryStatus batteryStatus = new BatteryStatus(batteryChangedIntent); in getBatteryStatus() local241 if (batteryStatus.isCharged()) { in getBatteryStatus()251 } else if (batteryStatus.isPluggedInWired()) { in getBatteryStatus()252 switch (batteryStatus.getChargingSpeed(context)) { in getBatteryStatus()263 } else if (batteryStatus.isPluggedInDock()) { in getBatteryStatus()
167 cur.batteryStatus = (byte) ((stateInt >> BatteryStatsHistory.STATE_BATTERY_STATUS_SHIFT) in readHistoryDelta()188 + " batteryStatus=" + cur.batteryStatus in readHistoryDelta()
1250 mHistoryCur.batteryStatus = (byte) status; in setBatteryState()1263 mHistoryCur.batteryStatus = (byte) status; in setBatteryState()1806 && mHistoryLastWritten.batteryStatus == cur.batteryStatus in writeHistoryItem()2130 + " batteryStatus=" + cur.batteryStatus in writeHistoryDelta()2238 return ((h.batteryStatus & BatteryStatsHistory.STATE_BATTERY_STATUS_MASK) in buildStateInt()
304 Intent batteryStatus = mContext.registerReceiver( in onSystemReady() local317 if (batteryStatus != null) { in onSystemReady()318 updateBatteryInfo(batteryStatus); in onSystemReady()
1893 public byte batteryStatus; field in BatteryStats.HistoryItem2133 | ((((int)batteryStatus)<<16)&0xf0000) in writeToParcel()2169 batteryStatus = (byte)((bat>>16)&0xf); in readFromParcel()2213 batteryStatus = 0; in clear()2248 batteryStatus = o.batteryStatus; in setToCommon()2285 && batteryStatus == o.batteryStatus in sameNonEvent()7024 if (oldStatus != rec.batteryStatus) { in printNextItem()7025 oldStatus = rec.batteryStatus; in printNextItem()
1691 BatteryStatus batteryStatus = BatteryStatus.create(context, mIncompatibleCharger);1692 if (batteryStatus != null) {1694 mHandler.obtainMessage(MSG_BATTERY_UPDATE, batteryStatus));
14810 private boolean shouldResetOnUnplugLocked(int batteryStatus, int batteryLevel) {14816 if (batteryStatus == BatteryManager.BATTERY_STATUS_FULL) return true;
34122 Landroid/os/BatteryProperties;->batteryStatus:I