Home
last modified time | relevance | path

Searched refs:batteryStatus (Results 1 – 7 of 7) 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/
DBatteryService.java334 if (mHealthInfo.batteryStatus == BatteryManager.BATTERY_STATUS_UNKNOWN) { in isPoweredLocked()
360 && mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_UNKNOWN in shouldSendBatteryLowLocked()
383 return mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_CHARGING; in shouldShutdownLocked()
455 dst.batteryStatus = src.batteryStatus; in copy()
473 mHealthInfo.batteryStatus != BatteryManager.BATTERY_STATUS_UNKNOWN in processValuesLocked()
494 mBatteryStats.setBatteryState(mHealthInfo.batteryStatus, mHealthInfo.batteryHealth, in processValuesLocked()
506 if (force || (mHealthInfo.batteryStatus != mLastBatteryStatus || in processValuesLocked()
562 if (mHealthInfo.batteryStatus != mLastBatteryStatus || in processValuesLocked()
567 … mHealthInfo.batteryStatus, mHealthInfo.batteryHealth, mHealthInfo.batteryPresent ? 1 : 0, in processValuesLocked()
587 && mHealthInfo.batteryStatus != in processValuesLocked()
[all …]
/frameworks/native/services/batteryservice/include/batteryservice/
DBatteryService.h45 int batteryStatus; member
/frameworks/base/core/java/android/os/
DBatteryStats.java1626 public byte batteryStatus; field in BatteryStats.HistoryItem
1846 | ((((int)batteryStatus)<<16)&0xf0000) in writeToParcel()
1881 batteryStatus = (byte)((bat>>16)&0xf); in readFromParcel()
1925 batteryStatus = 0; in clear()
1957 batteryStatus = o.batteryStatus; in setToCommon()
1991 && batteryStatus == o.batteryStatus in sameNonEvent()
6367 if (oldStatus != rec.batteryStatus) { in printNextItem()
6368 oldStatus = rec.batteryStatus; in printNextItem()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java3284 + " batteryStatus=" + cur.batteryStatus in writeHistoryDelta()
3377 return ((h.batteryStatus&STATE_BATTERY_STATUS_MASK)<<STATE_BATTERY_STATUS_SHIFT) in buildStateInt()
3520 cur.batteryStatus = (byte)((stateInt>>STATE_BATTERY_STATUS_SHIFT) in readHistoryDelta()
3540 + " batteryStatus=" + cur.batteryStatus in readHistoryDelta()
3644 && mHistoryLastWritten.batteryStatus == cur.batteryStatus in addHistoryBufferLocked()
12249 mHistoryCur.batteryStatus = (byte)status; in setBatteryStateLocked()
12258 int oldStatus = mHistoryCur.batteryStatus; in setBatteryStateLocked()
12279 mHistoryCur.batteryStatus = (byte)status; in setBatteryStateLocked()
12311 if (mHistoryCur.batteryStatus != status) { in setBatteryStateLocked()
12312 mHistoryCur.batteryStatus = (byte)status; in setBatteryStateLocked()
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt48604 Landroid/os/BatteryProperties;->batteryStatus:I