Home
last modified time | relevance | path

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

12

/cts/tests/tests/content/src/android/content/cts/
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()
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()
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()
DBroadcastReceiverTest.java178 Bundle map = new Bundle(); in testOnReceiverOrdered() local
179 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testOnReceiverOrdered()
181 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testOnReceiverOrdered()
185 null, RESULT_INITIAL_CODE, RESULT_INITIAL_DATA, map); in testOnReceiverOrdered()
206 Bundle map = new Bundle(); in testAbortBroadcast() local
207 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testAbortBroadcast()
209 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testAbortBroadcast()
216 null, RESULT_INITIAL_CODE, RESULT_INITIAL_DATA, map); in testAbortBroadcast()
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()
DContextWrapperTest.java827 Bundle map = getResultExtras(false); in onReceive() local
828 if (map != null) { in onReceive()
829 map.remove(KEY_REMOVED); in onReceive()
830 map.putString(KEY_ADDED, VALUE_ADDED); in onReceive()
/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 …]
DTaskGeneric.cpp137 std::map<android::String8, android::String8>::const_iterator it = mStringAttributes.find(key); in findStringAttribute()
/cts/tests/tests/os/src/android/os/cts/
DDebugTest.java284 Map<String, String> map = Debug.getRuntimeStats(); in testGetRuntimeStats() local
285 String gc_count = map.get("art.gc.gc-count"); in testGetRuntimeStats()
286 String gc_time = map.get("art.gc.gc-time"); in testGetRuntimeStats()
287 String bytes_allocated = map.get("art.gc.bytes-allocated"); in testGetRuntimeStats()
288 String bytes_freed = map.get("art.gc.bytes-freed"); in testGetRuntimeStats()
289 String blocking_gc_count = map.get("art.gc.blocking-gc-count"); in testGetRuntimeStats()
290 String blocking_gc_time = map.get("art.gc.blocking-gc-time"); in testGetRuntimeStats()
291 String gc_count_rate_histogram = map.get("art.gc.gc-count-rate-histogram"); in testGetRuntimeStats()
293 map.get("art.gc.blocking-gc-count-rate-histogram"); in testGetRuntimeStats()
332 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/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/tests/tests/util/src/android/util/cts/
DArrayMapTest.java148 private static void compareMaps(HashMap map, ArrayMap array) { in compareMaps() argument
149 if (map.size() != array.size()) { in compareMaps()
150 fail("Bad size: expected " + map.size() + ", got " + array.size()); in compareMaps()
153 Set<Map.Entry> mapSet = map.entrySet(); in compareMaps()
166 Object expValue = map.get(key); in compareMaps()
173 if (map.entrySet().hashCode() != array.entrySet().hashCode()) { in compareMaps()
175 + Integer.toHexString(map.entrySet().hashCode()) + " array=0x" in compareMaps()
179 if (!map.entrySet().equals(array.entrySet())) { in compareMaps()
183 if (!array.entrySet().equals(map.entrySet())) { in compareMaps()
187 if (map.keySet().hashCode() != array.keySet().hashCode()) { in compareMaps()
[all …]
/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/tools/signature-tools/test/signature/converter/
DConvertEnumTest.java133 Map<String, IMethod> map = new HashMap<String, IMethod>(); in testEnum3() local
135 map.put(m.getName(), m); in testEnum3()
138 IMethod values = map.get("values"); in testEnum3()
147 IMethod valueOf = map.get("valueOf"); in testEnum3()
176 Map<String, IMethod> map = new HashMap<String, IMethod>(); in testEnum4() local
178 map.put(m.getName(), m); in testEnum4()
181 IMethod values = map.get("values"); in testEnum4()
/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/suite/audio_quality/lib/include/audio/
DRemoteAudio.h149 std::map<int, android::sp<Buffer> > mBufferList;
150 std::map<android::String8, int> mIdMap;
/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/tests/hardware/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/suite/audio_quality/test_description/processing/
Dcalc_delay.py55 result = pool.map(convolutionstar, TASK)
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDisplayModifier.java461 for (LinkedHashMap<String, DisplayModifier> map : mDisplayMap.values()) { in getMapAtIndex()
463 return map; in getMapAtIndex()
479 LinkedHashMap<String, DisplayModifier> map = getMapAtIndex(modifierMapIndex); in step() local
483 if (mIndices[modifierMapIndex] < map.size()) { in step()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
DRawConverter.java531 map(interpXYZToCameraInverse, cameraNeutral, /*out*/neutralGuess); in findDngInterpolationFactor()
609 map(inverseInterpolatedCC, cameraNeutral, /*out*/referenceNeutral); in calculateCameraToXYZD50Transform()
635 private static void map(float[] matrix, float[] input, /*out*/float[] output) { in map() method in RawConverter
771 map(colorMatrix, D50_XYZ, /*out*/tmp); in normalizeCM()
787 map(forwardMatrix, tmp, /*out*/xyz); in normalizeFM()
/cts/libs/vogar-expect/src/vogar/
DExpectationStore.java209 Map<String, Expectation> map = isFailure ? failures : outcomes; in readExpectation() local
211 if (map.put(name, expectation) != null) { in readExpectation()
/cts/suite/cts/deviceTests/opengl/assets/fragment/
Dwater24 // Get normal from bump map.
/cts/tools/vm-tests-tf/src/util/build/
DBuildDalvikSuite.java90 private LinkedHashMap<String, List<String>> map = new LinkedHashMap<String, field in BuildDalvikSuite
185 List<String> li = map.get(fqcn);
189 map.put(fqcn, li);
294 for (Entry<String, List<String>> entry : map.entrySet()) {

12