/frameworks/support/work/workmanager-ktx/src/androidTest/java/androidx/work/ |
H A D | DataTest.kt | 10 * Unless required by applicable law or agreed to in writing, software 31 val map = mapOf("one" to 1, "two" to 2L, "three" to "Three", "four" to longArrayOf(1L, 2L))
|
/frameworks/support/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/ |
H A D | SliceBrowser.java | 10 * Unless required by applicable law or agreed to in writing, software 62 * Example use of SliceView. Uses a search bar to select/auto-complete a slice uri which is 95 final int[] to = new int[]{android.R.id.text1}; 97 null, from, to, CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);
|
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/ |
H A D | SliceBrowser.java | 10 * Unless required by applicable law or agreed to in writing, software 62 * Example use of SliceView. Uses a search bar to select/auto-complete a slice uri which is 95 final int[] to = new int[]{android.R.id.text1}; 97 null, from, to, CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);
|
/frameworks/support/textclassifier/src/main/java/androidx/textclassifier/ |
H A D | EntityConfidence.java | 10 * Unless required by applicable law or agreed to in writing, software 55 * Constructs an EntityConfidence from a map of entity to confidence. 57 * Map entries that have 0 confidence are removed, and values greater than 1 are clamped to 1. 59 * @param source a map from entity to a confidence value in the range 0 (low confidence) to 65 // Prune non-existent entities and clamp to 1. 76 * high confidence to low confidence. 85 * 0 (low confidence) to 1 (high confidence). 0 indicates that the entity was not found for the 88 @FloatRange(from = 0.0, to = 1.0) 144 /** Helper to sor [all...] |
H A D | TextClassification.java | 10 * Unless required by applicable law or agreed to in writing, software 44 * Information for generating a widget to handle classified text. 46 * <p>A TextClassification object contains icons, labels, and intents that may be used to build a 47 * widget that can be used to act on classified text. There is the concept of a <i>primary 63 * TODO: describe how to start action mode for classified text. 73 // TODO: investigate a way to derive this based on device properties. 128 * to low confidence. 140 * 0 (low confidence) to 1 (high confidence). 0 indicates that the entity was not found for the 143 @FloatRange(from = 0.0, to = 1.0) 149 * Returns the number of <i>secondary</i> actions that are available to ac [all...] |
H A D | TextLinks.java | 10 * Unless required by applicable law or agreed to in writing, software 50 /** Links were successfully applied to the text. */ 52 /** No links exist to apply to text. Links count is zero. */ 54 /** No links applied to text. The links were filtered out. */ 56 /** The specified text does not match the text used to generate the links. */ 70 /** Do not replace {@link ClickableSpan}s that exist where the {@link TextLinkSpan} needs to 71 * be applied to. Do not apply the TextLinkSpan. **/ 73 /** Replace any {@link ClickableSpan}s that exist where the {@link TextLinkSpan} needs to be 74 * applied to [all...] |
H A D | TextSelection.java | 10 * Unless required by applicable law or agreed to in writing, software 78 * to low confidence. 90 * 0 (low confidence) to 1 (high confidence). 0 indicates that the entity was not found for the 93 @FloatRange(from = 0.0, to = 1.0) 100 * The TextClassifier that generates this object may use it as a way to internally identify 150 * Builder used to build {@link TextSelection} objects. 160 * Creates a builder used to build {@link TextSelection} objects. 175 * @param confidenceScore a value from 0 (low confidence) to 1 (high confidence). 177 * Values greater than 1 are clamped to 1. 181 @FloatRange(from = 0.0, to [all...] |
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/ |
H A D | TestUtilsMatchers.java | 10 * Unless required by applicable law or agreed to in writing, software 61 // One option is to check if we have a ColorDrawable and then call getColor 262 public static Matcher<List<Float>> inRange(final float from, final float to) { argument 278 if ((curr < from) || (curr > to)) { 280 from + " and " + to; 362 * @param childMatcher the type of the child to match on
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/graphics/drawable/ |
H A D | DrawerArrowDrawable.java | 10 * Unless required by applicable law or agreed to in writing, software 51 * Direction to make the arrow point towards the left. 59 * Direction to make the arrow point towards the right. 67 * Direction to make the arrow point towards the start. 79 * Direction to make the arrow point to the end. 126 * @param context used to get the configuration for the drawable from 155 * Sets the length of the arrow head (from tip to edge, perpendicular to the shaft). 167 * Returns the length of the arrow head (from tip to edg [all...] |
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | BaseRecyclerViewInstrumentationTest.java | 10 * Unless required by applicable law or agreed to in writing, software 456 Log.d(TAG, "SMOOTH scrolling to " + position); 493 assertThat("should be able to scroll in 10 seconds", !assertArrival || 578 // use a runnable to ensure RV layout is finished 640 Log.d(TAG, "will layout items from " + start + " to " + end); 709 // We override package protected methods to make them public. This is necessary to run 919 // consumePendingUpdatesInOnePass where it applies pending change to already 1036 * Similar to other methods but negative count means delete and position count means add. 1039 * item to inde 1066 moveItem(final int from, final int to, final boolean notifyChange) argument 1082 moveAndNotify(final int from, final int to) argument 1104 moveInUIThread(int from, int to) argument [all...] |
H A D | BaseStaggeredGridLayoutManagerTest.java | 10 * Unless required by applicable law or agreed to in writing, software 144 * enqueues an empty runnable to main thread so that we can be assured it did run 146 * @param count Number of times to run 498 // gradle does not yet let us customize manifest for tests which is necessary to test RTL. 518 // use a runnable to ensure RV layout is finished 535 // use a runnable to ensure RV layout is finished 564 // use a runnable to ensure RV layout is finished 889 protected void moveInUIThread(int from, int to) { argument 891 super.moveInUIThread(from, to); 893 mFullSpanItems.add(to); [all...] |
H A D | ItemTouchHelperTest.java | 10 * Unless required by applicable law or agreed to in writing, software 317 RecyclerView.ViewHolder from, to; field in class:ItemTouchHelperTest.MoveRecord 319 MoveRecord(RecyclerView.ViewHolder from, RecyclerView.ViewHolder to) { argument 321 this.to = to; 323 toPos = to.getAdapterPosition();
|
H A D | StaggeredGridLayoutManagerTest.java | 10 * Unless required by applicable law or agreed to in writing, software 112 // No actual binding needed, but we need to override this to prevent default 361 // Good to have colors for debugging 412 // Good to have colors for debugging 417 //noinspection deprecation used to support kitkat tests 505 // Good to have colors for debugging 510 //noinspection deprecation used to support kitkat tests 584 // Further scroll up in order to make the unfocusable rows visible. This process should 619 // Good to hav 1200 copyOfRange(int[] original, int from, int to) argument [all...] |
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | AdapterHelper.java | 10 * Unless required by applicable law or agreed to in writing, software 30 * To support animations, RecyclerView presents an older version the Adapter to best represent 36 * pre processing, AdapterHelper finds out which UpdateOps can be deferred to second layout pass 38 * according to previously deferred operation and dispatch them before the first layout pass. It 42 * Although operations may be forwarded to LayoutManager in different orders, resulting data set 43 * is guaranteed to be the consistent. 143 // to post layout stage. 146 // have any effect in pre-layout since their add ops are already deferred to 150 // Create an UpdateOp and dispatch it to LayoutManager. 158 // this position. Instead, post it to LayoutManage 539 onItemRangeMoved(int from, int to, int itemCount) argument 774 offsetPositionsForMove(int from, int to) argument [all...] |
H A D | GridLayoutManager.java | 10 * Unless required by applicable law or agreed to in writing, software 53 * Temporary array to keep views in layoutChunk method 59 // re-used variable to acquire decor insets from RecyclerView 65 * "layoutManager". If spanCount is not specified in the XML, it defaults to a 80 * @param context Current context, will be used to access resources. 89 * @param context Current context, will be used to access resources. 93 * @param reverseLayout When set to true, layouts from end to start. 221 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) { argument 256 * Sets the source to ge [all...] |
H A D | RecyclerView.java | 10 * Unless required by applicable law or agreed to in writing, software 103 * <li><em>Index:</em> The index of an attached child view as used in a call to 105 * <li><em>Binding:</em> The process of preparing a child view to display data corresponding 106 * to a <em>position</em> within the adapter.</li> 107 * <li><em>Recycle (view):</em> A view previously used to display data for a specific adapter 108 * position may be placed in a cache for later reuse to display the same type of data again 122 * {@link LayoutManager} to be able to detect data set changes in batches during a layout 123 * calculation. This saves LayoutManager from tracking adapter changes to calculate animations. 141 * last layout calculation. You can rely on these positions to b 4308 offsetPositionRecordsForMove(int from, int to) argument 6453 offsetPositionRecordsForMove(int from, int to) argument 9828 onItemsMoved(@onNull RecyclerView recyclerView, int from, int to, int itemCount) argument [all...] |
H A D | SortedList.java | 10 * Unless required by applicable law or agreed to in writing, software 30 * such that it can be bound to a {@link RecyclerView.Adapter 34 * binary search to retrieve items. If the sorting criteria of your items may change, make sure you 35 * call appropriate methods while editing them to avoid data inconsistencies. 55 * A reference to the previous set of data that is kept during a mutation operation (addAll or 99 * @param initialCapacity The initial capacity to hold items. 118 * Adds the given item to the list. If this is a new item, SortedList calls 123 * {@link Callback#areItemsTheSame(Object, Object)} to check if two items are the same item 124 * and uses {@link Callback#areContentsTheSame(Object, Object)} to decide whether it should 126 * reference to th 395 findSameItem(T item, T[] items, int from, int to) argument [all...] |
H A D | StaggeredGridLayoutManager.java | 10 * Unless required by applicable law or agreed to in writing, software 46 * It supports horizontal & vertical layout as well as an ability to layout children in reverse. 48 * Staggered grids are likely to have gaps at the edges of the layout. To avoid these gaps, 64 * Does not do anything to hide gaps. 76 * When scroll state is changed to {@link RecyclerView#SCROLL_STATE_IDLE}, StaggeredGrid will 78 * and move items to correct positions with animations. 80 * For example, if LayoutManager ends up with the following layout due to adapter changes: 87 * It will animate to the following state: 98 * While trying to find next view to focu 1519 onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) argument [all...] |
/frameworks/support/v7/recyclerview/src/test/java/androidx/recyclerview/widget/ |
H A D | AdapterHelperTest.java | 10 * Unless required by applicable law or agreed to in writing, software 63 // we clone adapter pre-process to run operations to see result 170 public void offsetPositionsForMove(int from, int to) { 172 if (from < to) { 174 end = to; 177 start = to; 186 holder.offsetPosition(to - from, false); 890 int to; 892 to 1017 mv(int from, int to) argument 1079 move(int from, int to) argument [all...] |
H A D | DiffUtilTest.java | 10 * Unless required by applicable law or agreed to in writing, software 446 private void move(int from, int to) { argument 448 mAfter.add(to, removed); 449 mLog.append("move(").append(from).append(",").append(to).append(");\n");
|
H A D | OpReorderTest.java | 10 * Unless required by applicable law or agreed to in writing, software 265 int to; 267 to = nextInt(random, updatedItemCount); 268 } while (to == from); 269 mv(from, to); 294 UpdateOp mv(int from, int to) { argument 295 return record(new UpdateOp(MOVE, from, to, null));
|
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/ |
H A D | PagerTitleStrip.java | 10 * Unless required by applicable law or agreed to in writing, software 44 * and previous pages of a {@link ViewPager}. It is intended to be used as a 47 * android:layout_gravity to TOP or BOTTOM to pin it to the top or bottom 49 * {@link PagerAdapter#getPageTitle(int)} in the adapter supplied to 189 public void setNonPrimaryAlpha(@FloatRange(from = 0.0, to = 1.0) float alpha) { 211 * Set the default text size to a given unit and value. 214 * <p>Example: to set the text size to 1 [all...] |
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/util/ |
H A D | DiffUtilActivity.java | 10 * Unless required by applicable law or agreed to in writing, software 151 int to = mRandom.nextInt(output.size()); 152 output.add(to, output.remove(from));
|
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/touch/ |
H A D | ItemTouchHelperActivity.java | 10 * Unless required by applicable law or agreed to in writing, software 275 public void move(int from, int to) { argument 277 mItems.add(to > from ? to - 1 : to, prev); 278 notifyItemMoved(from, to);
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/util/ |
H A D | DiffUtilActivity.java | 10 * Unless required by applicable law or agreed to in writing, software 151 int to = mRandom.nextInt(output.size()); 152 output.add(to, output.remove(from));
|