/frameworks/wilhelm/src/autogen/ |
H A D | IID_to_MPH.c | 318 unsigned key = asso_values[((unsigned char *)iid)[3]] + local 320 if (key <= MAX_HASH_VALUE) { 321 int MPH = hash_to_MPH[key];
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/system/ |
H A D | Settings.java | 74 * 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 D | GuidedAction.java | 895 * 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 D | GuidedDatePickerAction.java | 181 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 D | SparseArrayObjectAdapter.java | 8 * 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/v17/preference-leanback/src/android/support/v17/preference/ |
H A D | LeanbackListPreferenceDialogFragment.java | 39 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);
|
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/ |
H A D | GridWidgetTest.java | 173 * 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 D | MediaMetadataCompatApi21.java | 31 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 D | BundleCompatDonut.java | 38 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 D | BundleCompat.java | 35 * @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 D | FragmentManager.java | 303 * @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 D | NotificationCompat.java | 156 * 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 D | MediaMetadataCompat.java | 194 * 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...] |
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | LongSparseArray.java | 38 * 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 D | LruCache.java | 72 * 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 D | MapCollections.java | 151 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 D | SimpleArrayMap.java | 61 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 D | SparseArrayCompat.java | 72 * 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 D | BundleUtil.java | 17 public static Bundle[] getBundleArrayFromBundle(Bundle bundle, String key) { argument 18 Parcelable[] array = bundle.getParcelableArray(key); 24 bundle.putParcelableArray(key, typedArray);
|
/frameworks/support/v4/jellybean-mr2/android/support/v4/app/ |
H A D | BundleCompatJellybeanMR2.java | 26 public static IBinder getBinder(Bundle bundle, String key) { argument 27 return bundle.getBinder(key); 30 public static void putBinder(Bundle bundle, String key, IBinder binder) { argument 31 bundle.putBinder(key, binder);
|
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/ |
H A D | TransportMediatorCallback.java | 22 public void handleKey(KeyEvent key); argument
|
/frameworks/support/v4/kitkat/android/support/v4/media/session/ |
H A D | MediaSessionCompatApi19.java | 94 public void onMetadataUpdate(int key, Object newValue) { argument 95 if (key == MediaMetadataEditor.RATING_KEY_BY_USER && newValue instanceof Rating) {
|
/frameworks/support/v4/tests/java/android/support/v4/app/ |
H A D | FragmentTransitionTest.java | 366 private boolean waitForStart(TestFragment fragment, int key) throws InterruptedException { argument 367 boolean started = fragment.waitForStart(key); 372 private boolean waitForEnd(TestFragment fragment, int key) throws InterruptedException { argument 373 if (!waitForStart(fragment, key)) { 376 final boolean ended = fragment.waitForEnd(key);
|
/frameworks/support/v4/tests/java/android/support/v4/app/test/ |
H A D | FragmentTestActivity.java | 102 String key = TRANSITION_KEY + i; 103 mTransitionIds[i] = savedInstanceState.getInt(key, mTransitionIds[i]); 113 String key = TRANSITION_KEY + i; 114 outState.putInt(key, mTransitionIds[i]); 158 private Transition loadTransition(int key) { argument 159 final int id = mTransitionIds[key]; 164 transition.addListener(((TransitionCalledListener)mListeners[key]));
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AppCompatDrawableManager.java | 218 final long key = createCacheKey(tv); 220 Drawable dr = getCachedDrawable(context, key); 237 addDrawableToCache(context, key, dr); 315 final long key = createCacheKey(tv); 317 Drawable dr = getCachedDrawable(context, key); 354 if (addDrawableToCache(context, key, dr) && DEBUG) { 374 private Drawable getCachedDrawable(@NonNull final Context context, final long key) { argument 382 final WeakReference<ConstantState> wr = cache.get(key); 384 // We have the key, and the secret 390 cache.delete(key); 397 addDrawableToCache(@onNull final Context context, final long key, @NonNull final Drawable drawable) argument [all...] |