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

1234567891011

/frameworks/support/v4/java/android/support/v4/util/
H A DLruCache.java56 * Returns the value for {@code key} if it exists in the cache or can be
61 public final V get(K key) { argument
62 if (key == null) {
63 throw new NullPointerException("key == null");
68 mapValue = map.get(key);
83 V createdValue = create(key);
90 mapValue = map.put(key, createdValue);
94 map.put(key, mapValue);
96 size += safeSizeOf(key, createdValue);
101 entryRemoved(false, key, createdValu
115 put(K key, V value) argument
176 remove(K key) argument
211 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument
228 create(K key) argument
232 safeSizeOf(K key, V value) argument
247 sizeOf(K key, V value) argument
[all...]
H A DSparseArrayCompat.java48 * Gets the Object mapped from the specified key, or <code>null</code>
51 public E get(int key) { argument
52 return get(key, null);
56 * Gets the Object mapped from the specified key, or the specified Object
59 public E get(int key, E valueIfKeyNotFound) { argument
60 int i = binarySearch(mKeys, 0, mSize, key);
70 * Removes the mapping from the specified key, if there was any.
72 public void delete(int key) { argument
73 int i = binarySearch(mKeys, 0, mSize, key);
86 public void remove(int key) { argument
145 put(int key, E value) argument
248 indexOfKey(int key) argument
295 append(int key, E value) argument
325 binarySearch(int[] a, int start, int len, int key) 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/av/media/libmediaplayerservice/
H A DStagefrightPlayer.cpp179 status_t StagefrightPlayer::setParameter(int key, const Parcel &request) { argument
180 ALOGV("setParameter(key=%d)", key);
181 return mPlayer->setParameter(key, request);
184 status_t StagefrightPlayer::getParameter(int key, Parcel *reply) { argument
186 return mPlayer->getParameter(key, reply);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDriver.cpp291 status_t NuPlayerDriver::setParameter(int key, const Parcel &request) { argument
295 status_t NuPlayerDriver::getParameter(int key, Parcel *reply) { argument
/frameworks/av/media/libstagefright/
H A DMetaData.cpp47 bool MetaData::remove(uint32_t key) { argument
48 ssize_t i = mItems.indexOfKey(key);
59 bool MetaData::setCString(uint32_t key, const char *value) { argument
60 return setData(key, TYPE_C_STRING, value, strlen(value) + 1);
63 bool MetaData::setInt32(uint32_t key, int32_t value) { argument
64 return setData(key, TYPE_INT32, &value, sizeof(value));
67 bool MetaData::setInt64(uint32_t key, int64_t value) { argument
68 return setData(key, TYPE_INT64, &value, sizeof(value));
71 bool MetaData::setFloat(uint32_t key, float value) { argument
72 return setData(key, TYPE_FLOA
75 setPointer(uint32_t key, void *value) argument
79 setRect( uint32_t key, int32_t left, int32_t top, int32_t right, int32_t bottom) argument
92 findCString(uint32_t key, const char **value) argument
105 findInt32(uint32_t key, int32_t *value) argument
120 findInt64(uint32_t key, int64_t *value) argument
135 findFloat(uint32_t key, float *value) argument
150 findPointer(uint32_t key, void **value) argument
165 findRect( uint32_t key, int32_t *left, int32_t *top, int32_t *right, int32_t *bottom) argument
187 setData( uint32_t key, uint32_t type, const void *data, size_t size) argument
206 findData(uint32_t key, uint32_t *type, const void **data, size_t *size) const argument
344 int32_t key = mItems.keyAt(i); local
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp275 const AString &line, sp<AMessage> *meta, const char *key) {
292 (*meta)->setInt32(key, x);
299 const AString &line, sp<AMessage> *meta, const char *key) {
316 (*meta)->setInt64(key, (int64_t)x * 1E6);
348 AString key(attr, 0, equalPos);
349 key.trim();
354 ALOGV("key=%s value=%s", key.c_str(), val.c_str());
356 if (!strcasecmp("bandwidth", key.c_str())) {
426 AString key(att
274 parseMetaData( const AString &line, sp<AMessage> *meta, const char *key) argument
298 parseMetaDataDuration( const AString &line, sp<AMessage> *meta, const char *key) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4ElementaryAssembler.cpp38 static bool GetAttribute(const char *s, const char *key, AString *value) { argument
41 size_t keyLen = strlen(key);
54 && !strncasecmp(s, key, keyLen)) {
68 const char *s, const char *key, unsigned *x) {
72 if (!GetAttribute(s, key, &val)) {
67 GetIntegerAttribute( const char *s, const char *key, unsigned *x) argument
H A DASessionDescription.cpp97 AString key, value; local
101 key = line;
103 key.setTo(line, 0, colonPos);
105 if (key == "a=fmtp" || key == "a=rtpmap"
106 || key == "a=framesize") {
112 key.setTo(line, 0, spacePos);
120 key.trim();
123 ALOGV("adding '%s' => '%s'", key.c_str(), value.c_str());
125 mTracks.editItemAt(mTracks.size() - 1).add(key, valu
141 AString key, value; local
179 findAttribute( size_t index, const char *key, AString *value) const argument
214 char key[20]; local
231 char key[20]; local
[all...]
/frameworks/base/core/java/android/content/
H A DContentProviderOperation.java273 * key refers to a column and the value is an index of the back reference whose
296 String key = entry.getKey();
297 Integer backRefIndex = mValuesBackReferences.getAsInteger(key);
300 throw new IllegalArgumentException("values backref " + key + " is not an integer");
302 values.put(key, backRefToValue(backRefs, numBackRefs, backRefIndex));
309 * the key is an index into the selection argument array (see {@link Builder#withSelection})
440 * Add a {@link ContentValues} of back references. The key is the name of the column
464 public Builder withValueBackReference(String key, int previousResult) { argument
472 mValuesBackReferences.put(key, previousResult);
517 * @param key th
522 withValue(String key, Object value) argument
[all...]
/frameworks/base/core/java/android/net/
H A DLinkCapabilities.java46 * can request for a certain requirement corresponding to that key.
48 * can read the value of that key from the socket but cannot request
52 * define the syntax for each value string associated with a key.
90 * This key is set via the needs map.
225 * Given the key return the capability string
227 * @param key
230 public String get(int key) { argument
231 return mCapabilities.get(key);
235 * Store the key/value capability pair
237 * @param key
240 put(int key, String value) argument
251 containsKey(int key) argument
[all...]
/frameworks/base/core/java/android/nfc/tech/
H A DMifareClassic.java48 * authenticating with a key. {@see #authenticateSectorWithKeyA} and
55 * <li>{@link #KEY_DEFAULT} is the default factory key for MIFARE Classic.
56 * <li>{@link #KEY_MIFARE_APPLICATION_DIRECTORY} is the well-known key for
59 * <li>{@link #KEY_NFC_FORUM} is the well-known key for MIFARE Classic cards that
77 * The default factory key.
82 * The well-known key for tags formatted according to the
88 * The well-known key for tags formatted according to the
316 * Authenticate a sector with key A.
318 * <p>Successful authentication of a sector with key A enables other
319 * I/O operations on that sector. The set of operations granted by key
338 authenticateSectorWithKeyA(int sectorIndex, byte[] key) argument
365 authenticateSectorWithKeyB(int sectorIndex, byte[] key) argument
369 authenticate(int sector, byte[] key, boolean keyA) argument
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceFragment.java66 * {@link Activity} can specify meta-data in the manifest (via the key
303 * Finds a {@link Preference} based on its key.
305 * @param key The key of the preference to retrieve.
306 * @return The {@link Preference} with the key, or null.
309 public Preference findPreference(CharSequence key) { argument
313 return mPreferenceManager.findPreference(key);
/frameworks/base/core/java/android/speech/tts/
H A DTtsEngines.java428 * Updates the value for a given key in a comma separated list of key value pairs,
429 * each of which are delimited by a colon. If no value exists for the given key,
432 private String updateValueInCommaSeparatedList(String list, String key, argument
437 newPrefList.append(key).append(':').append(newValue);
442 // Whether we found the given key.
447 if (key.equals(value.substring(0, delimiter))) {
454 newPrefList.append(key).append(':').append(newValue);
461 // Copy across the entire key + value as is.
471 newPrefList.append(key)
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java73 * supplies tools to deal with a key-value comma-separated list; see
99 * supplies tools to deal with a key-value comma-separated list; see
129 * supplies tools to deal with a key-value comma-separated list; see
304 * @param key The key of extra value
307 public boolean containsExtraValueKey(String key) { argument
308 return getExtraValueHashMap().containsKey(key);
314 * @param key The key of extra value
315 * @return The value of the specified key
317 getExtraValueOf(String key) argument
[all...]
/frameworks/base/core/java/android/view/textservice/
H A DSpellCheckerSubtype.java115 * @param key the key of extra value
118 public boolean containsExtraValueKey(String key) { argument
119 return getExtraValueHashMap().containsKey(key);
125 * @param key the key of extra value
126 * @return the value of the specified key
128 public String getExtraValueOf(String key) { argument
129 return getExtraValueHashMap().get(key);
/frameworks/base/core/java/com/android/internal/content/
H A DPackageHelper.java96 public static String mountSdDir(String cid, String key, int ownerUid) { argument
98 int rc = getMountService().mountSecureContainer(cid, key, ownerUid);
/frameworks/base/core/java/com/android/internal/util/
H A DTypedProperties.java402 public Object get(Object key) { argument
403 Object value = super.get(key);
/frameworks/base/core/java/com/android/internal/widget/
H A DLockSettingsService.java62 private static final String LOCK_PATTERN_FILE = "gesture.key";
63 private static final String LOCK_PASSWORD_FILE = "password.key";
125 public void setBoolean(String key, boolean value, int userId) throws RemoteException { argument
128 writeToDb(key, value ? "1" : "0", userId);
132 public void setLong(String key, long value, int userId) throws RemoteException { argument
135 writeToDb(key, Long.toString(value), userId);
139 public void setString(String key, String value, int userId) throws RemoteException { argument
142 writeToDb(key, value, userId);
146 public boolean getBoolean(String key, boolean defaultValue, int userId) throws RemoteException { argument
149 String value = readFromDb(key, nul
155 getLong(String key, long defaultValue, int userId) argument
163 getString(String key, String defaultValue, int userId) argument
309 writeToDb(String key, String value, int userId) argument
313 writeToDb(SQLiteDatabase db, String key, String value, int userId) argument
330 readFromDb(String key, String defaultValue, int userId) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DLruCacheTest.java183 * Replacing the value for a key doesn't cause an eviction but it does bring
200 @Override protected int sizeOf(String key, String value) {
201 return key.length() + value.length();
216 @Override protected int sizeOf(String key, String value) {
245 @Override protected int sizeOf(String key, int[] value) {
267 @Override protected int sizeOf(String key, String value) {
286 @Override protected int sizeOf(String key, String value) {
314 @Override protected int sizeOf(String key, String value) {
327 @Override protected int sizeOf(String key, String value) {
373 boolean evicted, String key, Strin
467 assertHit(LruCache<String, String> cache, String key, String value) argument
473 assertMiss(LruCache<String, String> cache, String key) argument
479 assertCreated(LruCache<String, String> cache, String key, String value) argument
[all...]
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java33 * assumes that private and secret key bytes are available and would
74 private byte[] get(byte[] key) { argument
75 ArrayList<byte[]> values = execute('g', key);
79 public byte[] get(String key) { argument
80 return get(getKeyBytes(key));
83 private boolean put(byte[] key, byte[] value) { argument
84 execute('i', key, value);
88 public boolean put(String key, byte[] value) { argument
89 return put(getKeyBytes(key), value);
92 private boolean delete(byte[] key) { argument
97 delete(String key) argument
101 contains(byte[] key) argument
106 contains(String key) argument
160 generate(byte[] key) argument
165 generate(String key) argument
169 importKey(byte[] keyName, byte[] key) argument
174 importKey(String keyName, byte[] key) argument
178 getPubkey(byte[] key) argument
183 getPubkey(String key) argument
187 delKey(byte[] key) argument
192 delKey(String key) argument
201 sign(String key, byte[] data) argument
210 verify(String key, byte[] data, byte[] signature) argument
214 grant(byte[] key, byte[] uid) argument
219 grant(String key, int uid) argument
223 ungrant(byte[] key, byte[] uid) argument
228 ungrant(String key, int uid) argument
232 getmtime(byte[] key) argument
245 getmtime(String key) argument
[all...]
/frameworks/base/libs/androidfw/
H A DBackupData.cpp39 * - A sequence of zero or more key/value paires (entities), each with
41 * - The key, utf-8, null terminated, padded to 4-byte boundary.
93 BackupDataWriter::WriteEntityHeader(const String8& key, size_t dataSize) argument
110 k += key;
112 k = key;
115 ALOGD("Writing header: prefix='%s' key='%s' dataSize=%d", m_keyPrefix.string(),
116 key.string(), dataSize);
136 if (DEBUG) ALOGI("writing entity header key, %d bytes", keyLen+1);
303 BackupDataReader::ReadEntityHeader(String8* key, size_t* dataSize) argument
311 *key
[all...]
H A DKeyLayoutMap.cpp56 ALOGE("Error %d opening key layout map file %s.", status, filename.string());
60 ALOGE("Error allocating key layout map.");
70 ALOGD("Parsed key layout map file '%s' %d lines in %0.3fms.",
85 const Key* key = getKey(scanCode, usageCode); local
86 if (!key) {
95 *outKeyCode = key->keyCode;
96 *outFlags = key->flags;
173 if (keywordToken == "key") {
213 ALOGE("%s: Expected key %s number, got '%s'.", mTokenizer->getLocation().string(),
220 ALOGE("%s: Duplicate entry for key
258 Key key; local
[all...]
/frameworks/base/services/java/com/android/server/
H A DPackageManagerBackupAgent.java57 // key under which we store global metadata (individual app metadata
58 // is stored using the package name as a key)
150 if (DEBUG) Slog.v(TAG, "Storing global metadata key");
155 if (DEBUG) Slog.v(TAG, "Global metadata key already stored");
165 // We've already handled the metadata key; skip it here
244 private static void writeEntity(BackupDataOutput data, String key, byte[] bytes) argument
246 data.writeEntityHeader(key, bytes.length);
261 String key = data.getKey();
264 if (DEBUG) Slog.v(TAG, " got key=" + key
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DPendingIntentRecord.java36 final Key key; field in class:PendingIntentRecord
185 key = _k;
203 if ((key.flags&PendingIntent.FLAG_ONE_SHOT) != 0) {
207 Intent finalIntent = key.requestIntent != null
208 ? new Intent(key.requestIntent) : new Intent();
210 int changes = finalIntent.fillIn(intent, key.flags);
212 resolvedType = key.requestResolvedType;
215 resolvedType = key.requestResolvedType;
224 int userId = key.userId;
228 switch (key
[all...]

Completed in 907 milliseconds

1234567891011