Home
last modified time | relevance | path

Searched defs:key (Results 151 – 175 of 5445) sorted by relevance

12345678910>>...218

/aosp12/frameworks/base/core/java/android/util/
H A DSparseLongArray.java92 public long get(int key) { in get()
100 public long get(int key, long valueIfKeyNotFound) { in get()
113 public void delete(int key) { in delete()
152 public void put(int key, long value) { in put()
228 public int indexOfKey(int key) { in indexOfKey()
259 public void append(int key, long value) { in append()
287 int key = keyAt(i); in toString() local
H A DSparseIntArray.java99 public int get(int key) { in get()
107 public int get(int key, int valueIfKeyNotFound) { in get()
120 public void delete(int key) { in delete()
142 public void put(int key, int value) { in put()
235 public int indexOfKey(int key) { in indexOfKey()
266 public void append(int key, int value) { in append()
306 int key = keyAt(i); in toString() local
H A DLruCache.java113 public final V get(K key) { in get()
167 public final V put(K key, V value) { in put()
199 K key; in trimToSize() local
232 public final V remove(K key) { in remove()
267 protected void entryRemoved(boolean evicted, K key, V oldValue, V newValue) {} in entryRemoved()
284 protected V create(K key) { in create()
288 private int safeSizeOf(K key, V value) { in safeSizeOf()
303 protected int sizeOf(K key, V value) { in sizeOf()
/aosp12/frameworks/compile/mclinker/unittests/
H A DHashTableTest.cpp95 int key = 100; in TEST_F() local
114 for (int key = 0; key < 100; ++key) { in TEST_F() local
136 for (unsigned int key = 0; key < 100; ++key) in TEST_F() local
143 for (unsigned int key = 0; key < 100; ++key) { in TEST_F() local
161 for (unsigned int key = 0; key < 100; ++key) { in TEST_F() local
191 for (unsigned int key = 0; key < 20; ++key) { in TEST_F() local
204 for (unsigned int key = 0; key < 20; ++key) { in TEST_F() local
227 for (int key = 0; key < 400000; ++key) { in TEST_F() local
266 for (int key = 0; key < 16; ++key) { in TEST_F() local
270 for (int key = 0; key < 16; ++key) { in TEST_F() local
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_transaction_record_test.cpp96 Key key; variable
141 Key key; variable
174 Key key; variable
215 Key key; variable
269 Key key; variable
319 Key key; variable
413 Key key; variable
520 Key key; variable
543 Key key; variable
575 Key key; variable
[all …]
/ohos5.0/base/inputmethod/imf/frameworks/common/
H A Dconcurrent_map.h103 std::pair<bool, mapped_type> Find(const key_type &key) const noexcept in Find()
114 bool Contains(const key_type &key) const noexcept in Contains()
121 bool InsertOrAssign(const key_type &key, _Obj &&obj) noexcept in InsertOrAssign()
128 bool Insert(const key_type &key, const mapped_type &value) noexcept in Insert()
135 size_type Erase(const key_type &key) noexcept in Erase()
161 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf()
211 …bool Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &acti… in Compute()
232 …bool ComputeIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type … in ComputeIfPresent()
248 …bool ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &acti… in ComputeIfAbsent()
262 …bool ComputeIfAbsent(const key_type &key, const std::function<bool(const key_type &, mapped_type &… in ComputeIfAbsent()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/common/
H A Dconcurrent_map.h103 std::pair<bool, mapped_type> Find(const key_type &key) const noexcept in Find()
114 …bool ContainIf(const key_type &key, const std::function<bool(const mapped_type &value)> &action) c… in ContainIf()
127 bool Contains(const key_type &key) const noexcept in Contains()
134 bool InsertOrAssign(const key_type &key, _Obj &&obj) noexcept in InsertOrAssign()
141 bool Insert(const key_type &key, const mapped_type &value) noexcept in Insert()
148 size_type Erase(const key_type &key) noexcept in Erase()
174 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf()
224 …bool Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &acti… in Compute()
245 …bool ComputeIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type … in ComputeIfPresent()
261 …bool ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &acti… in ComputeIfAbsent()
/ohos5.0/base/notification/distributed_notification_service/services/distributed/src/
H A Ddistributed_preferences.cpp63 void DistributedPreferences::GetDistributedMainKey(std::string &key) in GetDistributedMainKey()
69 const sptr<NotificationBundleOption> &bundleOption, std::string &key) in GetDistributedBundleKey()
79 std::string key = entry.key.ToString(); in ResolveDistributedKey() local
109 bool DistributedPreferences::ResolveDistributedBundleEnable(const std::string &key, in ResolveDistributedBundleEnable()
130 bool DistributedPreferences::ResolveSyncWithoutAppEnable(const std::string &key, in ResolveSyncWithoutAppEnable()
143 std::string key; in SetDistributedEnable() local
174 std::string key; in SetDistributedBundleEnable() local
217 std::string key; in DeleteDistributedBundleInfo() local
248 void DistributedPreferences::GetEnabledWithoutApp(const int32_t userId, std::string &key) in GetEnabledWithoutApp()
259 std::string key; in SetSyncEnabledWithoutApp() local
/ohos5.0/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/
H A Ddistributed_database_branch_test.cpp95 const std::string &deviceId, const std::string &key, const std::string &value) {} in OnInsert()
98 const std::string &deviceId, const std::string &key, const std::string &value) {} in OnUpdate()
101 const std::string &deviceId, const std::string &key, const std::string &value) {} in OnDelete()
218 std::string key = "<key>"; variable
233 std::string key = "<key>"; variable
246 std::string key = "<key>"; variable
261 std::string key = "<key>"; variable
276 std::string key = "<key>"; variable
340 std::string key = "<key>"; variable
354 std::string key = "<key>"; variable
/aosp12/system/bt/gd/common/
H A Dlru_cache.h107 const_iterator find(const Key& key) const { in find()
116 iterator find(const Key& key) { in find()
129 bool contains(const Key& key) const { in contains()
139 std::optional<node_type> insert_or_assign(const Key& key, T value) { in insert_or_assign()
162 std::tuple<iterator, bool, std::optional<node_type>> try_emplace(const Key& key, Args&&... args) { in try_emplace()
179 inline std::optional<node_type> extract(const Key& key) { in extract()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Djpeg_decoder_ex_test.cpp97 std::string key = DATE_TIME; variable
181 std::string key = MAKE; variable
202 std::string key = MODEL; variable
223 std::string key = PHOTO_MODE; variable
391 std::string key = FLASH; variable
580 std::string key = ISO_SPEED; variable
1103 std::string key = "FNumber"; variable
1145 std::string key = SCENE_TYPE; variable
1166 std::string key = ""; variable
1186 std::string key = ""; variable
[all …]
/aosp12/system/bt/common/
H A Dlru.h77 V* Find(const K& key) { in Find()
95 bool Get(const K& key, V* value) { in Get()
113 bool HasKey(const K& key) { in HasKey()
126 std::optional<Node> Put(const K& key, V value) { in Put()
154 bool Remove(const K& key) { in Remove()
/aosp12/frameworks/opt/bitmap/src/com/android/bitmap/
H A DContiguousFIFOAggregator.java94 public void expect(final T key, final Callback<T> callback) { in expect()
126 public void forget(final T key) { in forget()
165 public void execute(final T key, final Runnable task) { in execute()
223 private void onFirstExpectedChanged(final T key) { in onFirstExpectedChanged()
239 private boolean contains(final T key) { in contains()
256 final T key = it.next(); in prettyPrint() local
292 void onBecomeFirstExpected(final T key); in onBecomeFirstExpected()
/aosp12/system/core/libutils/include/utils/
H A DKeyedVector.h131 ssize_t KeyedVector<KEY,VALUE>::indexOfKey(const KEY& key) const { in indexOfKey()
136 const VALUE& KeyedVector<KEY,VALUE>::valueFor(const KEY& key) const { in valueFor()
158 VALUE& KeyedVector<KEY,VALUE>::editValueFor(const KEY& key) { in editValueFor()
170 ssize_t KeyedVector<KEY,VALUE>::add(const KEY& key, const VALUE& value) { in add()
175 ssize_t KeyedVector<KEY,VALUE>::replaceValueFor(const KEY& key, const VALUE& value) { in replaceValueFor()
191 ssize_t KeyedVector<KEY,VALUE>::removeItem(const KEY& key) { in removeItem()
209 const VALUE& DefaultKeyedVector<KEY,VALUE>::valueFor(const KEY& key) const { in valueFor()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/key_type_test/
H A Dkey_type_test.cpp98 int32_t GetType(const char * key) in GetType()
190 auto key = GetParam(); variable
211 auto key = GetParam(); variable
232 auto key = GetParam(); variable
253 auto key = GetParam(); variable
274 auto key = GetParam(); variable
295 auto key = GetParam(); variable
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/
H A Drs_event_manager_test.cpp129 std::string key = "0"; variable
151 std::string key = "0"; variable
186 std::string key = "0"; variable
205 std::string key = "0"; variable
247 std::string key = "0"; variable
265 std::string key = "0"; variable
283 std::string key = "0"; variable
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DPrefs.java120 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { in getBoolean()
124 public static void putBoolean(Context context, @Key String key, boolean value) { in putBoolean()
128 public static int getInt(Context context, @Key String key, int defaultValue) { in getInt()
132 public static void putInt(Context context, @Key String key, int value) { in putInt()
136 public static long getLong(Context context, @Key String key, long defaultValue) { in getLong()
140 public static void putLong(Context context, @Key String key, long value) { in putLong()
144 public static String getString(Context context, @Key String key, String defaultValue) { in getString()
148 public static void putString(Context context, @Key String key, String value) { in putString()
152 public static void putStringSet(Context context, @Key String key, Set<String> value) { in putStringSet()
157 Context context, @Key String key, Set<String> defaultValue) { in getStringSet()
[all …]
/ohos5.0/foundation/graphic/surface_lite/frameworks/
H A Dsurface_buffer_impl.cpp28 int32_t SurfaceBufferImpl::SetInt32(uint32_t key, int32_t value) in SetInt32()
33 int32_t SurfaceBufferImpl::GetInt32(uint32_t key, int32_t& value) in GetInt32()
48 int32_t SurfaceBufferImpl::SetInt64(uint32_t key, int64_t value) in SetInt64()
53 int32_t SurfaceBufferImpl::GetInt64(uint32_t key, int64_t& value) in GetInt64()
68 int32_t SurfaceBufferImpl::SetData(uint32_t key, uint8_t type, const void* data, uint8_t size) in SetData()
108 int32_t SurfaceBufferImpl::GetData(uint32_t key, uint8_t* type, void** data, uint8_t* size) in GetData()
138 uint32_t key; in ReadFromIpcIo() local
174 uint32_t key = iter->first; in WriteToIpcIo() local
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/capability/preference/
H A Dstorage_impl.h42 void SetDouble(const std::string& key, const double value) override in SetDouble()
44 bool GetDouble(const std::string& key, double& value) override in GetDouble()
48 void SetBoolean(const std::string& key, const bool value) override in SetBoolean()
50 bool GetBoolean(const std::string& key, bool& value) override in GetBoolean()
/aosp12/system/core/libcutils/
H A Dstr_parms.cpp86 const char *key; member
89 static bool remove_pair(void *key, void *value, void *context) in remove_pair()
119 void str_parms_del(struct str_parms *str_parms, const char *key) in str_parms_del()
161 char *key; in str_parms_create_str() local
206 int str_parms_add_str(struct str_parms *str_parms, const char *key, in str_parms_add_str()
267 int str_parms_add_float(struct str_parms *str_parms, const char *key, in str_parms_add_float()
281 int str_parms_has_key(struct str_parms *str_parms, const char *key) { in str_parms_has_key()
296 int str_parms_get_int(struct str_parms *str_parms, const char *key, int *val) in str_parms_get_int()
312 int str_parms_get_float(struct str_parms *str_parms, const char *key, in str_parms_get_float()
331 static bool combine_strings(void *key, void *value, void *context) in combine_strings()
[all …]
/aosp12/packages/services/Telephony/src/com/android/phone/vvm/
H A DVisualVoicemailSmsFilterConfig.java120 private Editor setInt(String key, int value) { in setInt()
125 private Editor setString(String key, String value) { in setString()
130 private Editor setBoolean(String key, boolean value) { in setBoolean()
135 private Editor setStringList(String key, List<String> value) { in setStringList()
144 private String makeKey(String key) { in makeKey()
160 private int getInt(String key, int defaultValue) { in getInt()
164 private String getString(String key, String defaultValue) { in getString()
168 private boolean getBoolean(String key, boolean defaultValue) { in getBoolean()
172 private List<String> getStringSet(String key, List<String> defaultValue) { in getStringSet()
180 private String makeKey(String key) { in makeKey()
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DImportantNoticeUtilsTests.java61 private Integer getInt(final String key) { in getInt()
68 public Long getLong(final String key) { in getLong()
75 private void putInt(final String key, final Integer value) { in putInt()
83 private void putLong(final String key, final Long value) { in putLong()
91 private void removePreference(final String key) { in removePreference()
/ohos5.0/foundation/multimedia/media_utils_lite/src/
H A Dformat.cpp207 bool Format::PutIntValue(const std::string &key, int32_t value) in PutIntValue()
212 bool Format::PutLongValue(const std::string &key, int64_t value) in PutLongValue()
217 bool Format::PutFloatValue(const std::string &key, float value) in PutFloatValue()
222 bool Format::PutDoubleValue(const std::string &key, double value) in PutDoubleValue()
227 bool Format::PutStringValue(const std::string &key, const std::string &value) in PutStringValue()
255 bool Format::GetStringValue(const std::string &key, std::string &value) const in GetStringValue() argument
266 bool Format::GetIntValue(const std::string &key, int32_t &value) const in GetIntValue() argument
277 bool Format::GetLongValue(const std::string &key, int64_t &value) const in GetLongValue() argument
288 bool Format::GetFloatValue(const std::string &key, float &value) const in GetFloatValue() argument
299 bool Format::GetDoubleValue(const std::string &key, double &value) const in GetDoubleValue() argument
[all …]
/ohos5.0/foundation/multimedia/image_framework/plugins/manager/src/framework/
H A Djson_helper.cpp32 uint32_t JsonHelper::CheckElementExistence(const json &jsonObject, const string &key) in CheckElementExistence()
50 uint32_t JsonHelper::GetStringValue(const json &jsonObject, const string &key, string &value) in GetStringValue()
85 uint32_t JsonHelper::GetUint32Value(const json &jsonObject, const string &key, uint32_t &value) in GetUint32Value()
97 uint32_t JsonHelper::GetUint16Value(const json &jsonObject, const string &key, uint16_t &value) in GetUint16Value()
127 uint32_t JsonHelper::GetArraySize(const json &jsonObject, const string &key, size_t &size) in GetArraySize()
146 const json &JsonHelper::GetJsonElement(const json &jsonObject, const string &key, uint32_t &errorCo… in GetJsonElement()
166 void JsonHelper::PrintElementMissingLog(const std::string &identifier, const std::string &key, uint… in PrintElementMissingLog()
/aosp12/packages/services/Car/service/src/com/android/car/
H A DSetMultimap.java42 public Set<V> get(K key) { in get()
47 public boolean put(K key, V value) { in put()
52 public boolean containsEntry(K key, V value) { in containsEntry()
58 public boolean remove(K key, V value) { in remove()

12345678910>>...218