Searched refs:array (Results 1 - 25 of 653) sorted by last modified time

1234567891011>>

/frameworks/support/work/workmanager/src/main/java/androidx/work/
H A DArrayCreatingInputMerger.java32 * <li>If it's an array, put it in the output</li>
33 * <li>If it's a primitive, turn it into a size 1 array and put it in the output</li>
40 * <li>If they are primitives, turn them into a size 2 array</li>
42 * <li>Else if one is an array and the other is a primitive</li>
44 * <li>Make a longer array and concatenate them</li>
88 // We have an existing array of the same type.
92 // We have an existing array of the same type.
124 private Object concatenateArrayAndNonArray(Object array, Object obj) { argument
125 int arrayLength = Array.getLength(array);
127 System.arraycopy(array,
[all...]
H A DData.java35 * an enforced {@link #MAX_DATA_BYTES} limit on the serialized (byte array) size of the payloads.
73 * Get the boolean array value for the given key.
81 Boolean[] array = (Boolean[]) value;
82 boolean[] returnArray = new boolean[array.length];
83 for (int i = 0; i < array.length; ++i) {
84 returnArray[i] = array[i];
110 * Get the integer array value for the given key.
118 Integer[] array = (Integer[]) value;
119 int[] returnArray = new int[array.length];
120 for (int i = 0; i < array
[all...]
/frameworks/support/work/workmanager-firebase/src/androidTest/java/androidx/work/impl/background/firebase/
H A DFirebaseJobConverterTest.java235 private void assertHasIntInArray(int[] array, int expectedItem) { argument
237 for (int item : array) {
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
H A DFirebaseJobConverter.java180 int[] array = new int[size];
182 array[i] = integers.get(i);
184 return array;
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DNativeMedia.java157 this, R.array.source_array, android.R.layout.simple_spinner_item);
177 this, R.array.sink_array, android.R.layout.simple_spinner_item);
/frameworks/support/slices/core/src/main/java/androidx/slice/
H A DArrayUtils.java31 public static <T> boolean contains(T[] array, T item) { argument
32 for (T t : array) {
40 public static <T> T[] appendElement(Class<T> kind, T[] array, T element) { argument
43 if (array != null) {
44 end = array.length;
46 System.arraycopy(array, 0, result, 0, end);
55 public static <T> T[] removeElement(Class<T> kind, T[] array, T element) { argument
56 if (array != null) {
57 if (!contains(array, element)) {
58 return array;
[all...]
/frameworks/support/transition/src/main/java/androidx/transition/
H A DFloatArrayEvaluator.java23 * Each index into the array is treated as a separate value to interpolate. For example,
37 * @param reuseArray The array to modify and return from <code>evaluate</code>.
57 float[] array = mArray;
58 if (array == null) {
59 array = new float[startValue.length];
62 for (int i = 0; i < array.length; i++) {
65 array[i] = start + (fraction * (end - start));
67 return array;
H A DTransition.java429 * @return An array of property names as described in the class documentation for
526 private static boolean alreadyContains(int[] array, int searchIndex) { argument
527 int value = array[searchIndex];
529 if (array[i] == value) {
1401 * Returns the array of target IDs that this transition limits itself to
1402 * tracking and animating. If the array is null for both this method and
1415 * Returns the array of target views that this transition limits itself to
1416 * tracking and animating. If the array is null for both this method and
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/
H A DCollectionUtils.java31 * Returns an array with the arrays concatenated together.
38 for (T[] array : rest) {
39 totalLength += array.length;
43 for (T[] array : rest) {
44 System.arraycopy(array, 0, result, offset, array.length);
45 offset += array.length;
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
H A DAlertDialogTest.java463 final String[] content = context.getResources().getStringArray(R.array.alert_dialog_items);
497 .setItems(R.array.alert_dialog_items, mockClickListener);
501 R.array.alert_dialog_items), mockClickListener);
506 * array of content and verifies that:
508 * 1. The items in the array are rendered as CheckedTextViews inside a ListView
509 * 2. Each item in the array is displayed
511 * passed boolean array
562 // update the original state array
570 // original state array again
577 // to update the original state array
[all...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/content/res/
H A DGrowingArrayUtils.java23 * arrays. Common array operations are implemented for efficient use in dynamic containers.
25 * All methods in this class assume that the length of an array is equivalent to its capacity and
26 * NOT the number of elements in the array. The current size of the array is always passed in as a
32 * Appends an element to the end of the array, growing the array if there is no more room.
33 * @param array The array to which to append the element. This must NOT be null.
34 * @param currentSize The number of elements in the array. Must be less than or equal to
35 * array
40 append(T[] array, int currentSize, T element) argument
56 append(int[] array, int currentSize, int element) argument
71 append(long[] array, int currentSize, long element) argument
86 append(boolean[] array, int currentSize, boolean element) argument
109 insert(T[] array, int currentSize, int index, T element) argument
129 insert(int[] array, int currentSize, int index, int element) argument
148 insert(long[] array, int currentSize, int index, long element) argument
167 insert(boolean[] array, int currentSize, int index, boolean element) argument
[all...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DAppCompatDrawableManager.java502 private static boolean arrayContains(int[] array, int value) { argument
503 for (int id : array) {
H A DTintTypedArray.java67 private TintTypedArray(Context context, TypedArray array) { argument
69 mWrapped = array;
/frameworks/support/v7/recyclerview/src/test/java/androidx/recyclerview/widget/
H A DSortedListTest.java1644 private <T> boolean sortedListEquals(SortedList<T> sortedList, T[] array) { argument
1645 if (sortedList.size() != array.length) {
1649 if (!sortedList.get(i).equals(array[i])) {
/frameworks/support/wear/src/main/java/androidx/wear/widget/
H A DCircularProgressLayout.java147 R.array.circular_progress_layout_color_scheme_colors);
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
H A DSampleMediaRouterActivity.java254 // Populate an array adapter with streaming media items.
255 String[] mediaNames = getResources().getStringArray(R.array.media_names);
256 String[] mediaUris = getResources().getStringArray(R.array.media_uris);
/frameworks/support/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
H A DBottomSheetModalBase.java95 String[] array = new String[length];
96 System.arraycopy(Cheeses.sCheeseStrings, 0, array, 0, length);
97 recyclerView.setAdapter(new SimpleStringRecyclerViewAdapter(context, array));
/frameworks/support/frameworks/support/samples/SupportEmojiDemos/src/main/java/com/example/android/support/text/emoji/
H A DConfig.java104 R.array.com_google_android_gms_fonts_certs);
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DOnboardingDemoFragment.java59 mTitles = getResources().getStringArray(R.array.onboarding_page_titles);
60 mDescriptions = getResources().getStringArray(R.array.onboarding_page_descriptions);
H A DOnboardingDemoSupportFragment.java62 mTitles = getResources().getStringArray(R.array.onboarding_page_titles);
63 mDescriptions = getResources().getStringArray(R.array.onboarding_page_descriptions);
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
H A DSampleMediaRouterActivity.java254 // Populate an array adapter with streaming media items.
255 String[] mediaNames = getResources().getStringArray(R.array.media_names);
256 String[] mediaUris = getResources().getStringArray(R.array.media_uris);
/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
H A DBottomSheetModalBase.java95 String[] array = new String[length];
96 System.arraycopy(Cheeses.sCheeseStrings, 0, array, 0, length);
97 recyclerView.setAdapter(new SimpleStringRecyclerViewAdapter(context, array));
/frameworks/support/samples/SupportEmojiDemos/src/main/java/com/example/android/support/text/emoji/
H A DConfig.java104 R.array.com_google_android_gms_fonts_certs);
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DOnboardingDemoFragment.java59 mTitles = getResources().getStringArray(R.array.onboarding_page_titles);
60 mDescriptions = getResources().getStringArray(R.array.onboarding_page_descriptions);
H A DOnboardingDemoSupportFragment.java62 mTitles = getResources().getStringArray(R.array.onboarding_page_titles);
63 mDescriptions = getResources().getStringArray(R.array.onboarding_page_descriptions);

Completed in 320 milliseconds

1234567891011>>