Searched refs:key (Results 1 - 25 of 578) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/os/
H A DSystemProperties.java24 * store contains a list of string key-value pairs.
35 private static native String native_get(String key); argument
36 private static native String native_get(String key, String def); argument
37 private static native int native_get_int(String key, int def); argument
38 private static native long native_get_long(String key, long def); argument
39 private static native boolean native_get_boolean(String key, boolean def); argument
40 private static native void native_set(String key, String def); argument
44 * Get the value for the given key.
45 * @return an empty string if the key isn't found
46 * @throws IllegalArgumentException if the key exceed
48 get(String key) argument
60 get(String key, String def) argument
75 getInt(String key, int def) argument
90 getLong(String key, long def) argument
110 getBoolean(String key, boolean def) argument
122 set(String key, String val) argument
[all...]
H A DBundle.java119 * Make a Bundle for a single key/value pair.
123 public static Bundle forPair(String key, String value) { argument
125 b.putString(key, value);
256 * any existing value for the given key.
258 * @param key a String, or null
262 public void putByte(String key, byte value) { argument
263 super.putByte(key, value);
268 * any existing value for the given key.
270 * @param key a String, or null
274 public void putChar(String key, cha argument
286 putShort(String key, short value) argument
298 putFloat(String key, float value) argument
310 putCharSequence(String key, CharSequence value) argument
321 putParcelable(String key, Parcelable value) argument
334 putSize(String key, Size value) argument
346 putSizeF(String key, SizeF value) argument
359 putParcelableArray(String key, Parcelable[] value) argument
373 putParcelableArrayList(String key, ArrayList<? extends Parcelable> value) argument
381 putParcelableList(String key, List<? extends Parcelable> value) argument
395 putSparseParcelableArray(String key, SparseArray<? extends Parcelable> value) argument
410 putIntegerArrayList(String key, ArrayList<Integer> value) argument
422 putStringArrayList(String key, ArrayList<String> value) argument
434 putCharSequenceArrayList(String key, ArrayList<CharSequence> value) argument
446 putSerializable(String key, Serializable value) argument
458 putByteArray(String key, byte[] value) argument
470 putShortArray(String key, short[] value) argument
482 putCharArray(String key, char[] value) argument
494 putFloatArray(String key, float[] value) argument
506 putCharSequenceArray(String key, CharSequence[] value) argument
517 putBundle(String key, Bundle value) argument
536 putBinder(String key, IBinder value) argument
552 putIBinder(String key, IBinder value) argument
565 getByte(String key) argument
578 getByte(String key, byte defaultValue) argument
590 getChar(String key) argument
603 getChar(String key, char defaultValue) argument
615 getShort(String key) argument
628 getShort(String key, short defaultValue) argument
640 getFloat(String key) argument
653 getFloat(String key, float defaultValue) argument
666 getCharSequence(String key) argument
682 getCharSequence(String key, CharSequence defaultValue) argument
694 getSize(String key) argument
713 getSizeF(String key) argument
732 getBundle(String key) argument
754 getParcelable(String key) argument
776 getParcelableArray(String key) argument
798 getParcelableArrayList(String key) argument
821 getSparseParcelableArray(String key) argument
844 getSerializable(String key) argument
857 getIntegerArrayList(String key) argument
870 getStringArrayList(String key) argument
883 getCharSequenceArrayList(String key) argument
896 getByteArray(String key) argument
909 getShortArray(String key) argument
922 getCharArray(String key) argument
935 getFloatArray(String key) argument
948 getCharSequenceArray(String key) argument
960 getBinder(String key) argument
986 getIBinder(String key) argument
[all...]
H A DBaseBundle.java262 * Returns true if the given key is contained in the mapping
265 * @param key a String key
266 * @return true if the key is part of the mapping, false otherwise
268 public boolean containsKey(String key) { argument
270 return mMap.containsKey(key);
274 * Returns the entry with the given key as an object.
276 * @param key a String key
279 public Object get(String key) { argument
289 remove(String key) argument
332 putBoolean(String key, boolean value) argument
344 putByte(String key, byte value) argument
356 putChar(String key, char value) argument
368 putShort(String key, short value) argument
380 putInt(String key, int value) argument
392 putLong(String key, long value) argument
404 putFloat(String key, float value) argument
416 putDouble(String key, double value) argument
428 putString(String key, String value) argument
440 putCharSequence(String key, CharSequence value) argument
452 putIntegerArrayList(String key, ArrayList<Integer> value) argument
464 putStringArrayList(String key, ArrayList<String> value) argument
476 putCharSequenceArrayList(String key, ArrayList<CharSequence> value) argument
488 putSerializable(String key, Serializable value) argument
500 putBooleanArray(String key, boolean[] value) argument
512 putByteArray(String key, byte[] value) argument
524 putShortArray(String key, short[] value) argument
536 putCharArray(String key, char[] value) argument
548 putIntArray(String key, int[] value) argument
560 putLongArray(String key, long[] value) argument
572 putFloatArray(String key, float[] value) argument
584 putDoubleArray(String key, double[] value) argument
596 putStringArray(String key, String[] value) argument
608 putCharSequenceArray(String key, CharSequence[] value) argument
620 getBoolean(String key) argument
628 typeWarning(String key, Object value, String className, Object defaultValue, ClassCastException e) argument
644 typeWarning(String key, Object value, String className, ClassCastException e) argument
657 getBoolean(String key, boolean defaultValue) argument
678 getByte(String key) argument
691 getByte(String key, byte defaultValue) argument
712 getChar(String key) argument
725 getChar(String key, char defaultValue) argument
746 getShort(String key) argument
759 getShort(String key, short defaultValue) argument
780 getInt(String key) argument
793 getInt(String key, int defaultValue) argument
814 getLong(String key) argument
827 getLong(String key, long defaultValue) argument
848 getFloat(String key) argument
861 getFloat(String key, float defaultValue) argument
882 getDouble(String key) argument
895 getDouble(String key, double defaultValue) argument
917 getString(String key) argument
939 getString(String key, String defaultValue) argument
952 getCharSequence(String key) argument
974 getCharSequence(String key, CharSequence defaultValue) argument
987 getSerializable(String key) argument
1009 getIntegerArrayList(String key) argument
1031 getStringArrayList(String key) argument
1053 getCharSequenceArrayList(String key) argument
1075 getBooleanArray(String key) argument
1097 getByteArray(String key) argument
1119 getShortArray(String key) argument
1141 getCharArray(String key) argument
1163 getIntArray(String key) argument
1185 getLongArray(String key) argument
1207 getFloatArray(String key) argument
1229 getDoubleArray(String key) argument
1251 getStringArray(String key) argument
1273 getCharSequenceArray(String key) argument
[all...]
/frameworks/base/test-runner/src/android/test/
H A DSimpleCache.java25 protected abstract V load(K key); argument
27 final V get(K key) { argument
28 if (map.containsKey(key)) {
29 return map.get(key);
31 V value = load(key);
32 map.put(key, value);
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DContentValuesBuilder.java31 public ContentValuesBuilder put(String key, String value) { argument
32 mContentValues.put(key, value);
37 public ContentValuesBuilder put(String key, Byte value) {
38 mContentValues.put(key, value);
42 public ContentValuesBuilder put(String key, Short value) {
43 mContentValues.put(key, value);
47 public ContentValuesBuilder put(String key, Integer value) { argument
48 mContentValues.put(key, value);
53 public ContentValuesBuilder put(String key, Long value) {
54 mContentValues.put(key, valu
73 put(String key, byte[] value) argument
78 putNull(String key) argument
[all...]
/frameworks/compile/mclinker/unittests/
H A DHashTableTest.cpp111 int key = 100; local
112 HashTableTy::entry_type* val = hashTable->insert(key, exist);
117 HashTableTy::iterator entry = hashTable->find(key);
129 for (int key=0; key<100; ++key) {
130 entry = hashTable->insert(key, exist);
134 EXPECT_TRUE(key == entry->key());
135 entry->setValue(key
318 unsigned int key = 0; local
[all...]
/frameworks/base/core/java/android/content/
H A DSharedPreferences.java56 * @param key The key of the preference that was changed, added, or
59 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); argument
73 * @param key The name of the preference to modify.
76 * this key.
81 Editor putString(String key, String value); argument
87 * @param key The name of the preference to modify.
90 * this key.
94 Editor putStringSet(String key, Set<String> values); argument
100 * @param key Th
106 putInt(String key, int value) argument
118 putLong(String key, long value) argument
130 putFloat(String key, float value) argument
142 putBoolean(String key, boolean value) argument
158 remove(String key) argument
257 getString(String key, String defValue) argument
275 getStringSet(String key, Set<String> defValues) argument
289 getInt(String key, int defValue) argument
303 getLong(String key, long defValue) argument
317 getFloat(String key, float defValue) argument
331 getBoolean(String key, boolean defValue) argument
340 contains(String key) argument
[all...]
H A DContentValues.java92 * @param key the name of the value to put
95 public void put(String key, String value) { argument
96 mValues.put(key, value);
111 * @param key the name of the value to put
114 public void put(String key, Byte value) { argument
115 mValues.put(key, value);
121 * @param key the name of the value to put
124 public void put(String key, Short value) { argument
125 mValues.put(key, value);
131 * @param key th
134 put(String key, Integer value) argument
144 put(String key, Long value) argument
154 put(String key, Float value) argument
164 put(String key, Double value) argument
174 put(String key, Boolean value) argument
184 put(String key, byte[] value) argument
193 putNull(String key) argument
211 remove(String key) argument
228 containsKey(String key) argument
239 get(String key) argument
249 getAsString(String key) argument
260 getAsLong(String key) argument
285 getAsInteger(String key) argument
310 getAsShort(String key) argument
335 getAsByte(String key) argument
360 getAsDouble(String key) argument
385 getAsFloat(String key) argument
410 getAsBoolean(String key) argument
433 getAsByteArray(String key) argument
488 putStringArrayList(String key, ArrayList<String> value) argument
498 getStringArrayList(String key) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DKeyStoreLruCache.java27 * key.
47 final V get(Task.TaskKey key) { argument
48 return mCache.get(key.id);
54 final V getAndInvalidateIfModified(Task.TaskKey key) { argument
55 Task.TaskKey lastKey = mTaskKeys.get(key.id);
56 if (lastKey != null && (lastKey.lastActiveTime < key.lastActiveTime)) {
59 remove(key);
63 // the key specified, so return what is in the cache
64 return mCache.get(key.id);
67 /** Puts an entry in the cache for a specific key
68 put(Task.TaskKey key, V value) argument
74 remove(Task.TaskKey key) argument
[all...]
/frameworks/support/v4/api21/android/support/v4/media/
H A DMediaMetadataCompatApi21.java30 public static Bitmap getBitmap(Object metadataObj, String key) { argument
31 return ((MediaMetadata)metadataObj).getBitmap(key);
34 public static long getLong(Object metadataObj, String key) { argument
35 return ((MediaMetadata)metadataObj).getLong(key);
38 public static Object getRating(Object metadataObj, String key) { argument
39 return ((MediaMetadata)metadataObj).getRating(key);
42 public static CharSequence getText(Object metadataObj, String key) { argument
43 return ((MediaMetadata) metadataObj).getText(key);
51 public static void putBitmap(Object builderObj, String key, Bitmap value) { argument
52 ((MediaMetadata.Builder)builderObj).putBitmap(key, valu
55 putLong(Object builderObj, String key, long value) argument
59 putRating(Object builderObj, String key, Object ratingObj) argument
63 putText(Object builderObj, String key, CharSequence value) argument
67 putString(Object builderObj, String key, String value) argument
[all...]
/frameworks/wilhelm/tools/hashgen/
H A Dpart8.c1 if (key <= MAX_HASH_VALUE) {
2 int MPH = hash_to_MPH[key];
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/
H A DCamera2RequestSettingsSet.java70 * the template's selection for that {@code key}; the difference here is
75 * @param key Which setting to alter.
81 * @throws NullPointerException If {@code key} is {@code null}.
83 public <T> boolean set(Key<T> key, T value) { argument
84 if (key == null) {
85 throw new NullPointerException("Received a null key");
88 Object currentValue = get(key);
90 if (!mDictionary.containsKey(key) || !Objects.equals(value, currentValue)) {
91 mDictionary.put(key, value);
105 * @param key Whic
111 unset(Key<?> key) argument
134 get(Key<T> key) argument
155 contains(Key<?> key) argument
172 matches(Key<T> key, T value) argument
247 setRequestFieldIfNonNull(Builder requestBuilder, Key<T> key) argument
[all...]
/frameworks/volley/src/com/android/volley/toolbox/
H A DNoCache.java30 public Entry get(String key) { argument
35 public void put(String key, Entry entry) { argument
39 public void invalidate(String key, boolean fullExpire) { argument
43 public void remove(String key) { argument
/frameworks/base/core/java/android/util/
H A DLruCache.java41 * protected int sizeOf(String key, Bitmap value) {
49 * if (cache.get(key) == null) {
50 * cache.put(key, value);
54 * <p>This class does not allow null to be used as a key or value. A return
56 * unambiguous: the key was not in the cache.
105 * Returns the value for {@code key} if it exists in the cache or can be
110 public final V get(K key) { argument
111 if (key == null) {
112 throw new NullPointerException("key == null");
117 mapValue = map.get(key);
164 put(K key, V value) argument
229 remove(K key) argument
264 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument
281 create(K key) argument
285 safeSizeOf(K key, V value) argument
300 sizeOf(K key, V value) argument
[all...]
H A DLongSparseLongArray.java91 * Gets the long mapped from the specified key, or <code>0</code>
94 public long get(long key) { argument
95 return get(key, 0);
99 * Gets the long mapped from the specified key, or the specified value
102 public long get(long key, long valueIfKeyNotFound) { argument
103 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
113 * Removes the mapping from the specified key, if there was any.
115 public void delete(long key) { argument
116 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
133 * Adds a mapping from the specified key t
137 put(long key, long value) argument
193 indexOfKey(long key) argument
224 append(long key, long value) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DLruCache.java45 * protected int sizeOf(String key, Bitmap value) {
53 * if (cache.get(key) == null) {
54 * cache.put(key, value);
58 * <p>This class does not allow null to be used as a key or value. A return
60 * unambiguous: the key was not in the cache.
110 * Returns the value for {@code key} if it exists in the cache or can be
115 public final V get(K key) { argument
116 if (key == null) {
117 throw new NullPointerException("key == null");
122 mapValue = map.get(key);
169 put(K key, V value) argument
240 remove(K key) argument
275 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument
292 create(K key) argument
296 safeSizeOf(K key, V value) argument
311 sizeOf(K key, V value) argument
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DLruCache.java72 * Returns the value for {@code key} if it exists in the cache or can be
77 public final V get(K key) { argument
78 if (key == null) {
79 throw new NullPointerException("key == null");
84 mapValue = map.get(key);
99 V createdValue = create(key);
106 mapValue = map.put(key, createdValue);
110 map.put(key, mapValue);
112 size += safeSizeOf(key, createdValue);
117 entryRemoved(false, key, createdValu
131 put(K key, V value) argument
192 remove(K key) argument
227 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument
244 create(K key) argument
248 safeSizeOf(K key, V value) argument
263 sizeOf(K key, V value) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaMetadataEditor.java46 * The metadata key for the content artwork / album art.
52 * The metadata key for the content's average rating, not the user's rating.
53 * The value associated with this key is a {@link Rating} instance.
59 * The metadata key for the content's user rating.
60 * The value associated with this key is a {@link Rating} instance.
61 * This key can be flagged as "editable" (with {@link #addEditableKey(int)}) to enable
69 * Editable key mask
134 * Flags the given key as being editable.
138 * @param key the type of metadata that can be edited. The supported key i
141 addEditableKey(int key) argument
204 putString(int key, String value) argument
233 putLong(int key, long value) argument
257 putBitmap(int key, Bitmap bitmap) argument
288 putObject(int key, Object value) argument
331 getLong(int key, long defaultValue) argument
347 getString(int key, String defaultValue) argument
363 getBitmap(int key, Bitmap defaultValue) argument
380 getObject(int key, Object defaultValue) argument
[all...]
/frameworks/av/drm/libdrmframework/plugins/common/util/include/
H A DSessionMap.h45 * @param key - key or Session ID
48 * @return boolean result of adding value. returns false if key is already exist.
50 bool addValue(int key, TValue value) { argument
52 if (!isCreatedInternal(key)) {
53 map.add(key, value);
60 * returns the session object by the key
62 * @param key - key or Session ID
64 * @return session object as per the key
66 getValue(int key) argument
104 removeValue(int key) argument
117 isCreated(int key) argument
167 isCreatedInternal(int key) argument
178 getValueInternal(int key) argument
[all...]
/frameworks/base/tools/split-select/
H A DTestRules.cpp27 const Rule EqRule(Rule::Key key, long value) { argument
30 rule.key = key;
35 const Rule GtRule(Rule::Key key, long value) { argument
38 rule.key = key;
43 const Rule LtRule(Rule::Key key, long value) { argument
46 rule.key = key;
51 const Rule ContainsAnyRule(Rule::Key key, cons argument
59 ContainsAnyRule(Rule::Key key, const char* str1, const char* str2) argument
[all...]
/frameworks/av/include/camera/
H A DCameraParameters2.h41 void set(const char *key, const char *value);
42 void set(const char *key, int value);
43 void setFloat(const char *key, float value);
44 // Look up string value by key.
45 // -- The string remains valid until the next set/remove of the same key,
47 const char *get(const char *key) const;
48 int getInt(const char *key) const;
49 float getFloat(const char *key) const;
58 // * NAME_NOT_FOUND - if either key has not been set previously
64 void remove(const char *key);
119 add(const KeyT& key, const ValueT& value) argument
[all...]
/frameworks/base/libs/hwui/utils/
H A DTinyHashMap.h34 * Puts an entry in the hash, removing any existing entry with the same key
36 void put(TKey key, TValue value) { argument
37 hash_t hash = android::hash_type(key);
39 ssize_t index = mTable.find(-1, hash, key);
44 TEntry initEntry(key, value);
49 * Return true if key is in the map, in which case stores the value in the output ref
51 bool get(TKey key, TValue& outValue) { argument
52 hash_t hash = android::hash_type(key);
53 ssize_t index = mTable.find(-1, hash, key);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeSharedPreferences.java37 public String getString(String key, String defValue) { argument
42 public Set<String> getStringSet(String key, Set<String> defValues) { argument
47 public int getInt(String key, int defValue) { argument
52 public long getLong(String key, long defValue) { argument
57 public float getFloat(String key, float defValue) { argument
62 public boolean getBoolean(String key, boolean defValue) { argument
67 public boolean contains(String key) { argument
78 public Editor putString(String key, String value) {
83 public Editor putStringSet(String key, Set<String> values) {
88 public Editor putInt(String key, in
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DSparseArrayObjectAdapter.java8 * with an integer key which determines its order relative to other objects.
55 * Returns the index for the given key in the adapter.
57 * @param key The key to find in the array.
60 public int indexOf(int key) { argument
61 return mItems.indexOfKey(key);
76 * Sets the item for the given key.
78 * @param key The key associated with the item.
79 * @param item The item associated with the key
81 set(int key, Object item) argument
100 clear(int key) argument
123 lookup(int key) argument
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
H A DAbstractCache.java37 public boolean put(K key, V value) { argument
39 Log.v(TAG, "Trying to put " + key + " into cache.");
51 if (key != null) {
54 mCacheMap.put(key, cacheEntry);
57 Log.v(TAG, key + " cached, " + mCacheMap.size() + " items total.");
64 public V get(K key) { argument
66 Log.v(TAG, "Trying to get " + key + " from cache.");
69 if (key != null) {
70 CacheEntry<V> cacheEntry = mCacheMap.get(key);
74 Log.v(TAG, key
82 purge(K key) argument
[all...]

Completed in 779 milliseconds

1234567891011>>