Searched defs:map (Results 1 - 25 of 142) sorted by path

123456

/frameworks/av/drm/libdrmframework/plugins/common/util/include/
H A DSessionMap.h42 * Adds a new value in the session map table. It expects memory to be allocated already
53 map.add(key, value);
72 * returns the number of objects in the session map table
78 return map.size();
82 * returns the session object by the index in the session map table
92 if (map.size() > index) {
93 value = map.valueAt(index);
99 * deletes the object from session map. It also frees up memory for the session object.
107 map.removeItem(key);
126 map
131 KeyedVector<int, TValue> map; member in class:android::SessionMap
[all...]
/frameworks/av/include/media/stagefright/foundation/
H A DALookup.h34 inline bool map(const T& from, V *to) const { return lookup(from, to); } function in struct:android::ALookup
37 inline bool map(const V& from, T *to) const { return rlookup(from, to); } function in struct:android::ALookup
/frameworks/av/media/img_utils/src/
H A DTiffWriter.cpp30 KeyedVector<uint16_t, const TagDefinition_t*> map; local
32 map.add(definitions[i].tagId, definitions + i);
34 return map;
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp159 MediaProfiles::findTagForName(const MediaProfiles::NameToTagMap *map, size_t nMappings, argument
164 if (!strcmp(map[i].name, name)) {
165 tag = map[i].tag;
/frameworks/av/media/libmediaplayerservice/tests/
H A DDrmSessionManager_test.cpp104 const PidSessionInfosMap& map = sessionMap(); local
105 EXPECT_EQ(2u, map.size());
106 ssize_t index1 = map.indexOfKey(kTestPid1);
108 const SessionInfos& infos1 = map[index1];
112 ssize_t index2 = map.indexOfKey(kTestPid2);
114 const SessionInfos& infos2 = map[index2];
179 const PidSessionInfosMap& map = sessionMap(); local
180 const SessionInfos& infos1 = map.valueFor(kTestPid1);
181 const SessionInfos& infos2 = map.valueFor(kTestPid2);
191 const PidSessionInfosMap& map local
212 const PidSessionInfosMap& map = sessionMap(); local
[all...]
/frameworks/av/media/libstagefright/
H A DACodec.cpp80 // Currently this is a direct map.
7445 std::map<std::string, std::string> vendorKeys; // maps reduced name to actual name
8366 status_t ACodec::getOMXChannelMapping(size_t numChannels, OMX_AUDIO_CHANNELTYPE map[]) { argument
8369 map[0] = OMX_AUDIO_ChannelCF;
8372 map[0] = OMX_AUDIO_ChannelLF;
8373 map[1] = OMX_AUDIO_ChannelRF;
8376 map[0] = OMX_AUDIO_ChannelLF;
8377 map[1] = OMX_AUDIO_ChannelRF;
8378 map[2] = OMX_AUDIO_ChannelCF;
8381 map[
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_slice_group_map.c59 u32 *map,
65 u32 *map,
71 u32 *map,
79 u32 *map,
86 u32 *map,
92 u32 *map,
103 Function to decode interleaved slice group map type, i.e. slice
104 group map type 0.
107 map pointer to the map
120 DecodeInterleavedMap( u32 *map, u32 numSliceGroups, u32 *runLength, u32 picSize) argument
174 DecodeDispersedMap( u32 *map, u32 numSliceGroups, u32 picWidth, u32 picHeight) argument
225 DecodeForegroundLeftOverMap( u32 *map, u32 numSliceGroups, u32 *topLeft, u32 *bottomRight, u32 picWidth, u32 picHeight) argument
294 DecodeBoxOutMap( u32 *map, u32 sliceGroupChangeDirectionFlag, u32 unitsInSliceGroup0, u32 picWidth, u32 picHeight) argument
400 DecodeRasterScanMap( u32 *map, u32 sliceGroupChangeDirectionFlag, u32 sizeOfUpperLeftGroup, u32 picSize) argument
448 DecodeWipeMap( u32 *map, u32 sliceGroupChangeDirectionFlag, u32 sizeOfUpperLeftGroup, u32 picWidth, u32 picHeight) argument
503 h264bsdDecodeSliceGroupMap( u32 *map, picParamSet_t *pps, u32 sliceGroupChangeCycle, u32 picWidth, u32 picHeight) argument
[all...]
/frameworks/av/media/libstagefright/foundation/include/foundation/
H A DALookup.h34 inline bool map(const T& from, V *to) const { return lookup(from, to); } function in struct:android::ALookup
37 inline bool map(const V& from, T *to) const { return rlookup(from, to); } function in struct:android::ALookup
/frameworks/av/media/libstagefright/include/foundation/
H A DALookup.h34 inline bool map(const T& from, V *to) const { return lookup(from, to); } function in struct:android::ALookup
37 inline bool map(const V& from, T *to) const { return rlookup(from, to); } function in struct:android::ALookup
/frameworks/av/services/mediadrm/tests/
H A DDrmSessionManager_test.cpp100 const PidSessionInfosMap& map = sessionMap(); local
101 EXPECT_EQ(2u, map.size());
102 ssize_t index1 = map.indexOfKey(kTestPid1);
104 const SessionInfos& infos1 = map[index1];
108 ssize_t index2 = map.indexOfKey(kTestPid2);
110 const SessionInfos& infos2 = map[index2];
175 const PidSessionInfosMap& map = sessionMap(); local
176 const SessionInfos& infos1 = map.valueFor(kTestPid1);
177 const SessionInfos& infos2 = map.valueFor(kTestPid2);
187 const PidSessionInfosMap& map local
208 const PidSessionInfosMap& map = sessionMap(); local
[all...]
/frameworks/av/services/mediaresourcemanager/
H A DResourceManagerService.cpp91 PidResourceInfosMap& map) {
92 ssize_t index = map.indexOfKey(pid);
96 map.add(pid, infosForPid);
99 return map.editValueFor(pid);
89 getResourceInfosForEdit( int pid, PidResourceInfosMap& map) argument
/frameworks/av/services/mediaresourcemanager/test/
H A DResourceManagerService_test.cpp175 const PidResourceInfosMap &map = mService->mMap; local
176 EXPECT_EQ(2u, map.size());
177 ssize_t index1 = map.indexOfKey(kTestPid1);
179 const ResourceInfos &infos1 = map[index1];
183 ssize_t index2 = map.indexOfKey(kTestPid2);
185 const ResourceInfos &infos2 = map[index2];
227 const PidResourceInfosMap &map = mService->mMap; local
228 EXPECT_EQ(2u, map.size());
229 const ResourceInfos &infos1 = map.valueFor(kTestPid1);
230 const ResourceInfos &infos2 = map
[all...]
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp206 status_t BootAnimation::initTexture(FileMap* map, int* width, int* height) argument
209 sk_sp<SkData> data = SkData::MakeWithoutCopy(map->getDataPtr(),
210 map->getDataLength());
217 delete map;
541 if (font->map != nullptr) {
545 status = initTexture(font->map, &font->texture.w, &font->texture.h);
730 FileMap* map = zip->createEntryFileMap(entry); local
731 if (map) {
732 animation.clockFont.map = map;
743 FileMap* map = zip->createEntryFileMap(entry); local
[all...]
H A DBootAnimation.h87 FileMap* map; member in struct:android::BootAnimation::Font
96 FileMap* map; member in struct:android::BootAnimation::Animation::Frame
135 status_t initTexture(FileMap* map, int* width, int* height);
/frameworks/base/core/java/android/app/
H A DFragmentTransition.java138 * @return A map from the initial shared element name to the final shared element name
188 * @param nameOverrides A map of the shared element names from the starting fragment to
260 * @param nameOverrides A map of the shared element names from the starting fragment to
464 * @param nameOverrides A map of the shared element names from the starting fragment to
593 * @param nameOverrides A map of the shared element names from the starting fragment to
698 * @param nameOverrides A map of the shared element names from the starting fragment to
753 * @param nameOverrides A map of the shared element names from the starting fragment to
811 * Utility to find the String key in {@code map} that maps to {@code value}.
813 private static String findKeyForValue(ArrayMap<String, String> map, String value) { argument
814 final int numElements = map
[all...]
/frameworks/base/core/java/android/bluetooth/le/
H A DBluetoothLeUtils.java57 static <T> String toString(Map<T, byte[]> map) { argument
58 if (map == null) {
61 if (map.isEmpty()) {
66 Iterator<Map.Entry<T, byte[]>> it = map.entrySet().iterator();
70 buffer.append(key).append("=").append(Arrays.toString(map.get(key)));
106 static <T> boolean equals(Map<T, byte[]> map, Map<T, byte[]> otherMap) { argument
107 if (map == otherMap) {
110 if (map == null || otherMap == null) {
113 if (map.size() != otherMap.size()) {
116 Set<T> keys = map
[all...]
/frameworks/base/core/java/android/os/
H A DBaseBundle.java249 ArrayMap<String, Object> map = mMap;
250 if (map == null) {
251 map = new ArrayMap<>(N);
253 map.erase();
254 map.ensureCapacity(N);
257 parcelledData.readArrayMapInternal(map, N, mClassLoader);
261 map.erase();
266 mMap = map;
271 + " final map: " + mMap);
475 * @param map
477 putAll(ArrayMap map) argument
[all...]
H A DPersistableBundle.java108 * @param map a Map containing only those items that can be persisted.
109 * @throws IllegalArgumentException if any element of #map cannot be persisted.
111 private PersistableBundle(ArrayMap<String, Object> map) { argument
116 putAll(map);
158 * Clones the current PersistableBundle. The internal map is cloned, but the keys and
/frameworks/base/core/java/android/os/health/
H A DHealthStatsWriter.java120 ArrayMap<String,HealthStatsWriter> map = mStatsValues[index];
121 if (map == null) {
122 map = mStatsValues[index] = new ArrayMap<String,HealthStatsWriter>(1);
124 map.put(name, value);
135 ArrayMap<String,TimerStat> map = mTimersValues[index];
136 if (map == null) {
137 map = mTimersValues[index] = new ArrayMap<String,TimerStat>(1);
139 map.put(name, value);
148 ArrayMap<String,Long> map = mMeasurementsValues[index];
149 if (map
252 writeHealthStatsWriterMap(Parcel out, ArrayMap<String,HealthStatsWriter> map) argument
265 writeParcelableMap(Parcel out, ArrayMap<String,T> map) argument
278 writeLongsMap(Parcel out, ArrayMap<String,Long> map) argument
[all...]
/frameworks/base/core/java/android/service/notification/
H A DZenModeConfig.java273 private static <T> void addKeys(ArraySet<T> set, ArrayMap<T, ?> map) { argument
274 if (map != null) {
275 for (int i = 0; i < map.size(); i++) {
276 set.add(map.keyAt(i));
/frameworks/base/core/java/android/util/
H A DArrayMap.java31 * avoid having to create an extra object for every entry put in to the map, and it
34 * a hash map).
261 * Create a new empty ArrayMap. The default capacity of an array map is 0, and
297 public ArrayMap(ArrayMap<K, V> map) { argument
299 if (map != null) {
300 putAll(map);
305 * Make the array map empty. All storage is released.
339 * Ensure the array map can hold at least <var>minimumCapacity</var>
456 * Return true if the array map contains no items.
464 * Add a new value to the array map
874 putAll(Map<? extends K, ? extends V> map) argument
[all...]
H A DLruCache.java63 private final LinkedHashMap<K, V> map; field in class:LruCache
85 this.map = new LinkedHashMap<K, V>(0, 0.75f, true);
117 mapValue = map.get(key);
126 * Attempt to create a value. This may take a long time, and the map
128 * added to the map while create() was working, we leave that value in
129 * the map and release the created value.
139 mapValue = map.put(key, createdValue);
143 map.put(key, mapValue);
173 previous = map.put(key, value);
199 if (size < 0 || (map
[all...]
H A DMapCollections.java459 public static <K, V> boolean containsAllHelper(Map<K, V> map, Collection<?> collection) { argument
462 if (!map.containsKey(it.next())) {
469 public static <K, V> boolean removeAllHelper(Map<K, V> map, Collection<?> collection) { argument
470 int oldSize = map.size();
473 map.remove(it.next());
475 return oldSize != map.size();
478 public static <K, V> boolean retainAllHelper(Map<K, V> map, Collection<?> collection) { argument
479 int oldSize = map.size();
480 Iterator<K> it = map.keySet().iterator();
486 return oldSize != map
[all...]
H A DMathUtils.java183 public static float map(float minStart, float minStop, float maxStart, float maxStop, float value) { method in class:MathUtils
/frameworks/base/core/java/com/android/internal/inputmethod/
H A DInputMethodUtils.java809 @NonNull final ArrayMap<String, ArraySet<String>> map) {
813 for (ArrayMap.Entry<String, ArraySet<String>> entry : map.entrySet()) {
808 buildInputMethodsAndSubtypesString( @onNull final ArrayMap<String, ArraySet<String>> map) argument

Completed in 640 milliseconds

123456