/development/tools/labpretest/ |
labpretest.sh | 12 # times. It will detect if it is in a low battery situation and wait for it to 62 # Blocks until battery level is at least 76 local battery 78 log_print "checking battery level" 79 while [ "$battery" = "" ]; do 80 battery=`$ADB -s $device shell dumpsys battery | tr -d '\r' | awk '/level:/ {print $2}'` 83 if [ $battery -lt $LIMIT ]; then 84 log_print "Battery is low, waiting for charge" 86 battery=`$ADB -s $device shell dumpsys battery | tr -d '\r' | awk '/level:/ {print $2}' [all...] |
/system/core/charger/ |
charger.c | 124 struct power_supply *battery; member in struct:charger 299 if (!charger->battery) 302 ret = read_file_int(charger->battery->cap_path, &batt_cap); 405 bool battery = false; local 424 if (!strncmp(ps_type, "Battery", 7)) 425 battery = true; 443 /* only pick up the first battery for now */ 444 if (battery && !charger->battery) 445 charger->battery = supply [all...] |
/frameworks/base/services/java/com/android/server/ |
SystemServer.java | 121 BatteryService battery = null; local 211 Slog.i(TAG, "Battery Service"); 212 battery = new BatteryService(context, lights); 213 ServiceManager.addService("battery", battery); 220 // lights service, content providers and the battery service. 221 power.init(context, lights, ActivityManagerService.self(), battery); 228 Watchdog.getInstance().init(context, battery, power, alarm, 745 final BatteryService batteryF = battery; 781 reportWtf("making Battery Service ready", e) [all...] |
Watchdog.java | 188 public void init(Context context, BatteryService battery, 192 mBattery = battery; 347 return "battery";
|
PowerManagerService.java | 144 // Screen will stay dim if battery level is <= LOW_BATTERY_THRESHOLD 554 BatteryService battery) { 559 mBatteryService = battery; 680 // register for the battery changed notifications [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
PhoneStatusBar.java | 445 mBatteryController.addIconView((ImageView)mStatusBarView.findViewById(R.id.battery)); [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
DeskClock.java | 67 // This controls whether or not we will show a battery display when plugged 302 // UX wants the battery level removed. This makes it not visible but 487 mBatteryDisplay = (TextView) findViewById(R.id.battery);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/ |
TabletStatusBar.java | 263 // the battery icon 264 mBatteryController.addIconView((ImageView)mNotificationPanel.findViewById(R.id.battery)); 511 mBatteryController.addIconView((ImageView)sb.findViewById(R.id.battery)); [all...] |
/external/bluetooth/bluez/tools/ |
sdptool.c | 2418 uint8_t battery = 1, remote_wakeup = 1; local [all...] |