Home
last modified time | relevance | path

Searched refs:batteryStatus (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DUpdateInstaller.java90 Intent batteryStatus = mContext.registerReceiver( in isBatteryLevelSufficient() local
92 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() argument
101 int level = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, /* defaultValue= */ -1); in calculateBatteryPercentage()
102 int scale = batteryStatus.getIntExtra(BatteryManager.EXTRA_SCALE, /* defaultValue= */ -1); in calculateBatteryPercentage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DBatteryStateSnapshot.kt14 val batteryStatus: Int, constant in com.android.systemui.power.BatteryStateSnapshot
39 batteryStatus: Int,
47 batteryStatus,
/frameworks/base/services/core/java/com/android/server/powerstats/
DBatteryTrigger.java61 Intent batteryStatus = mContext.registerReceiver(mBatteryLevelReceiver, filter); in BatteryTrigger() local
62 if (batteryStatus != null) { in BatteryTrigger()
63 mBatteryLevel = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, 0); in BatteryTrigger()
/frameworks/base/services/core/java/com/android/server/health/
DUtils.java41 dst.batteryStatus = src.batteryStatus; in copy()
69 dst.batteryStatus = src.batteryStatus; in copyV1Battery()
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java366 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 …]
DStorageManagerService.java2828 Intent batteryStatus = mContext.registerReceiver(null, ifilter); in checkChargeStatus() local
2831 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()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/logging/
DKeyguardUpdateMonitorLogger.kt574 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()
/frameworks/native/services/batteryservice/include/batteryservice/
DBatteryService.h51 int batteryStatus; member
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java239 final BatteryStatus batteryStatus = new BatteryStatus(batteryChangedIntent); in getBatteryStatus() local
241 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()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistoryIterator.java167 cur.batteryStatus = (byte) ((stateInt >> BatteryStatsHistory.STATE_BATTERY_STATUS_SHIFT) in readHistoryDelta()
188 + " batteryStatus=" + cur.batteryStatus in readHistoryDelta()
DBatteryStatsHistory.java1250 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()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java304 Intent batteryStatus = mContext.registerReceiver( in onSystemReady() local
317 if (batteryStatus != null) { in onSystemReady()
318 updateBatteryInfo(batteryStatus); in onSystemReady()
/frameworks/base/core/java/android/os/
DBatteryStats.java1893 public byte batteryStatus; field in BatteryStats.HistoryItem
2133 | ((((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()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java1691 BatteryStatus batteryStatus = BatteryStatus.create(context, mIncompatibleCharger);
1692 if (batteryStatus != null) {
1694 mHandler.obtainMessage(MSG_BATTERY_UPDATE, batteryStatus));
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java14810 private boolean shouldResetOnUnplugLocked(int batteryStatus, int batteryLevel) {
14816 if (batteryStatus == BatteryManager.BATTERY_STATUS_FULL) return true;
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt34122 Landroid/os/BatteryProperties;->batteryStatus:I