Home
last modified time | relevance | path

Searched defs:key (Results 76 – 100 of 3744) sorted by relevance

12345678910>>...150

/aosp12/packages/apps/Camera2/src/com/android/camera/processing/memory/
H A DLruPool.java59 void entryEvicted(TKey key, TValue value) { } in entryEvicted()
69 TValue create(TKey key) { in create()
80 int sizeOf(TKey key, TValue value) { in sizeOf()
145 public final TValue acquire(TKey key) { in acquire()
171 public final void add(TKey key, TValue value) { in add()
228 TKey key = mLruKeyList.removeLast(); in unsafeTrimToSize() local
250 private int checkedSizeOf(TKey key, TValue value) { in checkedSizeOf()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/service/data/
H A DPreferenceParcelableManager.java40 public PreferenceParcelable getOrCreatePrefParcelable(String key) { in getOrCreatePrefParcelable()
44 public PreferenceParcelable getOrCreatePrefParcelable(String[] key) { in getOrCreatePrefParcelable()
52 public PreferenceParcelable prefParcelableCopy(String[] key) { in prefParcelableCopy()
56 public PreferenceParcelable prefParcelableCopy(String key) { in prefParcelableCopy()
73 private static String getKey(String[] key) { in getKey()
/aosp12/frameworks/base/core/java/android/util/
H A DSparseBooleanArray.java92 public boolean get(int key) { in get()
100 public boolean get(int key, boolean valueIfKeyNotFound) { in get()
113 public void delete(int key) { in delete()
139 public void put(int key, boolean value) { in put()
228 public void setKeyAt(int index, int key) { in setKeyAt()
241 public int indexOfKey(int key) { in indexOfKey()
272 public void append(int key, boolean value) { in append()
335 int key = keyAt(i); in toString() local
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 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()
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
/aosp12/system/bt/gd/common/
H A Dlist_map.h101 const_iterator find(const Key& key) const { in find()
106 iterator find(const Key& key) { in find()
115 bool contains(const Key& key) const { in contains()
123 std::pair<iterator, bool> try_emplace(const_iterator pos, const Key& key, Args&&... args) { in try_emplace()
137 std::pair<iterator, bool> try_emplace_back(const Key& key, Args&&... args) { in try_emplace_back()
143 void insert_or_assign(const_iterator pos, const Key& key, T value) { in insert_or_assign()
154 void insert_or_assign(const Key& key, T value) { in insert_or_assign()
172 std::optional<node_type> extract(const Key& key) { in extract()
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()
H A Dlru_cache_test.cc338 for (int key = 0; key <= 30; key++) { in TEST() local
341 for (int key = 0; key <= 20; key++) { in TEST() local
344 for (int key = 21; key <= 30; key++) { in TEST() local
347 for (int key = 0; key <= 20; key++) { in TEST() local
350 for (int key = 21; key <= 30; key++) { in TEST() local
355 for (int key = 21; key <= 30; key++) { in TEST() local
362 for (int key = 0; key < 10; key++) { in TEST() local
365 for (int key = 0; key < 10; key++) { in TEST() local
369 for (int key = 0; key < 10; key++) { in TEST() local
373 for (int key = 0; key < 10; key++) { in TEST() local
[all …]
/aosp14/frameworks/base/core/java/android/util/
H A DSparseBooleanArray.java92 public boolean get(int key) { in get()
100 public boolean get(int key, boolean valueIfKeyNotFound) { in get()
113 public void delete(int key) { in delete()
139 public void put(int key, boolean value) { in put()
228 public void setKeyAt(int index, int key) { in setKeyAt()
241 public int indexOfKey(int key) { in indexOfKey()
272 public void append(int key, boolean value) { in append()
335 int key = keyAt(i); in toString() local
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()
176 public void incrementValue(int key, long summand) { in incrementValue()
274 public int indexOfKey(int key) { in indexOfKey()
305 public void append(int key, long value) { in append()
333 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()
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
/aosp12/system/bt/osi/src/
H A Dproperties.cc31 int osi_property_get(const char* key, char* value, const char* default_value) { in osi_property_get()
48 int osi_property_set(const char* key, const char* value) { in osi_property_set()
56 int32_t osi_property_get_int32(const char* key, int32_t default_value) { in osi_property_get_int32()
64 bool osi_property_get_bool(const char* key, bool default_value) { in osi_property_get_bool()
/aosp12/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
H A DSettingsHelper.java40 public static void set(@NonNull String namespace, @NonNull String key, @Nullable String value) { in set()
53 @NonNull String key, @Nullable String value) { in syncSet()
75 public static void delete(@NonNull String namespace, @NonNull String key) { in delete()
84 @NonNull String key) { in syncDelete()
102 public static String get(@NonNull String namespace, @NonNull String key) { in get()
106 private static void assertNewValue(@NonNull String namespace, @NonNull String key, in assertNewValue()
/aosp14/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
H A DSettingsHelper.java40 public static void set(@NonNull String namespace, @NonNull String key, @Nullable String value) { in set()
53 @NonNull String key, @Nullable String value) { in syncSet()
75 public static void delete(@NonNull String namespace, @NonNull String key) { in delete()
84 @NonNull String key) { in syncDelete()
102 public static String get(@NonNull String namespace, @NonNull String key) { in get()
106 private static void assertNewValue(@NonNull String namespace, @NonNull String key, in assertNewValue()
/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 …]
/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 …]
/aosp14/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/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()
/aosp14/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()
/aosp12/frameworks/av/media/libstagefright/foundation/
H A DMetaDataBase.cpp108 bool MetaDataBase::remove(uint32_t key) { in remove()
124 bool MetaDataBase::setInt32(uint32_t key, int32_t value) { in setInt32()
128 bool MetaDataBase::setInt64(uint32_t key, int64_t value) { in setInt64()
132 bool MetaDataBase::setFloat(uint32_t key, float value) { in setFloat()
136 bool MetaDataBase::setPointer(uint32_t key, void *value) { in setPointer()
141 uint32_t key, in setRect()
230 uint32_t key, in findRect()
433 int32_t key = mInternalData->mItems.keyAt(i); in toString() local
447 int32_t key = mInternalData->mItems.keyAt(i); in dumpToLog() local
464 int32_t key = mInternalData->mItems.keyAt(i); in writeToParcel() local
[all …]
/aosp12/frameworks/base/core/java/android/content/integrity/
H A DAtomicFormula.java131 public AtomicFormula(@Key int key) { in AtomicFormula()
132 checkArgument(isValidKey(key), "Unknown key: %d", key); in AtomicFormula() local
148 public LongAtomicFormula(@Key int key) { in LongAtomicFormula()
310 public StringAtomicFormula(@Key int key) { in StringAtomicFormula()
465 AppInstallMetadata appInstallMetadata, int key) { in getMetadataValue()
483 private static String hashValue(@Key int key, String value) { in hashValue()
516 public BooleanAtomicFormula(@Key int key) { in BooleanAtomicFormula()
533 public BooleanAtomicFormula(@Key int key, boolean value) { in BooleanAtomicFormula()
628 AppInstallMetadata appInstallMetadata, int key) { in getBooleanMetadataValue()
645 static String keyToString(int key) { in keyToString()
[all …]

12345678910>>...150