/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewFontWeightTest.java | 74 final HashMap<Character, FontStyle> map = new HashMap<>(); 75 map.put('a', new FontStyle(100, false)); 76 map.put('b', new FontStyle(100, true)); 77 map.put('c', new FontStyle(200, false)); 78 map.put('d', new FontStyle(200, true)); 79 map.put('e', new FontStyle(300, false)); 80 map.put('f', new FontStyle(300, true)); 81 map.put('g', new FontStyle(400, false)); 82 map.put('h', new FontStyle(400, true)); 83 map.put('i', new FontStyle(500, false)); [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | MockReceiver.java | 40 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()
|
D | BroadcastReceiverTest.java | 191 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 …]
|
D | MockReceiverFirst.java | 36 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()
|
D | MockReceiverAbort.java | 36 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()
|
D | ContentValuesTest.java | 58 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/suite/audio_quality/lib/src/task/ |
D | TaskCase.cpp | 68 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/ |
D | ArrayMapTest.java | 165 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 …]
|
D | MathUtilsTest.java | 35 int result = (int) MathUtils.map(0, 1, 0, 100, 0.5f); in testMap()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | DebugTest.java | 286 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 …]
|
D | SharedMemoryService.java | 42 mMappedBuffer = mSharedMemory.map(prot, 0, mSharedMemory.getSize()); in setup()
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | SeccompDeviceTest.java | 64 JSONObject map = mAllowedSyscallMap.getJSONObject(getCurrentArch()); in testCTSSyscallAllowed() local 65 Iterator<String> iter = map.keys(); in testCTSSyscallAllowed() 68 testAllowed(map.getInt(syscallName)); in testCTSSyscallAllowed() 74 JSONObject map = mBlockedSyscallMap.getJSONObject(getCurrentArch()); in testCTSSyscallBlocked() local 75 Iterator<String> iter = map.keys(); in testCTSSyscallBlocked() 78 testBlocked(map.getInt(syscallName)); in testCTSSyscallBlocked()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MockFontProvider.java | 119 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/tools/utils/cts/ |
D | tools.py | 121 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/ |
D | TaskCase.h | 132 std::map<android::String8, android::sp<Buffer> > mBufferList; 133 std::map<android::String8, int> mIndexList; 134 std::map<android::String8, Value> mValueList;
|
D | TaskGeneric.h | 113 std::map<android::String8, android::String8> mStringAttributes;
|
/cts/hostsidetests/api/src/com/android/cts/api/ |
D | DefinedClass.java | 60 .map(DefinedMethod::getSignature) in addNewMembers() 65 .map(DefinedField::getSignature) in addNewMembers()
|
D | UnofficialApisUsageTest.java | 94 .map(line -> JavaModule.newPackageFromLine(line)); in getPackages() 102 .map(line -> JavaModule.newLibraryFromLine(line)) in getLibraries() 169 .map(module -> filePuller.pullFromDevice(module.path, module.name)) in testNonApiReferences() 183 }).map(name -> new File(name)); in testNonApiReferences()
|
D | DexAnalyzer.java | 260 .map(DefinedClass::getMethods) in DexAnalyzer() 266 .map(DefinedClass::getFields) in DexAnalyzer() 344 .map(t -> new TypeRef((DexBackedTypeReference) t, file.pathInDevice)) in parseInner() 356 .map(m -> new MethodRef((DexBackedMethodReference) m, file.pathInDevice)) in parseInner() 366 .map(f -> new FieldRef((DexBackedFieldReference) f, file.pathInDevice)) in parseInner() 521 .map(n -> toCanonicalName(n)) in definedClassFrom() 526 .map(DexAnalyzer::definedMethodFrom).collect(Collectors.toList()); in definedClassFrom() 530 .map(DexAnalyzer::definedFieldFrom).collect(Collectors.toList()); in definedClassFrom()
|
D | ApprovedApis.java | 125 Collection<String> interfaces = def.interfaces().stream().map(ClassInfo::qualifiedName) in definedClassFrom() 134 def.allConstructors().stream().map(ApprovedApis::definedMethodFromConstructor), in definedClassFrom() 135 def.selfMethods().stream().map(ApprovedApis::definedMethodFromMethod)) in definedClassFrom() 139 .map(ApprovedApis::definedFieldFrom).collect(Collectors.toSet()); in definedClassFrom()
|
/cts/tests/signature/api-check/src/java/android/signature/cts/api/ |
D | BootClassPathClassesProvider.java | 42 .map(descriptor -> { in getAllClasses() 47 .map(classname -> { in getAllClasses()
|
D | AbstractApiTest.java | 138 return zip.stream().map(entry -> { in readFile() 156 .map(name -> new File(API_FILE_DIRECTORY + "/" + name))
|
/cts/suite/audio_quality/lib/include/audio/ |
D | RemoteAudio.h | 149 std::map<int, android::sp<Buffer> > mBufferList; 150 std::map<android::String8, int> mIdMap;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsSerializer.java | 134 StreamConfigurationMap map) in serializeStreamConfigurationMap() argument 139 int fmts[] = map.getOutputFormats(); in serializeStreamConfigurationMap() 142 Size sizes[] = map.getOutputSizes(fmts[fi]); in serializeStreamConfigurationMap() 151 map.getOutputMinFrameDuration(fmts[fi],sizes[si])); in serializeStreamConfigurationMap() 155 sizes = map.getHighResolutionOutputSizes(fmts[fi]); in serializeStreamConfigurationMap() 164 map.getOutputMinFrameDuration(fmts[fi],sizes[si])); in serializeStreamConfigurationMap() 264 private static Object serializeLensShadingMap(LensShadingMap map) in serializeLensShadingMap() argument 268 for (int row = 0; row < map.getRowCount(); row++) { in serializeLensShadingMap() 269 for (int col = 0; col < map.getColumnCount(); col++) { in serializeLensShadingMap() 271 mapArr.put(map.getGainFactor(ch, col, row)); in serializeLensShadingMap() [all …]
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraMetadataGetter.java | 303 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()
|