Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 52) sorted by relevance

123

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DKeyValueArgsParser.java32 String key = null; in parse() local
34 if (key == null) { in parse()
38 key = s; in parse()
40 map.put(key, s); in parse()
41 key = null; in parse()
44 if (key != null) { in parse()
DDynamicConfig.java64 public String getValue(String key) { in getValue() argument
66 List<String> singleValue = mDynamicConfigMap.get(key); in getValue()
74 public List<String> getValues(String key) { in getValues() argument
76 return mDynamicConfigMap.get(key); in getValues()
134 String key = parser.getAttributeValue(NS, KEY_ATTR); in createConfigMap() local
142 if (key != null && !key.isEmpty()) { in createConfigMap()
143 dynamicConfigMap.put(key, valueList); in createConfigMap()
DBusinessLogicMapStore.java45 String key = tmp[0]; in putMap() local
47 map.put(key, value); in putMap()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DDataRecord.java40 public void addStringMetric(String key, String value) { in addStringMetric() argument
41 mCurrentStringMetrics.put(key, value); in addStringMetric()
61 public void addBinaryMetric(String key, byte[] value) { in addBinaryMetric() argument
62 mCurrentBinaryMetrics.put(key, value); in addBinaryMetric()
93 for (String key : map.keySet()) { in createBundleFromMetrics()
94 b.putString(key, map.get(key)); in createBundleFromMetrics()
96 for (String key : mCurrentBinaryMetrics.keySet()) { in createBundleFromMetrics()
97 b.putByteArray(key, mCurrentBinaryMetrics.get(key)); in createBundleFromMetrics()
DScheduledRunCollectionListener.java109 for (String key : dataPoint.keySet()) { in write()
111 String.format(TIME_SERIES_BODY, timeStamp, key, dataPoint.get(key))); in write()
129 for (String key : dataPoint.keySet()) { in update()
130 T value = dataPoint.get(key); in update()
132 minMap.computeIfPresent(key, (k, v) -> compareAsDouble(value, v) == -1 ? value : v); in update()
133 minMap.computeIfAbsent(key, k -> value); in update()
135 maxMap.computeIfPresent(key, (k, v) -> compareAsDouble(value, v) == 1 ? value : v); in update()
136 maxMap.computeIfAbsent(key, k -> value); in update()
138 sumMap.put(key, value.doubleValue() + sumMap.getOrDefault(key, 0.)); in update()
140 countMap.put(key, 1 + countMap.getOrDefault(key, 0L)); in update()
[all …]
DBaseMetricListener.java154 (key, value) -> (value == null) ? 1 : value + 1); in testStarted()
428 for (String key : keySet) { in filterAlias()
429 if (key.indexOf(NAMESPACE_SEPARATOR) != -1) { in filterAlias()
430 bundle.remove(key); in filterAlias()
437 for (String key : keySet) { in filterAlias()
438 if (key.indexOf(NAMESPACE_SEPARATOR) == -1) { in filterAlias()
441 String optionAlias = key.split(NAMESPACE_SEPARATOR)[0]; in filterAlias()
444 String optionName = key.split(NAMESPACE_SEPARATOR)[1]; in filterAlias()
445 bundle.putString(optionName, bundle.getString(key)); in filterAlias()
446 bundle.remove(key); in filterAlias()
[all …]
DBatteryStatsListener.java138 String key = String.format("%s_%s.%s.bytes", getTag(), description.getClassName(), in onTestEnd() local
142 testData.addBinaryMetric(key, proto); in onTestEnd()
161 String key = String.format("%s_%s.bytes", getTag(), mTestClassName); in onTestRunEnd() local
164 runData.addBinaryMetric(key, proto); in onTestRunEnd()
/platform_testing/libraries/automotive-helpers/utility-helper/src/android/platform/helpers/
DAutoConfiguration.java33 public void addResource(String key, AutoConfigResource resource) { in addResource() argument
34 this.configMap.put(key, resource); in addResource()
38 public AutoConfigResource getResource(String key) { in getResource() argument
39 return this.configMap.get(key); in getResource()
/platform_testing/libraries/health/runners/longevity/platform/tests/assets/
DtestExtraArgs_unregisteredAfterTest.textpb6 key: "class-level-option"
13 key: "arg-to-check"
20 key: "test-level-option"
27 key: "arg-to-check"
34 key: "in-test-option"
41 key: "arg-to-check"
DtestExtraArgs_registeredBeforeTest.textpb6 key: "class-level-option"
13 key: "test-level-option"
20 key: "in-test-option"
/platform_testing/libraries/power-helper/src/com/android/helper/
DPowerTestHelper.java78 protected String getPropertyString(String key) in getPropertyString() argument
80 String value = getProperty(key); in getPropertyString()
101 protected long getPropertyLong(String key) in getPropertyLong() argument
103 String value = getProperty(key); in getPropertyLong()
109 private String getProperty(String key) in getProperty() argument
117 value = prop.getProperty(key); in getProperty()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DGcaEventLogCollectorTest.java113 for (String key : check.keySet()) { in testGcaEventLogCollectionOnTestEnd_includeFailure()
115 key.contains( in testGcaEventLogCollectionOnTestEnd_includeFailure()
123 for (String key : checkFail.keySet()) { in testGcaEventLogCollectionOnTestEnd_includeFailure()
125 key.contains( in testGcaEventLogCollectionOnTestEnd_includeFailure()
169 for (String key : check1.keySet()) { in testGcaEventLogCollectOnTestEnd_skipFailure()
171 key.contains( in testGcaEventLogCollectOnTestEnd_skipFailure()
179 for (String key : check2.keySet()) { in testGcaEventLogCollectOnTestEnd_skipFailure()
181 key.contains( in testGcaEventLogCollectOnTestEnd_skipFailure()
211 for (String key : resultBundle.keySet()) { in testGcaEventLogCollectionOnTestRunEnd_runEndOnly()
212 assertTrue(key.contains("session_run_")); in testGcaEventLogCollectionOnTestRunEnd_runEndOnly()
DLogcatCollectorTest.java134 for (String key : check1.keySet()) { in testLogcatCollectionOnEveryTestEnd()
136 key.contains( in testLogcatCollectionOnEveryTestEnd()
150 for (String key : check2.keySet()) { in testLogcatCollectionOnEveryTestEnd()
152 key.contains( in testLogcatCollectionOnEveryTestEnd()
240 for (String key : resultBundle.keySet()) { in testLogcatCollectionWithDirectoryOption()
241 assertTrue(key.contains(RUN_METRIC_KEY)); in testLogcatCollectionWithDirectoryOption()
289 for (String key: check.keySet()) { in testLogcatOnlyOnTestFailureOption()
291 key.contains( in testLogcatOnlyOnTestFailureOption()
336 for (String key : check.keySet()) { in testRetrievingLogcat()
337 if (key.contains("run.test_logcat")) { in testRetrievingLogcat()
[all …]
DBatteryStatsListenerTest.java121 for(String key : resultBundle.keySet()) { in testTestRunCollector()
122 if (key.contains(mLogFile.getName())) protoFileCount++; in testTestRunCollector()
179 for(String key : bundle.keySet()) { in testTestRunToBytesCollector()
180 if (key.contains("bytes")) protoCount++; in testTestRunToBytesCollector()
225 for(String key : bundle.keySet()) { in testTestCaseCollector()
226 if (key.contains(mLogFile.getName())) protoFileCount++; in testTestCaseCollector()
DScreenshotOnFailureCollectorTest.java141 for (String key : bundle.keySet()) { in testSavePngAsFile()
142 if (key.contains(mPngLogFile.getName())) pngFileCount++; in testSavePngAsFile()
179 for (String key : bundle.keySet()) { in testSaveUixAsFile()
180 if (key.contains(mUixLogFile.getName())) uixFileCount++; in testSaveUixAsFile()
216 for(String key : bundle.keySet()) { in testNoUixWithoutOption()
217 assertFalse(key.contains(mUixLogFile.getName())); in testNoUixWithoutOption()
/platform_testing/libraries/timeresult-helper/src/android/support/test/timeresulthelper/
DTimeResultLogger.java55 for (String key : result.keySet()) { in writeResultToFile()
56 outputWriter.write(String.format("%s %s\n", key, in writeResultToFile()
57 result.get(key))); in writeResultToFile()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/util/
DSendToInstrumentation.java43 public static void sendFile(Instrumentation instru, String key, File file) { in sendFile() argument
46 b.putString(key, file.getAbsolutePath()); in sendFile()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DUiInteractionFrameInfoListener.java143 private void reduceMetrics(DataRecord data, String key, String value) { in reduceMetrics() argument
144 if (data == null || key.isEmpty() || value.isEmpty()) return; in reduceMetrics()
149 if (key.endsWith(UiInteractionFrameInfoHelper.SUFFIX_MAX_FRAME_MS)) { in reduceMetrics()
156 data.addStringMetric(key, Double.toString(result)); in reduceMetrics()
169 for (String key : bundle.keySet()) { in processMetrics()
171 if (key.startsWith(cujName)) { in processMetrics()
172 reduceMetrics(data, key, bundle.getString(key)); in processMetrics()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DThermalHelperTest.java188 for (String key : metrics.keySet()) { in testParseTemperature()
189 if (!key.startsWith("temperature")) { in testParseTemperature()
193 if (key.endsWith("status")) { in testParseTemperature()
195 } else if (key.endsWith("value")) { in testParseTemperature()
197 } else if (key.endsWith("type")) { in testParseTemperature()
223 for (String key : metrics.keySet()) { in testParseTemperatureMock()
224 if (!key.startsWith("temperature")) { in testParseTemperatureMock()
228 if (key.endsWith("status")) { in testParseTemperatureMock()
230 } else if (key.endsWith("value")) { in testParseTemperatureMock()
232 } else if (key.endsWith("type")) { in testParseTemperatureMock()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DCpuUsageHelper.java128 for (String key : cpuUsageMap.keySet()) { in getMetrics()
129 List<Long> cpuUsageList = cpuUsageMap.get(key); in getMetrics()
136 if (key.startsWith(CPU_USAGE_PKG_UID) in getMetrics()
139 String finalKey = key.substring(0, key.lastIndexOf('_')); in getMetrics()
150 if (key.startsWith(CPU_USAGE_PKG_UID) in getMetrics()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DSfStatsCollectionHelper.java99 for (String key : globalPairs.keySet()) { in getMetrics()
100 String metricKey = constructKey(SFSTATS_METRICS_PREFIX, "GLOBAL", key.toUpperCase()); in getMetrics()
101 results.put(metricKey, parseStatsValue(globalPairs.get(key))); in getMetrics()
207 String key = histogramMatcher.group(1); in getHistogramPairs() local
218 pairs.put(key, histogram); in getHistogramPairs()
237 Histogram put(Integer key, Long value) { in put() argument
238 internalMap.put(key, value); in put()
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
DShowmapSnapshotHelperTest.java222 for (String key : metrics.keySet()) { in verifyDefaultMetrics()
223 if (!(key.equals(ShowmapSnapshotHelper.PROCESS_COUNT) in verifyDefaultMetrics()
224 || key.equals(ShowmapSnapshotHelper.OUTPUT_FILE_PATH_KEY) in verifyDefaultMetrics()
225 || key.equals(ShowmapSnapshotHelper.PROCESS_WITH_CHILD_PROCESS_COUNT) in verifyDefaultMetrics()
226 || key.startsWith(ShowmapSnapshotHelper.CHILD_PROCESS_COUNT_PREFIX))) { in verifyDefaultMetrics()
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/
DBatterystatsCollectorHostTest.java94 public void processMetricFile(String key, File metricFile, DeviceMetricData runData) { in testBatteryStatsListener_perRun()
97 runData.addMetric(key, Metric.newBuilder().setMeasurements( in testBatteryStatsListener_perRun()
112 public void processMetricDirectory(String key, File metricDirectory, in testBatteryStatsListener_perRun()
145 public void processMetricFile(String key, File metricFile, DeviceMetricData runData) { in testBatteryStatsListener_perTest()
159 public void processMetricDirectory(String key, File metricDirectory, in testBatteryStatsListener_perTest()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java47 resultMap.compute(metricKey, (key, value) -> (value == null) ? in addMetric()
62 (key, value) -> in addMetric()
75 resultMap.compute(metricKey, (key, value) -> (value == null) ? 1 : value + 1); in addMetric()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DLongevitySuite.java74 for (String key : bundle.keySet()) { in toMap()
75 if (!bundle.containsKey(key)) { in toMap()
76 Log.w(LOG_TAG, String.format("Couldn't find value for option: %s", key)); in toMap()
79 result.put(key, bundle.getString(key)); in toMap()

123