Searched refs:map (Results 26 - 50 of 305) sorted by relevance

1234567891011>>

/frameworks/base/services/core/java/com/android/server/
H A DAttributeCache.java94 final ArrayMap<int[], Entry> map = pkg.mMap.valueAt(i);
95 for (int j = 0; j < map.size(); j++) {
96 map.valueAt(j).recycle();
125 ArrayMap<int[], Entry> map = null;
128 map = pkg.mMap.get(resId);
129 if (map != null) {
130 ent = map.get(styleable);
150 if (map == null) {
151 map = new ArrayMap<>();
152 pkg.mMap.put(resId, 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/media/jni/
H A Dandroid_media_ExifInterface.cpp64 static jobject KeyedVectorToHashMap(JNIEnv *env, KeyedVector<String8, String8> const &map) { argument
67 for (size_t i = 0; i < map.size(); ++i) {
68 jstring jkey = env->NewStringUTF(map.keyAt(i).string());
69 jstring jvalue = env->NewStringUTF(map.valueAt(i).string());
137 KeyedVector<String8, String8> map; local
141 map.add(String8("HasThumbnail"), String8("true"));
142 map.add(String8("ThumbnailOffset"), String8::format("%d", image_data.thumbnail.offset));
143 map.add(String8("ThumbnailLength"), String8::format("%d", image_data.thumbnail.length));
145 map.add(String8("HasThumbnail"), String8("false"));
148 map
[all...]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
H A DBluetoothMasRequestUpdateInbox.java17 package android.bluetooth.client.map;
H A DBluetoothMasRequestGetFolderListingSize.java17 package android.bluetooth.client.map;
19 import android.bluetooth.client.map.utils.ObexAppParameters;
H A DBluetoothMasRequestGetMessagesListingSize.java17 package android.bluetooth.client.map;
19 import android.bluetooth.client.map.utils.ObexAppParameters;
H A DBluetoothMasRequestSetMessageStatus.java17 package android.bluetooth.client.map;
19 import android.bluetooth.client.map.utils.ObexAppParameters;
/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/base/services/core/java/com/android/server/am/
H A DCoreSettingsObserver.java103 private void populateSettings(Bundle snapshot, Map<String, Class<?>> map) { argument
105 for (Map.Entry<String, Class<?>> entry : map.entrySet()) {
110 if (map == sSecureSettingToTypeMap) {
112 } else if (map == sSystemSettingToTypeMap) {
120 if (map == sSecureSettingToTypeMap) {
122 } else if (map == sSystemSettingToTypeMap) {
130 if (map == sSecureSettingToTypeMap) {
132 } else if (map == sSystemSettingToTypeMap) {
140 if (map == sSecureSettingToTypeMap) {
142 } else if (map
[all...]
/frameworks/support/v4/java/android/support/v4/util/
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/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/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/base/libs/hwui/
H A DAssetAtlas.cpp30 void AssetAtlas::init(sp<GraphicBuffer> buffer, int64_t* map, int count) { argument
44 createEntries(caches, map, count);
96 void AssetAtlas::createEntries(Caches& caches, int64_t* map, int count) { argument
101 SkPixelRef* pixelRef = reinterpret_cast<SkPixelRef*>(map[i++]);
107 const int x = static_cast<int>(map[i++]);
108 const int y = static_cast<int>(map[i++]);
H A DProgramCache.h23 #include <map>
59 std::map<programid, std::unique_ptr<Program>> mCache;
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/ext/
H A Dlist_ext.kt22 else -> this.map {it.toCamelCase()}.joinToString("")
/frameworks/opt/bluetooth/
H A DAndroid.mk21 src_dirs:= src/android/bluetooth/client/map
26 LOCAL_MODULE:= android.bluetooth.client.map
/frameworks/av/media/utils/include/mediautils/
H A DBatteryNotifier.h24 #include <map>
63 std::map<std::pair<String8, int>, bool> mFlashlightState;
64 std::map<std::pair<String8, int>, bool> mCameraState;
/frameworks/base/tools/aapt2/io/
H A DFileSystem.h22 #include <map>
51 std::map<std::string, std::unique_ptr<IFile>>::const_iterator mCurrent, mEnd;
68 std::map<std::string, std::unique_ptr<IFile>> mFiles;
H A DZipArchive.h23 #include <map>
56 std::map<std::string, std::unique_ptr<IFile>>::const_iterator mCurrent, mEnd;
77 std::map<std::string, std::unique_ptr<IFile>> mFiles;
/frameworks/base/tools/aapt2/xml/
H A DXmlActionExecutor.h25 #include <map>
73 std::map<std::u16string, XmlNodeAction> mMap;
100 std::map<std::u16string, XmlNodeAction> mMap;
/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/services/audiopolicy/engineconfigurable/src/
H A DCollection.h27 #include <map>
37 * Collection of policy element as a map indexed with a their UID type.
47 class Collection : public std::map<Key, Element<Key> *>
50 typedef std::map<Key, Element<Key> *> Base;
52 typedef typename std::map<Key, T *>::iterator CollectionIterator;
53 typedef typename std::map<Key, T *>::const_iterator CollectionConstIterator;
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/include/
H A DParameterManagerWrapper.h24 #include <map>
45 typedef std::map<std::string, ISelectionCriterionInterface *> CriterionCollection;
46 typedef std::map<std::string, ISelectionCriterionTypeInterface *> CriterionTypeCollection;
72 * @todo: map on initCheck?
226 * Retrieve an element from a map by its name.
235 T *getElement(const std::string &name, std::map<std::string, T *> &elementsMap);
238 * Retrieve an element from a map by its name. Const version.
248 const std::map<std::string, T *> &elementsMap) const;
269 CriterionTypeCollection mPolicyCriterionTypes; /**< Policy Criterion Type map. */
/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_;

Completed in 8245 milliseconds

1234567891011>>