Home
last modified time | relevance | path

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

1234

/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DArgs.kt25 fun getChild(key: String): Args? = child?.get(key) in getChild()
27 fun getChildren(key: String): List<Args>? = children?.get(key) in getChild()
58 fun add(key: String, value: String, valueType: String) { in add()
59 val keyTokens = key.split(".") in add()
90 val (key, index) = keyAndIndex in addToChildrenMap() constant
94 if (children!![key] == null) { in addToChildrenMap()
95 children!![key] = ArrayList() in addToChildrenMap()
97 while (index >= children!![key]!!.size) { in addToChildrenMap()
98 children!![key]!!.add(Args()) in addToChildrenMap()
100 children!![key]!![index].add(keyTokens, currentToken + 1, value) in addToChildrenMap()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/
DFact.kt20 data class Fact(val key: String, val value: Any? = null) { constant in android.tools.flicker.assertions.Fact
21 internal val isEmpty = key.isEmpty()
25 return if (valueStr.isEmpty()) key else "$key: $valueStr" in toString()
29 internal val EMPTY = Fact(key = "")
/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()
/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()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DResultReaderWithLru.kt49 val key = CacheKey(reader.artifact.stableId, descriptor, reader.transitionTimeRange) in readWmTrace() constant
50 return wmTraceCache.logAndReadTrace(key) { reader.readWmTrace() } in readWmTrace()
57 val key = CacheKey(reader.artifact.stableId, descriptor, reader.transitionTimeRange) in readLayersTrace() constant
58 return layersTraceCache.logAndReadTrace(key) { reader.readLayersTrace() } in readLayersTrace()
65 val key = CacheKey(reader.artifact.stableId, descriptor, reader.transitionTimeRange) in readEventLogTrace() constant
66 return eventLogCache.logAndReadTrace(key) { reader.readEventLogTrace() } in readEventLogTrace()
76 key: CacheKey, in logAndReadTrace()
80 var value = this[key] in logAndReadTrace()
84 Log.d(FLICKER_IO_TAG, "Cache miss $key, $reader") in logAndReadTrace()
90 this.put(key, value) in logAndReadTrace()
[all …]
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/validators/
DValidateUiElement.java151 private String validateAndGetValue(String key, JsonObject jsonObject, boolean isOptional) { in validateAndGetValue() argument
152 JsonElement value = jsonObject.get(key); in validateAndGetValue()
164 key, jsonObject)); in validateAndGetValue()
169 private boolean validateAndGetBoolean(String key, JsonObject jsonObject, Boolean defaultValue) { in validateAndGetBoolean() argument
170 JsonElement value = jsonObject.get(key); in validateAndGetBoolean()
177 key, jsonObject)); in validateAndGetBoolean()
186 key, jsonObject)); in validateAndGetBoolean()
191 private int validateAndGetInteger(String key, JsonObject jsonObject, Integer defaultValue) { in validateAndGetInteger() argument
192 JsonElement value = jsonObject.get(key); in validateAndGetInteger()
199 key, jsonObject)); in validateAndGetInteger()
[all …]
DValidateMapEntries.java46 String key = entry.getKey().trim(); in deserialize() local
49 if (key == null || key.trim().isEmpty() || key.trim().equalsIgnoreCase("null")) { in deserialize()
63 key)); in deserialize()
67 deserializedMap.put(key, value); in deserialize()
DValidateSpectatioConfigForUnknownProperties.java57 public Object get(Object key) { in create()
58 if (!super.containsKey(key) || super.get(key) == null) { in create()
62 key)); in create()
64 return super.get(key); in create()
DValidateWorkflowTask.java155 private int validateAndGetIntValue(String key, JsonObject jsonObject) { in validateAndGetIntValue() argument
156 JsonElement value = jsonObject.get(key); in validateAndGetIntValue()
164 String key, JsonObject jsonObject, boolean isOptional) { in validateAndGetStringValue() argument
165 JsonElement value = jsonObject.get(key); in validateAndGetStringValue()
173 throwRuntimeException("Non-optional property", key, jsonObject, "Missing or Invalid"); in validateAndGetStringValue()
178 private void validateNotNull(String key, JsonObject jsonObject) { in validateNotNull() argument
179 JsonElement value = jsonObject.get(key); in validateNotNull()
181 throwRuntimeException("Non-optional property", key, jsonObject, "Missing or Invalid"); in validateNotNull()
190 .filter(key -> !mSupportedProperties.contains(key)) in validateProperties()
DValidateWorkflowTaskConfig.java68 private String validateAndGetTextValue(String key, JsonObject jsonObject) { in validateAndGetTextValue() argument
69 JsonElement value = jsonObject.get(key); in validateAndGetTextValue()
80 String key, JsonObject jsonObject, JsonDeserializationContext context) { in validateAndGetUiElementValue() argument
81 JsonElement value = jsonObject.get(key); in validateAndGetUiElementValue()
93 .filter(key -> !mSupportedProperties.contains(key)) in validateProperties()
DValidateScrollConfig.java147 private String validateAndGetValue(String key, JsonObject jsonObject, boolean isOptional) { in validateAndGetValue() argument
148 JsonElement value = jsonObject.get(key); in validateAndGetValue()
156 throwRuntimeException("Non-optional Property", key, jsonObject, "Missing or Invalid"); in validateAndGetValue()
161 private void validateNotNull(String key, JsonObject jsonObject) { in validateNotNull() argument
162 JsonElement value = jsonObject.get(key); in validateNotNull()
164 throwRuntimeException("Non-optional Property", key, jsonObject, "Missing or Invalid"); in validateNotNull()
181 .filter(key -> !mSupportedProperties.contains(key)) in validateProperties()
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DSystemUtil.java66 final ITestDevice device, final String namespace, final String key, String value)
68 String getSettingRes = device.getSetting(namespace, key);
71 device.setSetting(namespace, key, value);
73 String.format("Could not set %s:%s to %s", namespace, key, value),
74 device.getSetting(namespace, key),
81 String cmd = String.format("settings delete %s %s", namespace, key);
85 device.setSetting(namespace, key, oldValue);
87 String.format("could not reset '%s' back to '%s'", key, oldValue);
88 assumeThat(failMsg, device.getSetting(namespace, key), equalTo(oldValue));
/platform_testing/libraries/sts-common-util/device-side/src/com/android/sts/common/
DSystemUtil.java52 final String key, in withSetting() argument
55 String getSettingRes = userSettings.get(key); in withSetting()
57 userSettings.set(key, value); in withSetting()
59 String getSettingCurrent = userSettings.get(key); in withSetting()
62 String.format("Could not set %s:%s to %s", namespace, key, value), in withSetting()
70 userSettings.delete(key); in withSetting()
73 userSettings.set(key, oldValue); in withSetting() argument
75 String.format("could not reset '%s' back to '%s'", key, oldValue); in withSetting()
76 String getSettingCurrent = userSettings.get(key); in withSetting()
/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/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DUiInteractionFrameInfoListener.java85 for (String key : bundle.keySet()) {
86 reduceMetrics(data, key, bundle.getString(key));
91 private void reduceMetrics(DataRecord data, String key, String value) {
92 if (data == null || key.isEmpty() || value.isEmpty()) return;
97 if (key.endsWith(UiInteractionFrameInfoHelper.SUFFIX_MAX_FRAME_MS)) {
103 data.addStringMetric(key, Double.toString(result));
/platform_testing/tests/automotive/health/boottime/src/android/boottime/postprocessor/
DDmesgPostProcessor.java78 .filter(key -> key.startsWith(BootTimeTest.getBootTimePropKey())) in processTestMetricsAndLogs()
81 for (String key : bootLoaderPropKeys) { in processTestMetricsAndLogs()
82 String value = testMetrics.get(key).getMeasurements().getSingleString(); in processTestMetricsAndLogs()
151 String key = null; in analyzeDmesgServiceInfo() local
153 key = String.format("%s%s%s", INIT, infoItem.getServiceName(), START_TIME); in analyzeDmesgServiceInfo()
155 key = String.format("%s%s%s", INIT, infoItem.getServiceName(), DURATION); in analyzeDmesgServiceInfo()
157 key = String.format("%s%s%s", INIT, infoItem.getServiceName(), END_TIME); in analyzeDmesgServiceInfo()
159 if (key != null) { in analyzeDmesgServiceInfo()
161 metrics.put(key, value); in analyzeDmesgServiceInfo()
179 String key = in analyzeDmesgStageInfo() local
[all …]
/platform_testing/tests/bettertogether/betocq/
Dbase_betocq_suite.py56 for key, value in properties.items():
58 if key.endswith('source_device'):
61 if key.endswith('target_device'):
64 if key.endswith('test_result'):
68 if key.endswith('detailed_stats'):
/platform_testing/libraries/motion/src/platform/test/motion/golden/
DTimeSeries.kt35 features.forEach { (key, feature) -> in <lambda>() method
36 require(key == feature.name) in <lambda>()
38 "Feature [$key] includes ${feature.dataPoints.size} data points, " + in <lambda>()
/platform_testing/libraries/power-helper/src/com/android/helper/
DPowerTestHelper.java77 protected String getPropertyString(String key) in getPropertyString() argument
79 String value = getProperty(key); in getPropertyString()
100 protected long getPropertyLong(String key) in getPropertyLong() argument
102 String value = getProperty(key); in getPropertyLong()
108 private String getProperty(String key) in getProperty() argument
116 value = prop.getProperty(key); in getProperty()
/platform_testing/libraries/flicker/utils/src/android/tools/
DScenario.kt21 val key: String constant
28 fun <T> getConfigValue(key: String): T? in getConfigValue()
DScenarioImpl.kt48 override val key = if (isEmpty) "empty" else "${testClass}_$description" constant
71 override fun <T> getConfigValue(key: String): T? = extraConfig[key] as T? in getConfigValue()
73 override fun toString(): String = key in getConfigValue()
/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()
/platform_testing/tests/automotive/mobly_tests/utilities/
Dcrystalball_metrics_utils.py38 f.writelines(['%s:%s\n' % (key, value) for key, value in data.items()])

1234