HomeSort by relevance Sort by last modified time
    Searched refs:BatteryManager (Results 1 - 25 of 35) sorted by null

1 2

  /frameworks/base/cmds/svc/src/com/android/commands/svc/
PowerCommand.java 20 import android.os.BatteryManager;
54 val = BatteryManager.BATTERY_PLUGGED_AC |
55 BatteryManager.BATTERY_PLUGGED_USB |
56 BatteryManager.BATTERY_PLUGGED_WIRELESS;
61 val = BatteryManager.BATTERY_PLUGGED_USB;
63 val = BatteryManager.BATTERY_PLUGGED_AC;
65 val = BatteryManager.BATTERY_PLUGGED_WIRELESS;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
BatteryController.java 23 import android.os.BatteryManager;
51 final int level = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0);
52 final int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS,
53 BatteryManager.BATTERY_STATUS_UNKNOWN);
57 case BatteryManager.BATTERY_STATUS_CHARGING:
58 case BatteryManager.BATTERY_STATUS_FULL:
  /external/chromium_org/base/android/java/src/org/chromium/base/
PowerMonitor.java 10 import android.os.BatteryManager;
66 int chargePlug = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
68 sInstance.mIsBatteryPower = chargePlug != BatteryManager.BATTERY_PLUGGED_USB &&
69 chargePlug != BatteryManager.BATTERY_PLUGGED_AC;
  /packages/apps/Settings/src/com/android/settings/
BatteryInfo.java 24 import android.os.BatteryManager;
101 case BatteryManager.BATTERY_PLUGGED_AC:
104 case BatteryManager.BATTERY_PLUGGED_USB:
107 case BatteryManager.BATTERY_PLUGGED_WIRELESS:
110 case (BatteryManager.BATTERY_PLUGGED_AC|BatteryManager.BATTERY_PLUGGED_USB):
118 int health = intent.getIntExtra("health", BatteryManager.BATTERY_HEALTH_UNKNOWN);
120 if (health == BatteryManager.BATTERY_HEALTH_GOOD) {
122 } else if (health == BatteryManager.BATTERY_HEALTH_OVERHEAT) {
124 } else if (health == BatteryManager.BATTERY_HEALTH_DEAD)
    [all...]
Utils.java 41 import android.os.BatteryManager;
390 return batteryChangedIntent.getBooleanExtra(BatteryManager.EXTRA_PRESENT, true);
394 int level = batteryChangedIntent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0);
395 int scale = batteryChangedIntent.getIntExtra(BatteryManager.EXTRA_SCALE, 100);
402 int plugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0);
403 int status = intent.getIntExtra(BatteryManager.EXTRA_STATUS,
404 BatteryManager.BATTERY_STATUS_UNKNOWN);
406 if (status == BatteryManager.BATTERY_STATUS_CHARGING) {
410 if (plugType == BatteryManager.BATTERY_PLUGGED_AC) {
412 } else if (plugType == BatteryManager.BATTERY_PLUGGED_USB)
    [all...]
CryptKeeperSettings.java 30 import android.os.BatteryManager;
64 final int level = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0);
65 final int plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0);
67 BatteryManager.EXTRA_INVALID_CHARGER, 0);
71 ((plugged & BatteryManager.BATTERY_PLUGGED_ANY) != 0) &&
RingerVolumePreference.java 19 import static android.os.BatteryManager.BATTERY_STATUS_UNKNOWN;
DevelopmentSettings.java 38 import android.os.BatteryManager;
    [all...]
  /frameworks/base/services/java/com/android/server/
