Searched defs:key (Results 176 - 200 of 611) sorted by relevance

1234567891011>>

/frameworks/av/media/libmedia/
H A DIDataSource.cpp125 DrmCopyControl key = (DrmCopyControl)data.readInt32(); local
127 handle->copyControlVector.add(key, value);
132 String8 key = data.readString8(); local
134 handle->extendedData.add(key, value);
H A DMetadata.cpp27 // 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/av/media/libmediaplayerservice/
H A DTestPlayerStub.h105 virtual status_t setParameter(int key, const Parcel &request) { argument
106 return mPlayer->setParameter(key, request);
108 virtual status_t getParameter(int key, Parcel *reply) { argument
109 return mPlayer->getParameter(key, reply);
/frameworks/av/media/libstagefright/rtsp/
H A DAAMRAssembler.cpp33 static bool GetAttribute(const char *s, const char *key, AString *value) { argument
36 size_t keyLen = strlen(key);
44 if (len >= keyLen + 1 && s[keyLen] == '=' && !strncmp(s, key, keyLen)) {
48 if (len == keyLen && !strncmp(s, key, keyLen)) {
/frameworks/av/media/libstagefright/tests/
H A DMediaCodecListOverrides_test.cpp66 const AString &key,
71 results->add(key, settings);
77 const AString &key = results.keyAt(i); local
84 ALOGV("profileCodecs results %s %s", key.c_str(), valueS.c_str());
65 addMaxInstancesSetting( const AString &key, const AString &value, KeyedVector<AString, CodecSettings> *results) argument
/frameworks/av/services/audiopolicy/engineconfigurable/src/
H A DEngine.cpp117 Element<Key> *Engine::getFromCollection(const Key &key) const
120 return collection.get(key);
124 status_t Engine::add(const std::string &name, const Key &key) argument
127 return collection.add(name, key);
131 Property Engine::getPropertyForKey(Key key) const
133 Element<Key> *element = getFromCollection<Key>(key);
191 bool Engine::setPropertyForKey(const Property &property, const Key &key) argument
193 Element<Key> *element = getFromCollection<Key>(key);
/frameworks/av/services/mediaanalytics/
H A DMetricsSummarizer.cpp41 MetricsSummarizer::MetricsSummarizer(const char *key) argument
46 if (key == NULL) {
47 mKey = key;
49 mKey = strdup(key);
67 ALOGD("zap old record: key %s sessionID %" PRId64 " ts %" PRId64 "",
/frameworks/base/core/java/android/app/backup/
H A DBlobBackupHelper.java59 * per key that was supplied to the helper's constructor.
64 abstract protected byte[] getBackupPayload(String key); argument
69 * per key/value payload that was delivered for restore. Typically data is delivered
70 * for restore in lexical order by key, <i>not</i> in the order in which the keys
76 abstract protected void applyRestoredPayload(String key, byte[] payload); argument
86 * [String] key
104 String key = in.readUTF();
107 Log.i(TAG, " key '" + key + "' checksum is " + checksum);
109 state.put(key, checksu
[all...]
H A DFileBackupHelperBase.java109 boolean isKeyInList(String key, String[] list) { argument
111 if (s.equals(key)) {
/frameworks/base/core/java/android/app/usage/
H A DUsageStatsManagerInternal.java126 public abstract byte[] getBackupPayload(int user, String key); argument
128 public abstract void applyRestoredPayload(int user, String key, byte[] payload); argument
/frameworks/base/core/java/android/content/
H A DSharedPreferences.java57 * @param key The key of the preference that was changed, added, or
60 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); argument
74 * @param key The name of the preference to modify.
77 * this key.
82 Editor putString(String key, @Nullable String value); argument
88 * @param key The name of the preference to modify.
91 * this key.
95 Editor putStringSet(String key, @Nullable Set<String> values); argument
101 * @param key Th
107 putInt(String key, int value) argument
119 putLong(String key, long value) argument
131 putFloat(String key, float value) argument
143 putBoolean(String key, boolean value) argument
159 remove(String key) argument
259 getString(String key, @Nullable String defValue) argument
278 getStringSet(String key, @Nullable Set<String> defValues) argument
292 getInt(String key, int defValue) argument
306 getLong(String key, long defValue) argument
320 getFloat(String key, float defValue) argument
334 getBoolean(String key, boolean defValue) argument
343 contains(String key) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyRequestMapper.java664 * Return {@code null} if the value is not supported, otherwise return the retrieved key's
671 * <p>Logs a warning to logcat if the key is not supported by api1 camera device.</p.
674 CaptureRequest r, CaptureRequest.Key<T> key, T defaultValue, boolean isSupported,
676 T val = ParamsUtils.getOrDefault(r, key, defaultValue);
680 Log.w(TAG, key.getName() + " is not supported; ignoring requested value " + val);
673 getIfSupported( CaptureRequest r, CaptureRequest.Key<T> key, T defaultValue, boolean isSupported, T allowedValue) argument
/frameworks/base/core/java/android/net/nsd/
H A DDnsSdTxtRecord.java65 * Set a key/value pair. Setting an existing key will replace its value.
66 * @param key Must be ascii with no '='
67 * @param value matching value to key
69 public void set(String key, String value) { argument
83 keyBytes = key.getBytes("US-ASCII");
86 throw new IllegalArgumentException("key should be US-ASCII");
91 throw new IllegalArgumentException("= is not a valid character in key");
99 int currentLoc = remove(key);
107 * Get a value for a key
112 get(String key) argument
118 remove(String key) argument
150 contains(String key) argument
[all...]
H A DNsdServiceInfo.java116 // 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/base/core/java/android/os/
H A DPersistableBundle.java128 throw new IllegalArgumentException("Bad value in PersistableBundle key="
147 * Make a PersistableBundle for a single key/value pair.
151 public static PersistableBundle forPair(String key, String value) { argument
153 b.putString(key, value);
181 * any existing value for the given key. Either key or value may be null.
183 * @param key a String, or null
186 public void putPersistableBundle(@Nullable String key, @Nullable PersistableBundle value) { argument
188 mMap.put(key, value);
192 * Returns the value associated with the given key, o
200 getPersistableBundle(@ullable String key) argument
[all...]
H A DSystemProperties.java30 * store contains a list of string key-value pairs.
58 private static void onKeyAccess(String key) { argument
61 if (key != null && key.startsWith("ro.")) {
63 MutableInt numReads = sRoReads.getOrDefault(key, null);
66 sRoReads.put(key, numReads);
71 + ") of a read-only system property '" + key + "'",
78 private static native String native_get(String key); argument
79 private static native String native_get(String key, String def); argument
80 private static native int native_get_int(String key, in argument
81 native_get_long(String key, long def) argument
82 native_get_boolean(String key, boolean def) argument
83 native_set(String key, String def) argument
91 get(String key) argument
100 get(String key, String def) argument
112 getInt(String key, int def) argument
124 getLong(String key, long def) argument
141 getBoolean(String key, boolean def) argument
150 set(String key, String val) argument
180 newValueTooLargeException(String key, String value) argument
[all...]
H A DUEventObserver.java127 // collection of key=value pairs parsed from the uevent message
140 // key is before the equals sign, and value is after
149 public String get(String key) { argument
150 return mMap.get(key);
153 public String get(String key, String defaultValue) { argument
154 String result = mMap.get(key);
196 final String key = (String)mKeysAndObservers.get(i);
197 if (message.contains(key)) {
224 /** Removes every key/value pair where value=observer from mObservers */
/frameworks/base/core/java/android/os/health/
H A DHealthKeys.java38 * No valid key will ever be 0.
43 * Base key for each of the different classes. There is
80 * build the key indices used by HealthStatsWriter and HealthStats.
153 * Return the index for the given type and key combination in the array of field
162 public int getIndex(int type, int key) { argument
163 final int index = Arrays.binarySearch(mKeys[type], key);
167 throw new RuntimeException("Unknown Constant " + key + " (of type "
H A DHealthStatsWriter.java90 * Add a timer for the given key.
101 * Add a measurement for the given key.
111 * Add a recursive HealthStats object for the given key and string name. The value
117 public void addStats(int key, String name, HealthStatsWriter value) { argument
118 final int index = mConstants.getIndex(HealthKeys.TYPE_STATS, key);
128 * Add a TimerStat for the given key and string name.
132 public void addTimers(int key, String name, TimerStat value) { argument
133 final int index = mConstants.getIndex(HealthKeys.TYPE_TIMERS, key);
143 * Add a measurement for the given key and string name.
145 public void addMeasurements(int key, Strin argument
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceGroup.java222 * Finds a {@link Preference} based on its key. If two {@link Preference}
223 * share the same key (not recommended), the first to appear will be
224 * returned (to retrieve the other preference with the same key, call this
225 * method on the first preference). If this preference has the key, it will
231 * @param key The key of the preference to retrieve.
232 * @return The {@link Preference} with the key, or null.
234 public Preference findPreference(CharSequence key) { argument
235 if (TextUtils.equals(getKey(), key)) {
243 if (curKey != null && curKey.equals(key)) {
[all...]
/frameworks/base/core/java/android/service/notification/
H A DNotificationAssistantService.java130 * @param key The key of the notification to snooze
132 public final void unsnoozeNotification(String key) { argument
135 getNotificationInterface().unsnoozeNotificationFromAssistant(mWrapper, key);
/frameworks/base/core/java/android/util/
H A DLongSparseArray.java41 * as deleted. The entry can then be re-used for the same key, or compacted later in
100 * Gets the Object mapped from the specified key, or <code>null</code>
103 public E get(long key) { argument
104 return get(key, null);
108 * Gets the Object mapped from the specified key, or the specified Object
112 public E get(long key, E valueIfKeyNotFound) { argument
113 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
123 * Removes the mapping from the specified key, if there was any.
125 public void delete(long key) { argument
126 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
139 remove(long key) argument
186 put(long key, E value) argument
281 indexOfKey(long key) argument
358 append(long key, E value) argument
[all...]
H A DSparseArray.java41 * as deleted. The entry can then be re-used for the same key, or compacted later in
100 * Gets the Object mapped from the specified key, or <code>null</code>
103 public E get(int key) { argument
104 return get(key, null);
108 * Gets the Object mapped from the specified key, or the specified Object
112 public E get(int key, E valueIfKeyNotFound) { argument
113 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
123 * Removes the mapping from the specified key, if there was any.
125 public void delete(int key) { argument
126 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
140 removeReturnOld(int key) argument
157 remove(int key) argument
223 put(int key, E value) argument
326 indexOfKey(int key) argument
406 append(int key, E value) argument
[all...]
H A DSparseBooleanArray.java86 * 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...]
/frameworks/base/core/java/android/view/inputmethod/
H A DSparseRectFArray.java146 * @param key key to be checked.
148 private void checkIndex(final int key) { argument
152 if (mKeys[mCount - 1] >= key) {
153 throw new IllegalArgumentException("key must be greater than all existing keys.");
191 * Puts the rectangle with an integer key.
192 * @param key the key to be associated with the rectangle. It must be greater than all
202 public SparseRectFArrayBuilder append(final int key, argument
205 checkIndex(key);
[all...]

Completed in 3452 milliseconds

1234567891011>>