Searched refs:map (Results 1 - 25 of 148) sorted by relevance

123456

/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);
/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/tests/coretests/src/android/app/activity/
H A DResultReceiver.java38 Bundle map = getResultExtras(false);
39 map.remove("remove");
40 map.putString("bar", "them");
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_slice_group_map.h53 u32 *map,
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/compile/mclinker/lib/Target/
H A DELFEmulation.cpp22 static const NameMap map[] = variable
68 // set up section map
70 const unsigned int map_size = (sizeof(map) / sizeof(map[0]) );
73 pScript.sectionMap().append(map[i].from, map[i].to, exist);
/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/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...]
H A Dandroid_view_KeyCharacterMap.h28 const sp<KeyCharacterMap>& map);
/frameworks/native/opengl/tools/glgen/src/
H A DParameterChecker.java22 HashMap<String,String[]> map = new HashMap<String,String[]>(); field in class:ParameterChecker
41 map.put(tokens[0], tokens);
46 String[] checks = map.get(functionName);
52 checks = map.get(functionName);
/frameworks/base/core/tests/coretests/src/android/util/
H A DLongSparseLongArrayTest.java77 final HashMap<Long, Long> map = new HashMap<Long, Long>();
84 map.put(key, value);
87 if (r.nextBoolean() && map.size() > 0) {
88 final int index = r.nextInt(map.size());
89 final long key = getKeyAtIndex(map, index);
90 map.remove(key);
95 Log.d(TAG, "verifying a map with " + map.size() + " entries");
97 for (Map.Entry<Long, Long> e : map.entrySet()) {
104 private static <E> E getKeyAtIndex(Map<E, ?> map, in 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...]
H A DArrayMap.java30 * avoid having to create an extra object for every entry put in to the map, and it
33 * a hash map).
67 public ArrayMap(SimpleArrayMap map) { argument
68 super(map);
124 * Determine if the array map contains all of the keys in the given collection.
126 * @return Returns true if this array map contains a key for every entry
134 * Perform a {@link #put(Object, Object)} of all key/value pairs in <var>map</var>
135 * @param map The map whose contents are to be retrieved.
138 public void putAll(Map<? extends K, ? extends V> map) { argument
[all...]
/frameworks/base/core/tests/coretests/src/android/provider/
H A DSmsProviderTest.java54 ContentValues map = new ContentValues();
55 map.put("address", "+15045551337");
56 map.put("read", 0);
61 map.put("body", "Test " + i + " !");
62 map.put("date", dates[i]);
63 urls[i] = contentResolver.insert(Sms.Inbox.CONTENT_URI, map);
/frameworks/base/services/java/com/android/server/
H A DAttributeCache.java101 HashMap<int[], Entry> map = null;
104 map = pkg.mMap.get(resId);
105 if (map != null) {
106 ent = map.get(styleable);
126 if (map == null) {
127 map = new HashMap<int[], Entry>();
128 pkg.mMap.put(resId, map);
134 map.put(styleable, ent);
/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...]
/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/core/tests/coretests/src/android/os/
H A DFileObserverTest.java47 Map<String, Object> map = Maps.newHashMap();
49 map.put("event", event);
50 map.put("path", path);
52 events.add(map);
113 Map map = it.next();
114 Log.i("FileObserverTest", "event: " + getEventString((Integer)map.get("event")) + " path: " + map.get("path"));
/frameworks/native/libs/input/
H A DVirtualKeyMap.cpp55 ALOGE("Error %d opening virtual key map file %s.", status, filename.string());
57 VirtualKeyMap* map = new VirtualKeyMap(); local
58 if (!map) {
59 ALOGE("Error allocating virtual key map.");
65 Parser parser(map, tokenizer);
69 ALOGD("Parsed key character map file '%s' %d lines in %0.3fms.",
74 delete map;
76 *outMap = map;
87 VirtualKeyMap::Parser::Parser(VirtualKeyMap* map, Tokenizer* tokenizer) : argument
88 mMap(map), mTokenize
[all...]
/frameworks/rs/cpu_ref/linkloader/include/
H A DStubLayout.h20 #include <map>
28 std::map<void *, void *> stub_index;
/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/opt/telephony/src/java/com/android/internal/telephony/
H A DImsSMSDispatcher.java228 HashMap map = tracker.mData;
233 if (!( map.containsKey("scAddr") && map.containsKey("destAddr") &&
234 ( map.containsKey("text") ||
235 (map.containsKey("data") && map.containsKey("destPort"))))) {
247 String scAddr = (String)map.get("scAddr");
248 String destAddr = (String)map.get("destAddr");
252 if (map.containsKey("text")) {
254 String text = (String)map
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_env.h22 #include <map>
232 std::map<int, EGLContext> contexts_;
233 std::map<int, SurfaceWindowPair> surfaces_;
255 std::map<int, ShaderProgram*> attached_shaders_;
256 std::map<int, VertexFrame*> attached_vframes_;
/frameworks/base/libs/hwui/
H A DAssetAtlas.cpp31 void AssetAtlas::init(sp<GraphicBuffer> buffer, int* map, int count) { argument
46 createEntries(caches, map, count);
111 void AssetAtlas::createEntries(Caches& caches, int* map, int count) { argument
116 SkBitmap* bitmap = (SkBitmap*) map[i++];
117 int x = map[i++];
118 int y = map[i++];
119 bool rotated = map[i++] > 0;
/frameworks/base/services/java/com/android/server/am/
H A DProviderMap.java133 HashMap<String, ContentProviderRecord> map = getProvidersByName(userId);
134 // map returned by getProvidersByName wouldn't be null
135 map.remove(name);
136 if (map.size() == 0) {
152 HashMap<ComponentName, ContentProviderRecord> map = getProvidersByClass(userId);
153 // map returned by getProvidersByClass wouldn't be null
154 map.remove(name);
155 if (map.size() == 0) {
163 final HashMap<String, ContentProviderRecord> map = mProvidersByNamePerUser.get(userId);
164 if (map
234 dumpProvidersByClassLocked(PrintWriter pw, boolean dumpAll, String dumpPackage, String header, boolean needSep, HashMap<ComponentName, ContentProviderRecord> map) argument
260 dumpProvidersByNameLocked(PrintWriter pw, String dumpPackage, String header, boolean needSep, HashMap<String, ContentProviderRecord> map) argument
[all...]

Completed in 701 milliseconds

123456