Searched refs:key (Results 101 - 125 of 578) sorted by relevance

1234567891011>>

/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbDebuggingManager.java91 String key = new String(Arrays.copyOfRange(buffer, 2, count));
92 Slog.d(TAG, "Received public key: " + key);
94 msg.obj = key;
187 String key = (String)msg.obj;
188 String fingerprints = getFingerprints(key);
197 writeKey(key);
209 String key = (String)msg.obj;
210 String fingerprints = getFingerprints(key);
216 startConfirmation(key, mFingerprint
227 getFingerprints(String key) argument
260 startConfirmation(String key, String fingerprints) argument
275 startConfirmationActivity(ComponentName componentName, String key, String fingerprints) argument
294 startConfirmationService(ComponentName componentName, String key, String fingerprints) argument
307 createConfirmationIntent(ComponentName componentName, String key, String fingerprints) argument
328 writeKey(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...]
/frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/
H A DRequestSync.java78 for (String key : mExtras.keySet()) {
79 System.out.printf(" %s: %s\n", key, mExtras.get(key));
118 final String key = nextArgRequired();
120 mExtras.putString(key, value);
122 final String key = nextArgRequired();
123 mExtras.putString(key, null);
125 final String key = nextArgRequired();
127 mExtras.putInt(key, Integer.valueOf(value));
129 final String key
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
H A DPduCache.java163 private PduCacheEntry purgeSingleEntry(Uri key) { argument
164 mUpdating.remove(key);
165 PduCacheEntry entry = super.purge(key);
167 removeFromThreads(key, entry);
168 removeFromMessageBoxes(key, entry);
185 * @return Uri The normalized key of cached entry.
220 for (Uri key : msgBox) {
221 mUpdating.remove(key);
222 PduCacheEntry entry = super.purge(key);
224 removeFromThreads(key, entr
231 removeFromThreads(Uri key, PduCacheEntry entry) argument
255 removeFromMessageBoxes(Uri key, PduCacheEntry entry) argument
[all...]
/frameworks/base/core/java/android/app/
H A DSharedPreferencesImpl.java220 public String getString(String key, String defValue) { argument
223 String v = (String)mMap.get(key);
228 public Set<String> getStringSet(String key, Set<String> defValues) { argument
231 Set<String> v = (Set<String>) mMap.get(key);
236 public int getInt(String key, int defValue) { argument
239 Integer v = (Integer)mMap.get(key);
243 public long getLong(String key, long defValue) { argument
246 Long v = (Long)mMap.get(key);
250 public float getFloat(String key, float defValue) { argument
253 Float v = (Float)mMap.get(key);
257 getBoolean(String key, boolean defValue) argument
265 contains(String key) argument
306 putString(String key, String value) argument
312 putStringSet(String key, Set<String> values) argument
319 putInt(String key, int value) argument
325 putLong(String key, long value) argument
331 putFloat(String key, float value) argument
337 putBoolean(String key, boolean value) argument
344 remove(String key) argument
[all...]
/frameworks/base/media/java/android/media/
H A DTimedText.java422 Log.w(TAG, "Invalid timed text key found: " + type);
427 int key = parcel.readInt();
428 if (!isValidKey(key)) {
429 Log.w(TAG, "Invalid timed text key found: " + key);
435 switch (key) {
517 if (mKeyObjectMap.containsKey(key)) {
518 mKeyObjectMap.remove(key);
521 mKeyObjectMap.put(key, object);
542 int key
690 isValidKey(final int key) argument
704 containsKey(final int key) argument
727 getObject(final int key) argument
[all...]
H A DMetadata.java36 Metadata is like a Bundle. It is sparse and each key can occur at
37 most once. The key is an integer and the value is the actual metadata.
53 // The key range [0 8192) is reserved for the system.
255 // Map to associate a Metadata key (e.g TITLE) with the offset of
257 // Used to look up if a key was present too.
279 | metadata key | // TITLE
308 // Check the metadata key.
418 * @return true if a value is present for the given key.
422 throw new IllegalArgumentException("Invalid key: " + metadataId);
428 // Caller must make sure the key i
434 getString(final int key) argument
442 getInt(final int key) argument
450 getBoolean(final int key) argument
458 getLong(final int key) argument
468 getDouble(final int key) argument
476 getByteArray(final int key) argument
484 getDate(final int key) argument
535 checkType(final int key, final int expectedType) argument
[all...]
/frameworks/base/core/java/android/app/backup/
H A DSharedPreferencesBackupHelper.java121 String key = data.getKey();
122 if (DEBUG) Log.d(TAG, "got entity '" + key + "' size=" + data.size());
124 if (isKeyInList(key, mPrefGroups)) {
125 File f = context.getSharedPrefsFile(key).getAbsoluteFile();
H A DRecentsBackupHelper.java76 * Task-file key: RECENTS_TASK_KEY + leaf filename
77 * Thumbnail-file key: RECENTS_IMAGE_KEY + leaf filename
88 final String key = data.getKey();
90 if (key.startsWith(RECENTS_TASK_KEY)) {
91 String name = key.substring(RECENTS_TASK_KEY.length());
94 } else if (key.startsWith(RECENTS_IMAGE_KEY)) {
95 String name = key.substring(RECENTS_IMAGE_KEY.length());
102 Slog.i(TAG, "Restoring key='"
103 + key + "' to " + output.getAbsolutePath());
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraMetadata.java35 * This class defines the basic key/value map used for querying for camera
42 * never changes, nor do the values returned by any key with {@code #get} throughout
60 * @param key The metadata field to write.
62 * type to the key.
76 * <p>Querying the value for the same key more than once will return a value
79 * @throws IllegalArgumentException if the key was not valid
81 * @param key The metadata field to read.
82 * @return The value of that key, or {@code null} if the field is not set.
86 protected abstract <T> T getProtected(TKey key); argument
99 * <p>All values retrieved by a key fro
178 shouldKeyBeAdded(TKey key, Field field, int[] filterTags) argument
[all...]
/frameworks/base/drm/java/android/drm/
H A DDrmInfo.java89 * 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 DDrmInfoRequest.java96 * 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...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DThumbnailCache.java29 protected int sizeOf(Uri key, Bitmap value) { argument
/frameworks/base/media/java/android/media/audiofx/
H A DBassBoost.java221 * Settings class constructor from a key=value; pairs formatted string. The string is
231 String key = st.nextToken();
232 if (!key.equals("BassBoost")) {
234 "invalid settings for BassBoost: " + key);
237 key = st.nextToken();
238 if (!key.equals("strength")) {
239 throw new IllegalArgumentException("invalid key name: " + key);
243 throw new IllegalArgumentException("invalid value for key: " + key);
[all...]
H A DLoudnessEnhancer.java222 * Settings class constructor from a key=value; pairs formatted string. The string is
232 String key = st.nextToken();
233 if (!key.equals("LoudnessEnhancer")) {
235 "invalid settings for LoudnessEnhancer: " + key);
238 key = st.nextToken();
239 if (!key.equals("targetGainmB")) {
240 throw new IllegalArgumentException("invalid key name: " + key);
244 throw new IllegalArgumentException("invalid value for key: " + key);
[all...]
H A DPresetReverb.java237 * Settings class constructor from a key=value; pairs formatted string. The string is
247 String key = st.nextToken();
248 if (!key.equals("PresetReverb")) {
250 "invalid settings for PresetReverb: " + key);
253 key = st.nextToken();
254 if (!key.equals("preset")) {
255 throw new IllegalArgumentException("invalid key name: " + key);
259 throw new IllegalArgumentException("invalid value for key: " + key);
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DTask.java41 /** The ComponentNameKey represents the unique primary key for a component
67 /* The Task Key represents the unique primary key for the task */
85 /** Returns the component name key for this task. */
113 public TaskKey key; field in class:Task
135 public Task(TaskKey key, boolean isActive, int taskAffiliation, int taskAffiliationColor, argument
139 boolean isInAffiliationGroup = (taskAffiliation != key.id);
141 this.key = key;
158 this.key = o.key;
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DParsedMessage.cpp48 AString key = name; local
49 key.tolower();
51 ssize_t index = mDict.indexOfKey(key);
141 AString key(line, 0, colonPos);
142 key.trim();
143 key.tolower();
147 lastDictIndex = mDict.add(key, line);
232 const AString &key = mDict.keyAt(i); local
235 if (key == AString("_")) {
239 line.append(key);
252 GetAttribute( const char *s, const char *key, AString *value) argument
282 GetInt32Attribute( const char *s, const char *key, int32_t *value) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp56 jstring key = (jstring) env->GetObjectArrayElement(keys, i); local
59 const char* keyStr = env->GetStringUTFChars(key, NULL);
66 env->ReleaseStringUTFChars(key, keyStr);
72 env->ReleaseStringUTFChars(key, keyStr);
74 env->DeleteLocalRef(key);
135 const char *key, int32_t value) {
136 jstring keyObj = env->NewStringUTF(key);
176 const char *key = msg->getEntryNameAt(i, &valueType); local
184 CHECK(msg->findInt32(key, &val));
193 CHECK(msg->findInt64(key,
133 SetMapInt32( JNIEnv *env, jobject hashMapObj, jmethodID hashMapPutID, const char *key, int32_t value) argument
327 AString key = tmp; local
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxSessionStorage.java35 // unique key for the session
36 public static final String COLUMN_KEY = "key";
49 " TEXT primary key, " + COLUMN_CLASS + " TEXT, " +
84 private ContentValues createSessionEntry(String key, Class learner, byte[] model) { argument
86 entry.put(COLUMN_KEY, key);
93 boolean saveSession(String key, Class learner, byte[] model) { argument
94 ContentValues content = createSessionEntry(key, learner, model);
115 BordeauxSessionManager.Session getSession(String key) { argument
118 COLUMN_KEY + "=\"" + key + "\"", null, null, null, null, null);
125 throw new RuntimeException("Unexpected duplication in session table for key
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DSimpleArrayMap.java61 int indexOf(Object key, int hash) { argument
71 // If the hash code wasn't found, then we have no entry for this key.
76 // If the key at the returned index matches, that's what we want.
77 if (key.equals(mArray[index<<1])) {
81 // Search for a matching key after the index.
84 if (key.equals(mArray[end << 1])) return end;
87 // Search for a matching key before the index.
89 if (key.equals(mArray[i << 1])) return i;
93 // new entry for this key should go. We use the end of the
109 // If the hash code wasn't found, then we have no entry for this key
272 containsKey(Object key) argument
282 indexOfKey(Object key) argument
322 get(Object key) argument
373 put(K key, V value) argument
450 remove(Object key) argument
[all...]
/frameworks/base/core/java/android/util/
H A DArrayMap.java26 * ArrayMap is a generic key->value mapping data structure that is
29 * codes for each item, and an Object array of the key/value pairs. This allows it to
88 int indexOf(Object key, int hash) { argument
98 // If the hash code wasn't found, then we have no entry for this key.
103 // If the key at the returned index matches, that's what we want.
104 if (key.equals(mArray[index<<1])) {
108 // Search for a matching key after the index.
111 if (key.equals(mArray[end << 1])) return end;
114 // Search for a matching key before the index.
116 if (key
328 containsKey(Object key) argument
338 indexOfKey(Object key) argument
380 get(Object key) argument
433 put(K key, V value) argument
489 append(K key, V value) argument
576 remove(Object key) argument
[all...]
/frameworks/base/core/java/android/bluetooth/le/
H A DBluetoothLeUtils.java69 Object key = entry.getKey();
70 buffer.append(key).append("=").append(Arrays.toString(map.get(key)));
120 for (T key : keys) {
121 if (!Objects.deepEquals(map.get(key), otherMap.get(key))) {
/frameworks/av/camera/
H A DCameraParameters2.cpp67 // Find the bounds of the key name.
72 // Create the key string.
92 void CameraParameters2::set(const char *key, const char *value) argument
95 if (strchr(key, '=') || strchr(key, ';')) {
96 //XXX ALOGE("Key \"%s\"contains invalid character (= or ;)", key);
105 // Replacing a value updates the key's order to be the new largest order
106 ssize_t res = mMap.replaceValueFor(String8(key), String8(value));
107 LOG_ALWAYS_FATAL_IF(res < 0, "replaceValueFor(%s,%s) failed", key, value);
110 void CameraParameters2::set(const char *key, in
[all...]
/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...]

Completed in 709 milliseconds

1234567891011>>