/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/ |
D | TestPropertyMapper.java | 56 return map(name, attributeId); in mapBoolean() 61 return map(name, attributeId); in mapByte() 66 return map(name, attributeId); in mapChar() 71 return map(name, attributeId); in mapDouble() 76 return map(name, attributeId); in mapFloat() 80 public int mapInt(String name, int attributeId) { return map(name, attributeId); } in mapInt() 84 return map(name, attributeId); in mapLong() 89 return map(name, attributeId); in mapShort() 94 return map(name, attributeId); in mapObject() 99 return map(name, attributeId, ValueType.COLOR); in mapColor() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewFontWeightTest.java | 75 final HashMap<Character, FontStyle> map = new HashMap<>(); 76 map.put('a', new FontStyle(100, false)); 77 map.put('b', new FontStyle(100, true)); 78 map.put('c', new FontStyle(200, false)); 79 map.put('d', new FontStyle(200, true)); 80 map.put('e', new FontStyle(300, false)); 81 map.put('f', new FontStyle(300, true)); 82 map.put('g', new FontStyle(400, false)); 83 map.put('h', new FontStyle(400, true)); 84 map.put('i', new FontStyle(500, false)); [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 …]
|
/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/hostsidetests/angle/src/android/angle/cts/ |
D | CtsAngleCommon.java | 66 Map<OpenGlDriverChoice, String> map = new HashMap<>(); in buildDriverGlobalSettingMap() local 67 map.put(OpenGlDriverChoice.DEFAULT, "default"); in buildDriverGlobalSettingMap() 68 map.put(OpenGlDriverChoice.ANGLE, "angle"); in buildDriverGlobalSettingMap() 69 map.put(OpenGlDriverChoice.NATIVE, "native"); in buildDriverGlobalSettingMap() 71 return map; in buildDriverGlobalSettingMap() 76 Map<OpenGlDriverChoice, String> map = new HashMap<>(); in buildDriverTestMethodMap() local 77 map.put(OpenGlDriverChoice.DEFAULT, ANGLE_DRIVER_TEST_DEFAULT_METHOD); in buildDriverTestMethodMap() 78 map.put(OpenGlDriverChoice.ANGLE, ANGLE_DRIVER_TEST_ANGLE_METHOD); in buildDriverTestMethodMap() 79 map.put(OpenGlDriverChoice.NATIVE, ANGLE_DRIVER_TEST_NATIVE_METHOD); in buildDriverTestMethodMap() 81 return map; in buildDriverTestMethodMap()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | BroadcastReceiverTest.java | 193 Bundle map = new Bundle(); in testManifestReceiverPackage() local 194 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverPackage() 196 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testManifestReceiverPackage() 202 null, RESULT_INITIAL_CODE, RESULT_INITIAL_DATA, map); in testManifestReceiverPackage() 221 Bundle map = new Bundle(); in testManifestReceiverComponent() local 222 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverComponent() 224 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testManifestReceiverComponent() 231 null, RESULT_INITIAL_CODE, RESULT_INITIAL_DATA, map); in testManifestReceiverComponent() 250 Bundle map = new Bundle(); in testManifestReceiverPermission() local 251 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverPermission() [all …]
|
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 | 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 | 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 | ContentValuesTest.java | 72 Set<Map.Entry<String, Object>> map; in testValueSet() local 73 assertNotNull(map = mContentValues.valueSet()); in testValueSet() 74 assertTrue(map.isEmpty()); in testValueSet() 79 assertNotNull(map = mContentValues.valueSet()); in testValueSet() 80 assertFalse(map.isEmpty()); in testValueSet() 81 assertEquals(2, map.size()); in testValueSet()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | DebugTest.java | 298 Map<String, String> map = Debug.getRuntimeStats(); in testGetRuntimeStats() local 299 String gc_count = map.get("art.gc.gc-count"); in testGetRuntimeStats() 300 String gc_time = map.get("art.gc.gc-time"); in testGetRuntimeStats() 301 String bytes_allocated = map.get("art.gc.bytes-allocated"); in testGetRuntimeStats() 302 String bytes_freed = map.get("art.gc.bytes-freed"); in testGetRuntimeStats() 303 String blocking_gc_count = map.get("art.gc.blocking-gc-count"); in testGetRuntimeStats() 304 String blocking_gc_time = map.get("art.gc.blocking-gc-time"); in testGetRuntimeStats() 305 String gc_count_rate_histogram = map.get("art.gc.gc-count-rate-histogram"); in testGetRuntimeStats() 307 map.get("art.gc.blocking-gc-count-rate-histogram"); in testGetRuntimeStats() 346 Map<String, String> map = memoryInfo.getMemoryStats(); in testGetMemoryStats() local [all …]
|
D | ParcelTest.java | 285 HashMap map = new HashMap(); in testReadValue() local 287 map.put("string", "String"); in testReadValue() 288 map.put("int", Integer.MAX_VALUE); in testReadValue() 289 map.put("boolean", true); in testReadValue() 291 p.writeValue(map); in testReadValue() 295 assertEquals(map.size(), map2.size()); in testReadValue() 296 assertEquals("String", map.get("string")); in testReadValue() 297 assertEquals(Integer.MAX_VALUE, map.get("int")); in testReadValue() 298 assertEquals(true, map.get("boolean")); in testReadValue() 2879 HashMap map = new HashMap(); [all …]
|
/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/tools/release-parser/proto/ |
D | release.proto | 159 // map of Package Name & Package Message 160 map<string, ApiPackage> packages = 3; 186 map<string, string> properties = 13; 278 map<string, string> key_value_store = 19; 315 map<string, Entry> entries = 1; 371 map<string, PermissionList> device_permissions = 18; 372 // property map(key,value) 373 map<string, string> properties = 19; 398 // property map(key,value) 399 map<string, string> properties = 9; [all …]
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | SeccompDeviceTest.java | 96 JSONObject map = mAllowedSyscallMap.getJSONObject(getCurrentArch()); in testCTSSyscallAllowed() local 97 Iterator<String> iter = map.keys(); in testCTSSyscallAllowed() 100 testAllowed(map.getInt(syscallName)); in testCTSSyscallAllowed() 106 JSONObject map = mBlockedSyscallMap.getJSONObject(getCurrentArch()); in testCTSSyscallBlocked() local 107 Iterator<String> iter = map.keys(); in testCTSSyscallBlocked() 110 testBlocked(map.getInt(syscallName)); in testCTSSyscallBlocked()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | LocaleDeviceInfo.java | 52 .map((uLocale -> uLocale.toLanguageTag())) in collectDeviceInfo() 76 .map((dir) -> new File(dir)) in collectLocaleDataFilesInfo() 78 .map((f) -> f.listFiles()) in collectLocaleDataFilesInfo() 80 .map((files) -> Arrays.asList(files)) in collectLocaleDataFilesInfo() 106 MappedByteBuffer mappedByteBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, in sha256()
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | JUnitTestCollector.java | 42 public final LinkedHashMap<String, List<String>> map = field in JUnitTestCollector 71 List<String> li = map.get(fqcn); in JUnitTestCollector() 75 map.put(fqcn, li); in JUnitTestCollector()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | ParsedAttestationRecord.java | 114 return Optional.ofNullable(entry).map(ParsedAttestationRecord::getIntegerFromAsn1); in getSoftwareAuthorizationInteger() 119 return Optional.ofNullable(entry).map(ParsedAttestationRecord::getIntegerFromAsn1); in getTeeAuthorizationInteger() 133 return Optional.ofNullable(entry).map(ASN1OctetString::getOctets); in getSoftwareAuthorizationByteString() 138 return Optional.ofNullable(entry).map(ASN1OctetString::getOctets); in getTeeAuthorizationByteString()
|
/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;
|
/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/tests/graphics/src/android/graphics/fonts/ |
D | FontTestUtil.java | 203 HashMap<Pair<Integer, Boolean>, String> map = new HashMap<>(); 209 map.put(sStyleList.get(i), sFontList[i]); in sStyleList.get() 214 sFontMap = Collections.unmodifiableMap(map);
|
/cts/tests/signature/api-check/src/java/android/signature/cts/api/ |
D | BootClassPathClassesProvider.java | 42 .map(descriptor -> { in getAllClasses() 47 .map(classname -> { in getAllClasses()
|
/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()
|
/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;
|