Searched refs:key (Results 1 - 25 of 578) sorted by last modified time

1234567891011>>

/frameworks/wilhelm/src/autogen/
H A DIID_to_MPH.c318 unsigned key = asso_values[((unsigned char *)iid)[3]] + local
320 if (key <= MAX_HASH_VALUE) {
321 int MPH = hash_to_MPH[key];
/frameworks/wilhelm/tools/hashgen/
H A Dpart8.c1 if (key <= MAX_HASH_VALUE) {
2 int MPH = hash_to_MPH[key];
/frameworks/support/v4/java/android/support/v4/app/
H A DFragmentManager.java290 * @param key The name of the entry in the bundle.
293 public abstract void putFragment(Bundle bundle, String key, Fragment fragment); argument
300 * @param key The name of the entry in the bundle.
304 public abstract Fragment getFragment(Bundle bundle, String key); argument
571 public void putFragment(Bundle bundle, String key, Fragment fragment) { argument
576 bundle.putInt(key, fragment.mIndex);
580 public Fragment getFragment(Bundle bundle, String key) { argument
581 int index = bundle.getInt(key, -1);
586 throwException(new IllegalStateException("Fragment no longer exists for key "
587 + key
[all...]
H A DFragmentStatePagerAdapter.java187 String key = "f" + i;
188 mFragmentManager.putFragment(state, key, f);
208 for (String key: keys) {
209 if (key.startsWith("f")) {
210 int index = Integer.parseInt(key.substring(1));
211 Fragment f = mFragmentManager.getFragment(bundle, key);
219 Log.w(TAG, "Bad fragment at key " + key);
H A DNotificationCompat.java152 * which support such rendering. Requires a group key also be set using
195 * Notification extras key: this is the title of the notification,
201 * Notification extras key: this is the title of the notification when shown in expanded form,
207 * Notification extras key: this is the main text payload, as supplied to
213 * Notification extras key: this is a third line of text, as supplied to
219 * Notification extras key: this is a small piece of additional text as supplied to
225 * Notification extras key: this is a line of summary information intended to be shown
232 * Notification extras key: this is the longer text shown in the big form of a
239 * Notification extras key: this is the resource ID of the notification's main small icon, as
245 * Notification extras key
3234 getNotificationArrayFromBundle(Bundle bundle, String key) argument
[all...]
/frameworks/support/v4/java/android/support/v4/media/
H A DMediaMetadataCompat.java190 * A String key for identifying the content. This value is specific to the
192 * unique key for the underlying content.
268 * Returns true if the given key is contained in the metadata
270 * @param key a String key
271 * @return true if the key exists in this metadata, false otherwise
273 public boolean containsKey(String key) { argument
274 return mBundle.containsKey(key);
278 * Returns the value associated with the given key, or null if no mapping of
279 * the desired type exists for the given key o
285 getText(String key) argument
297 getString(String key) argument
312 getLong(String key) argument
323 getRating(String key) argument
341 getBitmap(String key) argument
612 putText(String key, CharSequence value) argument
649 putString(String key, String value) argument
676 putLong(String key, long value) argument
700 putRating(String key, RatingCompat value) argument
725 putBitmap(String key, Bitmap value) argument
[all...]
H A DTransportMediator.java31 * other media actions). Takes care of both key events and advanced features
60 public void handleKey(KeyEvent key) {
61 key.dispatch(mKeyEventCallback);
/frameworks/support/v4/java/android/support/v4/util/
H A DArrayMap.java24 * 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
85 protected int colIndexOfKey(Object key) {
86 return indexOfKey(key);
100 protected void colPut(K key, V value) {
101 put(key, value);
126 * @return Returns true if this array map contains a key for every entry
134 * Perform a {@link #put(Object, Object)} of all key/value pairs in <var>map</var>
H A DLongSparseArray.java38 * as deleted. The entry can then be re-used for the same key, or compacted later in
92 * Gets the Object mapped from the specified key, or <code>null</code>
95 public E get(long key) { argument
96 return get(key, null);
100 * Gets the Object mapped from the specified key, or the specified Object
104 public E get(long key, E valueIfKeyNotFound) { argument
105 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
115 * Removes the mapping from the specified key, if there was any.
117 public void delete(long key) { argument
118 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
131 remove(long key) argument
178 put(long key, E value) argument
282 indexOfKey(long key) argument
329 append(long key, E value) argument
[all...]
H A DLruCache.java72 * Returns the value for {@code key} if it exists in the cache or can be
77 public final V get(K key) { argument
78 if (key == null) {
79 throw new NullPointerException("key == null");
84 mapValue = map.get(key);
99 V createdValue = create(key);
106 mapValue = map.put(key, createdValue);
110 map.put(key, mapValue);
112 size += safeSizeOf(key, createdValue);
117 entryRemoved(false, key, createdValu
131 put(K key, V value) argument
192 remove(K key) argument
227 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument
244 create(K key) argument
248 safeSizeOf(K key, V value) argument
263 sizeOf(K key, V value) argument
[all...]
H A DMapCollections.java151 final Object key = colGetEntry(mIndex, 0);
153 return (key == null ? 0 : key.hashCode()) ^
256 final Object key = colGetEntry(i, 0);
258 result += ( (key == null ? 0 : key.hashCode()) ^
551 protected abstract int colIndexOfKey(Object key); argument
552 protected abstract int colIndexOfValue(Object key); argument
554 protected abstract void colPut(K key, V value); argument
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...]
H A DSparseArrayCompat.java72 * Gets the Object mapped from the specified key, or <code>null</code>
75 public E get(int key) { argument
76 return get(key, null);
80 * Gets the Object mapped from the specified key, or the specified Object
84 public E get(int key, E valueIfKeyNotFound) { argument
85 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
95 * Removes the mapping from the specified key, if there was any.
97 public void delete(int key) { argument
98 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
111 public void remove(int key) { argument
171 put(int key, E value) argument
275 indexOfKey(int key) argument
324 append(int key, E value) argument
[all...]
/frameworks/support/v4/jellybean/android/support/v4/app/
H A DBundleUtil.java17 public static Bundle[] getBundleArrayFromBundle(Bundle bundle, String key) { argument
18 Parcelable[] array = bundle.getParcelableArray(key);
24 bundle.putParcelableArray(key, typedArray);
H A DNotificationCompatJellybean.java138 for (String key : mExtras.keySet()) {
139 if (extras.containsKey(key)) {
140 mergeBundle.remove(key);
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/
H A DTransportMediatorCallback.java22 public void handleKey(KeyEvent key); argument
/frameworks/support/v4/kitkat/android/support/v4/media/session/
H A DMediaSessionCompatApi19.java79 public void onMetadataUpdate(int key, Object newValue) { argument
80 if (key == MediaMetadataEditor.RATING_KEY_BY_USER && newValue instanceof Rating) {
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java1269 private void include(List<Arc> arcs, Interval key, MutableInt size, argument
1277 if (key.size() == 0) {
1285 if (span.equals(key)) {
1290 arcs.add(new Arc(key, size));
1293 private void include(List<Arc> arcs, Interval key, MutableInt size) { argument
1294 include(arcs, key, size, true);
1364 Interval key = links.keys[i];
1365 include(result, key, links.values[i], false);
2109 In place of a HashMap from span to Int, use an array of key/value pairs - stored in Arcs.
2164 public void put(K key, argument
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DPositionMap.java23 * Like a SparseArray, but with the ability to offset key ranges for bulk insertions/deletions.
74 * Gets the Object mapped from the specified key, or <code>null</code>
77 public E get(int key) { argument
78 return get(key, null);
82 * Gets the Object mapped from the specified key, or the specified Object
86 public E get(int key, E valueIfKeyNotFound) { argument
87 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
97 * Removes the mapping from the specified key, if there was any.
99 public void delete(int key) { argument
100 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
113 remove(int key) argument
181 put(int key, E value) argument
285 indexOfKey(int key) argument
334 append(int key, E value) argument
[all...]
H A DRecyclerView.java2062 long key = getChangedHolderKey(holder);
2063 mState.mOldChangedHolders.put(key, holder);
2106 long key = getChangedHolderKey(holder);
2107 mState.mOldChangedHolders.put(key, holder);
2137 long key = getChangedHolderKey(holder);
2138 if (newChangedHolders != null && mState.mOldChangedHolders.get(key) != null) {
2139 newChangedHolders.put(key, holder);
2199 long key = mState.mOldChangedHolders.keyAt(i);
2200 ViewHolder oldHolder = mState.mOldChangedHolders.get(key);
2209 animateChange(oldHolder, newChangedHolders.get(key));
[all...]
/frameworks/volley/src/com/android/volley/
H A DCache.java28 * @param key Cache key
31 public Entry get(String key); argument
35 * @param key Cache key
38 public void put(String key, Entry entry); argument
48 * @param key Cache key
51 public void invalidate(String key, boolean fullExpire); argument
55 * @param key Cach
57 remove(String key) 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...]
H A DHttpClientStack.java60 for (String key : headers.keySet()) {
61 httpRequest.setHeader(key, headers.get(key));
68 for (String key : postParams.keySet()) {
69 result.add(new BasicNameValuePair(key, postParams.get(key)));
H A DNoCache.java30 public Entry get(String key) { argument
35 public void put(String key, Entry entry) { argument
39 public void invalidate(String key, boolean fullExpire) { argument
43 public void remove(String key) { argument
/frameworks/volley/tests/src/com/android/volley/mock/
H A DMockCache.java37 public Entry get(String key) { argument
47 public void put(String key, Entry entry) { argument
49 keyPut = key;
54 public void invalidate(String key, boolean fullExpire) { argument
58 public void remove(String key) { argument

Completed in 412 milliseconds

1234567891011>>