Searched defs:key (Results 101 - 125 of 611) sorted by relevance

1234567891011>>

/frameworks/av/services/radio/
H A DHidlUtils.cpp150 radio_metadata_key_t key = static_cast<radio_metadata_key_t>(halMetadata[i].key); local
156 radio_metadata_add_int(metadata, key, halMetadata[i].intValue);
159 radio_metadata_add_text(metadata, key, halMetadata[i].stringValue.c_str());
162 radio_metadata_add_raw(metadata, key,
171 radio_metadata_add_clock(metadata, key, &clock);
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInput.java45 * String key = data.getKey();
48 * if (key.equals(MY_BACKUP_KEY_ONE)) {
56 * } else if (key.equals(MY_BACKUP_KEY_TO_IGNORE) {
57 * // a key we recognize but wish to discard
70 String key; field in class:BackupDataInput.EntityHeader
121 * Report the key associated with the current entity in the restore stream
122 * @return the current entity's key string
127 return mHeader.key;
H A DBackupDataOutput.java29 * as a set of "entities," key/value pairs in which each binary data record "value" is
30 * named with a string "key."
34 * onBackup()} method first writes an "entity header" that supplies the key string for the record
40 * Entity key strings are considered to be unique within a given application's backup
41 * data set. If a backup agent writes a new entity under an existing key string, its value will
44 * existing record's key, but supplying a negative <code>dataSize</code> parameter.
101 * @param key A string key that uniquely identifies the data record within the application.
104 * of -1 indicates that the record under this key should be deleted.
108 public int writeEntityHeader(String key, in argument
151 writeEntityHeader_native(long mBackupWriter, String key, int dataSize) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DThemedResourceCache.java42 * @param key a key that uniquely identifies the entry
47 public void put(long key, @Nullable Theme theme, @NonNull T entry) { argument
48 put(key, theme, entry, true);
54 * @param key a key that uniquely identifies the entry
61 public void put(long key, @Nullable Theme theme, @NonNull T entry, boolean usesTheme) { argument
74 entries.put(key, new WeakReference<>(entry));
82 * @param key a key tha
87 get(long key, @Nullable Theme theme) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DParamsUtils.java180 * Return the value set by the key, or the {@code defaultValue} if no value was set.
184 public static <T> T getOrDefault(CaptureRequest r, CaptureRequest.Key<T> key, T defaultValue) { argument
186 checkNotNull(key, "key must not be null");
189 T value = r.get(key);
/frameworks/base/core/java/android/net/
H A DIpSecAlgorithm.java35 * <p>Valid lengths for this key are {128, 192, 256}.
95 * @param key non-null Key padded to a multiple of 8 bits.
97 public IpSecAlgorithm(String algorithm, byte[] key) { argument
98 this(algorithm, key, key.length * 8);
106 * @param key non-null Key padded to a multiple of 8 bits.
110 public IpSecAlgorithm(@AlgorithmName String algoName, byte[] key, int truncLenBits) { argument
115 mKey = key.clone();
116 mTruncLenBits = Math.min(truncLenBits, key.length * 8);
124 /** Retrieve the key fo
[all...]
/frameworks/base/core/java/android/service/notification/
H A DAdjustment.java56 * @param key The notification key.
61 public Adjustment(String pkg, String key, Bundle signals, CharSequence explanation, int user) { argument
63 mKey = key;
/frameworks/base/core/java/android/util/
H A DLongSparseLongArray.java91 * Gets the long mapped from the specified key, or <code>0</code>
94 public long get(long key) { argument
95 return get(key, 0);
99 * Gets the long mapped from the specified key, or the specified value
102 public long get(long key, long valueIfKeyNotFound) { argument
103 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
113 * Removes the mapping from the specified key, if there was any.
115 public void delete(long key) { argument
116 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
133 * Adds a mapping from the specified key t
137 put(long key, long value) argument
193 indexOfKey(long key) argument
224 append(long key, long value) argument
[all...]
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.
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...]
H A DSparseIntArray.java91 * Gets the int mapped from the specified key, or <code>0</code>
94 public int get(int key) { argument
95 return get(key, 0);
99 * Gets the int mapped from the specified key, or the specified value
102 public int get(int key, int valueIfKeyNotFound) { argument
103 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
113 * Removes the mapping from the specified key, if there was any.
115 public void delete(int key) { argument
116 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
133 * Adds a mapping from the specified key t
137 put(int key, int value) argument
201 indexOfKey(int key) argument
232 append(int key, int value) argument
[all...]
H A DSparseLongArray.java89 * Gets the long mapped from the specified key, or <code>0</code>
92 public long get(int key) { argument
93 return get(key, 0);
97 * Gets the long mapped from the specified key, or the specified value
100 public long get(int key, long valueIfKeyNotFound) { argument
101 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
111 * Removes the mapping from the specified key, if there was any.
113 public void delete(int key) { argument
114 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
131 * Adds a mapping from the specified key t
135 put(int key, long value) argument
191 indexOfKey(int key) argument
222 append(int key, long value) argument
[all...]
/frameworks/base/core/java/com/android/internal/net/
H A DLegacyVpnInfo.java41 public String key; field in class:LegacyVpnInfo
52 out.writeString(key);
62 info.key = in.readString();
/frameworks/base/core/java/com/android/internal/statusbar/
H A DNotificationVisibility.java33 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...]
/frameworks/base/core/jni/
H A Dandroid_backup_BackupDataInput.cpp72 String8 key; local
74 err = reader->ReadEntityHeader(&key, &dataSize);
79 jstring keyStr = env->NewStringUTF(key.string());
141 s_keyField = GetFieldIDOrDie(env, clazz, "key", "Ljava/lang/String;");
H A Dandroid_backup_BackupDataOutput.cpp46 writeEntityHeader_native(JNIEnv* env, jobject clazz, jlong w, jstring key, jint dataSize) argument
51 const char* keyUTF = env->GetStringUTFChars(key, NULL);
57 env->ReleaseStringUTFChars(key, keyUTF);
/frameworks/base/drm/java/android/drm/
H A DDrmInfo.java90 * Adds optional information as key-value pairs to this object. To add a custom object
93 * @param key Key to add.
97 public void put(String key, Object value) { argument
98 mAttributes.put(key, value);
102 * Retrieves the value of a given key.
104 * @param key The key whose value is being retrieved.
106 * @return The value of the key being retrieved. Returns null if the key cannot be found.
108 public Object get(String key) { argument
[all...]
H A DDrmInfoRequest.java96 * Adds optional information as key-value pairs to this object.
98 * @param key The key to add.
101 public void put(String key, Object value) { argument
102 mRequestInformation.put(key, value);
106 * Retrieves the value of a given key.
108 * @param key The key whose value is being retrieved.
110 * @return The value of the key that is being retrieved. Returns null if the key canno
113 get(String key) argument
[all...]
H A DDrmUtils.java33 * {@link DrmStore.ConstraintsColumns#EXTENDED_METADATA} key. You can use
106 * @param extendedMetadata Object in which key-value pairs of extended metadata are embedded.
163 //Fetch key
198 * This method retrieves the metadata value associated with a given key.
200 * @param key The key whose value is being retrieved.
202 * @return The metadata value associated with the given key. Returns null
203 * if the key is not found.
205 public String get(String key) { argument
206 return mMap.get(key);
[all...]
/frameworks/base/libs/androidfw/tests/
H A DBackupData_test.cpp95 String8 key; local
97 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize))
99 EXPECT_EQ(mKey1, key)
100 << "wrong key from ReadEntityHeader";
130 String8 key; local
135 reader->ReadEntityHeader(&key, &dataSize);
145 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize))
147 EXPECT_EQ(mKey2, key)
148 << "wrong key from ReadEntityHeader on second entity";
180 String8 key; local
232 String8 key; local
273 String8 key; local
333 String8 key; local
399 String8 key; local
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFilterContext.java72 public synchronized void storeFrame(String key, Frame frame) { argument
73 Frame storedFrame = fetchFrame(key);
78 mStoredFrames.put(key, frame.retain());
81 public synchronized Frame fetchFrame(String key) { argument
82 Frame frame = mStoredFrames.get(key);
89 public synchronized void removeFrame(String key) { argument
90 Frame frame = mStoredFrames.get(key);
92 mStoredFrames.remove(key);
H A DMutableFrameFormat.java89 public void setMetaValue(String key, Object value) { argument
93 mMetaData.put(key, value);
/frameworks/base/media/mca/filterfw/native/base/
H A Dutilities.h46 // Given an STL container consisting of (key, value) pairs, STLDeleteValues
59 // If the key is present a const pointer to the associated value is returned,
64 const typename Collection::value_type::first_type& key) {
65 typename Collection::const_iterator it = collection.find(key);
111 // If the key is present a const pointer to the associated value is returned,
113 // This function does not distinguish between a missing key and a key mapped
118 const typename Collection::value_type::first_type& key) {
119 typename Collection::const_iterator it = collection.find(key);
126 // Test to see if a set, map, hash_set or hash_map contains a particular key
63 FindOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument
117 FindPtrOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument
129 ContainsKey(const Collection& collection, const Key& key) argument
138 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dnative_program.cpp126 bool NativeProgram::CallSetValue(const std::string& key, const std::string& value) { argument
128 setvalue_function_(key.c_str(), value.c_str(), user_data_);
134 std::string NativeProgram::CallGetValue(const std::string& key) { argument
139 getvalue_function_(key.c_str(), result, buffer_size, user_data_);
/frameworks/base/media/mca/filterpacks/native/base/
H A Dutilities.h58 // Given an STL container consisting of (key, value) pairs, STLDeleteValues
71 // If the key is present a const pointer to the associated value is returned,
76 const typename Collection::value_type::first_type& key) {
77 typename Collection::const_iterator it = collection.find(key);
123 // If the key is present a const pointer to the associated value is returned,
125 // This function does not distinguish between a missing key and a key mapped
130 const typename Collection::value_type::first_type& key) {
131 typename Collection::const_iterator it = collection.find(key);
138 // Test to see if a set, map, hash_set or hash_map contains a particular key
75 FindOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument
129 FindPtrOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument
141 ContainsKey(const Collection& collection, const Key& key) argument
150 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument
[all...]
/frameworks/base/media/mca/filterpacks/native/imageproc/
H A Dbrightness.c42 void brightness_setvalue(const char* key, const char* value, void* user_data) { argument
43 if (strcmp(key, "brightness") == 0)
46 LOGE("Unknown parameter: %s!", key);

Completed in 5991 milliseconds

1234567891011>>