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

1234567891011>>

/frameworks/base/core/java/android/os/
H A DSystemProperties.java26 * store contains a list of string key-value pairs.
37 private static native String native_get(String key); argument
38 private static native String native_get(String key, String def); argument
39 private static native int native_get_int(String key, int def); argument
40 private static native long native_get_long(String key, long def); argument
41 private static native boolean native_get_boolean(String key, boolean def); argument
42 private static native void native_set(String key, String def); argument
46 * Get the value for the given key.
47 * @return an empty string if the key isn't found
48 * @throws IllegalArgumentException if the key exceed
50 get(String key) argument
62 get(String key, String def) argument
77 getInt(String key, int def) argument
92 getLong(String key, long def) argument
112 getBoolean(String key, boolean def) argument
124 set(String key, String val) argument
[all...]
H A DBundle.java136 * Make a Bundle for a single key/value pair.
140 public static Bundle forPair(String key, String value) { argument
143 b.putString(key, value);
264 * Returns true if the given key is contained in the mapping
267 * @param key a String key
268 * @return true if the key is part of the mapping, false otherwise
270 public boolean containsKey(String key) { argument
272 return mMap.containsKey(key);
276 * Returns the entry with the given key a
281 get(String key) argument
291 remove(String key) argument
394 putBoolean(String key, boolean value) argument
406 putByte(String key, byte value) argument
418 putChar(String key, char value) argument
430 putShort(String key, short value) argument
442 putInt(String key, int value) argument
454 putLong(String key, long value) argument
466 putFloat(String key, float value) argument
478 putDouble(String key, double value) argument
490 putString(String key, String value) argument
502 putCharSequence(String key, CharSequence value) argument
514 putParcelable(String key, Parcelable value) argument
528 putParcelableArray(String key, Parcelable[] value) argument
542 putParcelableArrayList(String key, ArrayList<? extends Parcelable> value) argument
557 putSparseParcelableArray(String key, SparseArray<? extends Parcelable> value) argument
571 putIntegerArrayList(String key, ArrayList<Integer> value) argument
583 putStringArrayList(String key, ArrayList<String> value) argument
595 putCharSequenceArrayList(String key, ArrayList<CharSequence> value) argument
607 putSerializable(String key, Serializable value) argument
619 putBooleanArray(String key, boolean[] value) argument
631 putByteArray(String key, byte[] value) argument
643 putShortArray(String key, short[] value) argument
655 putCharArray(String key, char[] value) argument
667 putIntArray(String key, int[] value) argument
679 putLongArray(String key, long[] value) argument
691 putFloatArray(String key, float[] value) argument
703 putDoubleArray(String key, double[] value) argument
715 putStringArray(String key, String[] value) argument
727 putCharSequenceArray(String key, CharSequence[] value) argument
739 putBundle(String key, Bundle value) argument
755 putIBinder(String key, IBinder value) argument
767 getBoolean(String key) argument
773 typeWarning(String key, Object value, String className, Object defaultValue, ClassCastException e) argument
789 typeWarning(String key, Object value, String className, ClassCastException e) argument
801 getBoolean(String key, boolean defaultValue) argument
822 getByte(String key) argument
834 getByte(String key, byte defaultValue) argument
855 getChar(String key) argument
867 getChar(String key, char defaultValue) argument
888 getShort(String key) argument
900 getShort(String key, short defaultValue) argument
921 getInt(String key) argument
933 getInt(String key, int defaultValue) argument
954 getLong(String key) argument
966 getLong(String key, long defaultValue) argument
987 getFloat(String key) argument
999 getFloat(String key, float defaultValue) argument
1020 getDouble(String key) argument
1032 getDouble(String key, double defaultValue) argument
1054 getString(String key) argument
1076 getString(String key, String defaultValue) argument
1098 getCharSequence(String key) argument
1120 getCharSequence(String key, CharSequence defaultValue) argument
1142 getBundle(String key) argument
1164 getParcelable(String key) argument
1186 getParcelableArray(String key) argument
1208 getParcelableArrayList(String key) argument
1231 getSparseParcelableArray(String key) argument
1253 getSerializable(String key) argument
1275 getIntegerArrayList(String key) argument
1297 getStringArrayList(String key) argument
1319 getCharSequenceArrayList(String key) argument
1341 getBooleanArray(String key) argument
1363 getByteArray(String key) argument
1385 getShortArray(String key) argument
1407 getCharArray(String key) argument
1429 getIntArray(String key) argument
1451 getLongArray(String key) argument
1473 getFloatArray(String key) argument
1495 getDoubleArray(String key) argument
1517 getStringArray(String key) argument
1539 getCharSequenceArray(String key) argument
1565 getIBinder(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 (unsigned int key=0; key<100; ++key) {
130 entry = hashTable->insert(key, exist);
134 EXPECT_EQ(key, entry->key());
135 entry->setValue(key
319 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.
79 Editor putString(String key, String value); argument
85 * @param key The name of the preference to modify.
90 Editor putStringSet(String key, Set<String> values); argument
96 * @param key The name of the preference to modify.
102 Editor putInt(String key, int value); argument
108 * @param key Th
114 putLong(String key, long value) argument
126 putFloat(String key, float value) argument
138 putBoolean(String key, boolean value) argument
154 remove(String key) argument
253 getString(String key, String defValue) argument
271 getStringSet(String key, Set<String> defValues) argument
285 getInt(String key, int defValue) argument
299 getLong(String key, long defValue) argument
313 getFloat(String key, float defValue) argument
327 getBoolean(String key, boolean defValue) argument
336 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/core/tests/coretests/src/android/content/
H A DSyncOperationTest.java93 assertEquals(op1.key, op2.key);
94 assertNotSame(op1.key, op3.key);
95 assertNotSame(op1.key, op4.key);
96 assertNotSame(op1.key, op5.key);
/frameworks/wilhelm/tools/hashgen/
H A Dpart8.c1 if (key <= MAX_HASH_VALUE) {
2 int MPH = hash_to_MPH[key];
/frameworks/support/volley/src/com/android/volley/
H A DCache.java25 * @param key Cache key
28 public Entry get(String key); argument
32 * @param key Cache key
35 public void put(String key, Entry entry); argument
45 * @param key Cache key
48 public void invalidate(String key, boolean fullExpire); argument
52 * @param key Cach
54 remove(String key) argument
[all...]
/frameworks/support/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.
106 * Returns the value for {@code key} if it exists in the cache or can be
111 public final V get(K key) { argument
112 if (key == null) {
113 throw new NullPointerException("key == null");
118 mapValue = map.get(key);
165 put(K key, V value) argument
230 remove(K key) argument
265 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument
282 create(K key) argument
286 safeSizeOf(K key, V value) argument
301 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.java56 * Returns the value for {@code key} if it exists in the cache or can be
61 public final V get(K key) { argument
62 if (key == null) {
63 throw new NullPointerException("key == null");
68 mapValue = map.get(key);
83 V createdValue = create(key);
90 mapValue = map.put(key, createdValue);
94 map.put(key, mapValue);
96 size += safeSizeOf(key, createdValue);
101 entryRemoved(false, key, createdValu
115 put(K key, V value) argument
176 remove(K key) argument
211 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument
228 create(K key) argument
232 safeSizeOf(K key, V value) argument
247 sizeOf(K key, V value) 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/opt/mms/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...]
/frameworks/av/media/libmedia/
H A DAudioParameter.cpp46 String8 key = String8(pair, eqIdx); local
53 if (mParameters.indexOfKey(key) < 0) {
54 mParameters.add(key, value);
56 mParameters.replaceValueFor(key, value);
59 ALOGV("AudioParameter() cstor empty key value pair");
86 status_t AudioParameter::add(const String8& key, const String8& value) argument
88 if (mParameters.indexOfKey(key) < 0) {
89 mParameters.add(key, value);
92 mParameters.replaceValueFor(key, value);
97 status_t AudioParameter::addInt(const String8& key, cons argument
108 addFloat(const String8& key, const float value) argument
119 remove(const String8& key) argument
129 get(const String8& key, String8& value) argument
139 getInt(const String8& key, int& value) argument
155 getFloat(const String8& key, float& value) argument
171 getAt(size_t index, String8& key, String8& value) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DILockSettings.aidl21 void setBoolean(in String key, in boolean value, in int userId);
22 void setLong(in String key, in long value, in int userId);
23 void setString(in String key, in String value, in int userId);
24 boolean getBoolean(in String key, in boolean defaultValue, in int userId);
25 long getLong(in String key, in long defaultValue, in int userId);
26 String getString(in String key, in String defaultValue, in int userId);
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java33 * assumes that private and secret key bytes are available and would
74 private byte[] get(byte[] key) { argument
75 ArrayList<byte[]> values = execute('g', key);
79 public byte[] get(String key) { argument
80 return get(getKeyBytes(key));
83 private boolean put(byte[] key, byte[] value) { argument
84 execute('i', key, value);
88 public boolean put(String key, byte[] value) { argument
89 return put(getKeyBytes(key), value);
92 private boolean delete(byte[] key) { argument
97 delete(String key) argument
101 contains(byte[] key) argument
106 contains(String key) argument
160 generate(byte[] key) argument
165 generate(String key) argument
169 importKey(byte[] keyName, byte[] key) argument
174 importKey(String keyName, byte[] key) argument
178 getPubkey(byte[] key) argument
183 getPubkey(String key) argument
187 delKey(byte[] key) argument
192 delKey(String key) argument
201 sign(String key, byte[] data) argument
210 verify(String key, byte[] data, byte[] signature) argument
214 grant(byte[] key, byte[] uid) argument
219 grant(String key, int uid) argument
223 ungrant(byte[] key, byte[] uid) argument
228 ungrant(String key, int uid) argument
232 getmtime(byte[] key) argument
245 getmtime(String key) argument
[all...]
/frameworks/compile/libbcc/runtime/make/
H A Dlib_util.mk5 # Function: GetCNAVar variable-name platform-key config arch
30 $(foreach key,$(AvailableIn.$(3)),\
31 $(if $(and $(call streq,Optimized,$($(key).Implementation)),\
32 $(call contains,$($(key).OnlyConfigs),$(1)),\
33 $(call contains,$($(key).OnlyArchs),$(2))),$(key),)))
35 $(foreach key,$(AvailableIn.$(3)),\
36 $(if $(and $(call streq,Optimized,$($(key).Implementation)),\
37 $(call contains,$($(key).OnlyConfigs),$(1))),$(key),)))
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxSessionManager.java82 public LearningUpdateCallback(String key) { argument
83 mKey = key;
100 // internal unique key that identifies the learning instance.
104 SessionKey key = new SessionKey();
105 key.value = callingUid + "#" + "_" + name + "_" + learnerClass.getName();
106 return key;
109 public IBinder getSessionBinder(Class learnerClass, SessionKey key) { argument
110 if (mSessions.containsKey(key.value)) {
111 return mSessions.get(key.value).learner.getBinder();
116 Session stored = mSessionStorage.getSession(key
155 saveSession(SessionKey key) argument
[all...]
/frameworks/av/include/media/
H A DAudioParameter.h54 status_t add(const String8& key, const String8& value);
55 status_t addInt(const String8& key, const int value);
56 status_t addFloat(const String8& key, const float value);
58 status_t remove(const String8& key);
60 status_t get(const String8& key, String8& value);
61 status_t getInt(const String8& key, int& value);
62 status_t getFloat(const String8& key, float& value);
63 status_t getAt(size_t index, String8& key, String8& value);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DKeyValueMap.java36 throw new RuntimeException("Key-value argument " + i + " must be a key of type "
39 String key = (String)keyValues[i];
41 put(key, value);
51 public String getString(String key) { argument
52 Object result = get(key);
56 public int getInt(String key) { argument
57 Object result = get(key);
61 public float getFloat(String key) { argument
62 Object result = get(key);
/frameworks/av/drm/common/
H A DDrmMetadata.cpp25 status_t DrmMetadata::put(const String8* key, argument
27 if((value != NULL) && (key != NULL)) {
33 mMetadataMap.add(*key, charValue);
38 String8 DrmMetadata::get(const String8& key) const {
39 if (NULL != getValue(&key)) {
40 return String8(getValue(&key));
47 const char* DrmMetadata::getValue(const String8* key) const {
48 if(key != NULL) {
49 if (NAME_NOT_FOUND != mMetadataMap.indexOfKey(*key)) {
50 return mMetadataMap.valueFor(*key);
69 const String8& key = mDrmMetadata->mMetadataMap.keyAt(mIndex); local
[all...]
/frameworks/support/volley/tests/src/com/android/volley/mock/
H A DMockCache.java37 public Entry get(String key) { argument
47 public void put(String key, Entry entry) { argument
49 keyPut = key;
54 public void invalidate(String key, boolean fullExpire) { argument
58 public void remove(String key) { argument

Completed in 429 milliseconds

1234567891011>>