/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/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); 37 public String getString(String key, String defaultValue) { argument 38 return android.os.SystemProperties.get(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 50 getString(String key, String defaultValue) 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/shared/src/com/android/systemui/shared/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(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(TaskKey key) { argument 46 TaskKey lastKey = mKeys.get(key.id); 48 if ((lastKey.windowingMode != key.windowingMode) || 49 (lastKey.lastActiveTime != key.lastActiveTime)) { 52 remove(key); 62 put(TaskKey key, V value) argument 73 remove(TaskKey key) argument [all...] |
/frameworks/support/core/ktx/src/main/java/androidx/core/content/ |
H A D | ContentValues.kt | 22 * Returns a new [ContentValues] with the given key/value pairs as elements. 27 for ((key, value) in pairs) { 29 null -> putNull(key) 30 is String -> put(key, value) 31 is Int -> put(key, value) 32 is Long -> put(key, value) 33 is Boolean -> put(key, value) 34 is Float -> put(key, value) 35 is Double -> put(key, value) 36 is ByteArray -> put(key, valu [all...] |
/frameworks/base/core/java/com/android/internal/app/procstats/ |
H A D | PssTable.java | 49 final int key = that.getKeyAt(i); 50 final int state = SparseMappingTable.getIdFromKey(key); 51 mergeStats(state, (int)that.getValue(key, PSS_SAMPLE_COUNT), 52 that.getValue(key, PSS_MINIMUM), 53 that.getValue(key, PSS_AVERAGE), 54 that.getValue(key, PSS_MAXIMUM), 55 that.getValue(key, PSS_USS_MINIMUM), 56 that.getValue(key, PSS_USS_AVERAGE), 57 that.getValue(key, PSS_USS_MAXIMUM), 58 that.getValue(key, PSS_RSS_MINIMU [all...] |
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);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
H A D | AppTrace.java | 26 * Begins a new async trace section with the given {@param key} and {@param cookie}. 28 public static void start(String key, int cookie) { argument 29 android.os.Trace.asyncTraceBegin(TRACE_TAG_APP, key, cookie); 33 * Begins a new async trace section with the given {@param key}. 35 public static void start(String key) { argument 36 android.os.Trace.asyncTraceBegin(TRACE_TAG_APP, key, 0); 40 * Ends an existing async trace section with the given {@param key}. 42 public static void end(String key) { argument 43 android.os.Trace.asyncTraceEnd(TRACE_TAG_APP, key, 0); 47 * Ends an existing async trace section with the given {@param key} an 49 end(String key, int cookie) argument 56 beginSection(String 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 | 62 * @param key The key of the preference that was changed, added, or 65 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); argument 79 * @param key The name of the preference to modify. 82 * this key. 87 Editor putString(String key, @Nullable String value); argument 93 * @param key The name of the preference to modify. 96 * this key. 100 Editor putStringSet(String key, @Nullable Set<String> values); argument 106 * @param key Th 112 putInt(String key, int value) argument 124 putLong(String key, long value) argument 136 putFloat(String key, float value) argument 148 putBoolean(String key, boolean value) argument 164 remove(String key) argument 264 getString(String key, @Nullable String defValue) argument 283 getStringSet(String key, @Nullable Set<String> defValues) argument 297 getInt(String key, int defValue) argument 311 getLong(String key, long defValue) argument 325 getFloat(String key, float defValue) argument 339 getBoolean(String key, boolean defValue) argument 348 contains(String key) argument [all...] |
/frameworks/support/core/ktx/src/main/java/androidx/core/os/ |
H A D | Bundle.kt | 28 * Returns a new [Bundle] with the given key/value pairs as elements. 33 for ((key, value) in pairs) { 35 null -> putString(key, null) // Any nullable type will suffice. 38 is Boolean -> putBoolean(key, value) 39 is Byte -> putByte(key, value) 40 is Char -> putChar(key, value) 41 is Double -> putDouble(key, value) 42 is Float -> putFloat(key, value) 43 is Int -> putInt(key, value) 44 is Long -> putLong(key, valu [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/base/media/java/android/media/update/ |
H A D | MediaMetadata2Provider.java | 15 boolean containsKey_impl(String key); argument 16 CharSequence getText_impl(String key); argument 18 String getString_impl(String key); argument 19 long getLong_impl(String key); argument 20 Rating2 getRating_impl(String key); argument 24 Bitmap getBitmap_impl(String key); argument 25 float getFloat_impl(String key); argument 29 Builder putText_impl(String key, CharSequence value); argument 30 Builder putString_impl(String key, String value); argument 31 Builder putLong_impl(String key, lon argument 32 putRating_impl(String key, Rating2 value) argument 33 putBitmap_impl(String key, Bitmap value) argument 34 putFloat_impl(String key, float value) 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/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/ |
H A D | MutableSelection.java | 53 * @param <K> Selection key type. @see {@link StorageStrategy} for supported types. 58 public boolean add(@NonNull K key) { argument 59 return super.add(key); 63 public boolean remove(@NonNull K key) { argument 64 return super.remove(key);
|
/frameworks/base/core/java/android/os/ |
H A D | SystemProperties.java | 34 * store contains a list of string key-value pairs. 61 private static void onKeyAccess(String key) { argument 64 if (key != null && key.startsWith("ro.")) { 66 MutableInt numReads = sRoReads.getOrDefault(key, null); 69 sRoReads.put(key, numReads); 74 + ") of a read-only system property '" + key + "'", 81 private static native String native_get(String key); argument 82 private static native String native_get(String key, String def); argument 83 private static native int native_get_int(String key, in argument 84 native_get_long(String key, long def) argument 85 native_get_boolean(String key, boolean def) argument 86 native_set(String key, String def) argument 99 get(@onNull String key) argument 116 get(@onNull String key, @Nullable String def) argument 131 getInt(@onNull String key, int def) argument 146 getLong(@onNull String key, long def) argument 166 getBoolean(@onNull String key, boolean def) argument 177 set(@onNull String key, @Nullable String val) 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/base/packages/SystemUI/tests/src/com/android/systemui/ |
H A D | TestableDependency.java | 41 public <T> void injectTestDependency(DependencyKey<T> key, T obj) { argument 42 mObjs.put(key, obj); 45 public <T> void injectTestDependency(Class<T> key, T obj) { argument 46 mObjs.put(key, obj); 50 protected <T> T createDependency(Object key) { argument 51 if (mObjs.containsKey(key)) return (T) mObjs.get(key); 52 mInstantiatedObjects.add(key); 53 return super.createDependency(key); 56 public <T> boolean hasInstantiatedDependency(Class<T> key) { argument [all...] |
/frameworks/support/preference/src/main/java/androidx/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 | 49 bool getValue(const android::String16& key, T* out, const map<android::String16, T>& map) { argument 50 const auto& it = map.find(key); 80 #define RETURN_IF_ENTRY_ERASED(map, key) \ 82 size_t num_erased = (map).erase(key); \ 153 size_t PersistableBundle::erase(const String16& key) { argument 154 RETURN_IF_ENTRY_ERASED(mBoolMap, key); 155 RETURN_IF_ENTRY_ERASED(mIntMap, key); 156 RETURN_IF_ENTRY_ERASED(mLongMap, key); 157 RETURN_IF_ENTRY_ERASED(mDoubleMap, key); 158 RETURN_IF_ENTRY_ERASED(mStringMap, key); 167 putBoolean(const String16& key, bool value) argument 172 putInt(const String16& key, int32_t value) argument 177 putLong(const String16& key, int64_t value) argument 182 putDouble(const String16& key, double value) argument 187 putString(const String16& key, const String16& value) argument 192 putBooleanVector(const String16& key, const vector<bool>& value) argument 197 putIntVector(const String16& key, const vector<int32_t>& value) argument 202 putLongVector(const String16& key, const vector<int64_t>& value) argument 207 putDoubleVector(const String16& key, const vector<double>& value) argument 212 putStringVector(const String16& key, const vector<String16>& value) argument 217 putPersistableBundle(const String16& key, const PersistableBundle& value) argument 222 getBoolean(const String16& key, bool* out) const argument 226 getInt(const String16& key, int32_t* out) const argument 230 getLong(const String16& key, int64_t* out) const argument 234 getDouble(const String16& key, double* out) const argument 238 getString(const String16& key, String16* out) const argument 242 getBooleanVector(const String16& key, vector<bool>* out) const argument 246 getIntVector(const String16& key, vector<int32_t>* out) const argument 250 getLongVector(const String16& key, vector<int64_t>* out) const argument 254 getDoubleVector(const String16& key, vector<double>* out) const argument 258 getStringVector(const String16& key, vector<String16>* out) const argument 262 getPersistableBundle(const String16& key, PersistableBundle* out) const argument 411 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/collection/src/main/java/androidx/collection/ |
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...] |