Searched refs:key (Results 51 - 75 of 403) sorted by relevance

1234567891011>>

/frameworks/native/libs/utils/
H A DPropertyMap.cpp50 void PropertyMap::addProperty(const String8& key, const String8& value) { argument
51 mProperties.add(key, value);
54 bool PropertyMap::hasProperty(const String8& key) const {
55 return mProperties.indexOfKey(key) >= 0;
58 bool PropertyMap::tryGetProperty(const String8& key, String8& outValue) const { argument
59 ssize_t index = mProperties.indexOfKey(key);
68 bool PropertyMap::tryGetProperty(const String8& key, bool& outValue) const { argument
70 if (!tryGetProperty(key, intValue)) {
78 bool PropertyMap::tryGetProperty(const String8& key, int32_t& outValue) const { argument
80 if (! tryGetProperty(key, stringValu
95 tryGetProperty(const String8& key, float& outValue) const argument
[all...]
/frameworks/av/drm/common/
H A DDrmInfoRequest.cpp41 status_t DrmInfoRequest::put(const String8& key, const String8& value) { argument
42 mRequestInformationMap.add(key, value);
46 String8 DrmInfoRequest::get(const String8& key) const {
47 if (NAME_NOT_FOUND != mRequestInformationMap.indexOfKey(key)) {
48 return mRequestInformationMap.valueFor(key);
73 const String8& key = mDrmInfoRequest->mRequestInformationMap.keyAt(mIndex); local
75 return 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...]
/frameworks/base/core/java/android/app/backup/
H A DAbsoluteFileBackupHelper.java68 String key = data.getKey();
69 if (isKeyInList(key, mFiles)) {
70 File f = new File(key);
H A DSharedPreferencesBackupHelper.java122 String key = data.getKey();
123 if (DEBUG) Log.d(TAG, "got entity '" + key + "' size=" + data.size());
125 if (isKeyInList(key, mPrefGroups)) {
126 File f = context.getSharedPrefsFile(key).getAbsoluteFile();
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsCollection.java57 * Collection of {@link NetworkStatsHistory}, stored based on combined key of
149 final Key key = entry.getKey();
150 final boolean setMatches = set == SET_ALL || key.set == set;
151 if (key.uid == uid && setMatches && key.tag == tag
152 && templateMatches(template, key.ident)) {
174 final Key key = mapEntry.getKey();
175 if (templateMatches(template, key.ident)) {
180 entry.uid = key.uid;
181 entry.set = key
211 recordHistory(Key key, NetworkStatsHistory history) argument
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DStringFloat.java7 public String key; field in class:StringFloat
33 out.writeString(key);
38 key = in.readString();
H A DStringString.java7 public String key; field in class:StringString
33 out.writeString(key);
38 key = in.readString();
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/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationData.java35 public IBinder key; field in class:NotificationData.Entry
44 public Entry(IBinder key, StatusBarNotification n, StatusBarIconView ic) { argument
45 this.key = key;
108 public Entry findByKey(IBinder key) { argument
110 if (e.key == key) {
129 public int add(IBinder key, StatusBarNotification notification, View row, View content, argument
132 entry.key = key;
142 remove(IBinder key) argument
[all...]
/frameworks/av/include/drm/
H A DDrmConstraints.h68 * 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/native/include/utils/
H A DGenerationCache.h32 virtual void operator()(EntryKey& key, EntryValue& value) = 0;
38 key(e.key), value(e.value),
40 Entry(const EntryKey& key, const EntryValue& value) : argument
41 key(key), value(value) { }
43 EntryKey key; member in struct:android::Entry
69 bool contains(const K& key) const;
73 const V& get(const K& key);
74 bool put(const K& key, cons
150 get(const K& key) argument
163 put(const K& key, const V& value) argument
180 remove(const K& key) argument
[all...]
/frameworks/base/core/java/android/text/
H A DAnnotation.java22 * Annotations are simple key-value pairs that are preserved across
30 public Annotation(String key, String value) { argument
31 mKey = key;
/frameworks/compile/mclinker/include/mcld/ADT/
H A DStringEntry.h36 key_type key() function in class:mcld::StringEntry
39 const key_type key() const function in class:mcld::StringEntry
58 { return (0 == key().compare(pX)); }
61 { return (0 == key().compare(pX)); }
86 key_type key() function in class:mcld::StringEntry
89 const key_type key() const function in class:mcld::StringEntry
112 { return (0 == key().compare(pX)); }
115 { return (0 == key().compare(pX)); }
/frameworks/base/media/mca/filterfw/native/base/
H A Dutilities.h58 // 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/base/
H A Dutilities.h58 // 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/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/mms/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.java221 public String getString(String key, String defValue) { argument
224 String v = (String)mMap.get(key);
229 public Set<String> getStringSet(String key, Set<String> defValues) { argument
232 Set<String> v = (Set<String>) mMap.get(key);
237 public int getInt(String key, int defValue) { argument
240 Integer v = (Integer)mMap.get(key);
244 public long getLong(String key, long defValue) { argument
247 Long v = (Long)mMap.get(key);
251 public float getFloat(String key, float defValue) { argument
254 Float v = (Float)mMap.get(key);
258 getBoolean(String key, boolean defValue) argument
266 contains(String key) argument
307 putString(String key, String value) argument
313 putStringSet(String key, Set<String> values) argument
320 putInt(String key, int value) argument
326 putLong(String key, long value) argument
332 putFloat(String key, float value) argument
338 putBoolean(String key, boolean value) argument
345 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.java37 Metadata is like a Bundle. It is sparse and each key can occur at
38 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/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/media/java/android/media/audiofx/
H A DPresetReverb.java245 * Settings class constructor from a key=value; pairs formatted string. The string is
255 String key = st.nextToken();
256 if (!key.equals("PresetReverb")) {
258 "invalid settings for PresetReverb: " + key);
261 key = st.nextToken();
262 if (!key.equals("preset")) {
263 throw new IllegalArgumentException("invalid key name: " + key);
267 throw new IllegalArgumentException("invalid value for key: " + key);
[all...]
/frameworks/av/media/libstagefright/wifi-display/
H A DParsedMessage.cpp47 AString key = name; local
48 key.tolower();
50 ssize_t index = mDict.indexOfKey(key);
137 AString key(line, 0, colonPos);
138 key.trim();
139 key.tolower();
143 lastDictIndex = mDict.add(key, line);
214 const AString &key = mDict.keyAt(i); local
217 if (key == AString("_")) {
221 line.append(key);
234 GetAttribute( const char *s, const char *key, AString *value) argument
264 GetInt32Attribute( const char *s, const char *key, int32_t *value) argument
[all...]

Completed in 168 milliseconds

1234567891011>>