Home
last modified time | relevance | path

Searched refs:batteryLevelInt (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistoryIterator.java147 final int batteryLevelInt; in readHistoryDelta() local
149 batteryLevelInt = src.readInt(); in readHistoryDelta()
150 readBatteryLevelInt(batteryLevelInt, cur); in readHistoryDelta()
154 + Integer.toHexString(batteryLevelInt) in readHistoryDelta()
160 batteryLevelInt = 0; in readHistoryDelta()
246 if ((batteryLevelInt & BatteryStatsHistory.BATTERY_LEVEL_DETAILS_FLAG) != 0) { in readHistoryDelta()
312 private static void readBatteryLevelInt(int batteryLevelInt, BatteryStats.HistoryItem out) { in readBatteryLevelInt() argument
313 out.batteryLevel = (byte) ((batteryLevelInt & 0xfe000000) >>> 25); in readBatteryLevelInt()
314 out.batteryTemperature = (short) ((batteryLevelInt & 0x01ff8000) >>> 15); in readBatteryLevelInt()
315 int voltage = ((batteryLevelInt & 0x00007ffe) >>> 1); in readBatteryLevelInt()
DBatteryStatsHistory.java2049 int batteryLevelInt = buildBatteryLevelInt(cur); in writeHistoryDelta() local
2054 batteryLevelInt |= BatteryStatsHistory.BATTERY_LEVEL_DETAILS_FLAG; in writeHistoryDelta()
2062 final boolean batteryLevelIntChanged = batteryLevelInt != lastBatteryLevelInt; in writeHistoryDelta()
2116 dest.writeInt(batteryLevelInt); in writeHistoryDelta()
2119 + Integer.toHexString(batteryLevelInt) in writeHistoryDelta()