Searched refs:key (Results 76 - 100 of 440) sorted by relevance

1234567891011>>

/frameworks/base/drm/java/android/drm/
H A DDrmInfo.java89 * Adds optional information as key-value pairs to this object. To add a custom object
92 * @param key Key to add.
96 public void put(String key, Object value) { argument
97 mAttributes.put(key, value);
101 * Retrieves the value of a given key.
103 * @param key The key whose value is being retrieved.
105 * @return The value of the key being retrieved. Returns null if the key cannot be found.
107 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 DDrmEvent.java39 * The key that is used in the <code>attributes</code> HashMap to pass the return status.
43 * The key that is used in the <code>attributes</code> HashMap to pass the
120 * Retrieves the attribute associated with the specified key.
123 * the key is found.
125 public Object getAttribute(String key) { argument
126 return mAttributes.get(key);
/frameworks/base/media/java/android/media/
H A DMetadata.java37 Metadata is like a Bundle. It is sparse and each key can occur at
38 most once. The key is an integer and the value is the actual metadata.
53 // The key range [0 8192) is reserved for the system.
255 // Map to associate a Metadata key (e.g TITLE) with the offset of
257 // Used to look up if a key was present too.
279 | metadata key | // TITLE
308 // Check the metadata key.
418 * @return true if a value is present for the given key.
422 throw new IllegalArgumentException("Invalid key: " + metadataId);
428 // Caller must make sure the key i
434 getString(final int key) argument
442 getInt(final int key) argument
450 getBoolean(final int key) argument
458 getLong(final int key) argument
468 getDouble(final int key) argument
476 getByteArray(final int key) argument
484 getDate(final int key) argument
535 checkType(final int key, final int expectedType) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DThumbnailCache.java29 protected int sizeOf(Uri key, Bitmap value) { argument
/frameworks/base/media/java/android/media/audiofx/
H A DLoudnessEnhancer.java222 * Settings class constructor from a key=value; pairs formatted string. The string is
232 String key = st.nextToken();
233 if (!key.equals("LoudnessEnhancer")) {
235 "invalid settings for LoudnessEnhancer: " + key);
238 key = st.nextToken();
239 if (!key.equals("targetGainmB")) {
240 throw new IllegalArgumentException("invalid key name: " + key);
244 throw new IllegalArgumentException("invalid value for key: " + key);
[all...]
H A DPresetReverb.java245 * Settings class constructor from a key=value; pairs formatted string. The string is
255 String key = st.nextToken();
256 if (!key.equals("PresetReverb")) {
258 "invalid settings for PresetReverb: " + key);
261 key = st.nextToken();
262 if (!key.equals("preset")) {
263 throw new IllegalArgumentException("invalid key name: " + key);
267 throw new IllegalArgumentException("invalid value for key: " + key);
[all...]
/frameworks/base/core/java/android/util/
H A DArrayMap.java24 * ArrayMap is a generic key->value mapping data structure that is
27 * codes for each item, and an Object array of the key/value pairs. This allows it to
86 int indexOf(Object key, int hash) { argument
96 // If the hash code wasn't found, then we have no entry for this key.
101 // If the key at the returned index matches, that's what we want.
102 if (key.equals(mArray[index<<1])) {
106 // Search for a matching key after the index.
109 if (key.equals(mArray[end << 1])) return end;
112 // Search for a matching key before the index.
114 if (key
323 containsKey(Object key) argument
365 get(Object key) argument
418 put(K key, V value) argument
474 append(K key, V value) argument
523 remove(Object key) argument
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DSimpleArrayMap.java61 int indexOf(Object key, int hash) { argument
71 // If the hash code wasn't found, then we have no entry for this key.
76 // If the key at the returned index matches, that's what we want.
77 if (key.equals(mArray[index<<1])) {
81 // Search for a matching key after the index.
84 if (key.equals(mArray[end << 1])) return end;
87 // Search for a matching key before the index.
89 if (key.equals(mArray[i << 1])) return i;
93 // new entry for this key should go. We use the end of the
109 // If the hash code wasn't found, then we have no entry for this key
272 containsKey(Object key) argument
312 get(Object key) argument
363 put(K key, V value) argument
440 remove(Object key) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DParsedMessage.cpp48 AString key = name; local
49 key.tolower();
51 ssize_t index = mDict.indexOfKey(key);
141 AString key(line, 0, colonPos);
142 key.trim();
143 key.tolower();
147 lastDictIndex = mDict.add(key, line);
232 const AString &key = mDict.keyAt(i); local
235 if (key == AString("_")) {
239 line.append(key);
252 GetAttribute( const char *s, const char *key, AString *value) argument
282 GetInt32Attribute( const char *s, const char *key, int32_t *value) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp56 jstring key = (jstring) env->GetObjectArrayElement(keys, i); local
59 const char* keyStr = env->GetStringUTFChars(key, NULL);
66 env->ReleaseStringUTFChars(key, keyStr);
72 env->ReleaseStringUTFChars(key, keyStr);
74 env->DeleteLocalRef(key);
135 const char *key, int32_t value) {
136 jstring keyObj = env->NewStringUTF(key);
176 const char *key = msg->getEntryNameAt(i, &valueType); local
184 CHECK(msg->findInt32(key, &val));
193 CHECK(msg->findInt64(key,
133 SetMapInt32( JNIEnv *env, jobject hashMapObj, jmethodID hashMapPutID, const char *key, int32_t value) argument
327 AString key = tmp; local
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxSessionStorage.java35 // unique key for the session
36 public static final String COLUMN_KEY = "key";
49 " TEXT primary key, " + COLUMN_CLASS + " TEXT, " +
84 private ContentValues createSessionEntry(String key, Class learner, byte[] model) { argument
86 entry.put(COLUMN_KEY, key);
93 boolean saveSession(String key, Class learner, byte[] model) { argument
94 ContentValues content = createSessionEntry(key, learner, model);
115 BordeauxSessionManager.Session getSession(String key) { argument
118 COLUMN_KEY + "=\"" + key + "\"", null, null, null, null, null);
125 throw new RuntimeException("Unexpected duplication in session table for key
[all...]
H A DILearning_StochasticLinearRanker.aidl33 boolean SetModelParameter(in String key, in String value);
/frameworks/base/core/java/android/net/nsd/
H A DDnsSdTxtRecord.java65 * Set a key/value pair. Setting an existing key will replace its value.
66 * @param key Must be ascii with no '='
67 * @param value matching value to key
69 public void set(String key, String value) { argument
83 keyBytes = key.getBytes("US-ASCII");
86 throw new IllegalArgumentException("key should be US-ASCII");
91 throw new IllegalArgumentException("= is not a valid character in key");
99 int currentLoc = remove(key);
107 * Get a value for a key
112 get(String key) argument
118 remove(String key) argument
150 contains(String key) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DTweener.java69 String key = (String) vars[i];
71 if ("simultaneousTween".equals(key)) {
73 } else if ("ease".equals(key)) {
75 } else if ("onUpdate".equals(key) || "onUpdateListener".equals(key)) {
77 } else if ("onComplete".equals(key) || "onCompleteListener".equals(key)) {
79 } else if ("delay".equals(key)) {
81 } else if ("syncWith".equals(key)) {
84 props.add(PropertyValuesHolder.ofFloat(key,
[all...]
/frameworks/av/include/media/stagefright/foundation/
H A DParsedMessage.h25 // key/value pairs making up the headers and an optional body/content.
40 static bool GetAttribute(const char *s, const char *key, AString *value);
43 const char *s, const char *key, int32_t *value);
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInputStream.java29 * {@link BackupDataInput}. The entity's key string and total data size are available
40 String key; field in class:BackupDataInputStream
98 * Report the key string associated with this entity within the backup data set.
100 * @return The key string for this entity, equivalent to calling
104 return this.key;
/frameworks/base/core/java/android/net/
H A DLinkCapabilities.java46 * can request for a certain requirement corresponding to that key.
48 * can read the value of that key from the socket but cannot request
52 * define the syntax for each value string associated with a key.
90 * This key is set via the needs map.
225 * Given the key return the capability string
227 * @param key
230 public String get(int key) { argument
231 return mCapabilities.get(key);
235 * Store the key/value capability pair
237 * @param key
240 put(int key, String value) argument
251 containsKey(int key) argument
[all...]
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DTest.java24 void report(String key, float value) {
25 mBundle.putFloat(key, value);
/frameworks/native/opengl/libs/EGL/
H A Degl_cache.h52 // setBlob attempts to insert a new key/value blob pair into the cache.
55 void setBlob(const void* key, EGLsizeiANDROID keySize, const void* value,
58 // getBlob attempts to retrieve the value blob associated with a given key
61 EGLsizeiANDROID getBlob(const void* key, EGLsizeiANDROID keySize,
78 // key/value blob pairs. If the BlobCache object has not yet been created,
99 // mBlobCache is the cache in which the key/value blob pairs are stored. It
112 // pending. Each time a key/value pair is inserted into the cache via
/frameworks/base/core/java/com/android/internal/util/
H A DIndentingPrintWriter.java67 public void printPair(String key, Object value) { argument
68 print(key + "=" + String.valueOf(value) + " ");
71 public void printHexPair(String key, int value) { argument
72 print(key + "=0x" + Integer.toHexString(value) + " ");
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/
H A DTvStatusBar.java48 public void addNotification(IBinder key, StatusBarNotification notification) { argument
52 public void updateNotification(IBinder key, StatusBarNotification notification) { argument
56 public void removeNotification(IBinder key) { argument
118 protected void tick(IBinder key, StatusBarNotification n, boolean firstTime) { argument
/frameworks/av/include/drm/
H A DDrmInfo.h52 * Iterator for key
129 * Adds optional information as <key, value> pair to this instance
131 * @param[in] key Key to add
135 status_t put(const String8& key, const String8& value);
138 * Retrieves the value of given key
140 * @param key Key whose value to be retrieved
143 String8 get(const String8& key) const;
160 * Returns index of the given key
164 int indexOfKey(const String8& key) const;
/frameworks/av/include/media/
H A DMetadata.h111 // @param key Is the metadata Id.
115 bool appendBool(Type key, bool val);
116 bool appendInt32(Type key, int32_t val);
123 // Checks the key is valid and not already present.
124 bool checkKey(Type key);
/frameworks/av/media/libstagefright/wifi-display/
H A DParameters.cpp77 AString key = name; local
78 key.tolower();
80 ssize_t index = mDict.indexOfKey(key);

Completed in 576 milliseconds

1234567891011>>