BatteryService.java 28 import android.os.BatteryManager;
193 if (mBatteryProps.batteryStatus == BatteryManager.BATTERY_STATUS_UNKNOWN) {
196 if ((plugTypeSet & BatteryManager.BATTERY_PLUGGED_AC) != 0 && mBatteryProps.chargerAcOnline) {
199 if ((plugTypeSet & BatteryManager.BATTERY_PLUGGED_USB) != 0 && mBatteryProps.chargerUsbOnline) {
202 if ((plugTypeSet & BatteryManager.BATTERY_PLUGGED_WIRELESS) != 0 && mBatteryProps.chargerWirelessOnline) {
247 if (mBatteryProps.batteryLevel == 0 && !isPoweredLocked(BatteryManager.BATTERY_PLUGGED_ANY)) {
297 mPlugType = BatteryManager.BATTERY_PLUGGED_AC;
299 mPlugType = BatteryManager.BATTERY_PLUGGED_USB;
301 mPlugType = BatteryManager.BATTERY_PLUGGED_WIRELESS;
397 && mBatteryProps.batteryStatus != BatteryManager.BATTERY_STATUS_UNKNOW
    [all...]
UiModeManagerService.java 34 import android.os.BatteryManager;
136 mCharging = (intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0);
Watchdog.java 32 import android.os.BatteryManager;
  /frameworks/base/core/java/android/os/
BatteryManager.java 20 * The BatteryManager class contains strings and constants used for values
23 public class BatteryManager {
BatteryStats.java     [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
BatteryMeterView.java 33 import android.os.BatteryManager;
93 * intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0)
94 / intent.getIntExtra(BatteryManager.EXTRA_SCALE, 100));
96 plugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0);
98 health = intent.getIntExtra(BatteryManager.EXTRA_HEALTH,
99 BatteryManager.BATTERY_HEALTH_UNKNOWN);
100 status = intent.getIntExtra(BatteryManager.EXTRA_STATUS,
101 BatteryManager.BATTERY_STATUS_UNKNOWN);
102 technology = intent.getStringExtra(BatteryManager.EXTRA_TECHNOLOGY);
103 voltage = intent.getIntExtra(BatteryManager.EXTRA_VOLTAGE, 0)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
Uploader.java 26 import android.os.BatteryManager;
95 final int pluggedState = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
96 return pluggedState == BatteryManager.BATTERY_PLUGGED_AC
97 || pluggedState == BatteryManager.BATTERY_PLUGGED_USB;
  /packages/apps/DeskClock/src/com/android/deskclock/
ScreensaverActivity.java 26 import android.os.BatteryManager;
125 int plugged = chargingIntent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
126 mPluggedIn = plugged == BatteryManager.BATTERY_PLUGGED_AC
127 || plugged == BatteryManager.BATTERY_PLUGGED_USB
128 || plugged == BatteryManager.BATTERY_PLUGGED_WIRELESS;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/power/
PowerUI.java 30 import android.os.BatteryManager;
56 int mBatteryStatus = BatteryManager.BATTERY_STATUS_UNKNOWN;
121 mBatteryLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 100);
123 mBatteryStatus = intent.getIntExtra(BatteryManager.EXTRA_STATUS,
124 BatteryManager.BATTERY_STATUS_UNKNOWN);
126 mPlugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 1);
128 mInvalidCharger = intent.getIntExtra(BatteryManager.EXTRA_INVALID_CHARGER, 0);
161 && mBatteryStatus != BatteryManager.BATTERY_STATUS_UNKNOWN
  /frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
BatteryWaster.java 24 import android.os.BatteryManager;
173 int level = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
  /packages/screensavers/WebView/src/com/android/dreams/web/
Screensaver.java 31 import android.os.BatteryManager;
  /frameworks/base/packages/Keyguard/src/com/android/keyguard/
KeyguardMessageArea.java 24 import android.os.BatteryManager;
159 mCharging = status.status == BatteryManager.BATTERY_STATUS_CHARGING
160 || status.status == BatteryManager.BATTERY_STATUS_FULL;
KeyguardUpdateMonitor.java 30 import static android.os.BatteryManager.BATTERY_STATUS_FULL;
31 import static android.os.BatteryManager.BATTERY_STATUS_UNKNOWN;
32 import static android.os.BatteryManager.BATTERY_HEALTH_UNKNOWN;
33 import static android.os.BatteryManager.EXTRA_STATUS;
34 import static android.os.BatteryManager.EXTRA_PLUGGED;
35 import static android.os.BatteryManager.EXTRA_LEVEL;
36 import static android.os.BatteryManager.EXTRA_HEALTH;
39 import android.os.BatteryManager;
391 return plugged == BatteryManager.BATTERY_PLUGGED_AC
392 || plugged == BatteryManager.BATTERY_PLUGGED_US
    [all...]
  /frameworks/base/services/java/com/android/server/power/
WirelessChargerDetector.java 23 import android.os.BatteryManager;
186 if (isPowered && plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) {
197 if (plugType != 0 && plugType != BatteryManager.BATTERY_PLUGGED_WIRELESS) {
PowerManagerService.java 42 import android.os.BatteryManager;
272 // The current plug type, such as BatteryManager.BATTERY_PLUGGED_WIRELESS.
551 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, BatteryManager.BATTERY_PLUGGED_AC);
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
ActivityState.java 26 import android.os.BatteryManager;
138 boolean plugged = (0 != intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0));
  /frameworks/base/core/java/com/android/internal/os/
BatteryStatsImpl.java 25 import android.os.BatteryManager;
    [all...]

Completed in 1656 milliseconds

1 2