/frameworks/base/core/java/android/os/ |
H A D | SystemProperties.java | 24 * 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 D | Bundle.java | 119 * Make a Bundle for a single key/value pair. 123 public static Bundle forPair(String key, String value) { argument 125 b.putString(key, value); 281 * any existing value for the given key. 283 * @param key a String, or null 287 public void putByte(@Nullable String key, byte value) { argument 288 super.putByte(key, value); 293 * any existing value for the given key. 295 * @param key a String, or null 299 public void putChar(@Nullable String key, cha argument 311 putShort(@ullable String key, short value) argument 323 putFloat(@ullable String key, float value) argument 335 putCharSequence(@ullable String key, @Nullable CharSequence value) argument 346 putParcelable(@ullable String key, @Nullable Parcelable value) argument 359 putSize(@ullable String key, @Nullable Size value) argument 371 putSizeF(@ullable String key, @Nullable SizeF value) argument 384 putParcelableArray(@ullable String key, @Nullable Parcelable[] value) argument 398 putParcelableArrayList(@ullable String key, @Nullable ArrayList<? extends Parcelable> value) argument 406 putParcelableList(String key, List<? extends Parcelable> value) argument 420 putSparseParcelableArray(@ullable String key, @Nullable SparseArray<? extends Parcelable> value) argument 435 putIntegerArrayList(@ullable String key, @Nullable ArrayList<Integer> value) argument 447 putStringArrayList(@ullable String key, @Nullable ArrayList<String> value) argument 459 putCharSequenceArrayList(@ullable String key, @Nullable ArrayList<CharSequence> value) argument 472 putSerializable(@ullable String key, @Nullable Serializable value) argument 484 putByteArray(@ullable String key, @Nullable byte[] value) argument 496 putShortArray(@ullable String key, @Nullable short[] value) argument 508 putCharArray(@ullable String key, @Nullable char[] value) argument 520 putFloatArray(@ullable String key, @Nullable float[] value) argument 532 putCharSequenceArray(@ullable String key, @Nullable CharSequence[] value) argument 543 putBundle(@ullable String key, @Nullable Bundle value) argument 562 putBinder(@ullable String key, @Nullable IBinder value) argument 578 putIBinder(@ullable String key, @Nullable IBinder value) argument 591 getByte(String key) argument 604 getByte(String key, byte defaultValue) argument 616 getChar(String key) argument 629 getChar(String key, char defaultValue) argument 641 getShort(String key) argument 654 getShort(String key, short defaultValue) argument 666 getFloat(String key) argument 679 getFloat(String key, float defaultValue) argument 693 getCharSequence(@ullable String key) argument 709 getCharSequence(@ullable String key, CharSequence defaultValue) argument 722 getSize(@ullable String key) argument 742 getSizeF(@ullable String key) argument 762 getBundle(@ullable String key) argument 785 getParcelable(@ullable String key) argument 808 getParcelableArray(@ullable String key) argument 831 getParcelableArrayList(@ullable String key) argument 855 getSparseParcelableArray(@ullable String key) argument 879 getSerializable(@ullable String key) argument 893 getIntegerArrayList(@ullable String key) argument 907 getStringArrayList(@ullable String key) argument 921 getCharSequenceArrayList(@ullable String key) argument 935 getByteArray(@ullable String key) argument 949 getShortArray(@ullable String key) argument 963 getCharArray(@ullable String key) argument 977 getFloatArray(@ullable String key) argument 991 getCharSequenceArray(@ullable String key) argument 1004 getBinder(@ullable String key) argument 1031 getIBinder(@ullable 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/support/v4/jellybean-mr2/android/support/v4/app/ |
H A D | BundleCompatJellybeanMR2.java | 26 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 D | HashTableTest.cpp | 95 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 D | SharedPreferences.java | 58 * @param key The key of the preference that was changed, added, or 61 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); argument 75 * @param key The name of the preference to modify. 81 Editor putString(String key, @Nullable String value); argument 87 * @param key The name of the preference to modify. 90 * this key. 94 Editor putStringSet(String key, @Nullable Set<String> values); argument 100 * @param key The name of the preference to modify. 106 Editor putInt(String key, in 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 258 getString(String key, @Nullable String defValue) argument 277 getStringSet(String key, @Nullable Set<String> defValues) argument 291 getInt(String key, int defValue) argument 305 getLong(String key, long defValue) argument 319 getFloat(String key, float defValue) argument 333 getBoolean(String key, boolean defValue) argument 342 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/keystore/java/android/security/keystore/ |
H A D | AndroidKeyStoreKeyFactorySpi.java | 44 protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpecClass) argument 46 if (key == null) { 47 throw new InvalidKeySpecException("key == null"); 48 } else if ((!(key instanceof AndroidKeyStorePrivateKey)) 49 && (!(key instanceof AndroidKeyStorePublicKey))) { 51 "Unsupported key type: " + key.getClass().getName() 55 // key is an Android Keystore private or public key 60 if (!(key instanceo 140 engineTranslateKey(Key key) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | KeyStoreLruCache.java | 27 * 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 D | MediaMetadataCompatApi21.java | 30 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/support/v4/java/android/support/v4/app/ |
H A D | BundleCompat.java | 32 * @param key The key to use while getting the {@link IBinder}. 35 public static IBinder getBinder(Bundle bundle, String key) { argument 37 return BundleCompatJellybeanMR2.getBinder(bundle, key); 39 return BundleCompatDonut.getBinder(bundle, key); 47 * @param key The key to use while putting the {@link IBinder}. 50 public static void putBinder(Bundle bundle, String key, IBinder binder) { argument 52 BundleCompatJellybeanMR2.putBinder(bundle, key, binder); 54 BundleCompatDonut.putBinder(bundle, key, binde [all...] |
/frameworks/wilhelm/tools/hashgen/ |
H A D | part8.c | 1 if (key <= MAX_HASH_VALUE) { 2 int MPH = hash_to_MPH[key];
|
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/ |
H A D | Camera2RequestSettingsSet.java | 70 * 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 D | NoCache.java | 30 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 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. 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 D | LruCache.java | 45 * 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 D | LruCache.java | 72 * 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 D | MediaMetadataEditor.java | 46 * 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 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/tools/split-select/ |
H A D | TestRules.cpp | 27 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 D | CameraParameters2.h | 41 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 D | TinyHashMap.h | 34 * 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 D | BridgeSharedPreferences.java | 37 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/base/core/java/com/android/internal/statusbar/ |
H A D | NotificationVisibility.java | 33 public String key; field in class:NotificationVisibility 42 private NotificationVisibility(String key, int rank, boolean visibile) { argument 44 this.key = key; 52 + "key=" + key 60 return obtain(this.key, this.rank, this.visible); 65 // allow lookups by key, which _should_ never be null. 66 return key == null ? 0 : key 101 obtain(String key, int rank, boolean visible) argument [all...] |