Home
last modified time | relevance | path

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

12345678910>>...41

/frameworks/native/libs/ftl/
Dsmall_map_test.cpp28 ftl::SmallMap<int, std::string, 3> map; in TEST() local
29 EXPECT_TRUE(map.empty()); in TEST()
30 EXPECT_FALSE(map.dynamic()); in TEST()
32 map = ftl::init::map<int, std::string>(123, "abc")(-1)(42, 3u, '?'); in TEST()
33 EXPECT_EQ(map.size(), 3u); in TEST()
34 EXPECT_FALSE(map.dynamic()); in TEST()
36 EXPECT_TRUE(map.contains(123)); in TEST()
38 EXPECT_EQ(map.find(42, [](const std::string& s) { return s.size(); }), 3u); in TEST()
40 const auto opt = map.find(-1); in TEST()
47 EXPECT_EQ(map, SmallMap(ftl::init::map(-1, "xyz")(42, "???")(123, "abc"))); in TEST()
[all …]
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2Mapper.h47 static bool map(C2Config::bitrate_mode_t, int32_t*);
48 static bool map(int32_t, C2Config::bitrate_mode_t*);
51 static bool map(C2Config::pcm_encoding_t, int32_t*);
52 static bool map(int32_t, C2Config::pcm_encoding_t*);
55 static bool map(C2Config::picture_type_t, int32_t*);
56 static bool map(int32_t, C2Config::picture_type_t*);
59 static bool map(C2Color::range_t, int32_t*);
60 static bool map(int32_t, C2Color::range_t*);
61 static bool map(C2Color::primaries_t, C2Color::matrix_t, int32_t*);
62 static bool map(int32_t, C2Color::primaries_t*, C2Color::matrix_t*);
[all …]
DCodec2Mapper.cpp448 return sAacProfiles.map(from, to); in simpleMap()
451 return sAacProfiles.map(from, to); in simpleMap()
457 return sAvcLevels.map(from, to); in simpleMap()
460 return sAvcLevels.map(from, to); in simpleMap()
463 return sAvcProfiles.map(from, to); in simpleMap()
466 return sAvcProfiles.map(from, to); in simpleMap()
472 return sDolbyVisionLevels.map(from, to); in simpleMap()
475 return sDolbyVisionLevels.map(from, to); in simpleMap()
478 return sDolbyVisionProfiles.map(from, to); in simpleMap()
481 return sDolbyVisionProfiles.map(from, to); in simpleMap()
[all …]
/frameworks/av/services/mediametrics/
DAudioTypes.cpp26 static std::unordered_map<std::string, int32_t> map{ in getAudioCallerNameMap() local
37 return map; in getAudioCallerNameMap()
48 static std::unordered_map<std::string, int64_t> map{ in getAudioDeviceInMap() local
82 return map; in getAudioDeviceInMap()
93 static std::unordered_map<std::string, int64_t> map{ in getAudioDeviceOutMap() local
130 return map; in getAudioDeviceOutMap()
136 static std::unordered_map<std::string, int32_t> map{ in getAudioThreadTypeMap() local
147 return map; in getAudioThreadTypeMap()
152 static std::unordered_map<std::string, int32_t> map{ in getAudioTrackTraitsMap() local
156 return map; in getAudioTrackTraitsMap()
[all …]
/frameworks/base/core/jni/
Dandroid_view_KeyCharacterMap.cpp51 NativeKeyCharacterMap(int32_t deviceId, std::shared_ptr<KeyCharacterMap> map) in NativeKeyCharacterMap() argument
52 : mDeviceId(deviceId), mMap(std::move(map)) {} in NativeKeyCharacterMap()
102 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, kcm); in nativeReadFromParcel() local
103 return reinterpret_cast<jlong>(map); in nativeReadFromParcel()
107 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); in nativeWriteToParcel() local
109 if (!parcel || !map) { in nativeWriteToParcel()
112 parcel->writeInt32(map->getDeviceId()); in nativeWriteToParcel()
113 if (!map->getMap()) { in nativeWriteToParcel()
118 map->getMap()->writeToParcel(parcel); in nativeWriteToParcel()
122 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); in nativeDispose() local
[all …]
/frameworks/base/packages/InputDevices/res/raw/
Dkeyboard_layout_english_us_dvorak.kcm23 map key 12 LEFT_BRACKET
24 map key 13 RIGHT_BRACKET
25 map key 16 APOSTROPHE
26 map key 17 COMMA
27 map key 18 PERIOD
28 map key 19 P
29 map key 20 Y
30 map key 21 F
31 map key 22 G
32 map key 23 C
[all …]
Dkeyboard_layout_english_us_workman.kcm23 map key 17 D
24 map key 18 R
25 map key 19 W
26 map key 20 B
27 map key 21 J
28 map key 22 F
29 map key 23 U
30 map key 24 P
31 map key 25 SEMICOLON
32 map key 32 H
[all …]
Dkeyboard_layout_english_us_colemak.kcm23 map key 18 F
24 map key 19 P
25 map key 20 G
26 map key 21 J
27 map key 22 L
28 map key 23 U
29 map key 24 Y
30 map key 25 SEMICOLON
31 map key 31 R
32 map key 32 S
[all …]
/frameworks/base/services/core/java/com/android/server/vcn/util/
DMtuUtils.java62 final Map<Integer, Integer> map = new ArrayMap<>();
63 map.put(INTEGRITY_ALGORITHM_NONE, 0); in map.put()
64 map.put(INTEGRITY_ALGORITHM_HMAC_SHA1_96, 12); in map.put()
65 map.put(INTEGRITY_ALGORITHM_AES_XCBC_96, 12); in map.put()
66 map.put(INTEGRITY_ALGORITHM_HMAC_SHA2_256_128, 32); in map.put()
67 map.put(INTEGRITY_ALGORITHM_HMAC_SHA2_384_192, 48); in map.put()
68 map.put(INTEGRITY_ALGORITHM_HMAC_SHA2_512_256, 64); in map.put()
69 map.put(INTEGRITY_ALGORITHM_AES_CMAC_96, 12); in map.put()
71 AUTH_ALGORITHM_OVERHEAD = unmodifiableMap(map);
78 final Map<Integer, Integer> map = new ArrayMap<>();
[all …]
/frameworks/av/drm/libdrmframework/plugins/common/util/include/
DSessionMap.h53 map.add(key, value); in addValue()
78 return map.size(); in getSize()
92 if (map.size() > index) { in getValueAt()
93 value = map.valueAt(index); in getValueAt()
107 map.removeItem(key); in removeValue()
126 map = objectCopy.map;
131 KeyedVector<int, TValue> map;
152 int size = map.size(); in destroyMap()
155 deleteValue(map.valueAt(i)); in destroyMap()
157 map.clear(); in destroyMap()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DAbUpdateInstaller.java64 Map<Integer, Integer> map = new HashMap<>(); in buildErrorCodesMap() local
65 map.put( in buildErrorCodesMap()
68 map.put( in buildErrorCodesMap()
71 map.put( in buildErrorCodesMap()
76 map.put( in buildErrorCodesMap()
79 map.put( in buildErrorCodesMap()
82 map.put( in buildErrorCodesMap()
85 map.put( in buildErrorCodesMap()
89 map.put( in buildErrorCodesMap()
94 map.put( in buildErrorCodesMap()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/inputmethod/
DInputMethodAndSubtypeUtilCompatTest.java117 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_EmptyInput() local
118 assertThat(map).isEmpty(); in buildInputMethodsAndSubtypesString_EmptyInput()
123 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleIme() local
124 map.put("ime0", new HashSet<>()); in buildInputMethodsAndSubtypesString_SingleIme()
125 String result = InputMethodAndSubtypeUtilCompat.buildInputMethodsAndSubtypesString(map); in buildInputMethodsAndSubtypesString_SingleIme()
131 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype() local
132 map.put("ime0", asHashSet("subtype0")); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype()
133 String result = InputMethodAndSubtypeUtilCompat.buildInputMethodsAndSubtypesString(map); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype()
139 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleImeMultipleSubtypes() local
140 map.put("ime0", asHashSet("subtype0", "subtype1")); in buildInputMethodsAndSubtypesString_SingleImeMultipleSubtypes()
[all …]
DInputMethodAndSubtypeUtilTest.java115 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_EmptyInput() local
116 assertThat(map).isEmpty(); in buildInputMethodsAndSubtypesString_EmptyInput()
121 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleIme() local
122 map.put("ime0", new HashSet<>()); in buildInputMethodsAndSubtypesString_SingleIme()
123 String result = InputMethodAndSubtypeUtil.buildInputMethodsAndSubtypesString(map); in buildInputMethodsAndSubtypesString_SingleIme()
129 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype() local
130 map.put("ime0", asHashSet("subtype0")); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype()
131 String result = InputMethodAndSubtypeUtil.buildInputMethodsAndSubtypesString(map); in buildInputMethodsAndSubtypesString_SingleImeSingleSubtype()
137 HashMap<String, HashSet<String>> map = new HashMap<>(); in buildInputMethodsAndSubtypesString_SingleImeMultipleSubtypes() local
138 map.put("ime0", asHashSet("subtype0", "subtype1")); in buildInputMethodsAndSubtypesString_SingleImeMultipleSubtypes()
[all …]
/frameworks/base/core/java/android/os/health/
DHealthStatsWriter.java122 ArrayMap<String,HealthStatsWriter> map = mStatsValues[index]; in addStats() local
123 if (map == null) { in addStats()
124 map = mStatsValues[index] = new ArrayMap<String,HealthStatsWriter>(1); in addStats()
126 map.put(name, value); in addStats()
137 ArrayMap<String,TimerStat> map = mTimersValues[index]; in addTimers() local
138 if (map == null) { in addTimers()
139 map = mTimersValues[index] = new ArrayMap<String,TimerStat>(1); in addTimers()
141 map.put(name, value); in addTimers()
150 ArrayMap<String,Long> map = mMeasurementsValues[index]; in addMeasurements() local
151 if (map == null) { in addMeasurements()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/
DPublishServiceDescTracker.java56 ArrayMap<ServiceDescription, Set<String>> map = new ArrayMap<>(19);
57 map.put(ServiceDescription.SERVICE_DESCRIPTION_CHAT_IM, in map.put()
59 map.put(ServiceDescription.SERVICE_DESCRIPTION_CHAT_SESSION, in map.put()
61 map.put(ServiceDescription.SERVICE_DESCRIPTION_FT, in map.put()
63 map.put(ServiceDescription.SERVICE_DESCRIPTION_FT_SMS, in map.put()
65 map.put(ServiceDescription.SERVICE_DESCRIPTION_PRESENCE, in map.put()
68 map.put(ServiceDescription.SERVICE_DESCRIPTION_MMTEL_VOICE, in map.put()
70 map.put(ServiceDescription.SERVICE_DESCRIPTION_MMTEL_VOICE_VIDEO, new ArraySet<>( in map.put()
72 map.put(ServiceDescription.SERVICE_DESCRIPTION_GEOPUSH, in map.put()
74 map.put(ServiceDescription.SERVICE_DESCRIPTION_GEOPUSH_SMS, in map.put()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.h68 const android::ResTable_map_entry* map);
72 const android::ResTable_map_entry* map);
76 const android::ResTable_map_entry* map);
80 const android::ResTable_map_entry* map);
84 const android::ResTable_map_entry* map);
118 std::map<ResourceId, ResourceName> id_index_;
130 inline const ResTable_map* begin(const ResTable_map_entry* map) { in begin() argument
131 return (const ResTable_map*)((const uint8_t*)map + ::aapt::util::DeviceToHost32(map->size)); in begin()
134 inline const ResTable_map* end(const ResTable_map_entry* map) { in end() argument
135 return begin(map) + aapt::util::DeviceToHost32(map->count); in end()
/frameworks/base/core/tests/coretests/src/android/util/
DArrayMapTest.java31 ArrayMap<String, String> map = new ArrayMap<>(); field in ArrayMapTest
49 while (map != null) { in testConcurrentModificationException()
51 map.put(String.format("key %d", i++), "B_DONT_DO_THAT"); in testConcurrentModificationException()
60 + " size=" + (map == null ? "??" : String.valueOf(map.size())) + "]"); in testConcurrentModificationException()
70 map.clear(); in testConcurrentModificationException()
82 + i + " size=" + map.size() + "]"); in testConcurrentModificationException()
85 map = null; // will stop other thread in testConcurrentModificationException()
96 map.put(String.format("key %d", i++), "B_DONT_DO_THAT"); in testNonConcurrentAccesses()
101 map.clear(); in testNonConcurrentAccesses()
DLongSparseLongArrayTest.java80 final HashMap<Long, Long> map = new HashMap<Long, Long>(); in testFuzz() local
87 map.put(key, value); in testFuzz()
90 if (r.nextBoolean() && map.size() > 0) { in testFuzz()
91 final int index = r.nextInt(map.size()); in testFuzz()
92 final long key = getKeyAtIndex(map, index); in testFuzz()
93 map.remove(key); in testFuzz()
98 Log.d(TAG, "verifying a map with " + map.size() + " entries"); in testFuzz()
100 for (Map.Entry<Long, Long> e : map.entrySet()) { in testFuzz()
107 private static <E> E getKeyAtIndex(Map<E, ?> map, int index) { in getKeyAtIndex() argument
108 final Iterator<E> keys = map.keySet().iterator(); in getKeyAtIndex()
/frameworks/base/core/java/android/hardware/radio/
DUtils.java36 static void writeStringMap(@NonNull Parcel dest, @Nullable Map<String, String> map) { in writeStringMap() argument
37 if (map == null) { in writeStringMap()
41 dest.writeInt(map.size()); in writeStringMap()
42 for (Map.Entry<String, String> entry : map.entrySet()) { in writeStringMap()
50 Map<String, String> map = new HashMap<>(size); in readStringMap() local
54 map.put(key, value); in readStringMap()
56 return map; in readStringMap()
59 static void writeStringIntMap(@NonNull Parcel dest, @Nullable Map<String, Integer> map) { in writeStringIntMap() argument
60 if (map == null) { in writeStringIntMap()
64 dest.writeInt(map.size()); in writeStringIntMap()
[all …]
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeUtils.java57 static <T> String toString(Map<T, byte[]> map) { in toString() argument
58 if (map == null) { in toString()
61 if (map.isEmpty()) { in toString()
66 Iterator<Map.Entry<T, byte[]>> it = map.entrySet().iterator(); in toString()
70 buffer.append(key).append("=").append(Arrays.toString(map.get(key))); in toString()
106 static <T> boolean equals(Map<T, byte[]> map, Map<T, byte[]> otherMap) { in equals() argument
107 if (map == otherMap) { in equals()
110 if (map == null || otherMap == null) { in equals()
113 if (map.size() != otherMap.size()) { in equals()
116 Set<T> keys = map.keySet(); in equals()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DAllModel.kt88 val map = list.groupByTo(OrderedMap(ArrayMap<CharSequence, MutableList<ControlStatus>>())) { in <lambda>() constant
93 for (zoneName in map.orderedKeys) { in <lambda>()
94 val values = map.getValue(zoneName).asSequence().map { ControlStatusWrapper(it) } in <lambda>()
104 if (map.size != 1) { in <lambda>()
112 private class OrderedMap<K, V>(private val map: MutableMap<K, V>) : MutableMap<K, V> by map { in <lambda>() constant in com.android.systemui.controls.management.OrderedMap
117 if (key !in map) { in <lambda>()
120 return map.put(key, value) in <lambda>()
125 map.clear() in <lambda>()
129 val removed = map.remove(key) in <lambda>()
/frameworks/layoutlib/bridge/tests/src/com/android/ide/common/resources/deprecated/
DResourceRepository.java185 Map<String, ResourceItem> map = mResourceMap.get(type); in getResourceItem() local
187 if (map == null) { in getResourceItem()
225 map = new HashMap<>(size, 1.0f); in getResourceItem()
227 map = new HashMap<>(); in getResourceItem()
229 mResourceMap.put(type, map); in getResourceItem()
232 map.put(item.getName(), item); in getResourceItem()
299 Map<ResourceType, ResourceValueMap> map = in doGetConfiguredResources() local
304 map.put(key, getConfiguredResource(key, referenceConfig)); in doGetConfiguredResources()
307 return map; in doGetConfiguredResources()
328 Map<String, ResourceItem> map = mResourceMap.get(type); in removeFile() local
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DAttributeCache.java93 final ArrayMap<int[], Entry> map = pkg.mMap.valueAt(i); in removePackage() local
94 for (int j = 0; j < map.size(); j++) { in removePackage()
95 map.valueAt(j).recycle(); in removePackage()
126 ArrayMap<int[], Entry> map = null; in get() local
129 map = pkg.mMap.get(resId); in get()
130 if (map != null) { in get()
131 ent = map.get(styleable); in get()
151 if (map == null) { in get()
152 map = new ArrayMap<>(); in get()
153 pkg.mMap.put(resId, map); in get()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DVoiceCallSessionStats.java333 .map(VoiceCallSessionStats::getConnectionId) in onRilSrvccStateChanged()
754 SparseIntArray map = new SparseIntArray(); in buildGsmCdmaCodecMap() local
755 map.put(DriverCall.AUDIO_QUALITY_AMR, AudioCodec.AUDIO_CODEC_AMR); in buildGsmCdmaCodecMap()
756 map.put(DriverCall.AUDIO_QUALITY_AMR_WB, AudioCodec.AUDIO_CODEC_AMR_WB); in buildGsmCdmaCodecMap()
757 map.put(DriverCall.AUDIO_QUALITY_GSM_EFR, AudioCodec.AUDIO_CODEC_GSM_EFR); in buildGsmCdmaCodecMap()
758 map.put(DriverCall.AUDIO_QUALITY_GSM_FR, AudioCodec.AUDIO_CODEC_GSM_FR); in buildGsmCdmaCodecMap()
759 map.put(DriverCall.AUDIO_QUALITY_GSM_HR, AudioCodec.AUDIO_CODEC_GSM_HR); in buildGsmCdmaCodecMap()
760 map.put(DriverCall.AUDIO_QUALITY_EVRC, AudioCodec.AUDIO_CODEC_EVRC); in buildGsmCdmaCodecMap()
761 map.put(DriverCall.AUDIO_QUALITY_EVRC_B, AudioCodec.AUDIO_CODEC_EVRC_B); in buildGsmCdmaCodecMap()
762 map.put(DriverCall.AUDIO_QUALITY_EVRC_WB, AudioCodec.AUDIO_CODEC_EVRC_WB); in buildGsmCdmaCodecMap()
[all …]
/frameworks/base/core/java/android/util/
DLruCache.java66 private final LinkedHashMap<K, V> map; field in LruCache
88 this.map = new LinkedHashMap<K, V>(0, 0.75f, true); in LruCache()
120 mapValue = map.get(key); in get()
142 mapValue = map.put(key, createdValue); in get()
146 map.put(key, mapValue); in get()
176 previous = map.put(key, value); in put()
202 if (size < 0 || (map.isEmpty() && size != 0)) { in trimToSize()
211 Map.Entry<K, V> toEvict = map.eldest(); in trimToSize()
218 map.remove(key); in trimToSize()
239 previous = map.remove(key); in remove()
[all …]

12345678910>>...41