Searched refs:batteryLevelInt (Results 1 – 2 of 2) sorted by relevance
147 final int batteryLevelInt; in readHistoryDelta() local149 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() argument313 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()
2049 int batteryLevelInt = buildBatteryLevelInt(cur); in writeHistoryDelta() local2054 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()