Searched defs:map (Results 1 - 25 of 45) sorted by last modified time

12

/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/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...]
/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/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/native/opengl/libagl/
H A Degl.cpp1999 extention_map_t const * const map = gExtentionMap; local
2001 if (!strcmp(procname, map[i].name)) {
2002 return map[i].address;
/frameworks/native/opengl/libs/EGL/
H A DeglApi.cpp85 const extention_map_t* map, size_t n))() {
87 if (!strcmp(name, map[i].name)) {
88 return map[i].address;
84 findProcAddress(const char* name, const extention_map_t* map, size_t n) argument
/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/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/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/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/aapt/
H A DResourceTable.cpp2521 for (map<String16, set<String8> >::iterator nameIter = mLocalizations.begin();
3366 ResTable_map map; local
3367 map.name.ident = htodl(it.bagKeyId);
3368 map.value.size = htods(it.parsedValue.size);
3369 map.value.dataType = it.parsedValue.dataType;
3370 map.value.res0 = it.parsedValue.res0;
3371 map.value.data = htodl(it.parsedValue.data);
3372 err = data->writeData(&map, sizeof(map));
3377 amt += sizeof(map);
[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/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/base/services/input/
H A DInputReader.cpp104 const int32_t map[][4], size_t mapSize) {
107 if (value == map[i][0]) {
108 return map[i][orientation];
4025 // Walk through the the active pointers and map device coordinates onto
103 rotateValueUsingRotationMap(int32_t value, int32_t orientation, const int32_t map[][4], size_t mapSize) argument
/frameworks/base/services/input/tests/
H A DInputReader_test.cpp673 virtual bool setKeyboardLayoutOverlay(int32_t deviceId, const sp<KeyCharacterMap>& map) { argument
/frameworks/base/services/java/com/android/server/
H A DInputMethodManagerService.java2448 HashMap<String, InputMethodInfo> map) {
2453 map.clear();
2486 map.put(id, p);
2509 if (!map.containsKey(defaultImiId)) {
2447 buildInputMethodListLocked(ArrayList<InputMethodInfo> list, HashMap<String, InputMethodInfo> map) argument
H A DIntentResolver.java108 String prefix, Map<String, F[]> map, String packageName,
114 for (Map.Entry<String, F[]> e : map.entrySet()) {
382 private final void addFilter(HashMap<String, F[]> map, String name, F filter) { argument
383 F[] array = map.get(name);
386 map.put(name, array);
400 map.put(name, newa);
498 private final void remove_all_objects(HashMap<String, F[]> map, String name, argument
500 F[] array = map.get(name);
517 map.remove(name);
521 map
107 dumpMap(PrintWriter out, String titlePrefix, String title, String prefix, Map<String, F[]> map, String packageName, boolean printFilter) argument
[all...]
H A DIntentResolverOld.java97 String prefix, Map<String, ArrayList<F>> map, String packageName,
103 for (Map.Entry<String, ArrayList<F>> e : map.entrySet()) {
96 dumpMap(PrintWriter out, String titlePrefix, String title, String prefix, Map<String, ArrayList<F>> map, String packageName, boolean printFilter) argument
H A DTextServicesManagerService.java174 ArrayList<SpellCheckerInfo> list, HashMap<String, SpellCheckerInfo> map,
177 map.clear();
202 map.put(sci.getId(), sci);
210 Slog.d(TAG, "buildSpellCheckerMapLocked: " + list.size() + "," + map.size());
173 buildSpellCheckerMapLocked(Context context, ArrayList<SpellCheckerInfo> list, HashMap<String, SpellCheckerInfo> map, TextServicesSettings settings) argument
/frameworks/base/services/java/com/android/server/am/
H A DActivityManagerService.java3390 HashMap map = new HashMap();
3392 msg.obj = map;
3394 map.put("app", app);
3396 map.put("activity", activity);
11570 Bundle map, String requiredPermission,
11817 registeredReceivers, resultTo, resultCode, resultData, map,
11907 receivers, resultTo, resultCode, resultData, map, ordered,
11957 int resultCode, String resultData, Bundle map,
11970 resultCode, resultData, map, requiredPermission, serialized, sticky,
11979 int resultCode, String resultData, Bundle map,
11567 broadcastIntentLocked(ProcessRecord callerApp, String callerPackage, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle map, String requiredPermission, boolean ordered, boolean sticky, int callingPid, int callingUid, int userId) argument
11955 broadcastIntent(IApplicationThread caller, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle map, String requiredPermission, boolean serialized, boolean sticky, int userId) argument
11977 broadcastIntentInPackage(String packageName, int uid, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle map, String requiredPermission, boolean serialized, boolean sticky, int userId) argument
[all...]
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/base/test-runner/src/android/test/
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...]
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);
/frameworks/base/include/androidfw/
H A DResourceTypes.h1170 * Extended form of a ResTable_entry for map entries, defining a parent map
1252 // supplied as additional entries in the map.
1256 // supplied as additional entries in the map.
1343 ResTable_map map; member in struct:android::ResTable::bag_entry
/frameworks/base/libs/androidfw/
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...]

Completed in 2443 milliseconds

12