Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 25 of 36) 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/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/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/test/connectivity/acts/framework/acts/metrics/loggers/
Dusage_metadata_logger.py102 for usage in _usage_map:
103 method_count = data.usage.add()
104 method_count.test_context = usage.test_context
105 method_count.method_identifier = usage.method_name
106 method_count.count = _usage_map[usage]
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_data_utils.py596 usage = round((usage_level - usage_level_at_start)/1024/1024, 2)
597 if usage < pass_threshold_in_mb:
600 usage, pass_threshold_in_mb))
603 ad.log.info("Usage of browsing: %s MB" % usage)
607 usage = "unknown"
608 ad.log.info("Usage of browsing: %s MB" % usage)
/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/metalava/src/main/java/com/android/tools/metalava/
DOptions.kt1573 val usage = getUsage(includeHeader = false, colorize = color) in <lambda>() constant
1574 throw DriverException(stderr = "Invalid argument $arg\n\n$usage") in <lambda>()
2178 val usage = StringWriter() in <lambda>() constant
2179 val printWriter = PrintWriter(usage) in <lambda>()
2180 usage(printWriter, includeHeader, colorize) in <lambda>()
2181 return usage.toString() in <lambda>()
2184 private fun usage(out: PrintWriter, includeHeader: Boolean = true, colorize: Boolean = color) { in <lambda>() method in com.android.tools.metalava.Options
DApiAnalyzer.kt1062 usage: String in <lambda>()
1076 …(cl.isHiddenOrRemoved()) "hidden" else "not public"} but was referenced ($usage) from public ${fro… in <lambda>()
/tools/acloud/public/
Dacloud_main.py163 usage = ",".join([
174 usage="acloud {" + usage + "} ...")
178 subparsers = parser.add_subparsers(metavar="{" + usage + "}")
/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";;
/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/tradefederation/core/atest/tools/
Dupdatedb_darwin.sh21 function usage() { function
64 *) usage; exit 0;;
/tools/asuite/atest/tools/
Dupdatedb_darwin.sh21 function usage() { function
64 *) usage; exit 0;;
/tools/test/connectivity/acts/framework/tests/metrics/loggers/
Dusage_metadata_logger_test.py141 method_invocation = usage_metadata_proto.usage.add()
145 method_invocation = usage_metadata_proto.usage.add()
/tools/apksig/
DREADME.md45 `apksigner sign` for usage information.
47 supported by the APK. Run `apksigner verify` for usage information.
/tools/apksig/src/apksigner/java/com/android/apksigner/
Dhelp.txt26 help Show this usage page and exit
/tools/test/connectivity/acts/framework/acts/metrics/loggers/protos/
Dacts_usage_metadata.proto25 repeated ActsMethodUsageMetadata usage = 1; field
/tools/currysrc/scripts/
Drepackage-common.sh110 UNSUPPORTED_APP_USAGE_FILE=${PROJECT_DIR}/srcgen/unsupported-app-usage.json
/tools/tradefederation/core/
Dtradefed_win.bat92 :: usage: call:commandResult "command" result

12