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

1234567891011>>

/frameworks/native/include/binder/
H A DMap.h20 #include <map>
30 * Convenience typedef for ::std::map<::std::string,::android::binder::Value>
32 typedef ::std::map<::std::string, Value> Map;
/frameworks/native/libs/binder/include/binder/
H A DMap.h20 #include <map>
30 * Convenience typedef for ::std::map<::std::string,::android::binder::Value>
32 typedef ::std::map<::std::string, Value> Map;
/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/base/test-runner/src/android/test/
H A DSimpleCache.java24 private Map<K, V> map = new HashMap<K, V>(); field in class:SimpleCache
29 if (map.containsKey(key)) {
30 return map.get(key);
33 map.put(key, value);
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
H A DBracketObject.java21 public HashMap<String, String> map = new HashMap<>(); field in class:BracketObject
/frameworks/base/core/tests/coretests/src/android/util/
H A DArrayMapTest.java29 ArrayMap<String, String> map = new ArrayMap<>(); field in class:ArrayMapTest
47 while (map != null) {
49 map.put(String.format("key %d", i++), "B_DONT_DO_THAT");
58 + " size=" + (map == null ? "??" : String.valueOf(map.size())) + "]");
68 map.clear();
80 + i + " size=" + map.size() + "]");
83 map = null; // will stop other thread
94 map.put(String.format("key %d", i++), "B_DONT_DO_THAT");
99 map
[all...]
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/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/av/services/oboeservice/
H A DAAudioEndpointManager.h20 #include <map>
54 std::map<int32_t, AAudioServiceEndpointCapture *> mInputs;
55 std::map<int32_t, AAudioServiceEndpointPlay *> mOutputs;
/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 Dandroid_view_KeyCharacterMap.h28 const sp<KeyCharacterMap>& map);
/frameworks/base/tools/aapt2/unflatten/
H A DBinaryResourceParser.h71 const android::ResTable_map_entry* map);
75 const android::ResTable_map_entry* map);
79 const android::ResTable_map_entry* map);
83 const android::ResTable_map_entry* map);
87 const android::ResTable_map_entry* map);
121 std::map<ResourceId, ResourceName> id_index_;
132 inline const ResTable_map* begin(const ResTable_map_entry* map) { argument
133 return (const ResTable_map*)((const uint8_t*)map +
134 aapt::util::DeviceToHost32(map->size));
137 inline const ResTable_map* end(const ResTable_map_entry* map) { argument
[all...]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DXmlUtilsTest.java31 Map<String, Object> map = new HashMap<String, Object>();
32 map.put(null, "nullValue");
33 map.put("foo", "fooValue");
34 XmlUtils.writeMapXml(map, baos);
/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/java/android/bluetooth/le/
H A DBluetoothLeUtils.java57 static <T> String toString(Map<T, byte[]> map) { argument
58 if (map == null) {
61 if (map.isEmpty()) {
66 Iterator<Map.Entry<T, byte[]>> it = map.entrySet().iterator();
70 buffer.append(key).append("=").append(Arrays.toString(map.get(key)));
106 static <T> boolean equals(Map<T, byte[]> map, Map<T, byte[]> otherMap) { argument
107 if (map == otherMap) {
110 if (map == null || otherMap == null) {
113 if (map.size() != otherMap.size()) {
116 Set<T> keys = map
[all...]
/frameworks/base/tools/aapt2/compile/
H A DIdAssigner.h34 explicit IdAssigner(const std::unordered_map<ResourceName, ResourceId>* map) argument
35 : assigned_id_map_(map) {}
/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/av/media/utils/include/mediautils/
H A DBatteryNotifier.h24 #include <map>
61 std::map<uid_t, int> mVideoRefCounts;
62 std::map<uid_t, int> mAudioRefCounts;
63 std::map<std::pair<String8, uid_t>, bool> mFlashlightState;
64 std::map<std::pair<String8, uid_t>, bool> mCameraState;
/frameworks/base/tools/aapt2/io/
H A DFileSystem.cpp35 android::FileMap map; local
36 if (Maybe<android::FileMap> map = file::MmapPath(source_.path, nullptr)) {
37 if (map.value().getDataPtr() && map.value().getDataLength() > 0) {
38 return util::make_unique<MmappedData>(std::move(map.value()));
/frameworks/support/compat/tests/java/android/support/v4/util/
H A DSimpleArrayMapTest.java35 SimpleArrayMap<String, String> map = new SimpleArrayMap<>(); field in class:SimpleArrayMapTest
52 map.put(String.format("key %d", i++), "B_DONT_DO_THAT");
70 map.clear();
90 map.put(String.format("key %d", i++), "B_DONT_DO_THAT");
92 map.clear();
/frameworks/base/tools/aapt2/java/
H A DProguardRules.h20 #include <map>
45 std::map<std::string, std::set<Source>> keep_set_;
46 std::map<std::string, std::set<Source>> keep_method_set_;
/frameworks/support/compat/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);
84 mapValue = map.get(key);
93 * Attempt to create a value. This may take a long time, and the map
95 * added to the map while create() was working, we leave that value in
96 * the map and release the created value.
106 mapValue = map.put(key, createdValue);
110 map.put(key, mapValue);
140 previous = map.put(key, value);
166 if (size < 0 || (map
[all...]

Completed in 716 milliseconds

1234567891011>>