Home
last modified time | relevance | path

Searched refs:batteryLevel (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
DCarBatteryController.java140 int batteryLevel = intent.getIntExtra(BluetoothHeadsetClient.EXTRA_BATTERY_LEVEL, in onReceive() local
143 updateBatteryLevel(batteryLevel); in onReceive()
145 if (batteryLevel != INVALID_BATTERY_LEVEL && mBatteryViewHandler != null) { in onReceive()
167 private void updateBatteryLevel(int batteryLevel) { in updateBatteryLevel() argument
168 if (batteryLevel == INVALID_BATTERY_LEVEL) { in updateBatteryLevel()
176 switch (batteryLevel) { in updateBatteryLevel()
198 Log.d(TAG, "Battery level: " + batteryLevel + "; setting mLevel as: " + mLevel); in updateBatteryLevel()
228 int batteryLevel = featuresBundle.getInt(BluetoothHeadsetClient.EXTRA_BATTERY_LEVEL, in updateBatteryIcon() local
230 updateBatteryLevel(batteryLevel); in updateBatteryIcon()
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java270 && mBatteryProps.batteryLevel <= mLowBatteryWarningLevel in shouldSendBatteryLowLocked()
277 … if (mBatteryProps.batteryLevel == 0 && !isPoweredLocked(BatteryManager.BATTERY_PLUGGED_ANY)) { in shutdownIfNoPowerLocked()
327 mBatteryLevelCritical = (mBatteryProps.batteryLevel <= mCriticalBatteryLevel); in processValuesLocked()
349 + ", batteryLevel=" + mBatteryProps.batteryLevel in processValuesLocked()
360 mPlugType, mBatteryProps.batteryLevel, mBatteryProps.batteryTemperature, in processValuesLocked()
372 mBatteryProps.batteryLevel != mLastBatteryLevel || in processValuesLocked()
387 … if (mDischargeStartTime != 0 && mDischargeStartLevel != mBatteryProps.batteryLevel) { in processValuesLocked()
391 mDischargeStartLevel, mBatteryProps.batteryLevel); in processValuesLocked()
398 mDischargeStartLevel = mBatteryProps.batteryLevel; in processValuesLocked()
409 if (mBatteryProps.batteryLevel != mLastBatteryLevel) { in processValuesLocked()
[all …]
DEventLogTags.logtags247 51500 idle_maintenance_window_start (time|2|3), (lastUserActivity|2|3), (batteryLevel|1|6), (batter…
248 51501 idle_maintenance_window_finish (time|2|3), (lastUserActivity|2|3), (batteryLevel|1|6), (batte…
/frameworks/base/core/java/android/os/
DBatteryProperties.java30 public int batteryLevel; field in BatteryProperties
48 batteryLevel = other.batteryLevel; in set()
69 batteryLevel = p.readInt(); in BatteryProperties()
85 p.writeInt(batteryLevel); in writeToParcel()
DBatteryStats.java1154 public byte batteryLevel; field in BatteryStats.HistoryItem
1350 | ((((int)batteryLevel)<<8)&0xff00) in writeToParcel()
1383 batteryLevel = (byte)((bat>>8)&0xff); in readFromParcel()
1424 batteryLevel = 0; in clear()
1452 batteryLevel = o.batteryLevel; in setToCommon()
1484 return batteryLevel == o.batteryLevel in sameNonEvent()
4682 if (rec.batteryLevel < 10) pw.print("00"); in printNextItem()
4683 else if (rec.batteryLevel < 100) pw.print("0"); in printNextItem()
4684 pw.print(rec.batteryLevel); in printNextItem()
4698 if (oldLevel != rec.batteryLevel) { in printNextItem()
[all …]
/frameworks/native/services/batteryservice/
DBatteryProperties.cpp41 batteryLevel = p->readInt32(); in readFromParcel()
58 p->writeInt32(batteryLevel); in writeToParcel()
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
DDemoModeController.java152 final int batteryLevel = (int)y / (h / 101); in onTouch() local
153 if (batteryLevel != mBatteryLevel) { in onTouch()
154 mBatteryLevel = batteryLevel; in onTouch()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DBatteryInfo.java63 points.put((int) time, record.batteryLevel); in bindHistory()
248 if (rec.batteryLevel != lastLevel || pos == 1) { in parse()
249 lastLevel = rec.batteryLevel; in parse()
/frameworks/native/include/batteryservice/
DBatteryService.h65 int batteryLevel; member
/frameworks/base/services/core/java/com/android/server/power/
DWirelessChargerDetector.java182 public boolean update(boolean isPowered, int plugType, int batteryLevel) { in update() argument
218 && batteryLevel < WIRELESS_CHARGER_TURN_ON_BATTERY_LEVEL_LIMIT in update()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerNotificationWarnings.java109 public void update(int batteryLevel, int bucket, long screenOffTime) { in update() argument
110 mBatteryLevel = batteryLevel; in update()
DPowerUI.java242 void update(int batteryLevel, int bucket, long screenOffTime); in update() argument
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java2244 final int includeStepDetails = mLastHistoryStepLevel > cur.batteryLevel in writeHistoryDelta()
2290 + " batteryLevel=" + cur.batteryLevel in writeHistoryDelta()
2351 if (mLastHistoryStepLevel < cur.batteryLevel) { in writeHistoryDelta()
2354 mLastHistoryStepLevel = cur.batteryLevel; in writeHistoryDelta()
2363 return ((((int)h.batteryLevel)<<25)&0xfe000000) in buildBatteryLevelInt()
2369 out.batteryLevel = (byte)((batteryLevelInt & 0xfe000000) >>> 25); in readBatteryLevelInt()
2516 + " batteryLevel=" + cur.batteryLevel in readHistoryDelta()
2640 && mHistoryLastWritten.batteryLevel == cur.batteryLevel in addHistoryBufferLocked()
2714 if (!writeAnyway && mHistoryLastWritten.batteryLevel == cur.batteryLevel && in addHistoryBufferLocked()
2829 if (mHistoryEnd != null && mHistoryEnd.batteryLevel in addHistoryRecordInnerLocked()
[all …]