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

1234567891011

/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/wilhelm/src/autogen/
H A DIID_to_MPH.c248 unsigned key = asso_values[((unsigned char *)iid)[8]] + local
250 if (key <= MAX_HASH_VALUE) {
251 int MPH = hash_to_MPH[key];
/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/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...]
/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/samples/training/network-usage/src/com/example/android/networkusage/
H A DSettingsActivity.java61 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { argument
/frameworks/compile/mclinker/include/mcld/ADT/
H A DHashEntry.h52 KeyType& key() function in class:mcld::HashEntry
55 const KeyType& key() const function in class:mcld::HashEntry
H A DStringEntry.h36 key_type key() function in class:mcld::StringEntry
39 const key_type key() const function in class:mcld::StringEntry
58 { return (0 == key().compare(pX)); }
61 { return (0 == key().compare(pX)); }
86 key_type key() function in class:mcld::StringEntry
89 const key_type key() const function in class:mcld::StringEntry
112 { return (0 == key().compare(pX)); }
115 { return (0 == key().compare(pX)); }
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DStringFloat.java7 public String key; field in class:StringFloat
33 out.writeString(key);
38 key = in.readString();
H A DStringString.java7 public String key; field in class:StringString
33 out.writeString(key);
38 key = in.readString();
H A DBordeauxPredictor.java95 public boolean setParameter(String key, String value) { argument
99 return mPredictor.setPredictorParameter(key, value);
/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/support/volley/src/com/android/volley/toolbox/
H A DNoCache.java30 public Entry get(String key) { argument
35 public void put(String key, Entry entry) { argument
39 public void invalidate(String key, boolean fullExpire) { argument
43 public void remove(String key) { argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DKeyValueMap.java36 throw new RuntimeException("Key-value argument " + i + " must be a key of type "
39 String key = (String)keyValues[i];
41 put(key, value);
51 public String getString(String key) { argument
52 Object result = get(key);
56 public int getInt(String key) { argument
57 Object result = get(key);
61 public float getFloat(String key) { argument
62 Object result = get(key);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DDoNotDisturb.java44 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument
/frameworks/av/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/av/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/av/media/libstagefright/wifi-display/
H A DParameters.cpp75 AString key = name; local
76 key.tolower();
78 ssize_t index = mDict.indexOfKey(key);
/frameworks/base/drm/java/android/drm/
H A DDrmEvent.java39 * The key that is used in the <code>attributes</code> HashMap to pass the return status.
43 * The key that is used in the <code>attributes</code> HashMap to pass the
120 * Retrieves the attribute associated with the specified key.
123 * the key is found.
125 public Object getAttribute(String key) { argument
126 return mAttributes.get(key);
/frameworks/native/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/opt/mms/src/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...]

Completed in 473 milliseconds

1234567891011