/frameworks/base/core/java/android/os/ |
D | BatteryProperties.java | 27 public int batteryStatus; field in BatteryProperties 45 batteryStatus = other.batteryStatus; in set() 66 batteryStatus = p.readInt(); in BatteryProperties() 82 p.writeInt(batteryStatus); in writeToParcel()
|
D | BatteryStats.java | 1155 public byte batteryStatus; field in BatteryStats.HistoryItem 1351 | ((((int)batteryStatus)<<16)&0xf0000) in writeToParcel() 1384 batteryStatus = (byte)((bat>>16)&0xf); in readFromParcel() 1425 batteryStatus = 0; in clear() 1453 batteryStatus = o.batteryStatus; in setToCommon() 1485 && batteryStatus == o.batteryStatus in sameNonEvent() 4703 if (oldStatus != rec.batteryStatus) { in printNextItem() 4704 oldStatus = rec.batteryStatus; in printNextItem()
|
/frameworks/base/services/core/java/com/android/server/ |
D | BatteryService.java | 243 if (mBatteryProps.batteryStatus == BatteryManager.BATTERY_STATUS_UNKNOWN) { in isPoweredLocked() 269 && mBatteryProps.batteryStatus != BatteryManager.BATTERY_STATUS_UNKNOWN in shouldSendBatteryLowLocked() 346 + ", batteryStatus=" + mBatteryProps.batteryStatus in processValuesLocked() 359 mBatteryStats.setBatteryState(mBatteryProps.batteryStatus, mBatteryProps.batteryHealth, in processValuesLocked() 369 if (force || (mBatteryProps.batteryStatus != mLastBatteryStatus || in processValuesLocked() 401 if (mBatteryProps.batteryStatus != mLastBatteryStatus || in processValuesLocked() 406 … mBatteryProps.batteryStatus, mBatteryProps.batteryHealth, mBatteryProps.batteryPresent ? 1 : 0, in processValuesLocked() 498 mLastBatteryStatus = mBatteryProps.batteryStatus; in processValuesLocked() 521 intent.putExtra(BatteryManager.EXTRA_STATUS, mBatteryProps.batteryStatus); in sendIntentLocked() 537 ", scale:" + BATTERY_SCALE + ", status:" + mBatteryProps.batteryStatus + in sendIntentLocked() [all …]
|
/frameworks/native/services/batteryservice/ |
D | BatteryProperties.cpp | 38 batteryStatus = p->readInt32(); in readFromParcel() 55 p->writeInt32(batteryStatus); in writeToParcel()
|
/frameworks/base/docs/html/training/monitoring-device-state/ |
D | battery-monitoring.jd | 59 Intent batteryStatus = context.registerReceiver(null, ifilter);</pre> 65 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1); 70 int chargePlug = batteryStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1); 124 <pre>int level = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, -1); 125 int scale = batteryStatus.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
|
/frameworks/native/include/batteryservice/ |
D | BatteryService.h | 62 int batteryStatus; member
|
/frameworks/base/docs/html-intl/intl/ru/training/monitoring-device-state/ |
D | battery-monitoring.jd | 44 Intent batteryStatus = context.registerReceiver(null, ifilter);</pre> 49 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
|
/frameworks/base/docs/html-intl/intl/ja/training/monitoring-device-state/ |
D | battery-monitoring.jd | 44 Intent batteryStatus = context.registerReceiver(null, ifilter);</pre> 49 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
|
/frameworks/base/docs/html-intl/intl/zh-cn/training/monitoring-device-state/ |
D | battery-monitoring.jd | 44 Intent batteryStatus = context.registerReceiver(null, ifilter);</pre> 49 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
|
/frameworks/base/docs/html-intl/intl/ko/training/monitoring-device-state/ |
D | battery-monitoring.jd | 44 Intent batteryStatus = context.registerReceiver(null, ifilter);</pre> 49 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
|
/frameworks/base/docs/html-intl/intl/es/training/monitoring-device-state/ |
D | battery-monitoring.jd | 44 Intent batteryStatus = context.registerReceiver(null, ifilter);</pre> 49 int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 2298 + " batteryStatus=" + cur.batteryStatus in writeHistoryDelta() 2383 return ((h.batteryStatus&STATE_BATTERY_STATUS_MASK)<<STATE_BATTERY_STATUS_SHIFT) in buildStateInt() 2526 cur.batteryStatus = (byte)((stateInt>>STATE_BATTERY_STATUS_SHIFT) in readHistoryDelta() 2546 + " batteryStatus=" + cur.batteryStatus in readHistoryDelta() 2641 && mHistoryLastWritten.batteryStatus == cur.batteryStatus in addHistoryBufferLocked() 9363 mHistoryCur.batteryStatus = (byte)status; in setBatteryStateLocked() 9372 int oldStatus = mHistoryCur.batteryStatus; in setBatteryStateLocked() 9392 mHistoryCur.batteryStatus = (byte)status; in setBatteryStateLocked() 9415 if (mHistoryCur.batteryStatus != status) { in setBatteryStateLocked() 9416 mHistoryCur.batteryStatus = (byte)status; in setBatteryStateLocked()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RIL.java | 776 Intent batteryStatus = context.registerReceiver(mBatteryStateListener, filter); in RIL() local 777 if (batteryStatus != null) { in RIL() 779 mIsDevicePlugged = batteryStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0; in RIL()
|