Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 122) sorted by relevance

12345

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DBusinessLogicMapStore.java33 Map<String, String> map = maps.get(mapName); in putMap() local
34 if (map == null) { in putMap()
35 map = new HashMap<>(); in putMap()
36 maps.put(mapName, map); in putMap()
47 map.put(key, value); in putMap()
52 Map<String, String> map = maps.get(mapName); in getMap() local
53 if (map == null) { in getMap()
56 return Collections.unmodifiableMap(map); in getMap()
DKeyValueArgsParser.java31 final HashMap<String, String> map = new HashMap<String, String>(); in parse() local
40 map.put(key, s); in parse()
47 return map; in parse()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/
DResourceRepository.java185 Map<String, ResourceItem> map = mResourceMap.get(type); in getResourceItem() local
187 if (map == null) { in getResourceItem()
225 map = new HashMap<>(size, 1.0f); in getResourceItem()
227 map = new HashMap<>(); in getResourceItem()
229 mResourceMap.put(type, map); in getResourceItem()
232 map.put(item.getName(), item); in getResourceItem()
299 Map<ResourceType, ResourceValueMap> map = in doGetConfiguredResources() local
304 map.put(key, getConfiguredResource(key, referenceConfig)); in doGetConfiguredResources()
307 return map; in doGetConfiguredResources()
328 Map<String, ResourceItem> map = mResourceMap.get(type); in removeFile() local
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/layers/
DLayerTraceEntrySubject.kt71 val subjects by lazy { entry.flattenedLayers.map { LayerSubject(reader, timestamp, it) } } in <lambda>()
130 val visibleAreas = visibleLayers.map { Region(it.layer.screenBounds.toRect()) } in <lambda>()
151 val layers = subjects.map { it.layer } in <lambda>()
162 .setActual(foundElements.map { Fact("Found", it) }) in <lambda>()
170 val layers = subjects.map { it.layer } in <lambda>()
178 .map { Fact(it.name, it.visibilityReason.joinToString()) } in <lambda>()
193 val layers = subjects.map { it.layer } in <lambda>()
209 .map { Fact("Is visible", it.name) } in <lambda>()
245 .map { Fact(it.name, it.visibilityReason.joinToString()) } in <lambda>()
257 val targets = componentMatcher.filterLayers(subjects.map { it.layer }) in <lambda>()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/
DTraceParserTest.kt94 mockTraceForSliceTests.entries.map { it.timestamp } in canSliceFromBeforeToAfterLastEntry()
103 mockTraceForSliceTests.entries.map { it.timestamp } in canSliceFromExactStartToAfterLastEntry()
112 mockTraceForSliceTests.entries.map { it.timestamp } in canSliceFromExactStartToExactEnd()
139 mockTraceForSliceTests.entries.map { it.timestamp } in canSliceFromBeforeToExactEnd()
150 return testSliceUsingElapsedTimestamp(from, to, expected.map { it.elapsedNanos }) in testSliceUsingElapsedTimestamp()
159 return testSliceUsingElapsedTimestamp(from, to, expected.map { it.elapsedNanos }) in testSliceUsingElapsedTimestamp()
167 return testSliceUsingElapsedTimestamp(from, to, expected.map { it.elapsedNanos }) in testSliceUsingElapsedTimestamp()
188 expected.map { it.elapsedNanos } in testSliceUsingElapsedTimestamp()
211 mockTraceForSliceTests.entries.map { it.timestamp.elapsedNanos }.contains(from) in testSliceUsingElapsedTimestamp()
218 mockTraceForSliceTests.entries.map { it.timestamp.elapsedNanos }.contains(to) in testSliceUsingElapsedTimestamp()
[all …]
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/setup/
DLayoutPullParser.java93 Map<String, String> map = null; in getViewCookie() local
102 if (map == null) { in getViewCookie()
103 map = new HashMap<>(4); in getViewCookie()
105 map.put(attribute, getAttributeValue(i)); in getViewCookie()
109 return map; in getViewCookie()
DConfigGenerator.java203 Map<String, String> map = Maps.newHashMap(); in loadProperties() local
207 map.put(key, p.getProperty(key)); in loadProperties()
212 return map; in loadProperties()
216 Map<String, Map<String, Integer>> map = Maps.newHashMap(); in getEnumMap() local
233 Map<String, Integer> attributeMap = map.get(attr); in getEnumMap()
236 map.put(attr, attributeMap); in getEnumMap()
252 return map; in getEnumMap()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/splitscreen/
DComponents.kt103 val layerIds = associatedTransition.changes.map { it.layerId } in <lambda>()
105 associatedTransition.changes.map { change -> in <lambda>()
109 val appIds = layers.filter { layerIds.contains(it.parent?.parent?.id) }.map { it.id } in <lambda>()
114 .map { FullComponentIdMatcher(it.windowId, it.layerId) } in <lambda>()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DDataRecord.java91 Map<String, String> map = getStringMetrics(); in createBundleFromMetrics() local
93 for (String key : map.keySet()) { in createBundleFromMetrics()
94 b.putString(key, map.get(key)); in createBundleFromMetrics()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/
DScenarioAssertionImpl.kt42 val assertionExceptions = assertionData.map { assertionRunner.runAssertion(it) } in <lambda>()
79 result.assumptionViolations.map { it.message } in <lambda>()
85 "${result.name} FAILED :: " + result.assertionErrors.map { it.message } in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/
DLegacyFlickerTestFactory.kt43 supportedRotations.map { rotation -> in <lambda>()
63 .flatMap { start -> supportedRotations.map { end -> start to end } } in <lambda>()
65 .map { (start, end) -> createFlickerTest(navBarMode, start, end, extraArgs) } in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/truth/
DTimeSeriesSubject.kt49 add(fact("| expected", expected.frameIds.map { it.label })) in <lambda>()
50 add(fact("| but got", actual.frameIds.map { it.label })) in <lambda>()
58 add(fact("| unexpected (${ unexpected.size})", unexpected.map { it.label })) in <lambda>()
63 add(fact("| missing (${ missing.size})", missing.map { it.label })) in <lambda>()
66 framesToCompare.map { in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/
DScenarioInstanceTest.kt93 val results = assertions.map { it.execute() } in willReportFlickerAssertions()
94 Truth.assertThat(results.map { it.name }).contains("MY_CUSTOM_SCENARIO::myAssertionSingle") in willReportFlickerAssertions()
95 Truth.assertThat(results.map { it.name }) in willReportFlickerAssertions()
167 val results = assertions.map { it.execute() } in willReportMainBlockAssertions()
168 Truth.assertThat(results.map { it.name }).contains("MY_CUSTOM_SCENARIO::myAssertion1") in willReportMainBlockAssertions()
169 Truth.assertThat(results.map { it.name }).contains("MY_CUSTOM_SCENARIO::myAssertion2") in willReportMainBlockAssertions()
/platform_testing/libraries/sts-common-util/util/src/com/android/sts/common/util/
DStsLogic.java154 Map<String, String> map = BusinessLogicMapStore.getMap("security_bulletins"); in getMinTestSpl() local
155 if (map == null) { in getMinTestSpl()
160 String splString = map.get(Long.toString(cveBugId)); in getMinTestSpl()
181 Map<String, String> map = BusinessLogicMapStore.getMap("sts_modification_times"); in getMinModificationDate() local
182 if (map == null) { in getMinModificationDate()
187 String modificationMillisString = map.get(Long.toString(cveBugId)); in getMinModificationDate()
/platform_testing/libraries/motion/src/platform/test/motion/golden/
DJsonGoldenSerializer.kt59 JSONArray().apply { golden.frameIds.map(::frameIdToJson).forEach(this::put) } in toJson()
63 JSONArray().apply { golden.features.values.map(::featureToJson).forEach(this::put) } in toJson()
100 .map { it.type.typeName } in featureToJson()
113 JSONArray().apply { feature.dataPoints.map { it.asJson() }.forEach(this::put) } in featureToJson()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DMaterialYouColorsRuleTest.kt26 val expectedColors = resourceIds.map { colors.colors[it] }.toTypedArray() in testApplyMaterialYouColors()
27 val actualColors = resourceIds.map { resources.getColor(it) }.toTypedArray() in testApplyMaterialYouColors()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DEnsureDeviceSettingsRule.kt72 val message = setupErrors.map { it.description }.joinToString("\n") in throwSetupErrors()
73 val command = setupErrors.map { it.adbCommandToFixIt }.joinToString("; \\\n") in throwSetupErrors()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/foldable/
DUnfoldAnimationTestingUtils.kt59 .map { name -> in <lambda>()
68 return setA.map { it.name }.intersect(setB.map { it.name }.toSet()) in <lambda>()
/platform_testing/libraries/sts-common-util/device-side/src/com/android/sts/common/
DDumpsysUtils.java66 .map(arg -> String.format("%s %s", arg.getKey(), arg.getValue())) in getParsedDumpsys()
77 .map(e -> e.trim()) in getParsedDumpsys()
/platform_testing/libraries/flicker/utils/src/android/tools/parsers/events/
DEventLogParser.kt46 .map { log -> in <lambda>()
47 val (metaData, eventData) = log.split(":", limit = 2).map { it.trim() } in <lambda>()
105 val (metaData, _) = entry.split(":", limit = 2).map { it.trim() } in <lambda>()
/platform_testing/libraries/rdroidtest/src/
Dlib.rs93 $param_gen.into_iter().map(|(name, val)| {
106 $param_gen.into_iter().map(|(name, val)| {
/platform_testing/libraries/flicker/src/android/tools/flicker/
DFlickerServiceImpl.kt28 configEntry.extractor.extract(reader).map { traceSlice -> in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/events/
DEventLogSubject.kt56 val actual = focusChanges.map { Fact("Focus change", it) } in <lambda>()
74 val actual = _focusChanges.map { Fact("Focus change", it) } in <lambda>()
/platform_testing/host_runners/power/tests/src/com/android/power/
DPowerRunnerTests.java99 HashMap<String, String> map = new HashMap<>(); in setUp()
100 map.put("k1", "v1"); in setUp()
101 map.put("k2", "v2"); in setUp()
102 return map; in setUp()
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DMockWindowManagerTraceBuilder.kt37 val entries = entries.map { it.build() } in <lambda>()

12345