/frameworks/base/test-runner/src/android/test/ |
H A D | SimpleCache.java | 25 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 D | AppGlobals.java | 53 * @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 D | IID_to_MPH.c | 248 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 D | backup.cpp | 77 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 D | BackupDataInputStream.java | 29 * {@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 D | BackupDataOutput.java | 29 * 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 D | Annotation.java | 22 * 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 D | SettingsActivity.java | 61 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { argument
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
H A D | HashEntry.h | 52 KeyType& key() function in class:mcld::HashEntry 55 const KeyType& key() const function in class:mcld::HashEntry
|
H A D | StringEntry.h | 36 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 D | StringFloat.java | 7 public String key; field in class:StringFloat 33 out.writeString(key); 38 key = in.readString();
|
H A D | StringString.java | 7 public String key; field in class:StringString 33 out.writeString(key); 38 key = in.readString();
|
H A D | BordeauxPredictor.java | 95 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 D | ContentValuesBuilder.java | 31 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 D | NoCache.java | 30 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 D | KeyValueMap.java | 36 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 D | DoNotDisturb.java | 44 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument
|
/frameworks/av/drm/common/ |
H A D | DrmConstraints.cpp | 32 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 D | DrmInfoRequest.cpp | 41 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 D | DrmMetadata.cpp | 25 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 D | DrmMetadata.h | 33 * 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 D | Parameters.cpp | 75 AString key = name; local 76 key.tolower(); 78 ssize_t index = mDict.indexOfKey(key);
|
/frameworks/base/drm/java/android/drm/ |
H A D | DrmEvent.java | 39 * 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 D | BlobCache_test.cpp | 117 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 D | AbstractCache.java | 37 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...] |