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

12345678

/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/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/cmds/backup/
H A Dbackup.cpp77 String8 key; local
79 err = reader.ReadEntityHeader(&key, &dataSize);
81 printf(" entity: %s (%d bytes)\n", key.string(), dataSize);
/frameworks/base/cmds/keystore/
H A Dkeystore_get.h36 * The first two arguments are the key and its length. The third argument
40 static int keystore_get(const char *key, int length, char *value) argument
55 send(sock, key, length, 0) == length && shutdown(sock, SHUT_WR) == 0 &&
/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;
H A DBackupDataOutput.java29 * as a set of "entities," key/value pairs in which each binary data record "value" is
30 * named with a string "key."
34 * onBackup()} method first writes an "entity header" that supplies the key string for the record
40 * Entity key strings are considered to be unique within a given application's backup
41 * data set. If a backup agent writes a new entity under an existing key string, its value will
44 * existing record's key, but supplying a negative <code>dataSize</code> parameter.
79 * @param key A string key that uniquely identifies the data record within the application
81 * of -1 indicates that the record under this key should be deleted.
85 public int writeEntityHeader(String key, in argument
127 writeEntityHeader_native(int mBackupWriter, String key, int dataSize) argument
[all...]
H A DBackupDataInput.java43 * String key = data.getKey();
46 * if (key.equals(MY_BACKUP_KEY_ONE)) {
54 * } else if (key.equals(MY_BACKUP_KEY_TO_IGNORE) {
55 * // a key we recognize but wish to discard
68 String key; field in class:BackupDataInput.EntityHeader
117 * Report the key associated with the current entity in the restore stream
118 * @return the current entity's key string
123 return mHeader.key;
/frameworks/base/core/java/android/text/
H A DAnnotation.java22 * Annotations are simple key-value pairs that are preserved across
30 public Annotation(String key, String value) { argument
31 mKey = key;
/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp50 jstring key = (jstring) env->GetObjectArrayElement(keys, i); local
53 const char* keyStr = env->GetStringUTFChars(key, NULL);
60 env->ReleaseStringUTFChars(key, keyStr);
66 env->ReleaseStringUTFChars(key, keyStr);
68 env->DeleteLocalRef(key);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DDoNotDisturb.java44 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DContentValuesBuilder.java31 public ContentValuesBuilder put(String key, String value) { argument
32 mContentValues.put(key, value);
37 public ContentValuesBuilder put(String key, Byte value) {
38 mContentValues.put(key, value);
42 public ContentValuesBuilder put(String key, Short value) {
43 mContentValues.put(key, value);
47 public ContentValuesBuilder put(String key, Integer value) { argument
48 mContentValues.put(key, value);
53 public ContentValuesBuilder put(String key, Long value) {
54 mContentValues.put(key, valu
73 put(String key, byte[] value) argument
78 putNull(String key) argument
[all...]
/frameworks/base/core/java/android/os/
H A DSystemProperties.java22 * store contains a list of string key-value pairs.
31 private static native String native_get(String key); argument
32 private static native String native_get(String key, String def); argument
33 private static native int native_get_int(String key, int def); argument
34 private static native long native_get_long(String key, long def); argument
35 private static native boolean native_get_boolean(String key, boolean def); argument
36 private static native void native_set(String key, String def); argument
39 * Get the value for the given key.
40 * @return an empty string if the key isn't found
41 * @throws IllegalArgumentException if the key exceed
43 get(String key) argument
55 get(String key, String def) argument
70 getInt(String key, int def) argument
85 getLong(String key, long def) argument
105 getBoolean(String key, boolean def) argument
117 set(String key, String val) argument
[all...]
/frameworks/base/core/java/com/android/internal/net/
H A DLegacyVpnInfo.java37 public String key; field in class:LegacyVpnInfo
48 out.writeString(key);
58 info.key = in.readString();
/frameworks/base/core/java/com/google/android/mms/util/
H A DAbstractCache.java37 public boolean put(K key, V value) { argument
39 Log.v(TAG, "Trying to put " + key + " into cache.");
51 if (key != null) {
54 mCacheMap.put(key, cacheEntry);
57 Log.v(TAG, key + " cached, " + mCacheMap.size() + " items total.");
64 public V get(K key) { argument
66 Log.v(TAG, "Trying to get " + key + " from cache.");
69 if (key != null) {
70 CacheEntry<V> cacheEntry = mCacheMap.get(key);
74 Log.v(TAG, key
82 purge(K key) argument
[all...]
/frameworks/base/drm/common/
H A DDrmConstraints.cpp32 status_t DrmConstraints::put(const String8* key, const char* value) { argument
38 mConstraintMap.add(*key, charValue);
43 String8 DrmConstraints::get(const String8& key) const {
44 if (NULL != getValue(&key)) {
45 return String8(getValue(&key));
50 const char* DrmConstraints::getValue(const String8* key) const {
51 if (NAME_NOT_FOUND != mConstraintMap.indexOfKey(*key)) {
52 return mConstraintMap.valueFor(*key);
57 const char* DrmConstraints::getAsByteArray(const String8* key) const {
58 return getValue(key);
66 const String8& key = mDrmConstraints->mConstraintMap.keyAt(mIndex); local
[all...]
H A DDrmInfoRequest.cpp41 status_t DrmInfoRequest::put(const String8& key, const String8& value) { argument
42 mRequestInformationMap.add(key, value);
46 String8 DrmInfoRequest::get(const String8& key) const {
47 if (NAME_NOT_FOUND != mRequestInformationMap.indexOfKey(key)) {
48 return mRequestInformationMap.valueFor(key);
73 const String8& key = mDrmInfoRequest->mRequestInformationMap.keyAt(mIndex); local
75 return key;
H A DDrmMetadata.cpp25 status_t DrmMetadata::put(const String8* key, argument
27 if((value != NULL) && (key != NULL)) {
33 mMetadataMap.add(*key, charValue);
38 String8 DrmMetadata::get(const String8& key) const {
39 if (NULL != getValue(&key)) {
40 return String8(getValue(&key));
47 const char* DrmMetadata::getValue(const String8* key) const {
48 if(key != NULL) {
49 if (NAME_NOT_FOUND != mMetadataMap.indexOfKey(*key)) {
50 return mMetadataMap.valueFor(*key);
69 const String8& key = mDrmMetadata->mMetadataMap.keyAt(mIndex); local
[all...]
/frameworks/base/drm/java/android/drm/
H A DDrmEvent.java35 * The key that is used in the <code>attributes</code> HashMap to pass the return status.
39 * The key that is used in the <code>attributes</code> HashMap to pass the
116 * Retrieves the attribute associated with the specified key.
119 * the key is found.
121 public Object getAttribute(String key) { argument
122 return mAttributes.get(key);
/frameworks/base/include/drm/
H A DDrmMetadata.h33 * Iterator for key
82 String8 key = keyIt.next(); local
83 const char* value = this->getAsByteArray(&key);
94 status_t put(const String8* key, const char* value);
95 String8 get(const String8& key) const;
96 const char* getAsByteArray(const String8* key) const;
101 const char* getValue(const String8* key) const;
/frameworks/base/libs/utils/tests/
H A DBlobCache_test.cpp117 char key[MAX_KEY_SIZE+1]; local
120 key[i] = 'a';
122 mBC->set(key, MAX_KEY_SIZE+1, "bbbb", 4);
123 ASSERT_EQ(size_t(0), mBC->get(key, MAX_KEY_SIZE+1, buf, 4));
153 char key[MAX_KEY_SIZE];
156 key[i] = 'a';
162 mBC->set(key, MAX_KEY_SIZE, buf, MAX_VALUE_SIZE);
163 ASSERT_EQ(size_t(0), mBC->get(key, MAX_KEY_SIZE, NULL, 0));
167 char key[MAX_KEY_SIZE];
170 key[
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DDoNotDisturbController.java64 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument
/frameworks/base/core/java/android/util/
H A DLruCache.java41 * protected int sizeOf(String key, Bitmap value) {
49 * if (cache.get(key) == null) {
50 * cache.put(key, value);
54 * <p>This class does not allow null to be used as a key or value. A return
56 * unambiguous: the key was not in the cache.
85 * Returns the value for {@code key} if it exists in the cache or can be
90 public final V get(K key) { argument
91 if (key == null) {
92 throw new NullPointerException("key == null");
97 mapValue = map.get(key);
144 put(K key, V value) argument
206 remove(K key) argument
241 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument
258 create(K key) argument
262 safeSizeOf(K key, V value) argument
277 sizeOf(K key, V value) argument
[all...]
H A DSparseBooleanArray.java62 * Gets the boolean mapped from the specified key, or <code>false</code>
65 public boolean get(int key) { argument
66 return get(key, false);
70 * Gets the boolean mapped from the specified key, or the specified value
73 public boolean get(int key, boolean valueIfKeyNotFound) { argument
74 int i = binarySearch(mKeys, 0, mSize, key);
84 * Removes the mapping from the specified key, if there was any.
86 public void delete(int key) { argument
87 int i = binarySearch(mKeys, 0, mSize, key);
97 * Adds a mapping from the specified key t
101 put(int key, boolean value) argument
166 indexOfKey(int key) argument
197 append(int key, boolean value) argument
223 binarySearch(int[] a, int start, int len, int key) argument
[all...]
H A DSparseIntArray.java66 * Gets the int mapped from the specified key, or <code>0</code>
69 public int get(int key) { argument
70 return get(key, 0);
74 * Gets the int mapped from the specified key, or the specified value
77 public int get(int key, int valueIfKeyNotFound) { argument
78 int i = binarySearch(mKeys, 0, mSize, key);
88 * Removes the mapping from the specified key, if there was any.
90 public void delete(int key) { argument
91 int i = binarySearch(mKeys, 0, mSize, key);
108 * Adds a mapping from the specified key t
112 put(int key, int value) argument
177 indexOfKey(int key) argument
208 append(int key, int value) argument
234 binarySearch(int[] a, int start, int len, int key) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_backup_BackupDataInput.cpp70 String8 key; local
72 err = reader->ReadEntityHeader(&key, &dataSize);
77 jstring keyStr = env->NewStringUTF(key.string());
140 s_keyField = env->GetFieldID(clazz, "key", "Ljava/lang/String;");
142 "Unable to find key field in android.app.backup.BackupDataInput.EntityHeader");

Completed in 1030 milliseconds

12345678