Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 25 of 28) sorted by relevance

12

/tools/loganalysis/src/com/android/loganalysis/rule/
DProcessUsageRule.java58 for (ProcessUsageInfoItem usage : processUsageItem.getProcessUsage()) { in applyRule()
59 if (usage.getAlarmWakeups() > 0) { in applyRule()
60 addAlarmAnalysis(usage); in applyRule()
62 if (usage.getSensorUsage() != null && usage.getSensorUsage().size() > 0) { in applyRule()
63 addSensorAnalysis(usage); in applyRule()
69 private void addAlarmAnalysis(ProcessUsageInfoItem usage) { in addAlarmAnalysis() argument
70 final long alarmsPerMs = getTimeOnBattery()/usage.getAlarmWakeups(); in addAlarmAnalysis()
72 mOffendingAlarmList.add(usage); in addAlarmAnalysis()
76 private void addSensorAnalysis(ProcessUsageInfoItem usage) { in addSensorAnalysis() argument
79 for (SensorInfoItem sensorInfo : usage.getSensorUsage()) { in addSensorAnalysis()
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DBatteryUsageParserTest.java45 BatteryUsageItem usage = new BatteryUsageParser().parse(inputBlock); in testBatteryUsageParser() local
47 assertEquals(3220, usage.getBatteryCapacity()); in testBatteryUsageParser()
48 assertEquals(7, usage.getBatteryUsage().size()); in testBatteryUsageParser()
50 assertEquals("Screen", usage.getBatteryUsage().get(0).getName()); in testBatteryUsageParser()
51 assertEquals(8.93, usage.getBatteryUsage().get(0).getUsage(), EPSILON); in testBatteryUsageParser()
52 assertEquals("Uid u0a16", usage.getBatteryUsage().get(6).getName()); in testBatteryUsageParser()
53 assertEquals(0.0441, usage.getBatteryUsage().get(6).getUsage()); in testBatteryUsageParser()
/tools/loganalysis/tests/src/com/android/loganalysis/item/
DBatteryUsageItemTest.java44 JSONArray usage = output.getJSONArray(BatteryUsageItem.BATTERY_USAGE); in testToJson() local
46 assertEquals(2, usage.length()); in testToJson()
47 assertTrue(usage.getJSONObject(0).has(BatteryUsageInfoItem.NAME)); in testToJson()
48 assertTrue(usage.getJSONObject(0).has(BatteryUsageInfoItem.USAGE)); in testToJson()
50 assertTrue(usage.getJSONObject(1).has(BatteryUsageInfoItem.NAME)); in testToJson()
51 assertTrue(usage.getJSONObject(1).has(BatteryUsageInfoItem.USAGE)); in testToJson()
/tools/test/graphicsbenchmark/dist/
Drun_gamecore.sh18 usage() { function
31 OPTS=`getopt -o ah -l all,help,apk-info:,apk-dir: -- "$@"` || usage
46 usage;;
51 usage
/tools/loganalysis/src/com/android/loganalysis/item/
DBatteryUsageItem.java58 public BatteryUsageInfoItem(String name, double usage) { in BatteryUsageInfoItem() argument
61 setAttribute(USAGE, usage); in BatteryUsageInfoItem()
85 public void addBatteryUsage(String name, double usage) { in addBatteryUsage() argument
86 mBatteryUsage.add(new BatteryUsageInfoItem(name, usage)); in addBatteryUsage()
127 for (BatteryUsageInfoItem usage : mBatteryUsage) { in toJson()
128 usageInfo.put(usage.toJson()); in toJson()
DAnrItem.java82 public void setCpuUsage(CpuUsageCategory category, Double usage) { in setCpuUsage() argument
83 setAttribute(category.toString(), usage); in setCpuUsage() local
96 public void setLoad(LoadCategory category, Double usage) { in setLoad() argument
97 setAttribute(category.toString(), usage); in setLoad() local
DProcessUsageItem.java135 for (SensorInfoItem usage : getSensorUsage()) { in toJson()
136 sensorUsage.put(usage.toJson()); in toJson()
189 for (ProcessUsageInfoItem usage : mProcessUsage) { in toJson()
190 processUsage.put(usage.toJson()); in toJson()
/tools/loganalysis/tests/src/com/android/loganalysis/rule/
DProcessUsageRuleTest.java70 ProcessUsageRule usage = new ProcessUsageRule(mBugreport); in testAlarmAnalysis() local
71 usage.applyRule(); in testAlarmAnalysis()
72 JSONObject analysis = usage.getAnalysis(); in testAlarmAnalysis()
99 ProcessUsageRule usage = new ProcessUsageRule(mBugreport); in testSensorAnalysis() local
100 usage.applyRule(); in testSensorAnalysis()
101 JSONObject analysis = usage.getAnalysis(); in testSensorAnalysis()
/tools/repohooks/tools/
Dcpplint.py-update21 usage() { function
40 -h|--help) usage;;
42 *) usage "Unknown option: $1";;
Dcheckpatch.pl-update21 usage() { function
75 -h|--help) usage;;
77 -*) usage "Unknown option: $1";;
Dspelling.txt1210 usege||usage
/tools/loganalysis/src/com/android/loganalysis/parser/
DAnrParser.java99 Double usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse() local
100 anr.setCpuUsage(AnrItem.CpuUsageCategory.USER, usage); in parse()
103 usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse()
104 anr.setCpuUsage(AnrItem.CpuUsageCategory.KERNEL, usage); in parse()
107 usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse()
108 anr.setCpuUsage(AnrItem.CpuUsageCategory.IOWAIT, usage); in parse()
/tools/asuite/atest/tools/
Dupdatedb_darwin.sh21 function usage() { function
64 *) usage; exit 0;;
/tools/metalava/
D.gitignore8 /.idea/usage.statistics.xml
/tools/acloud/public/
Dacloud_main.py147 usage = ",".join([
158 usage="acloud {" + usage + "} ...")
159 subparsers = parser.add_subparsers(metavar="{" + usage + "}")
/tools/apksig/src/apksigner/java/com/android/apksigner/
Dhelp.txt26 help Show this usage page and exit
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationContext.java349 Map<String, Long> usage = TfObjectTracker.getUsage(); in logInvocationMetrics() local
350 if (!usage.isEmpty()) { in logInvocationMetrics()
352 TfObjectTracker.TF_OBJECTS_TRACKING_KEY, Joiner.on(",").join(usage.entrySet())); in logInvocationMetrics()
/tools/apksig/
DREADME.md45 `apksigner sign` for usage information.
47 supported by the APK. Run `apksigner verify` for usage information.
/tools/ndkports/
D.gitignore22 .idea/**/usage.statistics.xml
/tools/currysrc/scripts/
Drepackage-common.sh109 UNSUPPORTED_APP_USAGE_FILE=${PROJECT_DIR}/srcgen/unsupported-app-usage.json
/tools/tradefederation/core/
Dtradefed_win.bat92 :: usage: call:commandResult "command" result
/tools/treble/build/sandbox/
Dnsjail.cfg14 # Limits memory usage
/tools/asuite/aidegen/
Daidegen_main.py109 usage=('aidegen [module_name1 module_name2... '
/tools/carrier_settings/proto/
Dcarrier_settings.proto204 // Google's internal usage.
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py91 usage='aidegen_functional_test [-c | -u | -b | -a] -v -r')

12