Searched defs:map (Results 1 - 25 of 45) sorted by relevance

12

/frameworks/native/opengl/tools/glgen/src/
H A DParameterChecker.java22 HashMap<String,String[]> map = new HashMap<String,String[]>(); field in class:ParameterChecker
28 map.put(tokens[0], tokens);
33 String[] checks = map.get(functionName);
39 checks = map.get(functionName);
/frameworks/base/test-runner/src/android/test/
H A DSimpleCache.java23 private Map<K, V> map = new HashMap<K, V>(); field in class:SimpleCache
28 if (map.containsKey(key)) {
29 return map.get(key);
32 map.put(key, value);
H A DMoreAsserts.java384 * Asserts that {@code map} is empty.
386 public static void assertEmpty(String message, Map<?,?> map) { argument
387 if (!map.isEmpty()) {
388 failNotEmpty(message, map.toString());
396 public static void assertEmpty(Map<?,?> map) { argument
397 assertEmpty(null, map);
418 * Asserts that {@code map} is not empty.
420 public static void assertNotEmpty(String message, Map<?,?> map) { argument
421 if (map.isEmpty()) {
430 public static void assertNotEmpty(Map<?,?> map) { argument
[all...]
/frameworks/compile/mclinker/lib/LD/
H A DELFSectionMap.cpp21 static const NameMap map[] = variable
64 static const int map_size = (sizeof(map) / sizeof(map[0]));
78 NamePair& pair = append(map[i].from, map[i].to, exist);
80 warning(diag::warn_duplicate_std_sectmap) << map[i].from
81 << map[i].to
/frameworks/base/tools/validatekeymaps/
H A DMain.cpp81 sp<KeyLayoutMap> map; local
82 status_t status = KeyLayoutMap::load(String8(filename), &map);
91 sp<KeyCharacterMap> map; local
93 KeyCharacterMap::FORMAT_ANY, &map);
95 fprintf(stderr, "Error %d parsing key character map file.\n\n", status);
102 PropertyMap* map; local
103 status_t status = PropertyMap::load(String8(filename), &map);
108 delete map;
113 VirtualKeyMap* map; local
114 status_t status = VirtualKeyMap::load(String8(filename), &map);
[all...]
/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/base/core/java/android/util/
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);
118 mapValue = map.get(key);
127 * Attempt to create a value. This may take a long time, and the map
129 * added to the map while create() was working, we leave that value in
130 * the map and release the created value.
140 mapValue = map.put(key, createdValue);
144 map.put(key, mapValue);
174 previous = map.put(key, value);
200 if (size < 0 || (map
[all...]
H A DMathUtils.java155 public static float map(float minStart, float minStop, float maxStart, float maxStop, float value) { method in class:MathUtils
/frameworks/base/libs/androidfw/
H A DVirtualKeyMap.cpp54 ALOGE("Error %d opening virtual key map file %s.", status, filename.string());
56 VirtualKeyMap* map = new VirtualKeyMap(); local
57 if (!map) {
58 ALOGE("Error allocating virtual key map.");
64 Parser parser(map, tokenizer);
68 ALOGD("Parsed key character map file '%s' %d lines in %0.3fms.",
73 delete map;
75 *outMap = map;
86 VirtualKeyMap::Parser::Parser(VirtualKeyMap* map, Tokenizer* tokenizer) : argument
87 mMap(map), mTokenize
[all...]
H A DKeyLayoutMap.cpp56 ALOGE("Error %d opening key layout map file %s.", status, filename.string());
58 sp<KeyLayoutMap> map = new KeyLayoutMap(); local
59 if (!map.get()) {
60 ALOGE("Error allocating key layout map.");
66 Parser parser(map.get(), tokenizer);
70 ALOGD("Parsed key layout map file '%s' %d lines in %0.3fms.",
75 *outMap = map;
155 KeyLayoutMap::Parser::Parser(KeyLayoutMap* map, Tokenizer* tokenizer) : argument
156 mMap(map), mTokenizer(tokenizer) {
217 KeyedVector<int32_t, Key>& map local
[all...]
H A DAsset.cpp417 * Create the chunk from the map.
445 * On first access, read or map the entire file. The caller has
464 //printf("map read\n");
553 * We can either read the whole thing in or map the relevant piece of
554 * the source file. Ideally a map would be established at a higher
605 FileMap* map; local
607 map = new FileMap;
608 if (!map->create(NULL, fileno(mFp), mStart, mLength, true)) {
609 map->release();
615 mMap = map;
645 ensureAlignment(FileMap* map) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DLruCache.java67 private final LinkedHashMap<K, V> map; field in class:LruCache
89 this.map = new LinkedHashMap<K, V>(0, 0.75f, true);
122 mapValue = map.get(key);
131 * Attempt to create a value. This may take a long time, and the map
133 * added to the map while create() was working, we leave that value in
134 * the map and release the created value.
144 mapValue = map.put(key, createdValue);
148 map.put(key, mapValue);
178 previous = map.put(key, value);
201 if (size < 0 || (map
[all...]
/frameworks/compile/libbcc/lib/Renderscript/
H A DRSInfoReader.cpp177 android::FileMap *map = NULL; local
198 // Create memory map for the file.
199 map = pInput.createMap(/* pOffset */cur_input_offset,
201 if (map == NULL) {
202 ALOGE("Failed to map RS info file %s to the memory! (%s)",
207 data = reinterpret_cast<const uint8_t *>(map->getDataPtr());
264 map->advise(android::FileMap::SEQUENTIAL);
318 map->release();
323 if (map != NULL) {
324 map
[all...]
/frameworks/ex/common/java/com/android/common/content/
H A DProjectionMap.java24 * A convenience wrapper for a projection map. Makes it easier to create and use projection maps.
49 public Builder addAll(ProjectionMap map) { argument
50 for (Map.Entry<String, String> entry : map.entrySet()) {
73 * Returns a sorted array of all column names in the projection map.
89 public void putAll(Map<? extends String, ? extends String> map) { argument
/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/base/cmds/bootanimation/
H A DBootAnimation.h62 FileMap* map; member in struct:android::BootAnimation::Animation::Frame
/frameworks/compile/libbcc/lib/Support/
H A DFileBase.cpp211 android::FileMap *map = new (std::nothrow) android::FileMap(); local
212 if (map == NULL) {
217 if (!map->create(NULL, mFD, pOffset, pLength, pIsReadOnly)) {
219 map->release();
223 return map;
/frameworks/native/libs/utils/
H A DPropertyMap.cpp112 void PropertyMap::addAll(const PropertyMap* map) { argument
113 for (size_t i = 0; i < map->mProperties.size(); i++) {
114 mProperties.add(map->mProperties.keyAt(i), map->mProperties.valueAt(i));
126 PropertyMap* map = new PropertyMap(); local
127 if (!map) {
128 ALOGE("Error allocating property map.");
134 Parser parser(map, tokenizer);
143 delete map;
145 *outMap = map;
156 Parser(PropertyMap* map, Tokenizer* tokenizer) argument
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DLruCache.java30 private final LinkedHashMap<K, V> map; field in class:LruCache
52 this.map = new LinkedHashMap<K, V>(0, 0.75f, true);
68 mapValue = map.get(key);
77 * Attempt to create a value. This may take a long time, and the map
79 * added to the map while create() was working, we leave that value in
80 * the map and release the created value.
90 mapValue = map.put(key, createdValue);
94 map.put(key, mapValue);
124 previous = map.put(key, value);
150 if (size < 0 || (map
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DTypedProperties.java137 * @param map The {@code Map} to insert parameter values into
141 static void parse(Reader r, Map<String, Object> map) throws ParseException, IOException { argument
194 map.remove(propertyName);
202 // Read a value of the appropriate type, and insert into the map.
204 final Object oldValue = map.remove(propertyName);
213 map.put(propertyName, value);
/frameworks/base/core/jni/
H A Dandroid_view_KeyCharacterMap.cpp48 NativeKeyCharacterMap(int32_t deviceId, const sp<KeyCharacterMap>& map) : argument
49 mDeviceId(deviceId), mMap(map) {
71 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, local
73 if (!map) {
78 reinterpret_cast<jint>(map));
97 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, kcm); local
98 return reinterpret_cast<jint>(map);
102 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
105 parcel->writeInt32(map->getDeviceId());
106 map
111 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
117 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
123 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
137 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
143 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
158 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
163 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
169 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
[all...]
/frameworks/base/media/java/android/media/
H A DMediaFormat.java168 /* package private */ MediaFormat(Map<String, Object> map) { argument
169 mMap = map;
/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp142 JNIEnv *env, const sp<AMessage> &msg, jobject *map) {
271 *map = hashMap;
141 ConvertMessageToMap( JNIEnv *env, const sp<AMessage> &msg, jobject *map) argument
/frameworks/base/services/java/com/android/server/am/
H A DProviderMap.java132 HashMap<String, ContentProviderRecord> map = getProvidersByName(userId);
133 // map returned by getProvidersByName wouldn't be null
134 map.remove(name);
135 if (map.size() == 0) {
151 HashMap<ComponentName, ContentProviderRecord> map = getProvidersByClass(userId);
152 // map returned by getProvidersByClass wouldn't be null
153 map.remove(name);
154 if (map.size() == 0) {
162 final HashMap<String, ContentProviderRecord> map = mProvidersByNamePerUser.get(userId);
163 if (map
233 dumpProvidersByClassLocked(PrintWriter pw, boolean dumpAll, HashMap<ComponentName, ContentProviderRecord> map) argument
245 dumpProvidersByNameLocked(PrintWriter pw, HashMap<String, ContentProviderRecord> map) argument
[all...]
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/
H A DPduParser.java780 HashMap<Integer, Object> map =
783 parseContentType(pduDataStream, map);
801 mStartParam = (byte[]) map.get(PduPart.P_START);
804 mTypeParam= (byte[]) map.get(PduPart.P_TYPE);
850 HashMap<Integer, Object> map = new HashMap<Integer, Object>();
851 byte[] contentType = parseContentType(pduDataStream, map);
859 byte[] name = (byte[]) map.get(PduPart.P_NAME);
865 Integer charset = (Integer) map.get(PduPart.P_CHARSET);
1333 * @param map to store parameters of Content-Type field
1337 HashMap<Integer, Object> map, Intege
1336 parseContentTypeParams(ByteArrayInputStream pduDataStream, HashMap<Integer, Object> map, Integer length) argument
1519 parseContentType(ByteArrayInputStream pduDataStream, HashMap<Integer, Object> map) argument
[all...]

Completed in 658 milliseconds

12