Searched refs:key (Results 1 - 25 of 852) 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.java122 * Make a Bundle for a single key/value pair.
126 public static Bundle forPair(String key, String value) { argument
128 b.putString(key, value);
208 * Removes any entry with the given key from the mapping of this Bundle.
210 * @param key a String key
212 public void remove(String key) { argument
213 super.remove(key);
335 * any existing value for the given key.
337 * @param key
341 putByte(@ullable String key, byte value) argument
353 putChar(@ullable String key, char value) argument
365 putShort(@ullable String key, short value) argument
377 putFloat(@ullable String key, float value) argument
389 putCharSequence(@ullable String key, @Nullable CharSequence value) argument
400 putParcelable(@ullable String key, @Nullable Parcelable value) argument
413 putSize(@ullable String key, @Nullable Size value) argument
425 putSizeF(@ullable String key, @Nullable SizeF value) argument
438 putParcelableArray(@ullable String key, @Nullable Parcelable[] value) argument
452 putParcelableArrayList(@ullable String key, @Nullable ArrayList<? extends Parcelable> value) argument
460 putParcelableList(String key, List<? extends Parcelable> value) argument
474 putSparseParcelableArray(@ullable String key, @Nullable SparseArray<? extends Parcelable> value) argument
489 putIntegerArrayList(@ullable String key, @Nullable ArrayList<Integer> value) argument
501 putStringArrayList(@ullable String key, @Nullable ArrayList<String> value) argument
513 putCharSequenceArrayList(@ullable String key, @Nullable ArrayList<CharSequence> value) argument
526 putSerializable(@ullable String key, @Nullable Serializable value) argument
538 putByteArray(@ullable String key, @Nullable byte[] value) argument
550 putShortArray(@ullable String key, @Nullable short[] value) argument
562 putCharArray(@ullable String key, @Nullable char[] value) argument
574 putFloatArray(@ullable String key, @Nullable float[] value) argument
586 putCharSequenceArray(@ullable String key, @Nullable CharSequence[] value) argument
597 putBundle(@ullable String key, @Nullable Bundle value) argument
616 putBinder(@ullable String key, @Nullable IBinder value) argument
632 putIBinder(@ullable String key, @Nullable IBinder value) argument
645 getByte(String key) argument
658 getByte(String key, byte defaultValue) argument
670 getChar(String key) argument
683 getChar(String key, char defaultValue) argument
695 getShort(String key) argument
708 getShort(String key, short defaultValue) argument
720 getFloat(String key) argument
733 getFloat(String key, float defaultValue) argument
747 getCharSequence(@ullable String key) argument
763 getCharSequence(@ullable String key, CharSequence defaultValue) argument
776 getSize(@ullable String key) argument
796 getSizeF(@ullable String key) argument
816 getBundle(@ullable String key) argument
839 getParcelable(@ullable String key) argument
862 getParcelableArray(@ullable String key) argument
885 getParcelableArrayList(@ullable String key) argument
909 getSparseParcelableArray(@ullable String key) argument
933 getSerializable(@ullable String key) argument
947 getIntegerArrayList(@ullable String key) argument
961 getStringArrayList(@ullable String key) argument
975 getCharSequenceArrayList(@ullable String key) argument
989 getByteArray(@ullable String key) argument
1003 getShortArray(@ullable String key) argument
1017 getCharArray(@ullable String key) argument
1031 getFloatArray(@ullable String key) argument
1045 getCharSequenceArray(@ullable String key) argument
1058 getBinder(@ullable String key) argument
1085 getIBinder(@ullable String key) argument
[all...]
/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/opt/net/wifi/service/java/com/android/server/wifi/
H A DSystemPropertyService.java22 public String get(String key, String defaultValue) { argument
23 return android.os.SystemProperties.get(key, defaultValue);
27 public void set(String key, String val) { argument
28 android.os.SystemProperties.set(key, val);
/frameworks/support/v4/jellybean-mr2/android/support/v4/app/
H A DBundleCompatJellybeanMR2.java26 public static IBinder getBinder(Bundle bundle, String key) { argument
27 return bundle.getBinder(key);
30 public static void putBinder(Bundle bundle, String key, IBinder binder) { argument
31 bundle.putBinder(key, binder);
/frameworks/compile/mclinker/unittests/
H A DHashTableTest.cpp95 int key = 100; local
96 HashTableTy::entry_type* val = hashTable->insert(key, exist);
101 HashTableTy::iterator entry = hashTable->find(key);
114 for (int key = 0; key < 100; ++key) {
115 entry = hashTable->insert(key, exist);
119 EXPECT_TRUE(key == entry->key());
120 entry->setValue(key
302 unsigned int key = 0; local
[all...]
/frameworks/base/core/java/android/content/
H A DSharedPreferences.java57 * @param key The key of the preference that was changed, added, or
60 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); argument
74 * @param key The name of the preference to modify.
80 Editor putString(String key, @Nullable String value); argument
86 * @param key The name of the preference to modify.
89 * this key.
93 Editor putStringSet(String key, @Nullable Set<String> values); argument
99 * @param key The name of the preference to modify.
105 Editor putInt(String key, in argument
117 putLong(String key, long value) argument
129 putFloat(String key, float value) argument
141 putBoolean(String key, boolean value) argument
157 remove(String key) argument
257 getString(String key, @Nullable String defValue) argument
276 getStringSet(String key, @Nullable Set<String> defValues) argument
290 getInt(String key, int defValue) argument
304 getLong(String key, long defValue) argument
318 getFloat(String key, float defValue) argument
332 getBoolean(String key, boolean defValue) argument
341 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
240 get(String key) argument
250 getAsString(String key) argument
261 getAsLong(String key) argument
286 getAsInteger(String key) argument
311 getAsShort(String key) argument
336 getAsByte(String key) argument
361 getAsDouble(String key) argument
386 getAsFloat(String key) argument
411 getAsBoolean(String key) argument
435 getAsByteArray(String key) argument
490 putStringArrayList(String key, ArrayList<String> value) argument
500 getStringArrayList(String key) argument
[all...]
/frameworks/support/v4/api21/android/support/v4/media/
H A DMediaMetadataCompatApi21.java31 public static Bitmap getBitmap(Object metadataObj, String key) { argument
32 return ((MediaMetadata)metadataObj).getBitmap(key);
35 public static long getLong(Object metadataObj, String key) { argument
36 return ((MediaMetadata)metadataObj).getLong(key);
39 public static Object getRating(Object metadataObj, String key) { argument
40 return ((MediaMetadata)metadataObj).getRating(key);
43 public static CharSequence getText(Object metadataObj, String key) { argument
44 return ((MediaMetadata) metadataObj).getText(key);
60 public static void putBitmap(Object builderObj, String key, Bitmap value) { argument
61 ((MediaMetadata.Builder)builderObj).putBitmap(key, valu
64 putLong(Object builderObj, String key, long value) argument
68 putRating(Object builderObj, String key, Object ratingObj) argument
72 putText(Object builderObj, String key, CharSequence value) argument
76 putString(Object builderObj, String key, String value) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DDurationsTable.java36 final int key = from.getKeyAt(i);
37 this.addDuration(SparseMappingTable.getIdFromKey(key), from.getValue(key));
48 final int key = getOrAddKey((byte)state, 1);
49 setValue(key, getValue(key) + value);
54 final int key = getKey((byte)state);
55 if (key != SparseMappingTable.INVALID_KEY) {
56 return getValue(key);
H A DPssTable.java46 final int key = that.getKeyAt(i);
47 final int state = SparseMappingTable.getIdFromKey(key);
48 mergeStats(state, (int)that.getValue(key, PSS_SAMPLE_COUNT),
49 that.getValue(key, PSS_MINIMUM),
50 that.getValue(key, PSS_AVERAGE),
51 that.getValue(key, PSS_MAXIMUM),
52 that.getValue(key, PSS_USS_MINIMUM),
53 that.getValue(key, PSS_USS_AVERAGE),
54 that.getValue(key, PSS_USS_MAXIMUM));
64 final int key
[all...]
/frameworks/base/test-runner/src/android/test/
H A DSimpleCache.java26 protected abstract V load(K key); argument
28 final V get(K key) { argument
29 if (map.containsKey(key)) {
30 return map.get(key);
32 V value = load(key);
33 map.put(key, value);
/frameworks/support/v4/java/android/support/v4/app/
H A DBundleCompat.java35 * @param key The key to use while getting the {@link IBinder}.
38 public static IBinder getBinder(Bundle bundle, String key) { argument
40 return BundleCompatJellybeanMR2.getBinder(bundle, key);
42 return BundleCompatDonut.getBinder(bundle, key);
50 * @param key The key to use while putting the {@link IBinder}.
53 public static void putBinder(Bundle bundle, String key, IBinder binder) { argument
55 BundleCompatJellybeanMR2.putBinder(bundle, key, binder);
57 BundleCompatDonut.putBinder(bundle, key, binde
[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/main/java/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/native/libs/binder/
H A DPersistableBundle.cpp58 bool getValue(const android::String16& key, T* out, const std::map<android::String16, T>& map) { argument
59 const auto& it = map.find(key);
79 #define RETURN_IF_ENTRY_ERASED(map, key) \
81 size_t num_erased = map.erase(key); \
152 size_t PersistableBundle::erase(const String16& key) { argument
153 RETURN_IF_ENTRY_ERASED(mBoolMap, key);
154 RETURN_IF_ENTRY_ERASED(mIntMap, key);
155 RETURN_IF_ENTRY_ERASED(mLongMap, key);
156 RETURN_IF_ENTRY_ERASED(mDoubleMap, key);
157 RETURN_IF_ENTRY_ERASED(mStringMap, key);
166 putBoolean(const String16& key, bool value) argument
171 putInt(const String16& key, int32_t value) argument
176 putLong(const String16& key, int64_t value) argument
181 putDouble(const String16& key, double value) argument
186 putString(const String16& key, const String16& value) argument
191 putBooleanVector(const String16& key, const std::vector<bool>& value) argument
196 putIntVector(const String16& key, const std::vector<int32_t>& value) argument
201 putLongVector(const String16& key, const std::vector<int64_t>& value) argument
206 putDoubleVector(const String16& key, const std::vector<double>& value) argument
211 putStringVector(const String16& key, const std::vector<String16>& value) argument
216 putPersistableBundle(const String16& key, const PersistableBundle& value) argument
221 getBoolean(const String16& key, bool* out) const argument
225 getInt(const String16& key, int32_t* out) const argument
229 getLong(const String16& key, int64_t* out) const argument
233 getDouble(const String16& key, double* out) const argument
237 getString(const String16& key, String16* out) const argument
241 getBooleanVector(const String16& key, std::vector<bool>* out) const argument
245 getIntVector(const String16& key, std::vector<int32_t>* out) const argument
249 getLongVector(const String16& key, std::vector<int64_t>* out) const argument
253 getDoubleVector(const String16& key, std::vector<double>* out) const argument
257 getStringVector(const String16& key, std::vector<String16>* out) const argument
261 getPersistableBundle(const String16& key, PersistableBundle* out) const argument
367 String16 key; local
[all...]
/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...]
/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
135 * Flags the given key as being editable.
139 * @param key the type of metadata that can be edited. The supported key i
142 addEditableKey(int key) argument
205 putString(int key, String value) argument
234 putLong(int key, long value) argument
258 putBitmap(int key, Bitmap bitmap) argument
289 putObject(int key, Object value) argument
332 getLong(int key, long defaultValue) argument
348 getString(int key, String defaultValue) argument
364 getBitmap(int key, Bitmap defaultValue) argument
381 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/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...]

Completed in 2586 milliseconds

1234567891011>>