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

1234567891011>>

/frameworks/base/core/java/android/util/
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
193 indexOfKey(int key) argument
224 append(int key, boolean value) argument
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DPendingIntentRecord.java37 final Key key; field in class:PendingIntentRecord
188 key = _k;
206 if ((key.flags&PendingIntent.FLAG_ONE_SHOT) != 0) {
210 Intent finalIntent = key.requestIntent != null
211 ? new Intent(key.requestIntent) : new Intent();
213 int changes = finalIntent.fillIn(intent, key.flags);
215 resolvedType = key.requestResolvedType;
218 resolvedType = key.requestResolvedType;
227 int userId = key.userId;
231 switch (key
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicColorMatrix.cpp113 uint64_t key; member in union:android::renderscript::__anon1486
202 bool build(Key_t key);
215 Key_t key; local
216 key.key = 0;
218 // Compute a unique code key for this operation
220 // Add to the key the input and output types
224 key.u.inType = RS_TYPE_FLOAT_32;
225 rsAssert(key.u.inType == RS_TYPE_FLOAT_32);
229 key
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DEnvironmentalReverb.java517 * Settings class constructor from a key=value; pairs formatted string. The string is
527 String key = st.nextToken();
528 if (!key.equals("EnvironmentalReverb")) {
530 "invalid settings for EnvironmentalReverb: " + key);
534 key = st.nextToken();
535 if (!key.equals("roomLevel")) {
536 throw new IllegalArgumentException("invalid key name: " + key);
539 key = st.nextToken();
540 if (!key
[all...]
/frameworks/av/media/libstagefright/rtsp/
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/av/include/media/stagefright/
H A DMetaData.h106 // Set this key to enable authoring files in 64-bit offset
201 bool remove(uint32_t key);
203 bool setCString(uint32_t key, const char *value);
204 bool setInt32(uint32_t key, int32_t value);
205 bool setInt64(uint32_t key, int64_t value);
206 bool setFloat(uint32_t key, float value);
207 bool setPointer(uint32_t key, void *value);
210 uint32_t key,
214 bool findCString(uint32_t key, const char **value);
215 bool findInt32(uint32_t key, int32_
[all...]
/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/hdmi/
H A DUnmodifiableSparseArray.java37 public E get(int key) { argument
38 return mArray.get(key);
41 public E get(int key, E valueIfKeyNotFound) { argument
42 return mArray.get(key, valueIfKeyNotFound);
/frameworks/base/services/core/java/com/android/server/notification/
H A DRankingReconsideration.java37 public RankingReconsideration(String key) { argument
38 this(key, IMMEDIATE);
41 public RankingReconsideration(String key, long delay) { argument
43 mKey = key;
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DStringFloat.java7 public String key; field in class:StringFloat
25 key = newKey;
38 out.writeString(key);
43 key = in.readString();
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/
H A DTransportMediatorCallback.java22 public void handleKey(KeyEvent key); argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DTaskGrouping.java23 mTaskKeys.add(t.key);
24 if (t.key.lastActiveTime > latestActiveTimeInGroup) {
25 latestActiveTimeInGroup = t.key.lastActiveTime;
33 mTaskKeys.remove(t.key);
46 /** Returns the key of the next task in the group. */
55 /** Returns the key of the previous task in the group. */
66 return (t.key == mFrontMostTaskKey);
71 return mTaskKeyIndices.get(t.key);
76 return mTaskKeyIndices.containsKey(t.key);
82 return mTaskKeyIndices.containsKey(t.key)
[all...]
/frameworks/base/core/java/android/app/
H A DAppGlobals.java53 * @param key The setting key.
57 public static int getIntCoreSetting(String key, int defaultValue) { argument
60 return currentActivityThread.getIntCoreSetting(key, defaultValue);
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java29 * assumes that private and secret key bytes are available and would
79 throw new IllegalArgumentException("Unsupported key type: " + keyType);
104 public byte[] get(String key) { argument
106 return mBinder.get(key);
113 public boolean put(String key, byte[] value, int uid, int flags) { argument
115 return mBinder.insert(key, value, uid, flags) == NO_ERROR;
122 public boolean delete(String key, int uid) { argument
124 return mBinder.del(key, uid) == NO_ERROR;
131 public boolean delete(String key) { argument
132 return delete(key, UID_SEL
135 contains(String key, int uid) argument
144 contains(String key) argument
207 generate(String key, int uid, int keyType, int keySize, int flags, byte[][] args) argument
217 importKey(String keyName, byte[] key, int uid, int flags) argument
226 getPubkey(String key) argument
235 delKey(String key, int uid) argument
244 delKey(String key) argument
248 sign(String key, byte[] data) argument
257 verify(String key, byte[] data, byte[] signature) argument
266 grant(String key, int uid) argument
275 ungrant(String key, int uid) argument
288 getmtime(String key) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFilterContext.java72 public synchronized void storeFrame(String key, Frame frame) { argument
73 Frame storedFrame = fetchFrame(key);
78 mStoredFrames.put(key, frame.retain());
81 public synchronized Frame fetchFrame(String key) { argument
82 Frame frame = mStoredFrames.get(key);
89 public synchronized void removeFrame(String key) { argument
90 Frame frame = mStoredFrames.get(key);
92 mStoredFrames.remove(key);
/frameworks/base/tools/aapt/
H A DAaptUtil.h32 const KEY& key, const VALUE& value);
36 const KEY& key, const VALUE& value);
44 const KEY& key, const VALUE& value) {
45 ssize_t idx = keyedVector.indexOfKey(key);
47 idx = keyedVector.add(key, android::Vector<VALUE>());
54 const KEY& key, const VALUE& value) {
55 ssize_t idx = keyedVector.indexOfKey(key);
57 idx = keyedVector.add(key, android::SortedVector<VALUE>());
43 appendValue(android::KeyedVector<KEY, android::Vector<VALUE> >& keyedVector, const KEY& key, const VALUE& value) argument
53 appendValue(android::KeyedVector<KEY, android::SortedVector<VALUE> >& keyedVector, const KEY& key, const VALUE& value) argument
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DRequestKey.java33 * this object will be used as a cache key.
78 * @param key The key to create a FileDescriptorFactory for. This key will be passed to the
79 * callback so it can check whether the key has changed.
89 public Cancelable createFileDescriptorFactoryAsync(RequestKey key, Callback callback); argument
118 * @param key The key that the FileDescriptorFactory was created for. The callback should
119 * check that the key has not changed.
122 void fileDescriptorFactoryCreated(RequestKey key, FileDescriptorFactor argument
[all...]
H A DContiguousFIFOAggregator.java30 * . All tasks that is given to {@link #execute(Object, Runnable)} must correspond to a key. This
31 * key must have been previously declared with {@link #expect(Object, Callback)}.
32 * The task will be scheduled to run when its corresponding key becomes the first expected key
35 * If on {@link #execute(Object, Runnable)} the key is not expected, the task will be executed
41 * the first expected key.</li>
42 * <li>Execute task <b>2</b> for key <b>B</b>. The first expected key is <b>A</b>,
44 * <li>Execute task <b>4</b> for key <b>Z</b>. We store task <b>4</b>. </li>
45 * <li>Execute task <b>1</b> for key <
94 expect(final T key, final Callback<T> callback) argument
126 forget(final T key) argument
165 execute(final T key, final Runnable task) argument
223 onFirstExpectedChanged(final T key) argument
239 contains(final T key) argument
292 onBecomeFirstExpected(final T key) argument
[all...]
/frameworks/av/include/drm/
H A DDrmMetadata.h33 * Iterator for key
82 String8 key = keyIt.next(); local
83 const char* value = this->getAsByteArray(&key);
94 status_t put(const String8* key, const char* value);
95 String8 get(const String8& key) const;
96 const char* getAsByteArray(const String8* key) const;
101 const char* getValue(const String8* key) const;
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsStorage.java59 private static final String LOCK_PATTERN_FILE = "gesture.key";
60 private static final String LOCK_PASSWORD_FILE = "password.key";
74 public void writeKeyValue(String key, String value, int userId) { argument
75 writeKeyValue(mOpenHelper.getWritableDatabase(), key, value, userId);
78 public void writeKeyValue(SQLiteDatabase db, String key, String value, int userId) { argument
80 cv.put(COLUMN_KEY, key);
87 new String[] {key, Integer.toString(userId)});
90 mCache.putKeyValue(key, value, userId);
97 public String readKeyValue(String key, String defaultValue, int userId) { argument
100 if (mCache.hasKeyValue(key, userI
393 peekKeyValue(String key, String defaultValue, int userId) argument
398 hasKeyValue(String key, int userId) argument
402 putKeyValue(String key, String value, int userId) argument
406 putKeyValueIfUnchanged(String key, Object value, int userId, int version) argument
418 putFile(String key, byte[] value) argument
422 putFileIfUnchanged(String key, byte[] value, int version) argument
435 put(int type, String key, Object value, int userId) argument
441 putIfUnchanged(int type, String key, Object value, int userId, int version) argument
448 contains(int type, String key, int userId) argument
452 peek(int type, String key, int userId) argument
481 String key; field in class:LockSettingsStorage.Cache.CacheKey
485 set(int type, String key, int userId) argument
[all...]
/frameworks/volley/src/com/android/volley/toolbox/
H A DDiskBasedCache.java102 * Returns the cache entry with the specified key if it exists, null otherwise.
105 public synchronized Entry get(String key) { argument
106 CacheHeader entry = mEntries.get(key);
112 File file = getFileForKey(key);
121 remove(key);
157 putEntry(entry.key, entry);
174 * @param key Cache key
178 public synchronized void invalidate(String key, boolean fullExpire) { argument
179 Entry entry = get(key);
194 put(String key, Entry entry) argument
222 remove(String key) argument
236 getFilenameForKey(String key) argument
246 getFileForKey(String key) argument
296 putEntry(String key, CacheHeader entry) argument
309 removeEntry(String key) argument
343 public String key; field in class:DiskBasedCache.CacheHeader
367 CacheHeader(String key, Entry entry) argument
[all...]
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsCollection.java60 * Collection of {@link NetworkStatsHistory}, stored based on combined key of
152 final Key key = mStats.keyAt(i);
153 final boolean setMatches = set == SET_ALL || key.set == set;
154 if (key.uid == uid && setMatches && key.tag == tag
155 && templateMatches(template, key.ident)) {
178 final Key key = mStats.keyAt(i);
179 if (templateMatches(template, key.ident)) {
184 entry.uid = key.uid;
185 entry.set = key
215 recordHistory(Key key, NetworkStatsHistory history) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaMetadata.java227 * A String key for identifying the content. This value is specific to the
229 * unique key for the underlying content. It may be used with
336 * Returns true if the given key is contained in the metadata
338 * @param key a String key
339 * @return true if the key exists in this metadata, false otherwise
341 public boolean containsKey(String key) { argument
342 return mBundle.containsKey(key);
346 * Returns the value associated with the given key, or null if no mapping of
347 * the desired type exists for the given key o
353 getText(String key) argument
366 getString(String key) argument
381 getLong(String key) argument
392 getRating(String key) argument
410 getBitmap(String key) argument
616 putText(String key, CharSequence value) argument
658 putString(String key, String value) argument
685 putLong(String key, long value) argument
709 putRating(String key, Rating value) argument
738 putBitmap(String key, Bitmap value) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DSparseWeakArray.java69 * Gets the Object mapped from the specified key, or <code>null</code>
72 public E get(long key) { argument
73 return get(key, null);
77 * Gets the Object mapped from the specified key, or the specified Object
80 public E get(long key, E valueIfKeyNotFound) { argument
81 int i = binarySearch(mKeys, 0, mSize, key);
91 * Removes the mapping from the specified key, if there was any.
93 public void delete(long key) { argument
94 int i = binarySearch(mKeys, 0, mSize, key);
107 public void remove(long key) { argument
151 put(long key, E value) argument
234 indexOfKey(long key) argument
281 append(long key, E value) argument
306 binarySearch(long[] a, int start, int len, long key) 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;

Completed in 2031 milliseconds

1234567891011>>