Searched refs:key (Results 1 - 25 of 852) 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/v17/leanback/src/android/support/v17/leanback/system/
H A DSettings.java74 * Returns the boolean preference for the given key.
76 public boolean getBoolean(String key) { argument
77 return getOrSetBoolean(key, false, false);
81 * Sets the boolean preference for the given key. If an app uses this api to override
84 public void setBoolean(String key, boolean value) { argument
85 getOrSetBoolean(key, true, value);
88 boolean getOrSetBoolean(String key, boolean set, boolean value) { argument
89 if (key.compareTo(PREFER_STATIC_SHADOWS) == 0) {
92 throw new IllegalArgumentException("Invalid key");
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DGuidedAction.java895 * Save action into a bundle using a given key. When isAutoRestoreEna() is true:
902 * @param key Key used to save the Action.
904 public void onSaveInstanceState(Bundle bundle, String key) { argument
906 bundle.putString(key, getTitle().toString());
908 bundle.putString(key, getDescription().toString());
910 bundle.putBoolean(key, isChecked());
915 * Restore action from a bundle using a given key. When isAutoRestore() is true:
922 * @param key Key used to restore the Action.
924 public void onRestoreInstanceState(Bundle bundle, String key) { argument
926 String title = bundle.getString(key);
[all...]
H A DGuidedDatePickerAction.java181 public void onSaveInstanceState(Bundle bundle, String key) { argument
182 bundle.putLong(key, getDate());
186 public void onRestoreInstanceState(Bundle bundle, String key) { argument
187 setDate(bundle.getLong(key, getDate()));
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...]
H A DViewsStateBundle.java91 String key = i.next();
92 mChildStates.put(key, savedBundle.getSparseParcelableArray(key));
154 String key = getSaveStatesKey(id);
157 SparseArray<Parcelable> container = mChildStates.remove(key);
172 String key = getSaveStatesKey(id);
175 mChildStates.put(key, container);
189 String key = getSaveStatesKey(id);
195 bundle.putSparseParcelableArray(key, container);
/frameworks/support/v17/preference-leanback/src/android/support/v17/preference/
H A DLeanbackListPreferenceDialogFragment.java39 public static LeanbackListPreferenceDialogFragment newInstanceSingle(String key) { argument
41 args.putString(ARG_KEY, key);
50 public static LeanbackListPreferenceDialogFragment newInstanceMulti(String key) { argument
52 args.putString(ARG_KEY, key);
H A DLeanbackPreferenceDialogFragment.java26 public static final String ARG_KEY = "key";
49 final String key = getArguments().getString(LeanbackListPreferenceDialogFragment.ARG_KEY);
50 mPreference = (DialogPreference) fragment.findPreference(key);
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
H A DGridWidgetTest.java173 * Scrolls using given key.
175 protected void scroll(int key, Runnable verify) throws Throwable { argument
180 sendRepeatedKeys(10, key);
191 int key;
194 key = KeyEvent.KEYCODE_DPAD_RIGHT;
196 key = KeyEvent.KEYCODE_DPAD_LEFT;
199 key = KeyEvent.KEYCODE_DPAD_UP;
201 scroll(key, verify);
205 int key;
208 key
[all...]
/frameworks/support/v4/api21/android/support/v4/media/
H A DMediaMetadataCompatApi21.java31 public static Bitmap getBitmap(Object metadataObj, String key) { argument
32 return ((MediaMetadata)metadataObj).getBitmap(key);
35 public static long getLong(Object metadataObj, String key) { argument
36 return ((MediaMetadata)metadataObj).getLong(key);
39 public static Object getRating(Object metadataObj, String key) { argument
40 return ((MediaMetadata)metadataObj).getRating(key);
43 public static CharSequence getText(Object metadataObj, String key) { argument
44 return ((MediaMetadata) metadataObj).getText(key);
60 public static void putBitmap(Object builderObj, String key, Bitmap value) { argument
61 ((MediaMetadata.Builder)builderObj).putBitmap(key, valu
64 putLong(Object builderObj, String key, long value) argument
68 putRating(Object builderObj, String key, Object ratingObj) argument
72 putText(Object builderObj, String key, CharSequence value) argument
76 putString(Object builderObj, String key, String value) argument
[all...]
/frameworks/support/v4/donut/android/support/v4/app/
H A DBundleCompatDonut.java38 public static IBinder getBinder(Bundle bundle, String key) { argument
51 return (IBinder) sGetIBinderMethod.invoke(bundle, key);
61 public static void putBinder(Bundle bundle, String key, IBinder binder) { argument
75 sPutIBinderMethod.invoke(bundle, key, binder);
/frameworks/support/v4/java/android/support/v4/app/
H A DBundleCompat.java35 * @param key The key to use while getting the {@link IBinder}.
38 public static IBinder getBinder(Bundle bundle, String key) { argument
40 return BundleCompatJellybeanMR2.getBinder(bundle, key);
42 return BundleCompatDonut.getBinder(bundle, key);
50 * @param key The key to use while putting the {@link IBinder}.
53 public static void putBinder(Bundle bundle, String key, IBinder binder) { argument
55 BundleCompatJellybeanMR2.putBinder(bundle, key, binder);
57 BundleCompatDonut.putBinder(bundle, key, binde
[all...]
H A DFragmentManager.java303 * @param key The name of the entry in the bundle.
306 public abstract void putFragment(Bundle bundle, String key, Fragment fragment); argument
313 * @param key The name of the entry in the bundle.
317 public abstract Fragment getFragment(Bundle bundle, String key); argument
668 public void putFragment(Bundle bundle, String key, Fragment fragment) { argument
673 bundle.putInt(key, fragment.mIndex);
677 public Fragment getFragment(Bundle bundle, String key) { argument
678 int index = bundle.getInt(key, -1);
683 throwException(new IllegalStateException("Fragment no longer exists for key "
684 + key
[all...]
H A DFragmentStatePagerAdapter.java191 String key = "f" + i;
192 mFragmentManager.putFragment(state, key, f);
212 for (String key: keys) {
213 if (key.startsWith("f")) {
214 int index = Integer.parseInt(key.substring(1));
215 Fragment f = mFragmentManager.getFragment(bundle, key);
223 Log.w(TAG, "Bad fragment at key " + key);
H A DNotificationCompat.java156 * which support such rendering. Requires a group key also be set using
199 * Notification extras key: this is the title of the notification,
205 * Notification extras key: this is the title of the notification when shown in expanded form,
211 * Notification extras key: this is the main text payload, as supplied to
217 * Notification extras key: this is a third line of text, as supplied to
223 * Notification extras key: this is the remote input history, as supplied to
231 * The extra with this key is of type CharSequence[] and contains the most recent entry at
239 * Notification extras key: this is a small piece of additional text as supplied to
245 * Notification extras key: this is a line of summary information intended to be shown
252 * Notification extras key
3931 getNotificationArrayFromBundle(Bundle bundle, String key) argument
[all...]
/frameworks/support/v4/java/android/support/v4/media/
H A DMediaBrowserServiceCompat.java109 * A key for passing the MediaItem to the ResultReceiver in getItem.
156 for (IBinder key : mConnections.keySet()) {
157 ConnectionRecord connection = mConnections.get(key);
163 mConnections.remove(key);
1109 * The lookup key for a boolean that indicates whether the browser service should return a
1112 * <p>When creating a media browser for a given media browser service, this key can be
1115 * the key in the root hint when {@link #onGetRoot(String, int, Bundle)} is called back.
1125 * The lookup key for a boolean that indicates whether the browser service should return a
1128 * <p>When creating a media browser for a given media browser service, this key can be
1132 * the key i
[all...]
H A DMediaMetadataCompat.java194 * A String key for identifying the content. This value is specific to the
196 * unique key for the underlying content.
306 * Returns true if the given key is contained in the metadata
308 * @param key a String key
309 * @return true if the key exists in this metadata, false otherwise
311 public boolean containsKey(String key) { argument
312 return mBundle.containsKey(key);
316 * Returns the value associated with the given key, or null if no mapping of
317 * the desired type exists for the given key o
323 getText(@extKey String key) argument
335 getString(@extKey String key) argument
350 getLong(@ongKey String key) argument
361 getRating(@atingKey String key) argument
385 getBitmap(@itmapKey String key) argument
616 putText(@extKey String key, CharSequence value) argument
653 putString(@extKey String key, String value) argument
680 putLong(@ongKey String key, long value) argument
704 putRating(@atingKey String key, RatingCompat value) argument
735 putBitmap(@itmapKey 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...]

Completed in 1850 milliseconds

1234567891011>>