/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | BluetoothDeviceLayerDrawable.java | 55 * @param batteryLevel the battery level for bluetooth device 58 int batteryLevel) { 59 return createLayerDrawable(context, resId, batteryLevel, 1 /*iconScale*/); 68 * @param batteryLevel the battery level for bluetooth device 72 int batteryLevel, float iconScale) { 76 context.getColor(R.color.meter_background_color), batteryLevel); 90 drawable.setConstantState(context, resId, batteryLevel, iconScale); 95 public void setConstantState(Context context, int resId, int batteryLevel, float iconScale) { argument 96 mState = new BluetoothDeviceLayerDrawableState(context, resId, batteryLevel, iconScale); 113 public BatteryMeterDrawable(Context context, int frameColor, int batteryLevel) { argument 57 createLayerDrawable(Context context, int resId, int batteryLevel) argument 71 createLayerDrawable(Context context, int resId, int batteryLevel, float iconScale) argument 144 int batteryLevel; field in class:BluetoothDeviceLayerDrawable.BluetoothDeviceLayerDrawableState 147 BluetoothDeviceLayerDrawableState(Context context, int resId, int batteryLevel, float iconScale) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | BatteryProperties.java | 30 public int batteryLevel; field in class:BatteryProperties 49 batteryLevel = other.batteryLevel; 71 batteryLevel = p.readInt(); 88 p.writeInt(batteryLevel);
|
H A D | BatteryStats.java | 1343 public byte batteryLevel; field in class:BatteryStats.HistoryItem 1548 | ((((int)batteryLevel)<<8)&0xff00) 1581 batteryLevel = (byte)((bat>>8)&0xff); 1622 batteryLevel = 0; 1650 batteryLevel = o.batteryLevel; 1682 return batteryLevel == o.batteryLevel 5603 if (rec.batteryLevel < 10) pw.print("00"); 5604 else if (rec.batteryLevel < 10 [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
H A D | CarBatteryController.java | 144 int batteryLevel = intent.getIntExtra(BluetoothHeadsetClient.EXTRA_BATTERY_LEVEL, 147 updateBatteryLevel(batteryLevel); 149 if (batteryLevel != INVALID_BATTERY_LEVEL && mBatteryViewHandler != null) { 171 private void updateBatteryLevel(int batteryLevel) { argument 172 if (batteryLevel == INVALID_BATTERY_LEVEL) { 180 switch (batteryLevel) { 202 Log.d(TAG, "Battery level: " + batteryLevel + "; setting mLevel as: " + mLevel); 232 int batteryLevel = featuresBundle.getInt(BluetoothHeadsetClient.EXTRA_BATTERY_LEVEL, 234 updateBatteryLevel(batteryLevel);
|
/frameworks/native/services/batteryservice/ |
H A D | BatteryProperties.cpp | 41 batteryLevel = p->readInt32(); 59 p->writeInt32(batteryLevel);
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | BatteryService.java | 280 && mBatteryProps.batteryLevel <= mLowBatteryWarningLevel 287 if (mBatteryProps.batteryLevel == 0 && !isPoweredLocked(BatteryManager.BATTERY_PLUGGED_ANY)) { 337 mBatteryLevelCritical = (mBatteryProps.batteryLevel <= mCriticalBatteryLevel); 358 + ", batteryLevel=" + mBatteryProps.batteryLevel 371 mPlugType, mBatteryProps.batteryLevel, mBatteryProps.batteryTemperature, 384 mBatteryProps.batteryLevel != mLastBatteryLevel || 399 if (mDischargeStartTime != 0 && mDischargeStartLevel != mBatteryProps.batteryLevel) { 403 mDischargeStartLevel, mBatteryProps.batteryLevel); 410 mDischargeStartLevel = mBatteryProps.batteryLevel; [all...] |
/frameworks/native/include/batteryservice/ |
H A D | BatteryService.h | 49 int batteryLevel; member in struct:android::BatteryProperties
|
/frameworks/native/services/batteryservice/include/batteryservice/ |
H A D | BatteryService.h | 49 int batteryLevel; member in struct:android::BatteryProperties
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | BluetoothTile.java | 135 int batteryLevel = lastDevice.getBatteryLevel(); 136 if (batteryLevel != BluetoothDevice.BATTERY_LEVEL_UNKNOWN) { 137 state.icon = new BluetoothBatteryDrawable(batteryLevel, 311 int batteryLevel = device.getBatteryLevel(); 312 if (batteryLevel != BluetoothDevice.BATTERY_LEVEL_UNKNOWN) { 313 item.iconDrawable = new BluetoothBatteryDrawable(batteryLevel); 316 Utils.formatPercentage(batteryLevel));
|
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/ |
H A D | DemoModeController.java | 152 final int batteryLevel = (int)y / (h / 101); 153 if (batteryLevel != mBatteryLevel) { 154 mBatteryLevel = batteryLevel;
|
/frameworks/base/services/core/java/com/android/server/power/ |
H A D | WirelessChargerDetector.java | 218 * @param batteryLevel The current battery level. 222 public boolean update(boolean isPowered, int plugType, int batteryLevel) { argument 258 && batteryLevel < WIRELESS_CHARGER_TURN_ON_BATTERY_LEVEL_LIMIT
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | CachedBluetoothDevice.java | 892 final int batteryLevel = getBatteryLevel(); 893 if (batteryLevel != BluetoothDevice.BATTERY_LEVEL_UNKNOWN) { 896 com.android.settingslib.Utils.formatPercentage(batteryLevel);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
H A D | PowerNotificationWarnings.java | 130 public void update(int batteryLevel, int bucket, long screenOffTime) { argument 131 mBatteryLevel = batteryLevel;
|
H A D | PowerUI.java | 404 void update(int batteryLevel, int bucket, long screenOffTime); argument
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsImpl.java | 2886 final int includeStepDetails = mLastHistoryStepLevel > cur.batteryLevel 2932 + " batteryLevel=" + cur.batteryLevel 2999 if (mLastHistoryStepLevel < cur.batteryLevel) { 3002 mLastHistoryStepLevel = cur.batteryLevel; 3011 return ((((int)h.batteryLevel)<<25)&0xfe000000) 3017 out.batteryLevel = (byte)((batteryLevelInt & 0xfe000000) >>> 25); 3164 + " batteryLevel=" + cur.batteryLevel 3288 && mHistoryLastWritten.batteryLevel [all...] |