/frameworks/base/core/java/android/os/ |
H A D | SystemProperties.java | 22 * store contains a list of string key-value pairs. 31 private static native String native_get(String key); argument 32 private static native String native_get(String key, String def); argument 33 private static native int native_get_int(String key, int def); argument 34 private static native long native_get_long(String key, long def); argument 35 private static native boolean native_get_boolean(String key, boolean def); argument 36 private static native void native_set(String key, String def); argument 39 * Get the value for the given key. 40 * @return an empty string if the key isn't found 41 * @throws IllegalArgumentException if the key exceed 43 get(String key) argument 55 get(String key, String def) argument 70 getInt(String key, int def) argument 85 getLong(String key, long def) argument 105 getBoolean(String key, boolean def) argument 117 set(String key, String val) argument [all...] |
H A D | Bundle.java | 136 * Make a Bundle for a single key/value pair. 140 public static Bundle forPair(String key, String value) { argument 143 b.putString(key, value); 257 * Returns true if the given key is contained in the mapping 260 * @param key a String key 261 * @return true if the key is part of the mapping, false otherwise 263 public boolean containsKey(String key) { argument 265 return mMap.containsKey(key); 269 * Returns the entry with the given key a 274 get(String key) argument 284 remove(String key) argument 387 putBoolean(String key, boolean value) argument 399 putByte(String key, byte value) argument 411 putChar(String key, char value) argument 423 putShort(String key, short value) argument 435 putInt(String key, int value) argument 447 putLong(String key, long value) argument 459 putFloat(String key, float value) argument 471 putDouble(String key, double value) argument 483 putString(String key, String value) argument 495 putCharSequence(String key, CharSequence value) argument 507 putParcelable(String key, Parcelable value) argument 521 putParcelableArray(String key, Parcelable[] value) argument 535 putParcelableArrayList(String key, ArrayList<? extends Parcelable> value) argument 550 putSparseParcelableArray(String key, SparseArray<? extends Parcelable> value) argument 564 putIntegerArrayList(String key, ArrayList<Integer> value) argument 576 putStringArrayList(String key, ArrayList<String> value) argument 588 putCharSequenceArrayList(String key, ArrayList<CharSequence> value) argument 600 putSerializable(String key, Serializable value) argument 612 putBooleanArray(String key, boolean[] value) argument 624 putByteArray(String key, byte[] value) argument 636 putShortArray(String key, short[] value) argument 648 putCharArray(String key, char[] value) argument 660 putIntArray(String key, int[] value) argument 672 putLongArray(String key, long[] value) argument 684 putFloatArray(String key, float[] value) argument 696 putDoubleArray(String key, double[] value) argument 708 putStringArray(String key, String[] value) argument 720 putCharSequenceArray(String key, CharSequence[] value) argument 732 putBundle(String key, Bundle value) argument 748 putIBinder(String key, IBinder value) argument 760 getBoolean(String key) argument 766 typeWarning(String key, Object value, String className, Object defaultValue, ClassCastException e) argument 782 typeWarning(String key, Object value, String className, ClassCastException e) argument 794 getBoolean(String key, boolean defaultValue) argument 815 getByte(String key) argument 827 getByte(String key, byte defaultValue) argument 848 getChar(String key) argument 860 getChar(String key, char defaultValue) argument 881 getShort(String key) argument 893 getShort(String key, short defaultValue) argument 914 getInt(String key) argument 926 getInt(String key, int defaultValue) argument 947 getLong(String key) argument 959 getLong(String key, long defaultValue) argument 980 getFloat(String key) argument 992 getFloat(String key, float defaultValue) argument 1013 getDouble(String key) argument 1025 getDouble(String key, double defaultValue) argument 1047 getString(String key) argument 1069 getString(String key, String defaultValue) argument 1091 getCharSequence(String key) argument 1113 getCharSequence(String key, CharSequence defaultValue) argument 1135 getBundle(String key) argument 1157 getParcelable(String key) argument 1179 getParcelableArray(String key) argument 1201 getParcelableArrayList(String key) argument 1224 getSparseParcelableArray(String key) argument 1246 getSerializable(String key) argument 1268 getIntegerArrayList(String key) argument 1290 getStringArrayList(String key) argument 1312 getCharSequenceArrayList(String key) argument 1334 getBooleanArray(String key) argument 1356 getByteArray(String key) argument 1378 getShortArray(String key) argument 1400 getCharArray(String key) argument 1422 getIntArray(String key) argument 1444 getLongArray(String key) argument 1466 getFloatArray(String key) argument 1488 getDoubleArray(String key) argument 1510 getStringArray(String key) argument 1532 getCharSequenceArray(String key) argument 1558 getIBinder(String key) argument [all...] |
/frameworks/base/test-runner/src/android/test/ |
H A D | SimpleCache.java | 25 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 D | ContentValuesBuilder.java | 31 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/base/core/java/android/content/ |
H A D | SharedPreferences.java | 55 * @param key The key of the preference that was changed, added, or 58 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); argument 72 * @param key The name of the preference to modify. 78 Editor putString(String key, String value); argument 84 * @param key The name of the preference to modify. 89 Editor putStringSet(String key, Set<String> values); argument 95 * @param key The name of the preference to modify. 101 Editor putInt(String key, int value); argument 107 * @param key Th 113 putLong(String key, long value) argument 125 putFloat(String key, float value) argument 137 putBoolean(String key, boolean value) argument 153 remove(String key) argument 248 getString(String key, String defValue) argument 262 getStringSet(String key, Set<String> defValues) argument 276 getInt(String key, int defValue) argument 290 getLong(String key, long defValue) argument 304 getFloat(String key, float defValue) argument 318 getBoolean(String key, boolean defValue) argument 327 contains(String key) argument [all...] |
H A D | ContentValues.java | 92 * @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 D | SyncOperationTest.java | 93 assertEquals(op1.key, op2.key); 94 assertNotSame(op1.key, op3.key); 95 assertNotSame(op1.key, op4.key); 96 assertNotSame(op1.key, op5.key);
|
/frameworks/base/core/java/android/util/ |
H A D | LruCache.java | 41 * 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. 85 * Returns the value for {@code key} if it exists in the cache or can be 90 public final V get(K key) { argument 91 if (key == null) { 92 throw new NullPointerException("key == null"); 97 mapValue = map.get(key); 144 put(K key, V value) argument 206 remove(K key) argument 241 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument 258 create(K key) argument 262 safeSizeOf(K key, V value) argument 277 sizeOf(K key, V value) argument [all...] |
H A D | SparseBooleanArray.java | 62 * Gets the boolean mapped from the specified key, or <code>false</code> 65 public boolean get(int key) { argument 66 return get(key, false); 70 * Gets the boolean mapped from the specified key, or the specified value 73 public boolean get(int key, boolean valueIfKeyNotFound) { argument 74 int i = binarySearch(mKeys, 0, mSize, key); 84 * Removes the mapping from the specified key, if there was any. 86 public void delete(int key) { argument 87 int i = binarySearch(mKeys, 0, mSize, key); 97 * Adds a mapping from the specified key t 101 put(int key, boolean value) argument 166 indexOfKey(int key) argument 197 append(int key, boolean value) argument 223 binarySearch(int[] a, int start, int len, int key) argument [all...] |
H A D | SparseIntArray.java | 66 * Gets the int mapped from the specified key, or <code>0</code> 69 public int get(int key) { argument 70 return get(key, 0); 74 * Gets the int mapped from the specified key, or the specified value 77 public int get(int key, int valueIfKeyNotFound) { argument 78 int i = binarySearch(mKeys, 0, mSize, key); 88 * Removes the mapping from the specified key, if there was any. 90 public void delete(int key) { argument 91 int i = binarySearch(mKeys, 0, mSize, key); 108 * Adds a mapping from the specified key t 112 put(int key, int value) argument 177 indexOfKey(int key) argument 208 append(int key, int value) argument 234 binarySearch(int[] a, int start, int len, int key) argument [all...] |
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | LruCache.java | 56 * 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 173 remove(K key) argument 208 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument 225 create(K key) argument 229 safeSizeOf(K key, V value) argument 244 sizeOf(K key, V value) argument [all...] |
/frameworks/base/drm/libdrmframework/plugins/common/util/include/ |
H A D | SessionMap.h | 45 * @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/core/java/com/google/android/mms/util/ |
H A D | AbstractCache.java | 37 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/base/media/libmedia/ |
H A D | AudioParameter.cpp | 43 String8 key = String8(pair, eqIdx); local 50 if (mParameters.indexOfKey(key) < 0) { 51 mParameters.add(key, value); 53 mParameters.replaceValueFor(key, value); 56 LOGV("AudioParameter() cstor empty key value pair"); 83 status_t AudioParameter::add(const String8& key, const String8& value) argument 85 if (mParameters.indexOfKey(key) < 0) { 86 mParameters.add(key, value); 89 mParameters.replaceValueFor(key, value); 94 status_t AudioParameter::addInt(const String8& key, cons argument 105 addFloat(const String8& key, const float value) argument 116 remove(const String8& key) argument 126 get(const String8& key, String8& value) argument 136 getInt(const String8& key, int& value) argument 152 getFloat(const String8& key, float& value) argument 168 getAt(size_t index, String8& key, String8& value) argument [all...] |
H A D | Metadata.cpp | 27 // This file contains code to serialize Metadata triples (key, type, 91 bool Metadata::appendBool(int key, bool val) argument 93 if (!checkKey(key)) { 100 // 4 int32s: size, key, type, value. 102 ok = ok && mData->writeInt32(key) == OK; 111 bool Metadata::appendInt32(int key, int32_t val) argument 113 if (!checkKey(key)) { 120 // 4 int32s: size, key, type, value. 122 ok = ok && mData->writeInt32(key) == OK; 131 // Check the key ( 134 checkKey(int key) argument [all...] |
/frameworks/compile/libbcc/runtime/make/ |
H A D | lib_util.mk | 5 # 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...] |
H A D | lib_info.mk | 17 AvailableArchs := $(sort $(foreach key,$(SubDirKeys),\ 18 $($(key).OnlyArchs))) 20 AvailableFunctions := $(sort $(foreach key,$(SubDirKeys),\ 21 $(basename $($(key).ObjNames)))) 24 $(foreach key,$(SubDirKeys),\ 25 $(if $(call strneq,,$(strip $($(key).OnlyArchs) $($(key).OnlyConfigs))),,\ 26 $(basename $($(key).ObjNames))))) 29 $(foreach key,$(SubDirKeys),\ 30 $(if $(call strneq,,$($(key) [all...] |
/frameworks/base/include/media/ |
H A D | AudioParameter.h | 52 status_t add(const String8& key, const String8& value); 53 status_t addInt(const String8& key, const int value); 54 status_t addFloat(const String8& key, const float value); 56 status_t remove(const String8& key); 58 status_t get(const String8& key, String8& value); 59 status_t getInt(const String8& key, int& value); 60 status_t getFloat(const String8& key, float& value); 61 status_t getAt(size_t index, String8& key, String8& value);
|
/frameworks/base/drm/common/ |
H A D | DrmMetadata.cpp | 25 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...] |
H A D | DrmInfo.cpp | 44 status_t DrmInfo::put(const String8& key, const String8& value) { argument 45 mAttributes.add(key, value); 49 String8 DrmInfo::get(const String8& key) const { 50 if (NAME_NOT_FOUND != mAttributes.indexOfKey(key)) { 51 return mAttributes.valueFor(key); 56 int DrmInfo::indexOfKey(const String8& key) const { 57 return mAttributes.indexOfKey(key); 79 const String8& key = mDrmInfo->mAttributes.keyAt(mIndex); local 81 return key;
|
H A D | DrmConstraints.cpp | 32 status_t DrmConstraints::put(const String8* key, const char* value) { argument 38 mConstraintMap.add(*key, charValue); 43 String8 DrmConstraints::get(const String8& key) const { 44 if (NULL != getValue(&key)) { 45 return String8(getValue(&key)); 50 const char* DrmConstraints::getValue(const String8* key) const { 51 if (NAME_NOT_FOUND != mConstraintMap.indexOfKey(*key)) { 52 return mConstraintMap.valueFor(*key); 57 const char* DrmConstraints::getAsByteArray(const String8* key) const { 58 return getValue(key); 66 const String8& key = mDrmConstraints->mConstraintMap.keyAt(mIndex); local [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_SystemProperties.cpp | 30 const char* key; local 35 jniThrowNullPointerException(env, "key must not be null."); 39 key = env->GetStringUTFChars(keyJ, NULL); 41 len = property_get(key, buf, ""); 50 env->ReleaseStringUTFChars(keyJ, key); 66 const char* key; local 71 jniThrowNullPointerException(env, "key must not be null."); 75 key = env->GetStringUTFChars(keyJ, NULL); 77 len = property_get(key, buf, ""); 84 env->ReleaseStringUTFChars(keyJ, key); 94 const char* key; local 122 const char* key; local 158 const char* key; local [all...] |
/frameworks/base/media/libstagefright/ |
H A D | MetaData.cpp | 41 bool MetaData::remove(uint32_t key) { argument 42 ssize_t i = mItems.indexOfKey(key); 53 bool MetaData::setCString(uint32_t key, const char *value) { argument 54 return setData(key, TYPE_C_STRING, value, strlen(value) + 1); 57 bool MetaData::setInt32(uint32_t key, int32_t value) { argument 58 return setData(key, TYPE_INT32, &value, sizeof(value)); 61 bool MetaData::setInt64(uint32_t key, int64_t value) { argument 62 return setData(key, TYPE_INT64, &value, sizeof(value)); 65 bool MetaData::setFloat(uint32_t key, float value) { argument 66 return setData(key, TYPE_FLOA 69 setPointer(uint32_t key, void *value) argument 73 setRect( uint32_t key, int32_t left, int32_t top, int32_t right, int32_t bottom) argument 86 findCString(uint32_t key, const char **value) argument 99 findInt32(uint32_t key, int32_t *value) argument 114 findInt64(uint32_t key, int64_t *value) argument 129 findFloat(uint32_t key, float *value) argument 144 findPointer(uint32_t key, void **value) argument 159 findRect( uint32_t key, int32_t *left, int32_t *top, int32_t *right, int32_t *bottom) argument 181 setData( uint32_t key, uint32_t type, const void *data, size_t size) argument 200 findData(uint32_t key, uint32_t *type, const void **data, size_t *size) const argument [all...] |
/frameworks/base/services/java/com/android/server/am/ |
H A D | PendingIntentRecord.java | 34 final Key key; field in class:PendingIntentRecord 175 key = _k; 193 if ((key.flags&PendingIntent.FLAG_ONE_SHOT) != 0) { 197 Intent finalIntent = key.requestIntent != null 198 ? new Intent(key.requestIntent) : new Intent(); 200 int changes = finalIntent.fillIn(intent, key.flags); 202 resolvedType = key.requestResolvedType; 205 resolvedType = key.requestResolvedType; 214 switch (key.type) { 217 if (key [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationData.java | 34 public IBinder key; field in class:NotificationData.Entry 42 public Entry(IBinder key, StatusBarNotification n, StatusBarIconView ic) { argument 43 this.key = key; 68 public Entry findByKey(IBinder key) { argument 70 if (e.key == key) { 89 public int add(IBinder key, StatusBarNotification notification, View row, View content, argument 92 entry.key = key; 102 remove(IBinder key) argument [all...] |