/frameworks/av/media/libstagefright/foundation/ |
H A D | ParsedMessage.cpp | 48 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/av/media/libstagefright/rtsp/ |
H A D | AMPEG4ElementaryAssembler.cpp | 38 static bool GetAttribute(const char *s, const char *key, AString *value) { argument 41 size_t keyLen = strlen(key); 54 && !strncasecmp(s, key, keyLen)) { 68 const char *s, const char *key, unsigned *x) { 72 if (!GetAttribute(s, key, &val)) { 67 GetIntegerAttribute( const char *s, const char *key, unsigned *x) argument
|
H A D | ASessionDescription.cpp | 97 AString key, value; local 101 key = line; 103 key.setTo(line, 0, colonPos); 105 if (key == "a=fmtp" || key == "a=rtpmap" 106 || key == "a=framesize") { 112 key.setTo(line, 0, spacePos); 120 key.trim(); 123 ALOGV("adding '%s' => '%s'", key.c_str(), value.c_str()); 125 mTracks.editItemAt(mTracks.size() - 1).add(key, valu 141 AString key, value; local 179 findAttribute( size_t index, const char *key, AString *value) const argument 214 char key[20]; local 231 char key[20]; local [all...] |
/frameworks/base/core/java/android/nfc/tech/ |
H A D | MifareClassic.java | 48 * authenticating with a key. {@see #authenticateSectorWithKeyA} and 55 * <li>{@link #KEY_DEFAULT} is the default factory key for MIFARE Classic. 56 * <li>{@link #KEY_MIFARE_APPLICATION_DIRECTORY} is the well-known key for 59 * <li>{@link #KEY_NFC_FORUM} is the well-known key for MIFARE Classic cards that 77 * The default factory key. 82 * The well-known key for tags formatted according to the 88 * The well-known key for tags formatted according to the 316 * Authenticate a sector with key A. 318 * <p>Successful authentication of a sector with key A enables other 319 * I/O operations on that sector. The set of operations granted by key 338 authenticateSectorWithKeyA(int sectorIndex, byte[] key) argument 365 authenticateSectorWithKeyB(int sectorIndex, byte[] key) argument 369 authenticate(int sector, byte[] key, boolean keyA) argument [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceFragment.java | 67 * {@link Activity} can specify meta-data in the manifest (via the key 317 * Finds a {@link Preference} based on its key. 319 * @param key The key of the preference to retrieve. 320 * @return The {@link Preference} with the key, or null. 323 public Preference findPreference(CharSequence key) { argument 327 return mPreferenceManager.findPreference(key);
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | TtsEngines.java | 538 * Updates the value for a given key in a comma separated list of key value pairs, 539 * each of which are delimited by a colon. If no value exists for the given key, 542 private String updateValueInCommaSeparatedList(String list, String key, argument 547 newPrefList.append(key).append(':').append(newValue); 552 // Whether we found the given key. 557 if (key.equals(value.substring(0, delimiter))) { 564 newPrefList.append(key).append(':').append(newValue); 571 // Copy across the entire key + value as is. 581 newPrefList.append(key) [all...] |
/frameworks/base/core/java/android/util/ |
H A D | ArrayMap.java | 26 * ArrayMap is a generic key->value mapping data structure that is 29 * codes for each item, and an Object array of the key/value pairs. This allows it to 88 int indexOf(Object key, int hash) { argument 98 // If the hash code wasn't found, then we have no entry for this key. 103 // If the key at the returned index matches, that's what we want. 104 if (key.equals(mArray[index<<1])) { 108 // Search for a matching key after the index. 111 if (key.equals(mArray[end << 1])) return end; 114 // Search for a matching key before the index. 116 if (key 328 containsKey(Object key) argument 338 indexOfKey(Object key) argument 380 get(Object key) argument 433 put(K key, V value) argument 489 append(K key, V value) argument 576 remove(Object key) argument [all...] |
H A D | ArraySet.java | 79 private int indexOf(Object key, int hash) { argument 89 // If the hash code wasn't found, then we have no entry for this key. 94 // If the key at the returned index matches, that's what we want. 95 if (key.equals(mArray[index])) { 99 // Search for a matching key after the index. 102 if (key.equals(mArray[end])) return end; 105 // Search for a matching key before the index. 107 if (key.equals(mArray[i])) return i; 111 // new entry for this key should go. We use the end of the 127 // If the hash code wasn't found, then we have no entry for this key 300 contains(Object key) argument 310 indexOf(Object key) argument [all...] |
/frameworks/base/core/java/android/view/textservice/ |
H A D | SpellCheckerSubtype.java | 115 * @param key the key of extra value 118 public boolean containsExtraValueKey(String key) { argument 119 return getExtraValueHashMap().containsKey(key); 125 * @param key the key of extra value 126 * @return the value of the specified key 128 public String getExtraValueOf(String key) { argument 129 return getExtraValueHashMap().get(key);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | TypedProperties.java | 402 public Object get(Object key) { argument 403 Object value = super.get(key);
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
H A D | BackupDataTest.java | 48 private static final String KEY4 = "key4dad"; // variable key lengths to test padding 183 String key = bdi.getKey(); 186 assertEquals("wrong key", expected[0], key); 187 assertEquals("wrong length for key " + key, 192 assertEquals("wrong data for key " + key, expected[1], 213 String key = bdi.getKey(); 216 assertEquals("wrong key", expecte 253 writeEntity(BackupDataOutput bdo, String key, byte[] data) argument 263 deleteEntity(BackupDataOutput bdo, String key) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LruCacheTest.java | 183 * Replacing the value for a key doesn't cause an eviction but it does bring 200 @Override protected int sizeOf(String key, String value) { 201 return key.length() + value.length(); 216 @Override protected int sizeOf(String key, String value) { 245 @Override protected int sizeOf(String key, int[] value) { 267 @Override protected int sizeOf(String key, String value) { 286 @Override protected int sizeOf(String key, String value) { 314 @Override protected int sizeOf(String key, String value) { 327 @Override protected int sizeOf(String key, String value) { 373 boolean evicted, String key, Strin 467 assertHit(LruCache<String, String> cache, String key, String value) argument 473 assertMiss(LruCache<String, String> cache, String key) argument 479 assertCreated(LruCache<String, String> cache, String key, String value) argument [all...] |
/frameworks/base/libs/androidfw/ |
H A D | BackupData.cpp | 39 * - A sequence of zero or more key/value paires (entities), each with 41 * - The key, utf-8, null terminated, padded to 4-byte boundary. 94 BackupDataWriter::WriteEntityHeader(const String8& key, size_t dataSize) argument 111 k += key; 113 k = key; 116 ALOGD("Writing header: prefix='%s' key='%s' dataSize=%zu", m_keyPrefix.string(), 117 key.string(), dataSize); 137 if (DEBUG) ALOGI("writing entity header key, %zd bytes", keyLen+1); 305 BackupDataReader::ReadEntityHeader(String8* key, size_t* dataSize) argument 313 *key [all...] |
/frameworks/base/libs/hwui/ |
H A D | PatchCache.cpp | 113 const PatchDescription& key = i.key(); local 114 if (key.getPatch() == patch) { 115 patchesToRemove.push(patch_pair_t(&key, i.value()));
|
/frameworks/base/media/java/android/media/ |
H A D | MediaHTTPConnection.java | 95 private boolean filterOutInternalHeaders(String key, String val) { argument 96 if ("android-allow-cross-domain-redirect".equalsIgnoreCase(key)) { 113 String key = pair.substring(0, colonPos); 116 if (!filterOutInternalHeaders(key, val)) { 117 map.put(key, val);
|
/frameworks/base/media/jni/ |
H A D | android_media_Utils.cpp | 56 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/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | NativeProgram.java | 171 private native boolean callNativeSetValue(String key, String value); argument 172 private native String callNativeGetValue(String key); argument
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_env.cpp | 390 void GLEnv::AttachShader(int key, ShaderProgram* shader) { argument 391 ShaderProgram* existingShader = ShaderWithKey(key); 394 attached_shaders_[key] = shader; 397 void GLEnv::AttachVertexFrame(int key, VertexFrame* frame) { argument 398 VertexFrame* existingFrame = VertexFrameWithKey(key); 401 attached_vframes_[key] = frame; 404 ShaderProgram* GLEnv::ShaderWithKey(int key) { argument 405 return FindPtrOrNull(attached_shaders_, key); 408 VertexFrame* GLEnv::VertexFrameWithKey(int key) { argument 409 return FindPtrOrNull(attached_vframes_, key); [all...] |
/frameworks/base/media/tests/players/ |
H A D | invoke_mock_media_player.cpp | 88 virtual status_t setParameter(int key, const Parcel &request) {return OK;} argument 89 virtual status_t getParameter(int key, Parcel *reply) {return OK;} argument
|
/frameworks/base/native/android/ |
H A D | storage_manager.cpp | 128 void mountObb(const char* rawPath, const char* key, AStorageManager_obbCallbackFunc func, argument 140 String16 key16(key); 186 void AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key, argument 188 mgr->mountObb(filename, key, cb, data);
|
/frameworks/base/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/ |
H A D | SampleTrustAgent.java | 208 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { argument 209 if (PREFERENCE_MANAGING_TRUST.equals(key)) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | Task.java | 41 /** The ComponentNameKey represents the unique primary key for a component 67 /* The Task Key represents the unique primary key for the task */ 85 /** Returns the component name key for this task. */ 113 public TaskKey key; field in class:Task 135 public Task(TaskKey key, boolean isActive, int taskAffiliation, int taskAffiliationColor, argument 139 boolean isInAffiliationGroup = (taskAffiliation != key.id); 141 this.key = key; 158 this.key = o.key; [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationData.java | 41 public String key; field in class:NotificationData.Entry 54 this.key = n.getKey(); 106 boolean aMedia = a.key.equals(mediaNotification); 107 boolean bMedia = b.key.equals(mediaNotification); 126 mRankingMap.getRanking(a.key, mRankingA); 127 mRankingMap.getRanking(b.key, mRankingB); 159 public Entry get(String key) { argument 160 return mEntries.get(key); 168 public Entry remove(String key, RankingMap ranking) { argument 169 Entry removed = mEntries.remove(key); 179 isAmbient(String key) argument 187 getVisibilityOverride(String key) argument [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | LockSettingsService.java | 198 String key = READ_PROFILE_PROTECTED_SETTINGS[i]; 199 if (key.equals(requestedKey) && mContext.checkCallingOrSelfPermission(READ_PROFILE) 209 public void setBoolean(String key, boolean value, int userId) throws RemoteException { argument 211 setStringUnchecked(key, userId, value ? "1" : "0"); 215 public void setLong(String key, long value, int userId) throws RemoteException { argument 217 setStringUnchecked(key, userId, Long.toString(value)); 221 public void setString(String key, String value, int userId) throws RemoteException { argument 223 setStringUnchecked(key, userId, value); 226 private void setStringUnchecked(String key, int userId, String value) { argument 227 mStorage.writeKeyValue(key, valu 231 getBoolean(String key, boolean defaultValue, int userId) argument 240 getLong(String key, long defaultValue, int userId) argument 248 getString(String key, String defaultValue, int userId) argument [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | PendingIntentRecord.java | 37 final Key key; field in class:PendingIntentRecord 188 key = _k; 206 if ((key.flags&PendingIntent.FLAG_ONE_SHOT) != 0) { 210 Intent finalIntent = key.requestIntent != null 211 ? new Intent(key.requestIntent) : new Intent(); 213 int changes = finalIntent.fillIn(intent, key.flags); 215 resolvedType = key.requestResolvedType; 218 resolvedType = key.requestResolvedType; 227 int userId = key.userId; 231 switch (key [all...] |