/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/opt/bitmap/src/com/android/bitmap/ |
H A D | PooledCache.java | 21 V get(K key, boolean incrementRefCount); argument 22 V put(K key, V value); argument
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | PropertyService.java | 27 * Get the current value of |key|. 28 * @return value of |key|, if key exists; |defaultValue| or empty string otherwise 31 String get(String key, String defaultValue); argument 34 * Set the value for |key|. 35 * @throws IllegalArgumentException if the key exceeds 32 characters 38 void set(String key, String val); argument
|
/frameworks/rs/ |
H A D | rsCompatibilityLib.cpp | 22 int property_get(const char *key, char *value, const char *default_value) { argument 25 len = __system_property_get(key, value);
|
/frameworks/av/drm/common/ |
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...] |
H A D | DrmInfo.cpp | 44 status_t DrmInfo::put(const String8& key, const String8& value) { argument 45 mAttributes.add(key, value); 49 String8 DrmInfo::get(const String8& key) const { 50 if (NAME_NOT_FOUND != mAttributes.indexOfKey(key)) { 51 return mAttributes.valueFor(key); 56 int DrmInfo::indexOfKey(const String8& key) const { 57 return mAttributes.indexOfKey(key); 79 const String8& key = mDrmInfo->mAttributes.keyAt(mIndex); local 81 return key;
|
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...] |
/frameworks/volley/src/test/java/com/android/volley/mock/ |
H A D | MockCache.java | 37 public Entry get(String key) { argument 47 public void put(String key, Entry entry) { argument 49 keyPut = key; 54 public void invalidate(String key, boolean fullExpire) { argument 58 public void remove(String key) { argument
|
/frameworks/base/core/java/android/net/nsd/ |
H A D | NsdServiceInfo.java | 116 // 1 - n ASCII but not '=' yes key 117 // n + 1 '=' optional separator of key and value 126 // [3, =, 1, 2] <- key is empty 127 // [3, 0, =, 2] <- key contains non-ASCII character. We handle this by replacing the 145 // Decode key-value records 146 String key = null; 150 if (key == null) { 152 key = new String(txtRecordsRawBytes, pos, i - pos, 157 value = new byte[recordLen - key.length() - 1]; 165 if (key 189 setAttribute(String key, byte[] value) argument 239 setAttribute(String key, String value) argument 248 removeAttribute(String key) argument [all...] |
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/ |
H A D | ObservableArrayMap.java | 61 for (Object key : collection) { 62 int index = indexOfKey(key); 75 Object key = keyAt(i); 76 if (!collection.contains(key)) { 86 K key = keyAt(index); 89 notifyChange(key); 96 K key = keyAt(index); 98 notifyChange(key); 102 private void notifyChange(Object key) { argument 104 mListeners.notifyCallbacks(this, 0, key); [all...] |
/frameworks/base/core/java/android/util/ |
H A D | SparseBooleanArray.java | 86 * Gets the boolean mapped from the specified key, or <code>false</code> 89 public boolean get(int key) { argument 90 return get(key, false); 94 * Gets the boolean mapped from the specified key, or the specified value 97 public boolean get(int key, boolean valueIfKeyNotFound) { argument 98 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 108 * Removes the mapping from the specified key, if there was any. 110 public void delete(int key) { argument 111 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 128 * Adds a mapping from the specified key t 132 put(int key, boolean value) argument 189 setKeyAt(int index, int key) argument 198 indexOfKey(int key) argument 229 append(int key, boolean value) argument [all...] |
H A D | SparseIntArray.java | 91 * Gets the int mapped from the specified key, or <code>0</code> 94 public int get(int key) { argument 95 return get(key, 0); 99 * Gets the int mapped from the specified key, or the specified value 102 public int get(int key, int valueIfKeyNotFound) { argument 103 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 113 * Removes the mapping from the specified key, if there was any. 115 public void delete(int key) { argument 116 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 133 * Adds a mapping from the specified key t 137 put(int key, int value) argument 201 indexOfKey(int key) argument 232 append(int key, int value) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | Metadata.cpp | 27 // This file contains code to serialize Metadata triples (key, type, 91 bool Metadata::appendBool(int key, bool val) argument 93 if (!checkKey(key)) { 100 // 4 int32s: size, key, type, value. 102 ok = ok && mData->writeInt32(key) == OK; 111 bool Metadata::appendInt32(int key, int32_t val) argument 113 if (!checkKey(key)) { 120 // 4 int32s: size, key, type, value. 122 ok = ok && mData->writeInt32(key) == OK; 131 // Check the key ( 134 checkKey(int key) argument [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | PendingIntentRecord.java | 47 final Key key; field in class:PendingIntentRecord 187 key = _k; 233 if ((key.flags&PendingIntent.FLAG_ONE_SHOT) != 0) { 238 Intent finalIntent = key.requestIntent != null 239 ? new Intent(key.requestIntent) : new Intent(); 241 final boolean immutable = (key.flags & PendingIntent.FLAG_IMMUTABLE) != 0; 244 int changes = finalIntent.fillIn(intent, key.flags); 246 resolvedType = key.requestResolvedType; 249 resolvedType = key.requestResolvedType; 255 resolvedType = key [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/ |
H A D | MultiValueMap.java | 13 public void put(String key, T value) { argument 14 key = key.toLowerCase(); 15 ArrayList<T> values = mMap.get(key); 18 mMap.put(key, values); 23 public T get(String key) { argument 24 key = key.toLowerCase(); 25 List<T> values = mMap.get(key); 35 public T replace(String key, argument 52 remove(String key, T value) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | Prefs.java | 71 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { argument 72 return get(context).getBoolean(key, defaultValue); 75 public static void putBoolean(Context context, @Key String key, boolean value) { argument 76 get(context).edit().putBoolean(key, value).apply(); 79 public static int getInt(Context context, @Key String key, int defaultValue) { argument 80 return get(context).getInt(key, defaultValue); 83 public static void putInt(Context context, @Key String key, int value) { argument 84 get(context).edit().putInt(key, value).apply(); 87 public static long getLong(Context context, @Key String key, long defaultValue) { argument 88 return get(context).getLong(key, defaultValu 91 putLong(Context context, @Key String key, long value) argument 95 getString(Context context, @Key String key, String defaultValue) argument 99 putString(Context context, @Key String key, String value) argument 107 remove(Context context, @Key String key) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
H A D | MultiValueMap.java | 13 public void put(String key, T value) { argument 14 key = key.toLowerCase(); 15 ArrayList<T> values = mMap.get(key); 18 mMap.put(key, values); 23 public T get(String key) { argument 24 key = key.toLowerCase(); 25 List<T> values = mMap.get(key); 37 public T replace(String key, argument 54 remove(String key, T value) argument [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ASessionDescription.cpp | 98 AString key, value; local 102 key = line; 104 key.setTo(line, 0, colonPos); 106 if (key == "a=fmtp" || key == "a=rtpmap" 107 || key == "a=framesize") { 113 key.setTo(line, 0, spacePos); 121 key.trim(); 124 ALOGV("adding '%s' => '%s'", key.c_str(), value.c_str()); 126 mTracks.editItemAt(mTracks.size() - 1).add(key, valu 142 AString key, value; local 180 findAttribute( size_t index, const char *key, AString *value) const argument 215 char key[32]; local 234 char key[33]; local [all...] |
/frameworks/base/libs/hwui/ |
H A D | Program.h | 223 * Computes the unique key identifying this program. 225 programid key() const { function in struct:android::uirenderer::ProgramDescription 226 programid key = 0; local 227 if (hasTexture) key |= PROGRAM_KEY_TEXTURE; 228 if (hasAlpha8Texture) key |= PROGRAM_KEY_A8_TEXTURE; 230 key |= PROGRAM_KEY_BITMAP; 232 key |= PROGRAM_KEY_BITMAP_NPOT; 233 key |= getEnumForWrap(bitmapWrapS) << PROGRAM_BITMAP_WRAPS_SHIFT; 234 key |= getEnumForWrap(bitmapWrapT) << PROGRAM_BITMAP_WRAPT_SHIFT; 237 if (hasGradient) key | [all...] |
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
H A D | TestMtpManager.java | 119 final String key = pack(deviceId, objectHandle); 120 if (mObjectInfos.containsKey(key)) { 121 return mObjectInfos.get(key); 123 throw new IOException("getObjectInfo error: " + key); 129 final String key = pack(deviceId, storageId, parentObjectHandle); 130 if (mObjectHandles.containsKey(key)) { 131 return mObjectHandles.get(key); 133 throw new IOException("getObjectHandles error: " + key); 140 final String key = pack(deviceId, objectHandle); 141 if (mImportFileBytes.containsKey(key)) { [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | AppItem.java | 28 public final int key; field in class:AppItem 36 this.key = 0; 39 public AppItem(int key) { argument 40 this.key = key; 44 key = parcel.readInt(); 55 dest.writeInt(key);
|
/frameworks/base/tools/split-select/ |
H A D | Grouper.cpp | 41 SplitDescription key(split); 42 key.config.density = 0; 43 key.config.sdkVersion = 0; // Ignore density so we can support anydpi. 44 appendValue(densityGroups, key, split); 46 SplitDescription key(split); 47 key.abi = abi::Variant_none; 48 appendValue(abiGroups, key, split);
|
/frameworks/support/compat/jellybean/android/support/v4/app/ |
H A D | BundleUtil.java | 14 public static Bundle[] getBundleArrayFromBundle(Bundle bundle, String key) { argument 15 Parcelable[] array = bundle.getParcelableArray(key); 21 bundle.putParcelableArray(key, typedArray);
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicColorMatrix.cpp | 111 uint64_t key; member in union:android::renderscript::__anon1644 199 bool build(Key_t key); 212 Key_t key; local 213 key.key = 0; 215 // Compute a unique code key for this operation 217 // Add to the key the input and output types 221 key.u.inType = RS_TYPE_FLOAT_32; 222 rsAssert(key.u.inType == RS_TYPE_FLOAT_32); 226 key [all...] |
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsCollection.java | 63 * Collection of {@link NetworkStatsHistory}, stored based on combined key of 145 final Key key = mStats.keyAt(i); 146 if (NetworkStatsAccess.isAccessibleToUser(key.uid, callerUid, accessLevel)) { 147 int j = uids.binarySearch(key.uid); 151 uids.add(j, key.uid); 199 final Key key = mStats.keyAt(i); 200 if (key.uid == uid && NetworkStats.setMatches(set, key.set) && key.tag == tag 201 && templateMatches(template, key 274 recordHistory(Key key, NetworkStatsHistory history) argument [all...] |