Searched defs:key (Results 1 - 25 of 354) sorted by last modified time

1234567891011>>

/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...]
/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 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
/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/rs/cpp/util/
H A DTypeHelpers.h223 * a key/value pair
231 KEY key; member in struct:android::RSC::key_value_pair_t
234 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { }
235 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { }
236 key_value_pair_t(const KEY& k) : key(k) { }
238 return strictly_order_type(key, o.key);
241 return key;
269 hash_t hash_type(const TKey& 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/rs/java/tests/GenImages/src/com/android/rs/genimage/
H A DGenImage.java149 public String setup(int key) { argument
153 tmp = key % 2;
154 key /= 2;
163 tmp = key % 2;
164 key /= 2;
173 tmp = key % 3;
174 key /= 3;
190 tmp = key % 3;
191 key /= 3;
207 if (key >
231 int key = 0; field in class:Triangle
[all...]
/frameworks/rs/
H A DrsCompatibilityLib.cpp22 int property_get(const char *key, char *value, const char *default_value) { argument
25 len = __system_property_get(key, value);
H A DrsScriptC.cpp302 const char * key = mHal.info.exportedPragmaKeyList[i]; local
305 if (!strcmp(key, "version")) {
314 if (!strcmp(key, "stateVertex")) {
326 if (!strcmp(key, "stateRaster")) {
338 if (!strcmp(key, "stateFragment")) {
350 if (!strcmp(key, "stateStore")) {
/frameworks/rs/server/
H A DTypeHelpers.h223 * a key/value pair
231 KEY key; member in struct:android::key_value_pair_t
234 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { }
235 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { }
236 key_value_pair_t(const KEY& k) : key(k) { }
238 return strictly_order_type(key, o.key);
241 return key;
269 hash_t hash_type(const TKey& key);
[all...]
/frameworks/support/gradle/wrapper/
H A Dgradle-wrapper.jar ... .FileInputStream inStream java.io.IOException e String key java.util.regex.Matcher matcher Object argument ...
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DSparseArrayObjectAdapter.java8 * with an integer key which determines its order relative to other objects.
55 * Returns the index for the given key in the adapter.
57 * @param key The key to find in the array.
60 public int indexOf(int key) { argument
61 return mItems.indexOfKey(key);
76 * Sets the item for the given key.
78 * @param key The key associated with the item.
79 * @param item The item associated with the key
81 set(int key, Object item) argument
100 clear(int key) argument
123 lookup(int key) argument
[all...]
/frameworks/support/v4/api21/android/support/v4/media/
H A DMediaMetadataCompatApi21.java30 public static Bitmap getBitmap(Object metadataObj, String key) { argument
31 return ((MediaMetadata)metadataObj).getBitmap(key);
34 public static long getLong(Object metadataObj, String key) { argument
35 return ((MediaMetadata)metadataObj).getLong(key);
38 public static Object getRating(Object metadataObj, String key) { argument
39 return ((MediaMetadata)metadataObj).getRating(key);
42 public static CharSequence getText(Object metadataObj, String key) { argument
43 return ((MediaMetadata) metadataObj).getText(key);
51 public static void putBitmap(Object builderObj, String key, Bitmap value) { argument
52 ((MediaMetadata.Builder)builderObj).putBitmap(key, valu
55 putLong(Object builderObj, String key, long value) argument
59 putRating(Object builderObj, String key, Object ratingObj) argument
63 putText(Object builderObj, String key, CharSequence value) argument
67 putString(Object builderObj, String key, String value) argument
[all...]
/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 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...]
/frameworks/support/v4/java/android/support/v4/util/
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);

Completed in 3744 milliseconds

1234567891011>>