Searched defs:key (Results 101 - 125 of 354) sorted by relevance

1234567891011>>

/frameworks/av/media/libstagefright/
H A DStagefrightMediaScanner.cpp172 int key; member in struct:android::KeyMap
195 if ((value = mRetriever->extractMetadata(kKeyMap[i].key)) != NULL) {
/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/base/cmds/settings/src/com/android/commands/settings/
H A DSettingsCmd.java177 final String table, final String key) {
191 Bundle b = provider.call(null, callGetCommand, key, arg);
196 System.err.println("Can't read key " + key + " in " + table + " for user " + userHandle);
202 final String table, final String key, final String value) {
216 provider.call(null, callPutCommand, key, arg);
218 System.err.println("Can't set key " + key + " in " + table + " for user " + userHandle);
223 final String table, final String key) {
225 if ("system".equals(table)) targetUri = Settings.System.getUriFor(key);
176 getForUser(IContentProvider provider, int userHandle, final String table, final String key) argument
201 putForUser(IContentProvider provider, int userHandle, final String table, final String key, final String value) argument
222 deleteForUser(IContentProvider provider, int userHandle, final String table, final String key) argument
[all...]
/frameworks/base/core/java/android/app/backup/
H A DFileBackupHelperBase.java109 boolean isKeyInList(String key, String[] list) { argument
111 if (s.equals(key)) {
/frameworks/base/core/java/android/content/
H A DContentValues.java92 * @param key the name of the value to put
95 public void put(String key, String value) { argument
96 mValues.put(key, value);
111 * @param key the name of the value to put
114 public void put(String key, Byte value) { argument
115 mValues.put(key, value);
121 * @param key the name of the value to put
124 public void put(String key, Short value) { argument
125 mValues.put(key, value);
131 * @param key th
134 put(String key, Integer value) argument
144 put(String key, Long value) argument
154 put(String key, Float value) argument
164 put(String key, Double value) argument
174 put(String key, Boolean value) argument
184 put(String key, byte[] value) argument
193 putNull(String key) argument
211 remove(String key) argument
228 containsKey(String key) argument
239 get(String key) argument
249 getAsString(String key) argument
260 getAsLong(String key) argument
285 getAsInteger(String key) argument
310 getAsShort(String key) argument
335 getAsByte(String key) argument
360 getAsDouble(String key) argument
385 getAsFloat(String key) argument
410 getAsBoolean(String key) argument
433 getAsByteArray(String key) argument
488 putStringArrayList(String key, ArrayList<String> value) argument
498 getStringArrayList(String key) argument
[all...]
H A DSharedPreferences.java56 * @param key The key of the preference that was changed, added, or
59 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); argument
73 * @param key The name of the preference to modify.
76 * this key.
81 Editor putString(String key, String value); argument
87 * @param key The name of the preference to modify.
90 * this key.
94 Editor putStringSet(String key, Set<String> values); argument
100 * @param key Th
106 putInt(String key, int value) argument
118 putLong(String key, long value) argument
130 putFloat(String key, float value) argument
142 putBoolean(String key, boolean value) argument
158 remove(String key) argument
257 getString(String key, String defValue) argument
275 getStringSet(String key, Set<String> defValues) argument
289 getInt(String key, int defValue) argument
303 getLong(String key, long defValue) argument
317 getFloat(String key, float defValue) argument
331 getBoolean(String key, boolean defValue) argument
340 contains(String key) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyRequestMapper.java661 * Return {@code null} if the value is not supported, otherwise return the retrieved key's
668 * <p>Logs a warning to logcat if the key is not supported by api1 camera device.</p.
671 CaptureRequest r, CaptureRequest.Key<T> key, T defaultValue, boolean isSupported,
673 T val = ParamsUtils.getOrDefault(r, key, defaultValue);
677 Log.w(TAG, key.getName() + " is not supported; ignoring requested value " + val);
670 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.java99 public void setAttribute(String key, byte[] value) { argument
101 for (int i = 0; i < key.length(); ++i) {
102 char character = key.charAt(i);
111 if (key.length() + (value == null ? 0 : value.length) >= 255) {
115 // Warn if key is > 9 characters, as recommended by RFC 6763 section 6.4.
116 if (key.length() > 9) {
117 Log.w(TAG, "Key lengths > 9 are discouraged: " + key);
123 int futureSize = txtRecordSize + key.length() + (value == null ? 0 : value.length) + 2;
130 mTxtRecord.put(key, value);
134 * Add a service attribute as a key/valu
145 setAttribute(String key, String value) argument
154 removeAttribute(String key) argument
[all...]
/frameworks/base/core/java/android/os/
H A DPersistableBundle.java90 String key = iterator.next();
91 Object value = map.get(key);
94 putPersistableBundle(key, new PersistableBundle((Map<String, Object>) value));
101 throw new IllegalArgumentException("Bad value in PersistableBundle key=" + key +
112 * Make a PersistableBundle for a single key/value pair.
116 public static PersistableBundle forPair(String key, String value) { argument
118 b.putString(key, value);
133 * any existing value for the given key. Either key o
138 putPersistableBundle(String key, PersistableBundle value) argument
151 getPersistableBundle(String key) 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/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/printservice/
H A DPrintJob.java285 * may set as a tag the key of the print job returned by a remote
319 * @param key The option key.
322 public String getAdvancedStringOption(String key) { argument
324 return getInfo().getAdvancedStringOption(key);
331 * @param key The option key.
334 public boolean hasAdvancedOption(String key) { argument
336 return getInfo().hasAdvancedOption(key);
342 * @param key Th
345 getAdvancedIntOption(String key) argument
[all...]
/frameworks/base/core/java/android/service/notification/
H A DStatusBarNotification.java32 private final String key; field in class:StatusBarNotification
67 this.key = key();
86 this.key = key();
90 private String key() { method in class:StatusBarNotification
99 return key;
165 "StatusBarNotification(pkg=%s user=%s id=%d tag=%s score=%d key=%s: %s)",
167 this.score, this.key, this.notification);
252 * A unique instance key fo
[all...]
/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
328 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);
139 remove(int key) argument
199 put(int key, E value) argument
294 indexOfKey(int key) argument
343 append(int key, E 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...]
/frameworks/base/core/java/com/android/internal/net/
H A DVpnProfile.java49 public final String key; // -1 field in class:VpnProfile
69 public VpnProfile(String key) { argument
70 this.key = key;
74 key = in.readString();
95 out.writeString(key);
114 public static VpnProfile decode(String key, byte[] value) { argument
116 if (key == null) {
126 VpnProfile profile = new VpnProfile(key);
/frameworks/base/core/jni/
H A Dandroid_os_SystemProperties.cpp34 const char* key; local
39 jniThrowNullPointerException(env, "key must not be null.");
43 key = env->GetStringUTFChars(keyJ, NULL);
45 len = property_get(key, buf, "");
54 env->ReleaseStringUTFChars(keyJ, key);
70 const char* key; local
76 jniThrowNullPointerException(env, "key must not be null.");
80 key = env->GetStringUTFChars(keyJ, NULL);
82 len = property_get(key, buf, "");
90 env->ReleaseStringUTFChars(keyJ, key);
100 const char* key; local
130 const char* key; local
166 const char* key; local
[all...]
H A Dandroid_util_Log.cpp61 String8 key; local
62 key.append(LOG_NAMESPACE);
63 key.append(tag);
66 if (property_get(key.string(), buf, "") <= 0) {
/frameworks/base/keystore/java/android/security/
H A DAndroidKeyStore.java62 * PrivateKeyEntry will have a Credentials.USER_PRIVATE_KEY as the private key,
64 * that corresponds to the private key), and then a Credentials.CA_CERTIFICATE
88 UnrecoverableKeyException t = new UnrecoverableKeyException("Can't get key");
198 public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument
204 if (key instanceof PrivateKey) {
205 setPrivateKeyEntry(alias, (PrivateKey) key, chain, null);
211 private void setPrivateKeyEntry(String alias, PrivateKey key, Certificate[] chain, argument
216 if (key instanceof OpenSSLKeyHolder) {
217 pkeyAlias = ((OpenSSLKeyHolder) key).getOpenSSLKey().getAlias();
233 final String keyFormat = key
[all...]
/frameworks/base/media/java/android/media/
H A DMediaMetadataEditor.java46 * The metadata key for the content artwork / album art.
52 * The metadata key for the content's average rating, not the user's rating.
53 * The value associated with this key is a {@link Rating} instance.
59 * The metadata key for the content's user rating.
60 * The value associated with this key is a {@link Rating} instance.
61 * This key can be flagged as "editable" (with {@link #addEditableKey(int)}) to enable
69 * Editable key mask
134 * Flags the given key as being editable.
138 * @param key the type of metadata that can be edited. The supported key i
141 addEditableKey(int key) argument
204 putString(int key, String value) argument
233 putLong(int key, long value) argument
257 putBitmap(int key, Bitmap bitmap) argument
288 putObject(int key, Object value) argument
331 getLong(int key, long defaultValue) argument
347 getString(int key, String defaultValue) argument
363 getBitmap(int key, Bitmap defaultValue) argument
380 getObject(int key, Object defaultValue) argument
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_program.cpp107 jstring key,
110 ALOGE("Native Program: Attempting to set null value for key %s!",
111 ToCppString(env, key).c_str());
115 const std::string c_key = ToCppString(env, key);
121 jstring key) {
123 const std::string c_key = ToCppString(env, key);
105 Java_android_filterfw_core_NativeProgram_callNativeSetValue(JNIEnv* env, jobject thiz, jstring key, jstring value) argument
119 Java_android_filterfw_core_NativeProgram_callNativeGetValue(JNIEnv* env, jobject thiz, jstring key) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DConsole.java48 /** Logs a key */
49 public static void log(String key) { argument
50 log(true, key, "", AnsiReset);
53 /** Logs a conditioned key */
54 public static void log(boolean condition, String key) { argument
56 log(condition, key, "", AnsiReset);
60 /** Logs a key in a specific color */
61 public static void log(boolean condition, String key, Object data) { argument
63 log(condition, key, data, AnsiReset);
67 /** Logs a key wit
68 log(boolean condition, String key, Object data, String color) argument
94 logStartTracingTime(boolean condition, String key) argument
104 logTraceTime(boolean condition, String key, String desc) argument
123 logStackTrace(String key, int depth) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DCountryDetectorService.java146 private void removeListener(IBinder key) { argument
148 mReceivers.remove(key);

Completed in 573 milliseconds

1234567891011>>