/cts/tests/security/src/android/keystore/cts/ |
D | CborUtils.java | 43 public static int getInt(Map map, long index) { in getInt() argument 44 DataItem item = map.get(CborUtils.toNumber(index)); in getInt() 48 public static int getInt(Map map, DataItem index) { in getInt() argument 49 DataItem item = map.get(index); in getInt() 53 public static long getLong(Map map, DataItem index) { in getLong() argument 54 DataItem item = map.get(index); in getLong() 58 public static Set<Integer> getIntSet(Map map, DataItem index) { in getIntSet() argument 59 Array array = (Array) map.get(index); in getIntSet() 67 public static Boolean getBoolean(Map map, DataItem index) { in getBoolean() argument 68 SimpleValueType value = ((SimpleValue) map.get(index)).getSimpleValueType(); in getBoolean() [all …]
|
/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/util/src/android/util/cts/ |
D | ArrayMapTest.java | 166 private static void compareMaps(HashMap map, ArrayMap array) { in compareMaps() argument 167 if (map.size() != array.size()) { in compareMaps() 168 fail("Bad size: expected " + map.size() + ", got " + array.size()); in compareMaps() 171 Set<Map.Entry> mapSet = map.entrySet(); in compareMaps() 184 Object expValue = map.get(key); in compareMaps() 191 if (map.entrySet().hashCode() != array.entrySet().hashCode()) { in compareMaps() 193 + Integer.toHexString(map.entrySet().hashCode()) + " array=0x" in compareMaps() 197 if (!map.entrySet().equals(array.entrySet())) { in compareMaps() 201 if (!array.entrySet().equals(map.entrySet())) { in compareMaps() 205 if (map.keySet().hashCode() != array.keySet().hashCode()) { in compareMaps() [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/appop/AppThatUsesAppOps/src/android/app/appops/cts/appthatusesappops/ |
D | AppOpsUserService.kt | 113 assertThat(asyncNoted.map { it.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode() 129 assertThat(asyncNoted.map { it.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode() 140 assertThat(noted.map { it.first.attributionTag to it.first.op }) in noteSyncOpFromNativeCode() 142 assertThat(noted[0].second.map { it.methodName }) in noteSyncOpFromNativeCode() 153 assertThat(noted.map { it.first.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode() 154 assertThat(noted[0].second.map { it.methodName }) in noteSyncOpFromNativeCode() 169 assertThat(noted.map { it.first.attributionTag }) in noteSyncOpFromNativeCode() 181 assertThat(noted.map { it.first.op }).containsExactly(OPSTR_FINE_LOCATION) in noteSyncOpFromNativeCode() 182 assertThat(noted[0].second.map { it.methodName }) in noteSyncOpFromNativeCode() 196 assertThat(asyncNoted.map { it.op }).containsExactly(OPSTR_COARSE_LOCATION) in noteSyncOpFromNativeCode() [all …]
|
/cts/hostsidetests/angle/src/android/angle/cts/ |
D | CtsAngleCommon.java | 68 Map<OpenGlDriverChoice, String> map = new HashMap<>(); in buildDriverGlobalSettingMap() local 69 map.put(OpenGlDriverChoice.DEFAULT, "default"); in buildDriverGlobalSettingMap() 70 map.put(OpenGlDriverChoice.ANGLE, "angle"); in buildDriverGlobalSettingMap() 71 map.put(OpenGlDriverChoice.NATIVE, "native"); in buildDriverGlobalSettingMap() 73 return map; in buildDriverGlobalSettingMap() 78 Map<OpenGlDriverChoice, String> map = new HashMap<>(); in buildDriverTestMethodMap() local 79 map.put(OpenGlDriverChoice.DEFAULT, ANGLE_DRIVER_TEST_DEFAULT_METHOD); in buildDriverTestMethodMap() 80 map.put(OpenGlDriverChoice.ANGLE, ANGLE_DRIVER_TEST_ANGLE_METHOD); in buildDriverTestMethodMap() 81 map.put(OpenGlDriverChoice.NATIVE, ANGLE_DRIVER_TEST_NATIVE_METHOD); in buildDriverTestMethodMap() 83 return map; in buildDriverTestMethodMap()
|
/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/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 | 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()
|
/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 …]
|
/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/tests/tests/view/jni/ |
D | android_view_cts_InputDeviceKeyLayoutMapTest.cpp | 39 std::map<int, std::string> loadGenericKl(std::string genericKl) { in loadGenericKl() 40 std::map<int, std::string> result; in loadGenericKl() 79 std::map<int, std::string> map = loadGenericKl(keyLayout.c_str()); in android_view_cts_nativeLoadKeyLayout() local 95 for (const auto& [key, label] : map) { in android_view_cts_nativeLoadKeyLayout()
|
/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/hostsidetests/packagemanager/domainverification/lib/constants/android/src/com/android/cts/packagemanager/verify/domain/android/ |
D | DomainVerificationIntentTestBase.kt | 78 .map { it.activityInfo } in parameters() 79 .map { ComponentName(it.packageName, it.name) } in parameters() 123 .map { it.activityInfo } in assertResolvesTo() 124 .map { ComponentName(it.packageName, it.name) }) in assertResolvesTo() 130 .map { it.activityInfo } in assertResolvesTo() 131 .map { ComponentName(it.packageName, it.name) }) in assertResolvesTo() 145 .map { it.activityInfo } in assertResolvesTo() 146 .map { ComponentName(it.packageName, it.name) }) in assertResolvesTo()
|
/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/tests/tests/appop/src/android/app/appops/cts/ |
D | AppOpsLoggingTest.kt | 231 assertThat(selfNoted.map { it.first.attributionTag to it.first.op }) in nativeNoteOp() 240 assertThat(selfNoted.map { it.first.attributionTag }).containsExactly(TEST_ATTRIBUTION_TAG) in nativeNoteOp() 452 assertThat(noted[0].second.map { it.methodName }).contains("getWifiScanResults") in nativeNoteOp() 540 assertThat(noted.map { it.first.op }).containsAnyOf(OPSTR_COARSE_LOCATION, in nativeNoteOp() 543 assertThat(noted[0].second.map { it.methodName }).contains("getLastKnownLocation") in nativeNoteOp() 580 assertThat(noted.map { it.first.op }) in nativeNoteOp() 584 assertThat(asyncNoted.map { it.op }) in nativeNoteOp() 631 assertThat(asyncNoted.map { it.op }).contains(OPSTR_FINE_LOCATION) in nativeNoteOp() 657 assertThat(asyncNoted.map { it.op }).containsExactly(OPSTR_READ_CONTACTS) in nativeNoteOp() 671 assertThat(asyncNoted.map { it.op }).containsExactly(OPSTR_WRITE_CONTACTS) in nativeNoteOp() [all …]
|
/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/hostsidetests/packagemanager/parsing/host/src/android/content/pm/parsing/cts/host/ |
D | UsesSdkTest.kt | 255 .map { it.trim() } in assertSdks() 264 .map(String::trim) in assertSdks() 265 .map(String::toInt) in assertSdks()
|
/cts/common/device-side/bedstead/metricsrecorder/src/main/java/com/android/bedstead/metricsrecorder/ |
D | EnterpriseMetricsRecorder.java | 189 .map(e -> e.atom) in getEventMetricDataList() 191 .map(AtomsProto.Atom::getDevicePolicyEvent) in getEventMetricDataList() 193 .map(EnterpriseMetricInfo::new) in getEventMetricDataList()
|