/frameworks/support/fragment/tests/java/android/support/v4/app/test/ |
H A D | FragmentTestActivity.java | 120 String key = TRANSITION_KEY + i; 121 mTransitionIds[i] = savedInstanceState.getInt(key, mTransitionIds[i]); 131 String key = TRANSITION_KEY + i; 132 outState.putInt(key, mTransitionIds[i]); 176 private Transition loadTransition(int key) { argument 177 final int id = mTransitionIds[key]; 182 transition.addListener(((TransitionCalledListener)mListeners[key]));
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceManager.java | 229 * with a key tied to the physical device, and it can be accessed 387 * Finds a {@link Preference} based on its key. 389 * @param key The key of the preference to retrieve. 390 * @return The {@link Preference} with the key, or null. 393 public Preference findPreference(CharSequence key) { argument 398 return mPreferenceScreen.findPreference(key); 624 * do not have a unique key.</p>
|
/frameworks/av/drm/common/ |
H A D | IDrmManagerService.cpp | 82 DrmCopyControl key = (DrmCopyControl)data.readInt32(); local 84 handle->copyControlVector.add(key, value); 89 String8 key = data.readString8(); local 91 handle->extendedData.add(key, value); 176 const String8 key(reply.readString8()); 182 drmConstraints->put(&key, data); 206 const String8 key(reply.readString8()); 212 drmMetadata->put(&key, data); 256 const String8 key = keyIt.next(); local 257 data.writeString8(key); 301 const String8 key = keyIt.next(); local 868 const String8 key = keyIt.next(); local 900 const String8 key = keyIt.next(); local 1031 const String8 key = keyIt.next(); local [all...] |
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 583 String8 key = mSupportInfoToPlugInIdMap.valueFor(drmSupportInfo); local 584 IDrmEngine& drmEngine = mPlugInManager.getPlugIn(key); 587 plugInId = key;
|
/frameworks/av/drm/libmediadrm/ |
H A D | IDrm.cpp | 236 String8 key = reply.readString8(); local 238 infoMap.add(key, value); 642 String8 key, value; local 643 key = data.readString8(); 645 optionalParameters.add(key, value);
|
/frameworks/av/drm/mediadrm/plugins/mock/ |
H A D | MockDrmCryptoPlugin.cpp | 795 MockCryptoPlugin::decrypt(bool secure, const uint8_t key[16], const uint8_t iv[16], argument 800 ALOGD("MockCryptoPlugin::decrypt(secure=%d, key=%s, iv=%s, mode=%d, " 804 arrayToString(key, sizeof(key)).string(),
|
/frameworks/av/media/libmediametrics/ |
H A D | MediaAnalyticsItem.cpp | 70 MediaAnalyticsItem::MediaAnalyticsItem(MediaAnalyticsItem::Key key) argument 81 mKey = key; 93 // clean allocated storage from key 120 // key as part of constructor 204 // this key is for the overall record -- "codec", "player", "drm", etc 205 MediaAnalyticsItem &MediaAnalyticsItem::setKey(MediaAnalyticsItem::Key key) { argument 206 mKey = key; 487 // remove a single key 659 // key+session are our primary matching criteria 837 // if I don't have key o [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MP3Extractor.cpp | 619 int key; member in struct:android::Map 654 meta->setCString(kMap[i].key, s);
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTSPConnection.cpp | 704 AString key(line, 0, colonPos); 705 key.trim(); 706 key.tolower(); 710 lastDictIndex = response->mHeaders.add(key, line); 924 uint8_t key[16]; local 925 MD5_Final(key, &m); 928 char nibble = key[i] >> 4; 936 nibble = key[i] & 0x0f;
|
H A D | MyTransmitter.h | 53 static bool GetAttribute(const char *s, const char *key, AString *value) { argument 56 size_t keyLen = strlen(key); 64 if (len >= keyLen + 1 && s[keyLen] == '=' && !strncmp(s, key, keyLen)) { 246 uint8_t key[16]; local 247 MD5_Final(key, &m); 250 char nibble = key[i] >> 4; 258 nibble = key[i] & 0x0f;
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmElement.cpp | 194 bool key, 202 mKey(key), 191 WebmSimpleBlock( int trackNum, int16_t relTimecode, bool key, const sp<ABuffer>& orig) argument
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaCodec.cpp | 492 uint8_t key[16]; member in struct:AMediaCodecCryptoInfo 524 crypto->key, 549 uint8_t key[16], 563 memcpy(ret->key, key, 16); 599 memcpy(dst, ci->key, 16); 547 AMediaCodecCryptoInfo_new( int numsubsamples, uint8_t key[16], uint8_t iv[16], cryptoinfo_mode_t mode, size_t *clearbytes, size_t *encryptedbytes) argument
|
/frameworks/av/services/camera/libcameraservice/utils/ |
H A D | ClientManager.h | 74 * The ClientDescriptor class is a container for a given key/value pair identifying a shared 84 ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost, 86 ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, std::set<KEY>&& conflictingKeys, 92 * Return the key for this descriptor. 117 * Return true if the given key is in this descriptor's conflicting keys list. 119 bool isConflicting(const KEY& key) const; 131 // This class is ordered by key 150 ClientDescriptor<KEY, VALUE>::ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost, argument 152 mKey{key}, mValue{value}, mCost{cost}, mConflicting{conflictingKeys}, 157 ClientDescriptor<KEY, VALUE>::ClientDescriptor(KEY&& key, VALU argument 422 const KEY& key = client->getKey(); local 598 remove( const KEY& key) argument [all...] |
/frameworks/base/core/java/android/net/nsd/ |
H A D | NsdManager.java | 135 * The lookup key for an int that indicates whether network service discovery is enabled 351 Log.d(TAG, "Stale key " + message.arg2); 412 // return its key. 415 int key; 422 key = mListenerKey++; 423 } while (key == INVALID_LISTENER_KEY); 424 mListenerMap.put(key, listener); 425 mServiceMap.put(key, s); 427 return key; 430 private Object getListener(int key) { argument 437 getNsdService(int key) argument 443 removeListener(int key) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | BaseBundle.java | 428 * Returns true if the given key is contained in the mapping 431 * @param key a String key 432 * @return true if the key is part of the mapping, false otherwise 434 public boolean containsKey(String key) { argument 436 return mMap.containsKey(key); 440 * Returns the entry with the given key as an object. 442 * @param key a String key 446 public Object get(String key) { argument 456 remove(String key) argument 499 putBoolean(@ullable String key, boolean value) argument 511 putByte(@ullable String key, byte value) argument 523 putChar(@ullable String key, char value) argument 535 putShort(@ullable String key, short value) argument 547 putInt(@ullable String key, int value) argument 559 putLong(@ullable String key, long value) argument 571 putFloat(@ullable String key, float value) argument 583 putDouble(@ullable String key, double value) argument 595 putString(@ullable String key, @Nullable String value) argument 607 putCharSequence(@ullable String key, @Nullable CharSequence value) argument 619 putIntegerArrayList(@ullable String key, @Nullable ArrayList<Integer> value) argument 631 putStringArrayList(@ullable String key, @Nullable ArrayList<String> value) argument 643 putCharSequenceArrayList(@ullable String key, @Nullable ArrayList<CharSequence> value) argument 655 putSerializable(@ullable String key, @Nullable Serializable value) argument 667 putBooleanArray(@ullable String key, @Nullable boolean[] value) argument 679 putByteArray(@ullable String key, @Nullable byte[] value) argument 691 putShortArray(@ullable String key, @Nullable short[] value) argument 703 putCharArray(@ullable String key, @Nullable char[] value) argument 715 putIntArray(@ullable String key, @Nullable int[] value) argument 727 putLongArray(@ullable String key, @Nullable long[] value) argument 739 putFloatArray(@ullable String key, @Nullable float[] value) argument 751 putDoubleArray(@ullable String key, @Nullable double[] value) argument 763 putStringArray(@ullable String key, @Nullable String[] value) argument 775 putCharSequenceArray(@ullable String key, @Nullable CharSequence[] value) argument 787 getBoolean(String key) argument 795 typeWarning(String key, Object value, String className, Object defaultValue, ClassCastException e) argument 811 typeWarning(String key, Object value, String className, ClassCastException e) argument 824 getBoolean(String key, boolean defaultValue) argument 845 getByte(String key) argument 858 getByte(String key, byte defaultValue) argument 879 getChar(String key) argument 892 getChar(String key, char defaultValue) argument 913 getShort(String key) argument 926 getShort(String key, short defaultValue) argument 947 getInt(String key) argument 960 getInt(String key, int defaultValue) argument 981 getLong(String key) argument 994 getLong(String key, long defaultValue) argument 1015 getFloat(String key) argument 1028 getFloat(String key, float defaultValue) argument 1049 getDouble(String key) argument 1062 getDouble(String key, double defaultValue) argument 1085 getString(@ullable String key) argument 1107 getString(@ullable String key, String defaultValue) argument 1121 getCharSequence(@ullable String key) argument 1143 getCharSequence(@ullable String key, CharSequence defaultValue) argument 1157 getSerializable(@ullable String key) argument 1180 getIntegerArrayList(@ullable String key) argument 1203 getStringArrayList(@ullable String key) argument 1226 getCharSequenceArrayList(@ullable String key) argument 1249 getBooleanArray(@ullable String key) argument 1272 getByteArray(@ullable String key) argument 1295 getShortArray(@ullable String key) argument 1318 getCharArray(@ullable String key) argument 1341 getIntArray(@ullable String key) argument 1364 getLongArray(@ullable String key) argument 1387 getFloatArray(@ullable String key) argument 1410 getDoubleArray(@ullable String key) argument 1433 getStringArray(@ullable String key) argument 1456 getCharSequenceArray(@ullable String key) argument [all...] |
H A D | Bundle.java | 133 * Make a Bundle for a single key/value pair. 137 public static Bundle forPair(String key, String value) { argument 139 b.putString(key, value); 232 * Removes any entry with the given key from the mapping of this Bundle. 234 * @param key a String key 236 public void remove(String key) { argument 237 super.remove(key); 383 * any existing value for the given key. 385 * @param key 389 putByte(@ullable String key, byte value) argument 401 putChar(@ullable String key, char value) argument 413 putShort(@ullable String key, short value) argument 425 putFloat(@ullable String key, float value) argument 437 putCharSequence(@ullable String key, @Nullable CharSequence value) argument 448 putParcelable(@ullable String key, @Nullable Parcelable value) argument 461 putSize(@ullable String key, @Nullable Size value) argument 473 putSizeF(@ullable String key, @Nullable SizeF value) argument 486 putParcelableArray(@ullable String key, @Nullable Parcelable[] value) argument 500 putParcelableArrayList(@ullable String key, @Nullable ArrayList<? extends Parcelable> value) argument 508 putParcelableList(String key, List<? extends Parcelable> value) argument 522 putSparseParcelableArray(@ullable String key, @Nullable SparseArray<? extends Parcelable> value) argument 537 putIntegerArrayList(@ullable String key, @Nullable ArrayList<Integer> value) argument 549 putStringArrayList(@ullable String key, @Nullable ArrayList<String> value) argument 561 putCharSequenceArrayList(@ullable String key, @Nullable ArrayList<CharSequence> value) argument 574 putSerializable(@ullable String key, @Nullable Serializable value) argument 586 putByteArray(@ullable String key, @Nullable byte[] value) argument 598 putShortArray(@ullable String key, @Nullable short[] value) argument 610 putCharArray(@ullable String key, @Nullable char[] value) argument 622 putFloatArray(@ullable String key, @Nullable float[] value) argument 634 putCharSequenceArray(@ullable String key, @Nullable CharSequence[] value) argument 645 putBundle(@ullable String key, @Nullable Bundle value) argument 664 putBinder(@ullable String key, @Nullable IBinder value) argument 680 putIBinder(@ullable String key, @Nullable IBinder value) argument 693 getByte(String key) argument 706 getByte(String key, byte defaultValue) argument 718 getChar(String key) argument 731 getChar(String key, char defaultValue) argument 743 getShort(String key) argument 756 getShort(String key, short defaultValue) argument 768 getFloat(String key) argument 781 getFloat(String key, float defaultValue) argument 795 getCharSequence(@ullable String key) argument 811 getCharSequence(@ullable String key, CharSequence defaultValue) argument 824 getSize(@ullable String key) argument 844 getSizeF(@ullable String key) argument 864 getBundle(@ullable String key) argument 887 getParcelable(@ullable String key) argument 910 getParcelableArray(@ullable String key) argument 933 getParcelableArrayList(@ullable String key) argument 957 getSparseParcelableArray(@ullable String key) argument 981 getSerializable(@ullable String key) argument 995 getIntegerArrayList(@ullable String key) argument 1009 getStringArrayList(@ullable String key) argument 1023 getCharSequenceArrayList(@ullable String key) argument 1037 getByteArray(@ullable String key) argument 1051 getShortArray(@ullable String key) argument 1065 getCharArray(@ullable String key) argument 1079 getFloatArray(@ullable String key) argument 1093 getCharSequenceArray(@ullable String key) argument 1106 getBinder(@ullable String key) argument 1133 getIBinder(@ullable String key) argument [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceManager.java | 54 * The Activity meta-data key for its XML preference hierarchy. 252 * the {@link #METADATA_KEY_PREFERENCES} key. 413 * with a key tied to the physical device, and it can be accessed 436 * with a key tied to user credentials, which can be accessed 570 * Finds a {@link Preference} based on its key. 572 * @param key the key of the preference to retrieve 573 * @return the {@link Preference} with the key, or {@code null} 577 public Preference findPreference(CharSequence key) { argument 582 return mPreferenceScreen.findPreference(key); [all...] |
/frameworks/base/core/java/android/print/ |
H A D | PrintJobInfo.java | 587 * @param key The option key. 590 public boolean hasAdvancedOption(String key) { argument 591 return mAdvancedOptions != null && mAdvancedOptions.containsKey(key); 597 * @param key The option key. 600 public String getAdvancedStringOption(String key) { argument 602 return mAdvancedOptions.getString(key); 610 * @param key The option key 613 getAdvancedIntOption(String key) argument 834 putAdvancedOption(@onNull String key, @Nullable String value) argument 849 putAdvancedOption(@onNull String key, int value) argument [all...] |
/frameworks/base/core/java/android/view/accessibility/ |
H A D | CaptioningManager.java | 163 private void registerObserver(String key) { argument 164 mContentResolver.registerContentObserver(Secure.getUriFor(key), false, mContentObserver);
|
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputMethodSubtype.java | 200 * but the API supplies tools to deal with a key-value comma-separated list; see 258 * supplies tools to deal with a key-value comma-separated list; see 549 * @param key The key of extra value 552 public boolean containsExtraValueKey(String key) { argument 553 return getExtraValueHashMap().containsKey(key); 559 * @param key The key of extra value 560 * @return The value of the specified key 562 public String getExtraValueOf(String key) { argument [all...] |
/frameworks/base/core/java/com/android/internal/backup/ |
H A D | LocalTransport.java | 177 // the record key. Wind through the data file, extracting individual 185 String key = changeSet.getKey(); 186 String base64Key = new String(Base64.encode(key.getBytes())); 191 if (DEBUG) Log.v(TAG, "Got change set key=" + key + " size=" + dataSize 219 Log.e(TAG, "Unable to update key file " + entityFile.getAbsolutePath()); 480 // If we have key/value data for this package, deliver that 493 // No key/value data; check for [non-empty] full data 525 throw new IllegalStateException("getRestoreData(fd) for non-key/value dataset"); 532 // data in lexical order sorted by key, s 568 public String key; field in class:LocalTransport.DecodedFilename [all...] |
/frameworks/base/keystore/java/android/security/ |
H A D | KeyStore.java | 50 * assumes that private and secret key bytes are available and would 83 * Indicates that this key (or key pair) must be encrypted at rest. This will protect the key 84 * (or key pair) with the secure lock screen credential (e.g., password, PIN, or pattern). 87 * up, otherwise key (or key pair) generation or import will fail. Moreover, this key (or key 89 * a Device Administrator). Finally, this key (o 168 get(String key, int uid) argument 177 get(String key) argument 181 put(String key, byte[] value, int uid, int flags) argument 185 insert(String key, byte[] value, int uid, int flags) argument 194 delete(String key, int uid) argument 204 delete(String key) argument 208 contains(String key, int uid) argument 217 contains(String key) argument 306 generate(String key, int uid, int keyType, int keySize, int flags, byte[][] args) argument 317 importKey(String keyName, byte[] key, int uid, int flags) argument 326 sign(String key, byte[] data) argument 335 verify(String key, byte[] data, byte[] signature) argument 344 grant(String key, int uid) argument 353 ungrant(String key, int uid) argument 366 getmtime(String key, int uid) argument 380 getmtime(String key) argument [all...] |
/frameworks/base/keystore/tests/src/android/security/ |
H A D | KeyStoreTest.java | 54 private static final String TEST_KEYNAME = "test-key"; 55 private static final String TEST_KEYNAME1 = "test-key.1"; 56 private static final String TEST_KEYNAME2 = "test-key\02"; 377 assertTrue("Should be able to generate key when unlocked", 387 assertTrue("Should be able to generate key when unlocked", 407 assertTrue("Should be able to import key when unlocked", mKeyStore.importKey(TEST_KEYNAME, 416 assertTrue("Should be able to import key when unlocked", mKeyStore.importKey(TEST_KEYNAME, 435 assertFalse("Invalid DER-encoded key should not be imported", mKeyStore.importKey( 482 assertTrue("Should be able to generate key for testcase", 486 assertTrue("Should be able to grant key t 830 importAesKey(String name, byte[] key, int size, int mode) argument [all...] |
/frameworks/base/keystore/tests/src/android/security/keystore/ |
H A D | AndroidKeyStoreTest.java | 801 assertTrue("Should contain generated private key", mKeyStore.containsAlias(TEST_ALIAS_1)); 1178 private void assertPrivateKeyEntryEquals(PrivateKeyEntry keyEntry, String keyType, byte[] key, argument 1181 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(key)); 1256 Key key = mKeyStore.getKey(TEST_ALIAS_1, null); 1257 assertNotNull("Key should exist", key); 1259 assertTrue("Should be a PrivateKey", key instanceof PrivateKey); 1260 assertTrue("Should be a RSAKey", key instanceof RSAKey); 1265 assertEquals("Inserted key should be same as retrieved key", 1266 ((RSAKey) expectedKey).getModulus(), ((RSAKey) key) [all...] |
/frameworks/base/libs/hwui/ |
H A D | Program.h | 251 * Computes the unique key identifying this program. 253 programid key() const { function in namespace:android::uirenderer 254 programid key = 0; local 255 if (hasTexture) key |= PROGRAM_KEY_TEXTURE; 256 if (hasAlpha8Texture) key |= PROGRAM_KEY_A8_TEXTURE; 258 key |= PROGRAM_KEY_BITMAP; 260 key |= PROGRAM_KEY_BITMAP_NPOT; 261 key |= getEnumForWrap(bitmapWrapS) << PROGRAM_BITMAP_WRAPS_SHIFT; 262 key |= getEnumForWrap(bitmapWrapT) << PROGRAM_BITMAP_WRAPT_SHIFT; 265 key | [all...] |