/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | MockableSystemProperties.java | 23 public String get(String key) { argument 24 return SystemProperties.get(key); 27 public int getInt(String key, int def) { argument 28 return SystemProperties.getInt(key, def); 31 public boolean getBoolean(String key, boolean def) { argument 32 return SystemProperties.getBoolean(key, def); 35 public void set(String key, String value) { argument 36 SystemProperties.set(key, value);
|
/frameworks/base/core/java/android/os/ |
H A D | SystemProperties.java | 30 * store contains a list of string key-value pairs. 58 private static void onKeyAccess(String key) { argument 61 if (key != null && key.startsWith("ro.")) { 63 MutableInt numReads = sRoReads.getOrDefault(key, null); 66 sRoReads.put(key, numReads); 71 + ") of a read-only system property '" + key + "'", 78 private static native String native_get(String key); argument 79 private static native String native_get(String key, String def); argument 80 private static native int native_get_int(String key, in argument 81 native_get_long(String key, long def) argument 82 native_get_boolean(String key, boolean def) argument 83 native_set(String key, String def) argument 91 get(String key) argument 100 get(String key, String def) argument 112 getInt(String key, int def) argument 124 getLong(String key, long def) argument 141 getBoolean(String key, boolean def) argument 150 set(String key, String val) argument 180 newValueTooLargeException(String key, String value) argument [all...] |
H A D | Bundle.java | 171 * Make a Bundle for a single key/value pair. 175 public static Bundle forPair(String key, String value) { argument 177 b.putString(key, value); 270 * Removes any entry with the given key from the mapping of this Bundle. 272 * @param key a String key 274 public void remove(String key) { argument 275 super.remove(key); 434 * any existing value for the given key. 436 * @param key 440 putByte(@ullable String key, byte value) argument 452 putChar(@ullable String key, char value) argument 464 putShort(@ullable String key, short value) argument 476 putFloat(@ullable String key, float value) argument 488 putCharSequence(@ullable String key, @Nullable CharSequence value) argument 499 putParcelable(@ullable String key, @Nullable Parcelable value) argument 512 putSize(@ullable String key, @Nullable Size value) argument 524 putSizeF(@ullable String key, @Nullable SizeF value) argument 537 putParcelableArray(@ullable String key, @Nullable Parcelable[] value) argument 551 putParcelableArrayList(@ullable String key, @Nullable ArrayList<? extends Parcelable> value) argument 559 putParcelableList(String key, List<? extends Parcelable> value) argument 573 putSparseParcelableArray(@ullable String key, @Nullable SparseArray<? extends Parcelable> value) argument 588 putIntegerArrayList(@ullable String key, @Nullable ArrayList<Integer> value) argument 600 putStringArrayList(@ullable String key, @Nullable ArrayList<String> value) argument 612 putCharSequenceArrayList(@ullable String key, @Nullable ArrayList<CharSequence> value) argument 625 putSerializable(@ullable String key, @Nullable Serializable value) argument 637 putByteArray(@ullable String key, @Nullable byte[] value) argument 649 putShortArray(@ullable String key, @Nullable short[] value) argument 661 putCharArray(@ullable String key, @Nullable char[] value) argument 673 putFloatArray(@ullable String key, @Nullable float[] value) argument 685 putCharSequenceArray(@ullable String key, @Nullable CharSequence[] value) argument 696 putBundle(@ullable String key, @Nullable Bundle value) argument 715 putBinder(@ullable String key, @Nullable IBinder value) argument 731 putIBinder(@ullable String key, @Nullable IBinder value) argument 744 getByte(String key) argument 757 getByte(String key, byte defaultValue) argument 769 getChar(String key) argument 782 getChar(String key, char defaultValue) argument 794 getShort(String key) argument 807 getShort(String key, short defaultValue) argument 819 getFloat(String key) argument 832 getFloat(String key, float defaultValue) argument 846 getCharSequence(@ullable String key) argument 862 getCharSequence(@ullable String key, CharSequence defaultValue) argument 875 getSize(@ullable String key) argument 895 getSizeF(@ullable String key) argument 915 getBundle(@ullable String key) argument 938 getParcelable(@ullable String key) argument 961 getParcelableArray(@ullable String key) argument 984 getParcelableArrayList(@ullable String key) argument 1008 getSparseParcelableArray(@ullable String key) argument 1032 getSerializable(@ullable String key) argument 1046 getIntegerArrayList(@ullable String key) argument 1060 getStringArrayList(@ullable String key) argument 1074 getCharSequenceArrayList(@ullable String key) argument 1088 getByteArray(@ullable String key) argument 1102 getShortArray(@ullable String key) argument 1116 getCharArray(@ullable String key) argument 1130 getFloatArray(@ullable String key) argument 1144 getCharSequenceArray(@ullable String key) argument 1157 getBinder(@ullable String key) argument 1184 getIBinder(@ullable String key) argument [all...] |
/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/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | TaskKeyCache.java | 25 * Base class for both strong and LRU task key cache. 34 * Gets a specific entry in the cache with the specified key, regardless of whether the cached 37 final V get(Task.TaskKey key) { argument 38 return getCacheEntry(key.id); 42 * Returns the value only if the key is valid (has not been updated since the last time it was 45 final V getAndInvalidateIfModified(Task.TaskKey key) { argument 46 Task.TaskKey lastKey = mKeys.get(key.id); 48 if ((lastKey.stackId != key.stackId) || 49 (lastKey.lastActiveTime != key.lastActiveTime)) { 52 remove(key); 62 put(Task.TaskKey key, V value) argument 73 remove(Task.TaskKey key) argument [all...] |
/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 | 57 * @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. 77 * this key. 82 Editor putString(String key, @Nullable String value); argument 88 * @param key The name of the preference to modify. 91 * this key. 95 Editor putStringSet(String key, @Nullable Set<String> values); argument 101 * @param key Th 107 putInt(String key, int value) argument 119 putLong(String key, long value) argument 131 putFloat(String key, float value) argument 143 putBoolean(String key, boolean value) argument 159 remove(String key) argument 259 getString(String key, @Nullable String defValue) argument 278 getStringSet(String key, @Nullable Set<String> defValues) argument 292 getInt(String key, int defValue) argument 306 getLong(String key, long defValue) argument 320 getFloat(String key, float defValue) argument 334 getBoolean(String key, boolean defValue) argument 343 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 222 remove(String key) argument 239 containsKey(String key) argument 251 get(String key) argument 261 getAsString(String key) argument 272 getAsLong(String key) argument 297 getAsInteger(String key) argument 322 getAsShort(String key) argument 347 getAsByte(String key) argument 372 getAsDouble(String key) argument 397 getAsFloat(String key) argument 422 getAsBoolean(String key) argument 450 getAsByteArray(String key) argument 505 putStringArrayList(String key, ArrayList<String> value) argument 515 getStringArrayList(String key) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/procstats/ |
H A D | DurationsTable.java | 36 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 D | PssTable.java | 46 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 D | SimpleCache.java | 26 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/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | SystemPropertyService.java | 22 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); 32 public boolean getBoolean(String key, boolean defaultValue) { argument 33 return android.os.SystemProperties.getBoolean(key, defaultValue);
|
H A D | PropertyService.java | 27 * Get the current value of |key|. 28 * @return value of |key|, if key exists; |defaultValue| or empty string otherwise 31 String get(String key, String defaultValue); argument 34 * Set the value for |key|. 35 * @throws IllegalArgumentException if the key exceeds 32 characters 38 void set(String key, String val); argument 41 * Get the current value of |key|. 42 * @return value of |key|, if key exist 44 getBoolean(String key, boolean defaultValue) argument [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/base/core/java/android/preference/ |
H A D | PreferenceDataStore.java | 50 * @param key The name of the preference to modify. 54 default void putString(String key, @Nullable String value) { argument 63 * @param key The name of the preference to modify. 67 default void putStringSet(String key, @Nullable Set<String> values) { argument 76 * @param key The name of the preference to modify. 80 default void putInt(String key, int value) { argument 89 * @param key The name of the preference to modify. 93 default void putLong(String key, long value) { argument 102 * @param key The name of the preference to modify. 106 default void putFloat(String key, floa argument 119 putBoolean(String key, boolean value) argument 131 getString(String key, @Nullable String defValue) argument 143 getStringSet(String key, @Nullable Set<String> defValues) argument 154 getInt(String key, int defValue) argument 165 getLong(String key, long defValue) argument 176 getFloat(String key, float defValue) argument 187 getBoolean(String key, boolean defValue) argument [all...] |
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceDataStore.java | 50 * @param key the name of the preference to modify 54 public void putString(String key, @Nullable String value) { argument 63 * @param key the name of the preference to modify 67 public void putStringSet(String key, @Nullable Set<String> values) { argument 76 * @param key the name of the preference to modify 80 public void putInt(String key, int value) { argument 89 * @param key the name of the preference to modify 93 public void putLong(String key, long value) { argument 102 * @param key the name of the preference to modify 106 public void putFloat(String key, floa argument 119 putBoolean(String key, boolean value) argument 132 getString(String key, @Nullable String defValue) argument 145 getStringSet(String key, @Nullable Set<String> defValues) argument 157 getInt(String key, int defValue) argument 169 getLong(String key, long defValue) argument 181 getFloat(String key, float defValue) argument 193 getBoolean(String key, boolean defValue) argument [all...] |
/frameworks/native/libs/binder/ |
H A D | PersistableBundle.cpp | 48 bool getValue(const android::String16& key, T* out, const map<android::String16, T>& map) { argument 49 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 vector<bool>& value) argument 196 putIntVector(const String16& key, const vector<int32_t>& value) argument 201 putLongVector(const String16& key, const vector<int64_t>& value) argument 206 putDoubleVector(const String16& key, const vector<double>& value) argument 211 putStringVector(const String16& key, const 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, vector<bool>* out) const argument 245 getIntVector(const String16& key, vector<int32_t>* out) const argument 249 getLongVector(const String16& key, vector<int64_t>* out) const argument 253 getDoubleVector(const String16& key, vector<double>* out) const argument 257 getStringVector(const String16& key, vector<String16>* out) const argument 261 getPersistableBundle(const String16& key, PersistableBundle* out) const argument 410 String16 key; local [all...] |
/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/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/compat/java/android/support/v4/util/ |
H A D | LruCache.java | 73 * Returns the value for {@code key} if it exists in the cache or can be 78 public final V get(K key) { argument 79 if (key == null) { 80 throw new NullPointerException("key == null"); 85 mapValue = map.get(key); 100 V createdValue = create(key); 107 mapValue = map.put(key, createdValue); 111 map.put(key, mapValue); 113 size += safeSizeOf(key, createdValue); 118 entryRemoved(false, key, createdValu 132 put(K key, V value) argument 193 remove(K key) argument 228 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument 245 create(K key) argument 249 safeSizeOf(K key, V value) argument 264 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 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 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/camera/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...] |