/frameworks/av/include/drm/ |
H A D | DrmConstraints.h | 68 * Iterator for key 119 String8 key = keyIt.next(); local 120 const char* value = this->getAsByteArray(&key); 137 * Adds constraint information as <key, value> pair to this instance 139 * @param[in] key Key to add 143 status_t put(const String8* key, const char* value); 146 * Retrieves the value of given key 148 * @param key Key whose value to be retrieved 151 String8 get(const String8& key) const; 154 * Retrieves the value as byte array of given key [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupDataInput.java | 45 * String key = data.getKey(); 48 * if (key.equals(MY_BACKUP_KEY_ONE)) { 56 * } else if (key.equals(MY_BACKUP_KEY_TO_IGNORE) { 57 * // a key we recognize but wish to discard 70 String key; field in class:BackupDataInput.EntityHeader 121 * Report the key associated with the current entity in the restore stream 122 * @return the current entity's key string 127 return mHeader.key;
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 180 * Return the value set by the key, or the {@code defaultValue} if no value was set. 184 public static <T> T getOrDefault(CaptureRequest r, CaptureRequest.Key<T> key, T defaultValue) { argument 186 checkNotNull(key, "key must not be null"); 189 T value = r.get(key);
|
/frameworks/base/core/java/android/os/ |
H A D | SystemProperties.java | 24 * store contains a list of string key-value pairs. 35 private static native String native_get(String key); argument 36 private static native String native_get(String key, String def); argument 37 private static native int native_get_int(String key, int def); argument 38 private static native long native_get_long(String key, long def); argument 39 private static native boolean native_get_boolean(String key, boolean def); argument 40 private static native void native_set(String key, String def); argument 44 * Get the value for the given key. 45 * @return an empty string if the key isn't found 46 * @throws IllegalArgumentException if the key exceed 48 get(String key) argument 60 get(String key, String def) argument 75 getInt(String key, int def) argument 90 getLong(String key, long def) argument 110 getBoolean(String key, boolean def) argument 122 set(String key, String val) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | LongSparseLongArray.java | 91 * Gets the long mapped from the specified key, or <code>0</code> 94 public long get(long key) { argument 95 return get(key, 0); 99 * Gets the long mapped from the specified key, or the specified value 102 public long get(long key, long 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(long key) { argument 116 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 133 * Adds a mapping from the specified key t 137 put(long key, long value) argument 193 indexOfKey(long key) argument 224 append(long key, long value) argument [all...] |
H A D | LruCache.java | 41 * 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. 105 * Returns the value for {@code key} if it exists in the cache or can be 110 public final V get(K key) { argument 111 if (key == null) { 112 throw new NullPointerException("key == null"); 117 mapValue = map.get(key); 164 put(K key, V value) argument 229 remove(K key) argument 264 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument 281 create(K key) argument 285 safeSizeOf(K key, V value) argument 300 sizeOf(K key, V value) argument [all...] |
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 193 indexOfKey(int key) argument 224 append(int key, boolean value) argument [all...] |
H A D | SparseIntArray.java | 89 * Gets the int mapped from the specified key, or <code>0</code> 92 public int get(int key) { argument 93 return get(key, 0); 97 * Gets the int mapped from the specified key, or the specified value 100 public int get(int key, int valueIfKeyNotFound) { argument 101 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 111 * Removes the mapping from the specified key, if there was any. 113 public void delete(int key) { argument 114 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 131 * Adds a mapping from the specified key t 135 put(int key, int value) argument 191 indexOfKey(int key) argument 222 append(int key, int value) argument [all...] |
H A D | SparseLongArray.java | 89 * Gets the long mapped from the specified key, or <code>0</code> 92 public long get(int key) { argument 93 return get(key, 0); 97 * Gets the long mapped from the specified key, or the specified value 100 public long get(int key, long valueIfKeyNotFound) { argument 101 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 111 * Removes the mapping from the specified key, if there was any. 113 public void delete(int key) { argument 114 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 131 * Adds a mapping from the specified key t 135 put(int key, long value) argument 191 indexOfKey(int key) argument 222 append(int key, long value) argument [all...] |
/frameworks/base/core/java/com/android/internal/net/ |
H A D | LegacyVpnInfo.java | 41 public String key; field in class:LegacyVpnInfo 52 out.writeString(key); 62 info.key = in.readString();
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | IndentingPrintWriter.java | 67 public void printPair(String key, Object value) { argument 68 print(key + "=" + String.valueOf(value) + " "); 71 public void printHexPair(String key, int value) { argument 72 print(key + "=0x" + Integer.toHexString(value) + " ");
|
/frameworks/base/core/jni/ |
H A D | android_backup_BackupDataInput.cpp | 70 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");
|
H A D | android_backup_BackupDataOutput.cpp | 46 writeEntityHeader_native(JNIEnv* env, jobject clazz, jlong w, jstring key, jint dataSize) argument 51 const char* keyUTF = env->GetStringUTFChars(key, NULL); 57 env->ReleaseStringUTFChars(key, keyUTF);
|
/frameworks/base/drm/java/android/drm/ |
H A D | DrmInfo.java | 89 * Adds optional information as key-value pairs to this object. To add a custom object 92 * @param key Key to add. 96 public void put(String key, Object value) { argument 97 mAttributes.put(key, value); 101 * Retrieves the value of a given key. 103 * @param key The key whose value is being retrieved. 105 * @return The value of the key being retrieved. Returns null if the key cannot be found. 107 public Object get(String key) { argument [all...] |
H A D | DrmInfoRequest.java | 96 * Adds optional information as key-value pairs to this object. 98 * @param key The key to add. 101 public void put(String key, Object value) { argument 102 mRequestInformation.put(key, value); 106 * Retrieves the value of a given key. 108 * @param key The key whose value is being retrieved. 110 * @return The value of the key that is being retrieved. Returns null if the key canno 113 get(String key) argument [all...] |
H A D | DrmUtils.java | 33 * {@link DrmStore.ConstraintsColumns#EXTENDED_METADATA} key. You can use 106 * @param extendedMetadata Object in which key-value pairs of extended metadata are embedded. 163 //Fetch key 198 * This method retrieves the metadata value associated with a given key. 200 * @param key The key whose value is being retrieved. 202 * @return The metadata value associated with the given key. Returns null 203 * if the key is not found. 205 public String get(String key) { argument 206 return mMap.get(key); [all...] |
/frameworks/base/libs/androidfw/tests/ |
H A D | BackupData_test.cpp | 95 String8 key; local 97 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) 99 EXPECT_EQ(mKey1, key) 100 << "wrong key from ReadEntityHeader"; 130 String8 key; local 135 reader->ReadEntityHeader(&key, &dataSize); 145 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) 147 EXPECT_EQ(mKey2, key) 148 << "wrong key from ReadEntityHeader on second entity"; 180 String8 key; local 232 String8 key; local 273 String8 key; local 333 String8 key; local 399 String8 key; local [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | FilterContext.java | 72 public synchronized void storeFrame(String key, Frame frame) { argument 73 Frame storedFrame = fetchFrame(key); 78 mStoredFrames.put(key, frame.retain()); 81 public synchronized Frame fetchFrame(String key) { argument 82 Frame frame = mStoredFrames.get(key); 89 public synchronized void removeFrame(String key) { argument 90 Frame frame = mStoredFrames.get(key); 92 mStoredFrames.remove(key);
|
H A D | MutableFrameFormat.java | 89 public void setMetaValue(String key, Object value) { argument 93 mMetaData.put(key, value);
|
/frameworks/base/media/mca/filterfw/native/base/ |
H A D | utilities.h | 58 // Given an STL container consisting of (key, value) pairs, STLDeleteValues 71 // If the key is present a const pointer to the associated value is returned, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 123 // If the key is present a const pointer to the associated value is returned, 125 // This function does not distinguish between a missing key and a key mapped 130 const typename Collection::value_type::first_type& key) { 131 typename Collection::const_iterator it = collection.find(key); 138 // Test to see if a set, map, hash_set or hash_map contains a particular key 75 FindOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 129 FindPtrOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 141 ContainsKey(const Collection& collection, const Key& key) argument 150 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | native_program.cpp | 126 bool NativeProgram::CallSetValue(const std::string& key, const std::string& value) { argument 128 setvalue_function_(key.c_str(), value.c_str(), user_data_); 134 std::string NativeProgram::CallGetValue(const std::string& key) { argument 139 getvalue_function_(key.c_str(), result, buffer_size, user_data_);
|
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | utilities.h | 58 // Given an STL container consisting of (key, value) pairs, STLDeleteValues 71 // If the key is present a const pointer to the associated value is returned, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 123 // If the key is present a const pointer to the associated value is returned, 125 // This function does not distinguish between a missing key and a key mapped 130 const typename Collection::value_type::first_type& key) { 131 typename Collection::const_iterator it = collection.find(key); 138 // Test to see if a set, map, hash_set or hash_map contains a particular key 75 FindOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 129 FindPtrOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 141 ContainsKey(const Collection& collection, const Key& key) argument 150 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument [all...] |
/frameworks/base/media/mca/filterpacks/native/imageproc/ |
H A D | brightness.c | 41 void brightness_setvalue(const char* key, const char* value, void* user_data) { argument 42 if (strcmp(key, "brightness") == 0) 45 LOGE("Unknown parameter: %s!", key);
|
H A D | contrast.c | 36 void contrast_setvalue(const char* key, const char* value, void* user_data) { argument 37 if (strcmp(key, "contrast") == 0) 40 LOGE("Unknown parameter: %s!", key);
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
H A D | DefaultContainerService.java | 82 * @param key Refers to key used for encrypting the secure container 87 public String copyPackageToContainer(String packagePath, String containerId, String key, 108 return copyPackageToContainerInner(pkg, handle, containerId, key, isExternal, 314 String newCid, String key, boolean isExternal, boolean isForwardLocked, 323 final String newMountPath = PackageHelper.createSdDir(sizeBytes, newCid, key, 313 copyPackageToContainerInner(PackageLite pkg, NativeLibraryHelper.Handle handle, String newCid, String key, boolean isExternal, boolean isForwardLocked, String abiOverride) argument
|