Home
last modified time | relevance | path

Searched refs:batteryLevel (Results 1 – 6 of 6) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDeviceBatteryLevelChecker.java175 Integer batteryLevel = checkBatteryLevel(mTestDevice); in runTest() local
177 if (batteryLevel == null) { in runTest()
184 } else if (batteryLevel < mMaxBattery) { in runTest()
187 "to level %d", batteryLevel, mMaxBattery, mTestDevice.getSerialNumber(), in runTest()
191 CLog.d("Battery level %d is above the minimum of %d; %s is good to go.", batteryLevel, in runTest()
224 mTestDevice.getSerialNumber(), batteryLevel); in runTest()
226 return finalBattery - batteryLevel; in runTest()
244 Integer batteryLevel = checkBatteryLevel(mTestDevice); in runBatteryCharging() local
247 while (batteryLevel != null && batteryLevel < mResumeLevel) { in runBatteryCharging()
252 mTestDevice.getSerialNumber(), batteryLevel); in runBatteryCharging()
[all …]
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java57 String batteryLevel) { in DeviceDescriptor() argument
59 batteryLevel, "", "", "", ""); in DeviceDescriptor()
64 String batteryLevel, String deviceClass, String macAddress, String simState, in DeviceDescriptor() argument
78 batteryLevel, in DeviceDescriptor()
97 String batteryLevel, in DeviceDescriptor() argument
115 batteryLevel, in DeviceDescriptor()
135 String batteryLevel, in DeviceDescriptor() argument
153 batteryLevel, in DeviceDescriptor()
176 String batteryLevel, in DeviceDescriptor() argument
196 mBatteryLevel = batteryLevel; in DeviceDescriptor()
/tools/loganalysis/src/com/android/loganalysis/item/
DBatteryDischargeItem.java58 public BatteryDischargeInfoItem(Calendar clockTime, long elapsedTime, int batteryLevel) { in BatteryDischargeInfoItem() argument
63 setAttribute(BATTERY_LEVEL, batteryLevel); in BatteryDischargeInfoItem()
95 public void addBatteryDischargeInfo(Calendar clockTime, long elapsedTime, int batteryLevel) { in addBatteryDischargeInfo() argument
97 elapsedTime, batteryLevel)); in addBatteryDischargeInfo()
/tools/loganalysis/src/com/android/loganalysis/parser/
DBatteryStatsSummaryInfoParser.java88 final int batteryLevel = Integer.parseInt(dischargeMatcher.group(6)); in parse() local
89 if (batteryLevel == 0) { in parse()
95 previousBatteryLevel = batteryLevel; in parse()
97 } else if (!batteryDischargedFully && previousBatteryLevel != batteryLevel) { in parse()
103 (elapsedTime - previousDischargeElapsedTime), batteryLevel); in parse() local
105 previousBatteryLevel = batteryLevel; in parse()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java954 Integer batteryLevel = device.getBattery(); in checkDeviceBatteryLevel() local
955 if (batteryLevel == null) { in checkDeviceBatteryLevel()
958 CLog.d("device %s: battery level=%d%%", device.getSerialNumber(), batteryLevel); in checkDeviceBatteryLevel()
962 if (0 < batteryLevel && batteryLevel < cutoffBattery) { in checkDeviceBatteryLevel()
966 getName(), batteryLevel, cutoffBattery); in checkDeviceBatteryLevel()
970 batteryLevel, cutoffBattery)); in checkDeviceBatteryLevel()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java822 Integer batteryLevel = testDevice.getBattery(); in logDeviceBatteryLevel() local
823 if (batteryLevel == null) { in logDeviceBatteryLevel()
827 CLog.v("%s - %s - %d%%", BATT_TAG, event, batteryLevel); in logDeviceBatteryLevel()
834 batteryLevel.toString()); in logDeviceBatteryLevel()