Searched defs:key (Results 1 - 25 of 449) sorted by relevance

1234567891011>>

/frameworks/rs/
H A DrsCompatibilityLib.cpp22 int property_get(const char *key, char *value, const char *default_value) { argument
25 len = __system_property_get(key, value);
/frameworks/base/test-runner/src/android/test/
H A DSimpleCache.java25 protected abstract V load(K key); argument
27 final V get(K key) { argument
28 if (map.containsKey(key)) {
29 return map.get(key);
31 V value = load(key);
32 map.put(key, value);
/frameworks/base/tools/aapt/
H A DAaptUtil.h32 const KEY& key, const VALUE& value);
36 const KEY& key, const VALUE& value);
44 const KEY& key, const VALUE& value) {
45 ssize_t idx = keyedVector.indexOfKey(key);
47 idx = keyedVector.add(key, android::Vector<VALUE>());
54 const KEY& key, const VALUE& value) {
55 ssize_t idx = keyedVector.indexOfKey(key);
57 idx = keyedVector.add(key, android::SortedVector<VALUE>());
43 appendValue(android::KeyedVector<KEY, android::Vector<VALUE> >& keyedVector, const KEY& key, const VALUE& value) argument
53 appendValue(android::KeyedVector<KEY, android::SortedVector<VALUE> >& keyedVector, const KEY& key, const VALUE& value) argument
/frameworks/data-binding/library/src/main/java/android/databinding/
H A DMapChangeRegistry.java41 * @param key The key of the element that changed.
43 public void notifyChange(ObservableMap sender, Object key) { argument
44 notifyCallbacks(sender, 0, key);
/frameworks/base/core/java/android/app/
H A DAppGlobals.java53 * @param key The setting key.
57 public static int getIntCoreSetting(String key, int defaultValue) { argument
60 return currentActivityThread.getIntCoreSetting(key, defaultValue);
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DGetCommand.java28 * @param key the {@link CameraMetadataNative.Key} to look up.
32 public <T> T getValue(CameraMetadataNative metadata, CameraMetadataNative.Key<T> key); argument
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DThumbnailCache.java29 protected int sizeOf(Uri key, Bitmap value) { argument
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/
H A DObservableMap.java57 * @param key The key of the value inserted, removed, or changed.
59 public abstract void onMapChanged(T sender, K key); argument
/frameworks/support/v4/java/android/support/v4/app/
H A DBundleCompat.java32 * @param key The key to use while getting the {@link IBinder}.
35 public static IBinder getBinder(Bundle bundle, String key) { argument
37 return BundleCompatJellybeanMR2.getBinder(bundle, key);
39 return BundleCompatDonut.getBinder(bundle, key);
47 * @param key The key to use while putting the {@link IBinder}.
50 public static void putBinder(Bundle bundle, String key, IBinder binder) { argument
52 BundleCompatJellybeanMR2.putBinder(bundle, key, binder);
54 BundleCompatDonut.putBinder(bundle, key, binde
[all...]
/frameworks/support/v4/jellybean/android/support/v4/app/
H A DBundleUtil.java17 public static Bundle[] getBundleArrayFromBundle(Bundle bundle, String key) { argument
18 Parcelable[] array = bundle.getParcelableArray(key);
24 bundle.putParcelableArray(key, typedArray);
/frameworks/support/v4/jellybean-mr2/android/support/v4/app/
H A DBundleCompatJellybeanMR2.java26 public static IBinder getBinder(Bundle bundle, String key) { argument
27 return bundle.getBinder(key);
30 public static void putBinder(Bundle bundle, String key, IBinder binder) { argument
31 bundle.putBinder(key, binder);
/frameworks/wilhelm/src/autogen/
H A DIID_to_MPH.c318 unsigned key = asso_values[((unsigned char *)iid)[3]] + local
320 if (key <= MAX_HASH_VALUE) {
321 int MPH = hash_to_MPH[key];
/frameworks/av/include/camera/
H A DCameraParameters2.h41 void set(const char *key, const char *value);
42 void set(const char *key, int value);
43 void setFloat(const char *key, float value);
44 // Look up string value by key.
45 // -- The string remains valid until the next set/remove of the same key,
47 const char *get(const char *key) const;
48 int getInt(const char *key) const;
49 float getFloat(const char *key) const;
58 // * NAME_NOT_FOUND - if either key has not been set previously
64 void remove(const char *key);
119 add(const KeyT& key, const ValueT& value) argument
[all...]
/frameworks/av/media/libstagefright/webm/
H A DWebmFrame.cpp49 WebmFrame::WebmFrame(int type, bool key, uint64_t absTimecode, MediaBuffer *mbuf) argument
51 mKey(key),
/frameworks/base/cmds/backup/
H A Dbackup.cpp74 String8 key; local
76 err = reader.ReadEntityHeader(&key, &dataSize);
78 printf(" entity: %s (%zu bytes)\n", key.string(), dataSize);
/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/content/res/
H A DConfigurationBoundResourceCache.java40 * @param key a key that uniquely identifies the drawable resource
45 public T getInstance(long key, Resources.Theme theme) { argument
46 final ConstantState<T> entry = get(key, theme);
H A DDrawableCache.java39 * @param key a key that uniquely identifies the drawable resource
44 public Drawable getInstance(long key, Resources.Theme theme) { argument
45 final Drawable.ConstantState entry = get(key, theme);
/frameworks/base/core/java/android/util/
H A DKeyValueListParser.java21 * Parses a list of key=value pairs, separated by some delimiter, and puts the results in
22 * an internal Map. Values can be then queried by key, or if not found, a default value
33 * @param delim The delimiter that separates key=value pairs.
58 "'" + pair + "' in '" + str + "' is not a valid key-value pair");
66 * Get the value for key as a long.
67 * @param key The key to lookup.
68 * @param def The value to return if the key was not found, or the value was not a long.
69 * @return the long value associated with the key.
71 public long getLong(String key, lon argument
89 getFloat(String key, float def) argument
107 getString(String key, String def) argument
[all...]
/frameworks/base/core/java/com/android/server/backup/
H A DNotificationBackupHelper.java43 protected byte[] getBackupPayload(String key) { argument
45 if (KEY_NOTIFICATIONS.equals(key)) {
60 protected void applyRestoredPayload(String key, byte[] payload) { argument
62 Slog.v(TAG, "Got restore of " + key);
65 if (KEY_NOTIFICATIONS.equals(key)) {
H A DPreferredActivityBackupHelper.java32 // key under which the preferred-activity state blob is committed to backup
35 // key for default-browser [etc] state
49 protected byte[] getBackupPayload(String key) { argument
52 Slog.d(TAG, "Handling backup of " + key);
55 switch (key) {
63 Slog.w(TAG, "Unexpected backup key " + key);
66 Slog.e(TAG, "Unable to store payload " + key);
72 protected void applyRestoredPayload(String key, byte[] payload) { argument
75 Slog.d(TAG, "Handling restore of " + key);
[all...]
/frameworks/base/keystore/java/android/security/keystore/
H A DAndroidKeyStoreKeyFactorySpi.java44 protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpecClass) argument
46 if (key == null) {
47 throw new InvalidKeySpecException("key == null");
48 } else if ((!(key instanceof AndroidKeyStorePrivateKey))
49 && (!(key instanceof AndroidKeyStorePublicKey))) {
51 "Unsupported key type: " + key.getClass().getName()
55 // key is an Android Keystore private or public key
60 if (!(key instanceo
140 engineTranslateKey(Key key) argument
[all...]
H A DAndroidKeyStoreSecretKeyFactorySpi.java46 protected KeySpec engineGetKeySpec(SecretKey key, argument
51 if (!(key instanceof AndroidKeyStoreSecretKey)) {
53 ((key != null) ? key.getClass().getName() : "null"));
60 throw new InvalidKeySpecException("Unsupported key spec: " + keySpecClass.getName());
62 String keyAliasInKeystore = ((AndroidKeyStoreKey) key).getAlias();
67 throw new InvalidKeySpecException("Invalid key alias: " + keyAliasInKeystore);
78 throw new ProviderException("Failed to obtain information about key."
149 throw new ProviderException("Unsupported key characteristic", e);
189 "To generate secret key i
194 engineTranslateKey(SecretKey key) argument
[all...]
H A DKeyStoreCryptoOperationUtils.java46 KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) {
54 keyStore.getInvalidKeyException(key.getAlias(), beginOpResultCode);
58 // exception is such authentication is possible for this key
60 // the key is permanently invalidated (KeyPermanentlyInvalidatedException).
75 KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) {
89 return getInvalidKeyExceptionForInit(keyStore, key, beginOpResultCode);
45 getInvalidKeyExceptionForInit( KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) argument
74 getExceptionForCipherInit( KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) argument
/frameworks/base/libs/hwui/utils/
H A DTinyHashMap.h34 * Puts an entry in the hash, removing any existing entry with the same key
36 void put(TKey key, TValue value) { argument
37 hash_t hash = android::hash_type(key);
39 ssize_t index = mTable.find(-1, hash, key);
44 TEntry initEntry(key, value);
49 * Return true if key is in the map, in which case stores the value in the output ref
51 bool get(TKey key, TValue& outValue) { argument
52 hash_t hash = android::hash_type(key);
53 ssize_t index = mTable.find(-1, hash, key);

Completed in 826 milliseconds

1234567891011>>