Searched defs:map (Results 51 - 75 of 129) sorted by relevance

123456

/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/core/java/android/os/
H A DSharedMemory.java173 * protection level of the shared memory is at least PROT_READ|PROT_WRITE or the map will fail.
175 * Use {@link #map(int, int, int)} to have more control over the mapping if desired.
176 * This is equivalent to map(OsConstants.PROT_READ | OsConstants.PROT_WRITE, 0, getSize())
182 return map(OsConstants.PROT_READ | OsConstants.PROT_WRITE, 0, mSize);
187 * protection level of the shared memory is at least PROT_READ or the map will fail.
189 * Use {@link #map(int, int, int)} to have more control over the mapping if desired.
190 * This is equivalent to map(OsConstants.PROT_READ, 0, getSize())
196 return map(OsConstants.PROT_READ, 0, mSize);
202 * to map() may be paired with a call to {@link #unmap(ByteBuffer)} when the ByteBuffer
203 * returned by map() i
213 public @NonNull ByteBuffer map(int prot, int offset, int length) throws ErrnoException { method in class:SharedMemory
[all...]
/frameworks/base/core/java/android/util/
H A DMathUtils.java185 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/util/
H A DArrayUtils.java138 * Checks if given map is null or has zero elements.
140 public static boolean isEmpty(@Nullable Map<?, ?> map) { argument
141 return map == null || map.isEmpty();
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.cpp50 NativeKeyCharacterMap(int32_t deviceId, const sp<KeyCharacterMap>& map) : argument
51 mDeviceId(deviceId), mMap(map) {
73 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, local
75 if (!map) {
80 reinterpret_cast<jlong>(map));
99 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, kcm); local
100 return reinterpret_cast<jlong>(map);
104 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
107 parcel->writeInt32(map->getDeviceId());
108 map
113 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
119 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
125 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
139 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
145 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
162 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
167 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
173 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); local
[all...]
H A Dfd_utils.cpp523 const std::unordered_map<int, FileDescriptorInfo*>& map)
524 : open_fd_map_(map) {
522 FileDescriptorTable( const std::unordered_map<int, FileDescriptorInfo*>& map) argument
/frameworks/base/libs/androidfw/
H A DLocaleData.cpp52 auto map = SCRIPT_PARENTS[i].map; local
53 auto lookup_result = map->find(packed_locale);
54 if (lookup_result != map->end()) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DForegroundServiceControllerImpl.java246 public void addNotification(ArrayMap<String, ArraySet<String>> map, String pkg, argument
248 if (map.get(pkg) == null) {
249 map.put(pkg, new ArraySet<>());
251 map.get(pkg).add(key);
254 public boolean removeNotification(ArrayMap<String, ArraySet<String>> map, argument
257 final ArraySet<String> keys = map.get(pkg);
263 map.remove(pkg);
/frameworks/base/services/core/java/com/android/server/am/
H A DProviderMap.java141 HashMap<String, ContentProviderRecord> map = getProvidersByName(userId);
142 // map returned by getProvidersByName wouldn't be null
143 map.remove(name);
144 if (map.size() == 0) {
160 HashMap<ComponentName, ContentProviderRecord> map = getProvidersByClass(userId);
161 // map returned by getProvidersByClass wouldn't be null
162 map.remove(name);
163 if (map.size() == 0) {
171 final HashMap<String, ContentProviderRecord> map = mProvidersByNamePerUser.get(userId);
172 if (map
249 dumpProvidersByClassLocked(PrintWriter pw, boolean dumpAll, String dumpPackage, String header, boolean needSep, HashMap<ComponentName, ContentProviderRecord> map) argument
275 dumpProvidersByNameLocked(PrintWriter pw, String dumpPackage, String header, boolean needSep, HashMap<String, ContentProviderRecord> map) argument
[all...]
/frameworks/base/test-runner/src/android/test/
H A DMoreAsserts.java413 * Asserts that {@code map} is empty.
415 public static void assertEmpty(String message, Map<?,?> map) { argument
416 if (!map.isEmpty()) {
417 failNotEmpty(message, map.toString());
425 public static void assertEmpty(Map<?,?> map) { argument
426 assertEmpty(null, map);
447 * Asserts that {@code map} is not empty.
449 public static void assertNotEmpty(String message, Map<?,?> map) { argument
450 if (map.isEmpty()) {
459 public static void assertNotEmpty(Map<?,?> map) { argument
[all...]
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DAutomaticActivity.java177 private static void logTestResultHash(String label, HashMap<String, TestResult> map) { argument
194 for (TestResult t : map.values()) {
/frameworks/base/tools/aapt2/format/binary/
H A DBinaryResourceParser.cpp20 #include <map>
51 explicit ReferenceIdToNameVisitor(const std::map<ResourceId, ResourceName>* mapping)
71 const std::map<ResourceId, ResourceName>* mapping_;
403 // Erase the ID from the map once processed, so that we don't mark the same symbol more than
454 const ResTable_map_entry* map) {
457 return ParseStyle(name, config, map);
461 return ParseAttr(name, config, map);
463 return ParseArray(name, config, map);
465 return ParsePlural(name, config, map);
468 // IDs that come from declaring an enum value in an attribute as an empty map
452 ParseMapEntry(const ResourceNameRef& name, const ConfigDescription& config, const ResTable_map_entry* map) argument
479 ParseStyle(const ResourceNameRef& name, const ConfigDescription& config, const ResTable_map_entry* map) argument
504 ParseAttr(const ResourceNameRef& name, const ConfigDescription& config, const ResTable_map_entry* map) argument
544 ParseArray(const ResourceNameRef& name, const ConfigDescription& config, const ResTable_map_entry* map) argument
554 ParsePlural(const ResourceNameRef& name, const ConfigDescription& config, const ResTable_map_entry* map) argument
[all...]
/frameworks/base/tools/bit/
H A Dutil.cpp102 get_directory_contents(const string& name, map<string,FileInfo>* results)
127 directory_contents_differ(const map<string,FileInfo>& before, const map<string,FileInfo>& after) argument
132 map<string,FileInfo>::const_iterator b = before.begin();
133 map<string,FileInfo>::const_iterator a = after.begin();
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/
H A DBaseCompilationTest.java150 Map<String, String> map = new HashMap<String, String>();
152 map.put(keysAndValues[i], keysAndValues[i + 1]);
154 return map;
192 private Map<String, String> addDefaults(Map<String, String> map) { argument
193 if (map == null) {
194 map = new HashMap<String, String>();
196 if (!map.containsKey(KEY_MANIFEST_PACKAGE)) {
197 map.put(KEY_MANIFEST_PACKAGE, DEFAULT_APP_PACKAGE);
199 if (!map.containsKey(KEY_SETTINGS_INCLUDES)) {
200 map
[all...]
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
H A DTwoWayBindingObject.java54 public final ObservableArrayMap<String, Integer> map = new ObservableArrayMap<>(); field in class:TwoWayBindingObject
78 map.put(VALUES[i], i + 1);
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DAsmGenerator.java64 /** FQCN Names of the classes to rename: map old-FQCN => new-FQCN */
70 /** A map { FQCN => set { list of return types to delete from the FQCN } }. */
72 /** A map { FQCN => set { method names } } of methods to rewrite as delegates.
76 * map old-FQCN => new-FQCN */
81 /** A map { FQCN => set { field names } } which should be promoted to public visibility */
114 // Create the map/set of methods to change to delegates
128 // Create the map of classes to rename.
145 // Create a map of classes to be refactored.
159 // create the map of renamed class -> return type of method to delete.
165 // if we reach the end of a section, add it to the main map
201 addToMap(String[] entries, Map<String, Set<String>> map) argument
[all...]
/frameworks/native/libs/binder/
H A DPersistableBundle.cpp36 using std::map;
49 bool getValue(const android::String16& key, T* out, const map<android::String16, T>& map) { argument
50 const auto& it = map.find(key);
51 if (it == map.end()) return false;
57 set<android::String16> getKeys(const map<android::String16, T>& map) { argument
58 if (map.empty()) return set<android::String16>();
60 for (const auto& key_value_pair : map) {
80 #define RETURN_IF_ENTRY_ERASED(map, ke
[all...]
/frameworks/native/libs/input/
H A DKeyLayoutMap.cpp58 ALOGE("Error %d opening key layout map file %s.", status, filename.string());
60 sp<KeyLayoutMap> map = new KeyLayoutMap(); local
61 if (!map.get()) {
62 ALOGE("Error allocating key layout map.");
68 Parser parser(map.get(), tokenizer);
72 ALOGD("Parsed key layout map file '%s' %d lines in %0.3fms.",
77 *outMap = map;
191 KeyLayoutMap::Parser::Parser(KeyLayoutMap* map, Tokenizer* tokenizer) : argument
192 mMap(map), mTokenizer(tokenizer) {
257 KeyedVector<int32_t, Key>& map local
421 KeyedVector<int32_t, Led>& map = mapUsage ? mMap->mLedsByUsageCode : mMap->mLedsByScanCode; local
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduParser.java784 HashMap<Integer, Object> map =
787 parseContentType(pduDataStream, map);
805 mStartParam = (byte[]) map.get(PduPart.P_START);
808 mTypeParam= (byte[]) map.get(PduPart.P_TYPE);
854 HashMap<Integer, Object> map = new HashMap<Integer, Object>();
855 byte[] contentType = parseContentType(pduDataStream, map);
863 byte[] name = (byte[]) map.get(PduPart.P_NAME);
869 Integer charset = (Integer) map.get(PduPart.P_CHARSET);
1337 * @param map to store parameters of Content-Type field
1341 HashMap<Integer, Object> map, Intege
1340 parseContentTypeParams(ByteArrayInputStream pduDataStream, HashMap<Integer, Object> map, Integer length) argument
1523 parseContentType(ByteArrayInputStream pduDataStream, HashMap<Integer, Object> map) argument
[all...]
/frameworks/rs/
H A DrsMap.h92 next = map->bucket[bucket_index];
105 map == other.map;
110 map != other.map;
118 iterator(size_t index, LinkNode* n, const Map* m) : bucket_index(index), node(n), map(m) {}
123 const Map* map; member in class:android::renderscript::Map::iterator
/frameworks/support/collection/src/main/java/androidx/collection/
H A DSimpleArrayMap.java230 * Create a new empty ArrayMap. The default capacity of an array map is 0, and
255 public SimpleArrayMap(SimpleArrayMap<K, V> map) { argument
257 if (map != null) {
258 putAll(map);
263 * Make the array map empty. All storage is released.
281 * Ensure the array map can hold at least <var>minimumCapacity</var>
394 * Return true if the array map contains no items.
401 * Add a new value to the array map.
491 * Remove an existing key from the array map.
571 * Return the number of items in this array map
[all...]
/frameworks/support/paging/common/src/main/java/androidx/paging/
H A DDataSource.java146 * @see DataSource#map(Function)
150 public <ToValue> DataSource.Factory<Key, ToValue> map( method in class:DataSource.Factory
158 * Same as {@link #map(Function)}, but allows for batch conversions.
166 * @see #map(Function)
167 * @see DataSource#map(Function)
214 * Same as {@link #map(Function)}, but allows for batch conversions.
222 * @see #map(Function)
223 * @see DataSource.Factory#map(Function)
242 * @see DataSource.Factory#map(Function)
246 public abstract <ToValue> DataSource<Key, ToValue> map( method in class:DataSource
[all...]
H A DItemKeyedDataSource.java370 public final <ToValue> ItemKeyedDataSource<Key, ToValue> map( method in class:ItemKeyedDataSource

Completed in 461 milliseconds

123456