Searched defs:map (Results 26 - 50 of 129) sorted by relevance

123456

/frameworks/base/tools/aapt2/io/
H A DFileSystem.cpp36 android::FileMap map; local
37 if (Maybe<android::FileMap> map = file::MmapPath(source_.path, nullptr)) {
38 if (map.value().getDataPtr() && map.value().getDataLength() > 0) {
39 return util::make_unique<MmappedData>(std::move(map.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/java/android/hardware/radio/
H A DUtils.java36 static void writeStringMap(@NonNull Parcel dest, @Nullable Map<String, String> map) { argument
37 if (map == null) {
41 dest.writeInt(map.size());
42 for (Map.Entry<String, String> entry : map.entrySet()) {
50 Map<String, String> map = new HashMap<>();
54 map.put(key, value);
56 return map;
59 static void writeStringIntMap(@NonNull Parcel dest, @Nullable Map<String, Integer> map) { argument
60 if (map == null) {
64 dest.writeInt(map
[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);
117 mapValue = map.get(key);
126 * Attempt to create a value. This may take a long time, and the map
128 * added to the map while create() was working, we leave that value in
129 * the map and release the created value.
139 mapValue = map.put(key, createdValue);
143 map.put(key, mapValue);
173 previous = map.put(key, value);
199 if (size < 0 || (map
[all...]
/frameworks/base/libs/hwui/
H A DPixelBuffer.cpp38 uint8_t* map(AccessMode mode = kAccessMode_ReadWrite) override;
53 uint8_t* CpuPixelBuffer::map(AccessMode mode) { function in class:android::uirenderer::CpuPixelBuffer
78 uint8_t* map(AccessMode mode = kAccessMode_ReadWrite) override;
106 uint8_t* GpuPixelBuffer::map(AccessMode mode) { function in class:android::uirenderer::GpuPixelBuffer
112 LOG_ALWAYS_FATAL("Failed to map PBO");
H A DUvMapper.h26 * This class can be used to map UV coordinates from the [0..1]
48 * Returns true if calling the map*() methods has no effect (that is,
86 void map(Rect& texCoords) const { function in class:android::uirenderer::UvMapper
98 void map(float& u1, float& v1, float& u2, float& v2) const { function in class:android::uirenderer::UvMapper
/frameworks/base/tools/validatekeymaps/
H A DMain.cpp100 sp<KeyLayoutMap> map; local
101 status_t status = KeyLayoutMap::load(String8(filename), &map);
110 sp<KeyCharacterMap> map; local
112 KeyCharacterMap::FORMAT_ANY, &map);
114 error("Error %d parsing key character map file.\n\n", status);
121 PropertyMap* map; local
122 status_t status = PropertyMap::load(String8(filename), &map);
127 delete map;
132 VirtualKeyMap* map; local
133 status_t status = VirtualKeyMap::load(String8(filename), &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/hardware/interfaces/sensorservice/1.0/vts/functional/
H A DVtsHalSensorManagerV1_0TargetTest.cpp116 map_region map(const hidl_memory &mem) { function
228 map_region buf = map(mem);
/frameworks/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/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/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
H A DVolumeLoader.java33 HashMap<String, Properties> map = new HashMap<String, Properties>(); field in class:VolumeLoader
38 map.put(Mandelbulb.NAME,null);
39 map.put(Droid.NAME,null);
47 map.put(prop[i].getProperty("name"), prop[i]);
53 String [] ret = map.keySet().toArray(new String[map.size()]);
65 Properties p = map.get(name);
/frameworks/support/collection/src/main/java/androidx/collection/
H A DLruCache.java31 private final LinkedHashMap<K, V> map; field in class:LruCache
53 this.map = new LinkedHashMap<K, V>(0, 0.75f, true);
85 mapValue = map.get(key);
94 * Attempt to create a value. This may take a long time, and the map
96 * added to the map while create() was working, we leave that value in
97 * the map and release the created value.
107 mapValue = map.put(key, createdValue);
111 map.put(key, mapValue);
141 previous = map.put(key, value);
167 if (size < 0 || (map
[all...]
/frameworks/wilhelm/src/android/
H A Dchannels.cpp127 // In practice this map is unnecessary, because the SL definitions just
153 // This map is quite sparse, because there really isn't a reasonable mapping
154 // between most of the SL_SPEAKER bits and the android input map. It's probably
165 const struct channel_map* map,
186 if (bitsIn & map[i].sles) {
187 bitsOut |= map[i].android;
163 sles_to_android_mask_helper( SLuint32 mask, const struct channel_map* map, unsigned int nMappings) argument
/frameworks/base/core/java/android/os/
H A DPersistableBundle.java109 * @param map a Map containing only those items that can be persisted.
110 * @throws IllegalArgumentException if any element of #map cannot be persisted.
112 private PersistableBundle(ArrayMap<String, Object> map) { argument
117 putAll(map);
159 * Clones the current PersistableBundle. The internal map is cloned, but the keys and
/frameworks/base/core/java/android/os/health/
H A DHealthStatsWriter.java120 ArrayMap<String,HealthStatsWriter> map = mStatsValues[index];
121 if (map == null) {
122 map = mStatsValues[index] = new ArrayMap<String,HealthStatsWriter>(1);
124 map.put(name, value);
135 ArrayMap<String,TimerStat> map = mTimersValues[index];
136 if (map == null) {
137 map = mTimersValues[index] = new ArrayMap<String,TimerStat>(1);
139 map.put(name, value);
148 ArrayMap<String,Long> map = mMeasurementsValues[index];
149 if (map
252 writeHealthStatsWriterMap(Parcel out, ArrayMap<String,HealthStatsWriter> map) argument
265 writeParcelableMap(Parcel out, ArrayMap<String,T> map) argument
278 writeLongsMap(Parcel out, ArrayMap<String,Long> map) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DCollectionUtils.java105 * This is similar to {@link Stream#map} but without the overhead of creating an intermediate
108 public static @NonNull <I, O> List<O> map(@Nullable List<I> cur, method in class:CollectionUtils
119 * @see #map(List, Function)
121 public static @NonNull <I, O> Set<O> map(@Nullable Set<I> cur, method in class:CollectionUtils
140 * {@link #map(List, Function)} + {@link #filter(List, java.util.function.Predicate)}
146 * map(cur, f),
/frameworks/base/libs/androidfw/
H A DApkAssets.cpp171 std::unique_ptr<FileMap> map = util::make_unique<FileMap>(); local
172 if (!map->create(path_.c_str(), ::GetFileDescriptor(zip_handle_.get()), entry.offset,
179 Asset::createFromCompressedMap(std::move(map), entry.uncompressed_length, mode);
186 std::unique_ptr<FileMap> map = util::make_unique<FileMap>(); local
187 if (!map->create(path_.c_str(), ::GetFileDescriptor(zip_handle_.get()), entry.offset,
193 std::unique_ptr<Asset> asset = Asset::createFromUncompressedMap(std::move(map), mode);
/frameworks/base/media/jni/
H A Dandroid_media_AudioPresentation.h75 static status_t ConvertMessageToMap(JNIEnv *env, const sp<AMessage> &msg, jobject *map) { argument
125 *map = hashMap;
/frameworks/base/native/webview/plat_support/
H A Ddraw_gl.h105 // Called to map a GraphicBuffer in |mode|.
121 AwMapFunction* map; member in struct:AwDrawGLFunctionTable
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
H A DUtilsTest.java173 private static Map<String, Integer> map = new HashMap<>(); field in class:UtilsTest.ShadowSecure
177 map.put(name, value);
183 if (map.containsKey(name)) {
184 return map.get(name);
191 map.clear();
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DArrayMapTests.java121 private static boolean compareMaps(HashMap map, ArrayMap array) { argument
122 if (map.size() != array.size()) {
123 Log.e("test", "Bad size: expected " + map.size() + ", got " + array.size());
127 Set<Map.Entry> mapSet = map.entrySet();
141 Object expValue = map.get(key);
149 if (map.entrySet().hashCode() != array.entrySet().hashCode()) {
150 Log.e("test", "Entry set hash codes differ: map=0x"
151 + Integer.toHexString(map.entrySet().hashCode()) + " array=0x"
156 if (!map.entrySet().equals(array.entrySet())) {
157 Log.e("test", "Failed calling equals on map entr
300 dump(Map map, ArrayMap array) argument
[all...]
/frameworks/native/libs/vr/libpdx/
H A Dserialization_tests.cpp95 MapType map; local
97 map.emplace(i, i);
99 for (const auto& element : map) {
905 TEST(SerializationTest, map) {
908 std::map<std::uint32_t, std::uint32_t> value;
1203 std::map<int, std::pair<std::string, int>> m1 = {{0, {"a", 2}},
2047 TEST(DeserializationTest, map) {
2049 std::map<std::uint32_t, std::uint32_t> result;
2050 std::map<std::uint32_t, std::uint32_t> expected;
/frameworks/rs/
H A DrsClosure.cpp132 auto map = p.second; local
133 for (const auto& p1 : *map) {
/frameworks/av/drm/libmediadrm/
H A DDrmMetrics.cpp143 const std::map<std::string, std::pair<int64_t, int64_t>> &mSessionLifespans,
348 auto *map = metrics.mutable_session_lifetimes(); local
350 (*map)[sessionLifespan.first].set_start_time_ms(
352 (*map)[sessionLifespan.first].set_end_time_ms(
381 std::map<String16, int> indexMap;

Completed in 706 milliseconds

123456