Home
last modified time | relevance | path

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

123

/cts/suite/audio_quality/lib/src/task/
DTaskCase.cpp68 typename std::map<android::String8, T>& map, in registerGeneric() argument
71 typename std::map<android::String8, T>::iterator it; in registerGeneric()
72 it = map.find(name); in registerGeneric()
73 if (it != map.end()) { in registerGeneric()
78 map[name] = data; in registerGeneric()
82 template <typename T> bool findGeneric(typename std::map<android::String8, T>& map, in findGeneric() argument
86 typename std::map<android::String8, T>::iterator it; in findGeneric()
87 it = map.find(name); in findGeneric()
88 if (it == map.end()) { in findGeneric()
95 template <typename T> bool updateGeneric(typename std::map<android::String8, T>& map, in updateGeneric() argument
[all …]
/cts/tests/tests/util/src/android/util/cts/
DArrayMapTest.java165 private static void compareMaps(HashMap map, ArrayMap array) { in compareMaps() argument
166 if (map.size() != array.size()) { in compareMaps()
167 fail("Bad size: expected " + map.size() + ", got " + array.size()); in compareMaps()
170 Set<Map.Entry> mapSet = map.entrySet(); in compareMaps()
183 Object expValue = map.get(key); in compareMaps()
190 if (map.entrySet().hashCode() != array.entrySet().hashCode()) { in compareMaps()
192 + Integer.toHexString(map.entrySet().hashCode()) + " array=0x" in compareMaps()
196 if (!map.entrySet().equals(array.entrySet())) { in compareMaps()
200 if (!array.entrySet().equals(map.entrySet())) { in compareMaps()
204 if (map.keySet().hashCode() != array.keySet().hashCode()) { in compareMaps()
[all …]
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DTestRunHandler.java49 Map<String, Integer> map = stringToMap(mapString); in getTestRuns() local
50 Integer testRuns = map.get(id); in getTestRuns()
81 private static String mapToString(Map<String, Integer> map) { in mapToString() argument
83 for (Map.Entry<String, Integer> entry : map.entrySet()) { in mapToString()
90 Map<String, Integer> map = new HashMap<>(); in stringToMap() local
93 map.put(parts[0], Integer.parseInt(parts[1])); in stringToMap()
95 return map; in stringToMap()
/cts/tests/tests/os/src/android/os/cts/
DDebugTest.java286 Map<String, String> map = Debug.getRuntimeStats(); in testGetRuntimeStats() local
287 String gc_count = map.get("art.gc.gc-count"); in testGetRuntimeStats()
288 String gc_time = map.get("art.gc.gc-time"); in testGetRuntimeStats()
289 String bytes_allocated = map.get("art.gc.bytes-allocated"); in testGetRuntimeStats()
290 String bytes_freed = map.get("art.gc.bytes-freed"); in testGetRuntimeStats()
291 String blocking_gc_count = map.get("art.gc.blocking-gc-count"); in testGetRuntimeStats()
292 String blocking_gc_time = map.get("art.gc.blocking-gc-time"); in testGetRuntimeStats()
293 String gc_count_rate_histogram = map.get("art.gc.gc-count-rate-histogram"); in testGetRuntimeStats()
295 map.get("art.gc.blocking-gc-count-rate-histogram"); in testGetRuntimeStats()
334 Map<String, String> map = memoryInfo.getMemoryStats(); in testGetMemoryStats() local
[all …]
DParcelTest.java271 HashMap map = new HashMap(); in testReadValue() local
273 map.put("string", "String"); in testReadValue()
274 map.put("int", Integer.MAX_VALUE); in testReadValue()
275 map.put("boolean", true); in testReadValue()
277 p.writeValue(map); in testReadValue()
281 assertEquals(map.size(), map2.size()); in testReadValue()
282 assertEquals("String", map.get("string")); in testReadValue()
283 assertEquals(Integer.MAX_VALUE, map.get("int")); in testReadValue()
284 assertEquals(true, map.get("boolean")); in testReadValue()
2865 HashMap map = new HashMap();
[all …]
/cts/tests/tests/content/src/android/content/cts/
DBroadcastReceiverTest.java191 Bundle map = new Bundle(); in testManifestReceiverPackage() local
192 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverPackage()
194 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testManifestReceiverPackage()
200 null, RESULT_INITIAL_CODE, RESULT_INITIAL_DATA, map); in testManifestReceiverPackage()
218 Bundle map = new Bundle(); in testManifestReceiverComponent() local
219 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverComponent()
221 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testManifestReceiverComponent()
228 null, RESULT_INITIAL_CODE, RESULT_INITIAL_DATA, map); in testManifestReceiverComponent()
246 Bundle map = new Bundle(); in testManifestReceiverPermission() local
247 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverPermission()
[all …]
DMockReceiver.java40 Bundle map = getResultExtras(false); in onReceive() local
41 map.remove(RESULT_EXTRAS_REMOVE_KEY); in onReceive()
42 map.putString(RESULT_EXTRAS_ADD_KEY, RESULT_EXTRAS_ADD_VALUE); in onReceive()
43 setResult(RESULT_CODE, RESULT_DATA, map); in onReceive()
DMockReceiverFirst.java36 Bundle map = getResultExtras(false); in onReceive() local
37 map.putString(RESULT_EXTRAS_FIRST_KEY, RESULT_EXTRAS_FIRST_VALUE); in onReceive()
38 setResult(RESULT_CODE, RESULT_DATA, map); in onReceive()
DMockReceiverAbort.java36 Bundle map = getResultExtras(false); in onReceive() local
37 map.putString(RESULT_EXTRAS_ABORT_KEY, RESULT_EXTRAS_ABORT_VALUE); in onReceive()
38 setResult(RESULT_CODE, RESULT_DATA, map); in onReceive()
DContentValuesTest.java58 Set<Map.Entry<String, Object>> map; in testValueSet() local
59 assertNotNull(map = mContentValues.valueSet()); in testValueSet()
60 assertTrue(map.isEmpty()); in testValueSet()
65 assertNotNull(map = mContentValues.valueSet()); in testValueSet()
66 assertFalse(map.isEmpty()); in testValueSet()
67 assertEquals(2, map.size()); in testValueSet()
/cts/tests/tests/provider/src/android/provider/cts/
DMockFontProvider.java119 HashMap<String, Font[]> map = new HashMap<>();
122 map.put(SINGLE_FONT_FAMILY_QUERY, new Font[] { in map.put()
126 map.put(MULTIPLE_FAMILY_QUERY, new Font[] { in map.put()
133 map.put(ALL_ATTRIBUTE_VALUES_QUERY, new Font[] { in map.put()
140 map.put(NOT_FOUND_QUERY, new Font[] { in map.put()
144 map.put(UNAVAILABLE_QUERY, new Font[] { in map.put()
148 map.put(MALFORMED_QUERY, new Font[] { in map.put()
152 map.put(NOT_FOUND_SECOND_QUERY, new Font[] { in map.put()
158 map.put(NOT_FOUND_THIRD_QUERY, new Font[] { in map.put()
166 map.put(NEGATIVE_ERROR_CODE_QUERY, new Font[] { in map.put()
[all …]
/cts/common/util/src/com/android/compatibility/common/util/
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()
/cts/tools/utils/cts/
Dtools.py121 self.map = None
171 if not self.map:
176 self.map[package] = False
184 if not self.map:
185 self.map = {}
187 self.map[package] = False
191 self.map[package] = True
206 if self.map[package]:
/cts/suite/audio_quality/lib/include/task/
DTaskCase.h132 std::map<android::String8, android::sp<Buffer> > mBufferList;
133 std::map<android::String8, int> mIndexList;
134 std::map<android::String8, Value> mValueList;
DTaskGeneric.h113 std::map<android::String8, android::String8> mStringAttributes;
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/suite/
DModuleRepoSuite.java286 Map<String, List<String>> map = argsMap.get(target); in putArgs() local
287 if (map == null) { in putArgs()
288 map = new HashMap<>(); in putArgs()
289 argsMap.put(target, map); in putArgs()
291 List<String> valueList = map.get(key); in putArgs()
294 map.put(key, valueList); in putArgs()
/cts/hostsidetests/incident/src/com/android/server/cts/
DSettingsIncidentTest.java77 .map((method) -> (SettingProto) invoke(method, settingsProto)) in getSettingProtos()
93 .map((arg) -> toPrimitive(arg.getClass())) in invoke()
/cts/suite/audio_quality/lib/include/audio/
DRemoteAudio.h149 std::map<int, android::sp<Buffer> > mBufferList;
150 std::map<android::String8, int> mIdMap;
/cts/hostsidetests/security/securityPatch/CVE-2017-0586/
Dpoc.c77 void *map; in main() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java133 StreamConfigurationMap map) in serializeStreamConfigurationMap() argument
138 int fmts[] = map.getOutputFormats(); in serializeStreamConfigurationMap()
141 Size sizes[] = map.getOutputSizes(fmts[fi]); in serializeStreamConfigurationMap()
150 map.getOutputMinFrameDuration(fmts[fi],sizes[si])); in serializeStreamConfigurationMap()
154 sizes = map.getHighResolutionOutputSizes(fmts[fi]); in serializeStreamConfigurationMap()
163 map.getOutputMinFrameDuration(fmts[fi],sizes[si])); in serializeStreamConfigurationMap()
263 private static Object serializeLensShadingMap(LensShadingMap map) in serializeLensShadingMap() argument
266 for (int row = 0; row < map.getRowCount(); row++) { in serializeLensShadingMap()
267 for (int col = 0; col < map.getColumnCount(); col++) { in serializeLensShadingMap()
269 mapObj.put(map.getGainFactor(ch, col, row)); in serializeLensShadingMap()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java303 StreamConfigurationMap map) in serializeStreamConfigurationMap() argument
308 int fmts[] = map.getOutputFormats(); in serializeStreamConfigurationMap()
311 Size sizes[] = map.getOutputSizes(fmts[fi]); in serializeStreamConfigurationMap()
320 map.getOutputMinFrameDuration(fmts[fi], sizes[si])); in serializeStreamConfigurationMap()
421 private static Object serializeLensShadingMap(LensShadingMap map) in serializeLensShadingMap() argument
424 for (int row = 0; row < map.getRowCount(); row++) { in serializeLensShadingMap()
425 for (int col = 0; col < map.getColumnCount(); col++) { in serializeLensShadingMap()
427 mapObj.put(map.getGainFactor(ch, col, row)); in serializeLensShadingMap()
/cts/tests/libcore/javautilcollections/libs/
Dguava-testlib-20.0.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DModuleRepo.java617 Map<String, List<String>> map = argsMap.get(target); in putArgs() local
618 if (map == null) { in putArgs()
619 map = new HashMap<>(); in putArgs()
620 argsMap.put(target, map); in putArgs()
622 List<String> valueList = map.get(name); in putArgs()
625 map.put(name, valueList); in putArgs()
/cts/suite/audio_quality/test_description/processing/
Dcalc_delay.py55 result = pool.map(convolutionstar, TASK)
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDisplayModifier.java479 for (LinkedHashMap<String, DisplayModifier> map : mDisplayMap.values()) { in getMapAtIndex()
481 return map; in getMapAtIndex()
497 LinkedHashMap<String, DisplayModifier> map = getMapAtIndex(modifierMapIndex); in step() local
501 if (mIndices[modifierMapIndex] < map.size()) { in step()

123