/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/app/ |
H A D | ResourcesManager.java | 130 final ResourcesKey key = mResourceImpls.keyAt(i); 131 if (key.isPathReferenced(path)) { 213 final Pair<Integer, DisplayAdjustments> key = 216 WeakReference<Display> wd = mDisplays.get(key); 228 final Display display = dm.getCompatibleDisplay(displayId, key.second); 230 mDisplays.put(key, new WeakReference<>(display)); 241 * @param key The key containing the resource paths to add to the AssetManager. 245 protected @NonNull AssetManager createAssetManager(@NonNull final ResourcesKey key) { argument 251 if (key 287 generateConfig(@onNull ResourcesKey key, @NonNull DisplayMetrics dm) argument 306 createResourcesImpl(@onNull ResourcesKey key) argument 326 findResourcesImplForKeyLocked(@onNull ResourcesKey key) argument 341 findOrCreateResourcesImplForKeyLocked( @onNull ResourcesKey key) argument 517 getOrCreateResources(@ullable IBinder activityToken, @NonNull ResourcesKey key, @NonNull ClassLoader classLoader) argument [all...] |
/frameworks/base/core/java/android/app/usage/ |
H A D | NetworkStatsManager.java | 54 * bucket for a particular key and state and roaming combination. In case of the user-wide and 62 * can be multiple buckets for a particular key but all Bucket's state is going to be 453 private static Object getObject(Message msg, String key) { argument 454 return msg.getData().getParcelable(key);
|
/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/os/health/ |
H A D | HealthStats.java | 36 * (COUNT, MS, etc) will always be in the name of the constant for the key to 197 * Return whether this object contains a TimerStat for the supplied key. 199 public boolean hasTimer(int key) { argument 200 return getIndex(mTimerKeys, key) >= 0; 204 * Return a TimerStat object for the given key. 209 * @throws IndexOutOfBoundsException When the key is not present in this object. 210 * @see #hasTimer hasTimer(int) To check if a value for the given key is present. 212 public TimerStat getTimer(int key) { argument 213 final int index = getIndex(mTimerKeys, key); 215 throw new IndexOutOfBoundsException("Bad timer key dataTyp 227 getTimerCount(int key) argument 242 getTimerTime(int key) argument 274 hasMeasurement(int key) argument 284 getMeasurement(int key) argument 316 hasStats(int key) argument 326 getStats(int key) argument 358 hasTimers(int key) argument 368 getTimers(int key) argument 400 hasMeasurements(int key) argument 410 getMeasurements(int key) argument 443 getIndex(int[] keys, int key) argument [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceFragment.java | 70 * {@link Activity} can specify meta-data in the manifest (via the key 344 * Finds a {@link Preference} based on its key. 346 * @param key The key of the preference to retrieve. 347 * @return The {@link Preference} with the key, or null. 350 public Preference findPreference(CharSequence key) { argument 354 return mPreferenceManager.findPreference(key);
|
/frameworks/base/core/java/android/printservice/ |
H A D | PrintJob.java | 368 * may set as a tag the key of the print job returned by a remote 404 * @param key The option key. 408 public String getAdvancedStringOption(String key) { argument 410 return getInfo().getAdvancedStringOption(key); 417 * @param key The option key. 421 public boolean hasAdvancedOption(String key) { argument 423 return getInfo().hasAdvancedOption(key); 429 * @param key Th 433 getAdvancedIntOption(String key) argument [all...] |
/frameworks/base/core/java/android/service/notification/ |
H A D | NotificationRankerService.java | 145 * @param key the notification key 149 public void onNotificationVisibilityChanged(String key, long time, boolean visible) argument 157 * @param key the notification key 160 public void onNotificationClick(String key, long time) argument 168 * @param key the notification key 172 public void onNotificationActionClick(String key, long time, int actionIndex) argument 180 * @param key th 184 onNotificationRemoved(String key, long time, int reason) argument 241 onNotificationVisibilityChanged(String key, long time, boolean visible) argument 251 onNotificationClick(String key, long time) argument 260 onNotificationActionClick(String key, long time, int actionIndex) argument 270 onNotificationRemovedReason(String key, long time, int reason) argument [all...] |
H A D | StatusBarNotification.java | 35 private final String key; field in class:StatusBarNotification 72 this.key = key(); 91 this.key = key(); 114 this.key = key(); 118 private String key() { method in class:StatusBarNotification 134 return key; 226 "StatusBarNotification(pkg=%s user=%s id=%d tag=%s key [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | TtsEngines.java | 537 * Updates the value for a given key in a comma separated list of key value pairs, 538 * each of which are delimited by a colon. If no value exists for the given key, 541 private String updateValueInCommaSeparatedList(String list, String key, argument 546 newPrefList.append(key).append(':').append(newValue); 551 // Whether we found the given key. 556 if (key.equals(value.substring(0, delimiter))) { 563 newPrefList.append(key).append(':').append(newValue); 570 // Copy across the entire key + value as is. 580 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 89 int indexOf(Object key, int hash) { argument 99 // If the hash code wasn't found, then we have no entry for this key. 104 // If the key at the returned index matches, that's what we want. 105 if (key.equals(mArray[index<<1])) { 109 // Search for a matching key after the index. 112 if (key.equals(mArray[end << 1])) return end; 115 // Search for a matching key before the index. 117 if (key 331 containsKey(Object key) argument 341 indexOfKey(Object key) argument 384 get(Object key) argument 437 put(K key, V value) argument 493 append(K key, V value) argument 581 remove(Object key) argument [all...] |
H A D | ArraySet.java | 78 private int indexOf(Object key, int hash) { argument 88 // If the hash code wasn't found, then we have no entry for this key. 93 // If the key at the returned index matches, that's what we want. 94 if (key.equals(mArray[index])) { 98 // Search for a matching key after the index. 101 if (key.equals(mArray[end])) return end; 104 // Search for a matching key before the index. 106 if (key.equals(mArray[i])) return i; 110 // new entry for this key should go. We use the end of the 126 // If the hash code wasn't found, then we have no entry for this key 303 contains(Object key) argument 313 indexOf(Object key) argument [all...] |
/frameworks/base/core/java/android/view/textservice/ |
H A D | SpellCheckerSubtype.java | 180 * @param key the key of extra value 183 public boolean containsExtraValueKey(String key) { argument 184 return getExtraValueHashMap().containsKey(key); 190 * @param key the key of extra value 191 * @return the value of the specified key 193 public String getExtraValueOf(String key) { argument 194 return getExtraValueHashMap().get(key);
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
H A D | SparseMappingTable.java | 42 * getOrAddKey, an int key is returned. That key can be re-retreived with getKey without 43 * allocating the value. The data can then be set or retrieved with that key. 85 * @param valueCount The number of values to copy for each key 107 * Allocates data in the buffer, and stores that key in the mapping for this 110 * @param id The id of the item (will be used in making the key) 114 * @return The 'key' for this data value, which contains both the id itself 140 // The key is a combination of whichArray, which index in that array, and 142 final int key = (whichArray << ARRAY_SHIFT) 148 // Store the key i 179 getValue(int key) argument 193 getValue(int key, int index) argument 247 getArrayForKey(int key) argument 259 setValue(int key, long value) argument 271 setValue(int key, int index, long value) argument 613 getIdFromKey(int key) argument 622 getArrayFromKey(int key) argument 631 getIndexFromKey(int key) argument [all...] |
/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/keystore/java/android/security/keystore/ |
H A D | AndroidKeyStoreAuthenticatedAESCipherSpi.java | 274 protected final void initKey(int opmode, Key key) throws InvalidKeyException { argument 275 if (!(key instanceof AndroidKeyStoreSecretKey)) { 277 "Unsupported key: " + ((key != null) ? key.getClass().getName() : "null")); 279 if (!KeyProperties.KEY_ALGORITHM_AES.equalsIgnoreCase(key.getAlgorithm())) { 281 "Unsupported key algorithm: " + key.getAlgorithm() + ". Only " + 284 setKey((AndroidKeyStoreSecretKey) key);
|
H A D | AndroidKeyStoreRSACipherSpi.java | 59 // RSA encryption with no padding using private key is a way to implement raw RSA 113 // RSA encryption with PCKS#1 padding using private key is a way to implement RSA 357 protected final void initKey(int opmode, Key key) throws InvalidKeyException { argument 358 if (key == null) { 359 throw new InvalidKeyException("Unsupported key: null"); 361 if (!KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(key.getAlgorithm())) { 362 throw new InvalidKeyException("Unsupported key algorithm: " + key.getAlgorithm() 366 if (key instanceof AndroidKeyStorePrivateKey) { 367 keystoreKey = (AndroidKeyStoreKey) key; [all...] |
H A D | AndroidKeyStoreSignatureSpiBase.java | 76 protected final void engineInitSign(PrivateKey key) throws InvalidKeyException { argument 77 engineInitSign(key, null); 88 throw new InvalidKeyException("Unsupported key: null"); 94 throw new InvalidKeyException("Unsupported private key type: " + privateKey); 115 throw new InvalidKeyException("Unsupported key: null"); 121 throw new InvalidKeyException("Unsupported public key type: " + publicKey); 136 * Configures this signature instance to use the provided key. 138 * @throws InvalidKeyException if the {@code key} is not suitable. 141 protected void initKey(AndroidKeyStoreKey key) throws InvalidKeyException { argument 142 mKey = key; [all...] |
H A D | AndroidKeyStoreSpi.java | 73 * PrivateKeyEntry will have a Credentials.USER_PRIVATE_KEY as the private key, 75 * that corresponds to the private key), and then a Credentials.CA_CERTIFICATE 160 // For this certificate there shouldn't be a private key in this KeyStore entry. Thus, 162 // a private key entry. 169 // complication is that the underlying keystore service operates only on full key pairs, 172 // corresponding private key. This is not the case for certificate-only entries (e.g., 175 // getCertificate().getPublicKey() is the only way to obtain the public key 176 // corresponding to the private key stored in the KeyStore. Thus, we need to make sure 177 // that the returned public key points to the underlying key pai 272 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument 287 getLegacyKeyProtectionParameter(PrivateKey key) argument 340 setPrivateKeyEntry(String alias, PrivateKey key, Certificate[] chain, java.security.KeyStore.ProtectionParameter param) argument 570 setSecretKeyEntry(String entryAlias, SecretKey key, java.security.KeyStore.ProtectionParameter param) 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. 88 BackupDataWriter::WriteEntityHeader(const String8& key, size_t dataSize) argument 105 k += key; 107 k = key; 110 ALOGD("Writing header: prefix='%s' key='%s' dataSize=%zu", m_keyPrefix.string(), 111 key.string(), dataSize); 131 if (kIsDebug) ALOGI("writing entity header key, %zd bytes", keyLen+1); 299 BackupDataReader::ReadEntityHeader(String8* key, size_t* dataSize) argument 307 *key [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListCanvas.h | 282 // compute the hash key for the paint and check the cache. 283 const uint32_t key = paint->getHash(); local 284 const SkPaint* cachedPaint = mPaintMap.valueFor(key); 293 mPaintMap.replaceValueFor(key, cachedPaint);
|
H A D | PatchCache.cpp | 109 const PatchDescription& key = i.key(); local 110 if (key.getPatch() == patch) { 111 patchesToRemove.push(patch_pair_t(&key, i.value()));
|