Home
last modified time | relevance | path

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

12345678910>>...13

/cts/tests/security/src/android/keystore/cts/
DCborUtils.java43 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/vibrator/src/android/os/cts/
DVibrationAttributesTest.java39 Map<Integer, Integer> map = new HashMap<>();
40 map.put(AudioAttributes.USAGE_ALARM, VibrationAttributes.USAGE_ALARM); in map.put()
41 map.put(AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY, in map.put()
43 map.put(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION, VibrationAttributes.USAGE_TOUCH); in map.put()
44 map.put(AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE, in map.put()
46 map.put(AudioAttributes.USAGE_ASSISTANT, VibrationAttributes.USAGE_COMMUNICATION_REQUEST); in map.put()
47 map.put(AudioAttributes.USAGE_GAME, VibrationAttributes.USAGE_MEDIA); in map.put()
48 map.put(AudioAttributes.USAGE_MEDIA, VibrationAttributes.USAGE_MEDIA); in map.put()
49 map.put(AudioAttributes.USAGE_NOTIFICATION, VibrationAttributes.USAGE_NOTIFICATION); in map.put()
50 map.put(AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_DELAYED, in map.put()
[all …]
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DTestPropertyMapper.java56 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/
DArrayMapTest.java167 private static void compareMaps(HashMap map, ArrayMap array) { in compareMaps() argument
168 if (map.size() != array.size()) { in compareMaps()
169 fail("Bad size: expected " + map.size() + ", got " + array.size()); in compareMaps()
172 Set<Map.Entry> mapSet = map.entrySet(); in compareMaps()
185 Object expValue = map.get(key); in compareMaps()
192 if (map.entrySet().hashCode() != array.entrySet().hashCode()) { in compareMaps()
194 + Integer.toHexString(map.entrySet().hashCode()) + " array=0x" in compareMaps()
198 if (!map.entrySet().equals(array.entrySet())) { in compareMaps()
202 if (!array.entrySet().equals(map.entrySet())) { in compareMaps()
206 if (map.keySet().hashCode() != array.keySet().hashCode()) { in compareMaps()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewFontWeightTest.java75 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/
DAppOpsUserService.kt113 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/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()
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
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()
DBroadcastReceiverTest.java222 Bundle map = new Bundle(); in testManifestReceiverPackage() local
223 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverPackage()
225 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testManifestReceiverPackage()
231 null, RESULT_INITIAL_CODE, RESULT_INITIAL_DATA, map); in testManifestReceiverPackage()
251 Bundle map = new Bundle(); in testManifestReceiverComponent() local
252 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverComponent()
254 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testManifestReceiverComponent()
261 null, RESULT_INITIAL_CODE, RESULT_INITIAL_DATA, map); in testManifestReceiverComponent()
281 Bundle map = new Bundle(); in testManifestReceiverPermission() local
282 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverPermission()
[all …]
/cts/hostsidetests/angle/src/android/angle/cts/
DCtsAngleCommon.java81 Map<OpenGlDriverChoice, String> map = new HashMap<>(); in buildDriverGlobalSettingMap() local
82 map.put(OpenGlDriverChoice.DEFAULT, "default"); in buildDriverGlobalSettingMap()
83 map.put(OpenGlDriverChoice.ANGLE, "angle"); in buildDriverGlobalSettingMap()
84 map.put(OpenGlDriverChoice.NATIVE, "native"); in buildDriverGlobalSettingMap()
86 return map; in buildDriverGlobalSettingMap()
92 Map<OpenGlDriverChoice, String> map = new HashMap<>(); in buildDriverTestMethodMap() local
93 map.put(OpenGlDriverChoice.DEFAULT, ANGLE_DRIVER_TEST_DEFAULT_METHOD); in buildDriverTestMethodMap()
94 map.put(OpenGlDriverChoice.ANGLE, ANGLE_DRIVER_TEST_ANGLE_METHOD); in buildDriverTestMethodMap()
95 map.put(OpenGlDriverChoice.NATIVE, ANGLE_DRIVER_TEST_NATIVE_METHOD); in buildDriverTestMethodMap()
97 return map; in buildDriverTestMethodMap()
/cts/tests/tests/os/src/android/os/cts/
DDebugTest.java340 Map<String, String> map = Debug.getRuntimeStats(); in testGetRuntimeStats() local
341 String gc_count = map.get("art.gc.gc-count"); in testGetRuntimeStats()
342 String gc_time = map.get("art.gc.gc-time"); in testGetRuntimeStats()
343 String bytes_allocated = map.get("art.gc.bytes-allocated"); in testGetRuntimeStats()
344 String bytes_freed = map.get("art.gc.bytes-freed"); in testGetRuntimeStats()
345 String blocking_gc_count = map.get("art.gc.blocking-gc-count"); in testGetRuntimeStats()
346 String blocking_gc_time = map.get("art.gc.blocking-gc-time"); in testGetRuntimeStats()
347 String gc_count_rate_histogram = map.get("art.gc.gc-count-rate-histogram"); in testGetRuntimeStats()
349 map.get("art.gc.blocking-gc-count-rate-histogram"); in testGetRuntimeStats()
390 Map<String, String> map = memoryInfo.getMemoryStats(); in testGetMemoryStats() local
[all …]
/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/tests/tests/view/jni/
Dandroid_view_cts_InputDeviceKeyLayoutMapTest.cpp38 std::map<int, std::string> loadGenericKl(std::string genericKl) { in loadGenericKl()
39 std::map<int, std::string> result; in loadGenericKl()
78 std::map<int, std::string> map = loadGenericKl(keyLayout.c_str()); in android_view_cts_nativeLoadKeyLayout() local
96 for (const auto& [key, label] : map) { in android_view_cts_nativeLoadKeyLayout()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DLocaleDeviceInfo.java66 .map((uLocale -> uLocale.toLanguageTag())) in collectDeviceInfo()
80 .map(Path::getFileName) in collectDeviceInfo()
81 .map(Path::toString) in collectDeviceInfo()
83 .map(s -> { in collectDeviceInfo()
112 .map(fileName -> "/apex/com.android.tzdata/etc/icu/" + fileName); in collectLocaleDataFilesInfo()
117 .map(File::new) in collectLocaleDataFilesInfo()
133 .map((dir) -> new File(dir)) in collectLocaleDataFilesInfo()
135 .map((f) -> f.listFiles()) in collectLocaleDataFilesInfo()
169 MappedByteBuffer mappedByteBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, in sha256()
/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/hostsidetests/packagemanager/domainverification/lib/constants/android/src/com/android/cts/packagemanager/verify/domain/android/
DDomainVerificationIntentTestBase.kt74 .map { it.activityInfo } in parameters()
75 .map { ComponentName(it.packageName, it.name) } in parameters()
126 .map { it.activityInfo } in assertResolvesTo()
127 .map { ComponentName(it.packageName, it.name) }) in assertResolvesTo()
134 .map { it.activityInfo } in assertResolvesTo()
135 .map { ComponentName(it.packageName, it.name) }) in assertResolvesTo()
149 .map { it.activityInfo } in assertResolvesTo()
150 .map { ComponentName(it.packageName, it.name) }) in assertResolvesTo()
/cts/tests/tests/car/src/android/car/cts/utils/
DDumpUtils.java49 ArrayMap<String, String> map = new ArrayMap<>(); in parseDumpResult() local
69 map.put(match.group(1), match.group(2)); in parseDumpResult()
71 return map; in parseDumpResult()
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/main/java/com/android/bedstead/remoteframeworkclasses/processor/
DMethodSignature.java50 .map(Element::asType) in forMethod()
51 .map(m -> rawType(m, elements)) in forMethod()
55 .stream().map(m -> rawType(m, elements)) in forMethod()
119 .map(String::trim) in forApiString()
121 .map(t -> typeForString(t, types, elements)) in forApiString()
130 .map(t -> t.trim()) in forApiString()
132 .map(t -> typeForString(t, types, elements)) in forApiString()
214 .map(TypeMirror::toString) in MethodSignature()
216 mExceptions = ImmutableSet.copyOf(exceptions.stream().map(TypeMirror::toString).collect( in MethodSignature()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DRemoteSubmixTest.java188 for (Map.Entry<Integer, String> map : mStreamNames.entrySet()) { in muteStreams()
190 mStreamVolume.put(map.getKey(), mAudioManager.getStreamVolume(map.getKey())); in muteStreams()
193 map.getKey(), AudioManager.ADJUST_MUTE, 0 /*no flag used*/); in muteStreams()
194 assumeThat("Stream " + map.getValue() + " can not be muted", in muteStreams()
195 mAudioManager.getStreamVolume(map.getKey()), is(0)); in muteStreams()
210 for (Map.Entry<Integer, Integer> map : mStreamVolume.entrySet()) { in unmuteStreams()
212 mAudioManager.setStreamVolume(map.getKey(), map.getValue(), 0 /*no flag used*/); in unmuteStreams()
/cts/tests/tests/hardware/res/raw/
Dkeyboard_layout_french.kcm21 map key 16 A
22 map key 17 Z
23 map key 30 Q
24 map key 39 M
25 map key 44 W
26 map key 50 COMMA
27 map key 51 SEMICOLON
28 map key 86 PLUS
/cts/tools/release-parser/proto/
Drelease.proto159 // 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/
DSeccompDeviceTest.java96 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/tools/vm-tests-tf/build/src/util/build/
DJUnitTestCollector.java42 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()

12345678910>>...13