Searched refs:target (Results 1 - 25 of 645) sorted by last modified time

1234567891011>>

/frameworks/support/frameworks/support/samples/SupportTransitionDemos/src/main/java/com/example/android/support/transition/widget/
H A DArcMotionUsage.java50 mTarget = findViewById(R.id.target);
/frameworks/support/samples/SupportTransitionDemos/src/main/java/com/example/android/support/transition/widget/
H A DArcMotionUsage.java50 mTarget = findViewById(R.id.target);
/frameworks/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/
H A DSwipeRefreshLayout.java64 * also be made the target of the gesture and will be forced to match both the
110 private View mTarget; // the target of the gesture
764 public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) { argument
770 public void onNestedScrollAccepted(View child, View target, int axes) { argument
772 mNestedScrollingParentHelper.onNestedScrollAccepted(child, target, axes);
780 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
817 public void onStopNestedScroll(View target) { argument
818 mNestedScrollingParentHelper.onStopNestedScroll(target);
831 public void onNestedScroll(final View target, final int dxConsumed, final int dyConsumed, argument
890 public boolean onNestedPreFling(View target, floa argument
896 onNestedFling(View target, float velocityX, float velocityY, boolean consumed) argument
[all...]
/frameworks/support/transition/src/androidTest/java/androidx/transition/
H A DFadeTest.java263 private void changeVisibility(final Fade fade, final ViewGroup container, final View target, argument
271 target.setVisibility(visibility);
278 * target starts fading in or out.
/frameworks/support/transition/src/main/java/androidx/transition/
H A DObjectAnimatorUtils.java27 static <T> ObjectAnimator ofPointF(T target, Property<T, PointF> property, Path path) { argument
29 return ObjectAnimator.ofObject(target, property, null, path);
31 return ObjectAnimator.ofFloat(target, new PathProperty<>(property, path), 0f, 1f);
H A DPathProperty.java57 public void set(T target, Float fraction) { argument
62 mProperty.set(target, mPointF);
H A DTransition.java102 * &lt;target android:targetId="@id/grayscaleContainer"/&gt;
113 * takes a set of {code target} tags, each of which lists a specific <code>targetId</code> which
222 // Number of per-target instances of this Transition currently running. This count is
256 * Constructs a Transition object with no target objects. A transition with
257 * no targets defaults to running on all target objects in the scene hierarchy
258 * (if the transition is not contained in a TransitionSet), or all target
446 * values that the transition may need to set up initial target values
450 * want to set initial values on target views prior to the overall
457 * on all target views, so a Transition that wants to animate from a
461 * the transition needs to run on the given target an
812 isValidTarget(View target) argument
996 addTarget(@onNull View target) argument
1094 removeTarget(@onNull View target) argument
1146 removeTarget(@onNull Class target) argument
1157 excludeObject(ArrayList<T> list, T target, boolean exclude) argument
1189 excludeTarget(@onNull View target, boolean exclude) argument
1267 excludeChildren(@onNull View target, boolean exclude) argument
1321 excludeView(ArrayList<View> list, View target, boolean exclude) argument
[all...]
H A DTransitionSet.java260 public TransitionSet addTarget(@NonNull View target) { argument
262 mTransitions.get(i).addTarget(target);
264 return (TransitionSet) super.addTarget(target);
311 public TransitionSet removeTarget(@NonNull View target) { argument
313 mTransitions.get(i).removeTarget(target);
315 return (TransitionSet) super.removeTarget(target);
320 public TransitionSet removeTarget(@NonNull Class target) { argument
322 mTransitions.get(i).removeTarget(target);
324 return (TransitionSet) super.removeTarget(target);
329 public TransitionSet removeTarget(@NonNull String target) { argument
338 excludeTarget(@onNull View target, boolean exclude) argument
[all...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DActionBarOverlayLayout.java468 public boolean onStartNestedScroll(View child, View target, int axes) { argument
476 public void onNestedScrollAccepted(View child, View target, int axes) { argument
477 mParentHelper.onNestedScrollAccepted(child, target, axes);
486 public void onNestedScroll(View target, int dxConsumed, int dyConsumed, argument
493 public void onStopNestedScroll(View target) { argument
507 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { argument
521 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
526 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { argument
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/test/
H A DNestedScrollingParent2Adapter.java28 public boolean onStartNestedScroll(@NonNull View child, @NonNull View target, argument
34 public void onNestedScrollAccepted(@NonNull View child, @NonNull View target, argument
39 public void onStopNestedScroll(@NonNull View target, @ViewCompat.NestedScrollType int type) { argument
43 public void onNestedScroll(@NonNull View target, int dxConsumed, int dyConsumed, argument
48 public void onNestedPreScroll(@NonNull View target, int dx, int dy, argument
53 public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) { argument
54 return onStartNestedScroll(child, target, nestedScrollAxes, ViewCompat.TYPE_TOUCH);
58 public void onNestedScrollAccepted(View child, View target, int axes) { argument
59 onNestedScrollAccepted(child, target, axes, ViewCompat.TYPE_TOUCH);
63 public void onNestedPreScroll(View target, in argument
68 onNestedScroll(View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed) argument
75 onStopNestedScroll(View target) argument
80 onNestedFling(@onNull View target, float velocityX, float velocityY, boolean consumed) argument
86 onNestedPreFling(@onNull View target, float velocityX, float velocityY) argument
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DBaseStaggeredGridLayoutManagerTest.java253 final int target;
257 target = tailTarget;
260 target = headTarget;
265 config + " target:" + target + " min:" + minPosition + ", max:" + maxPosition);
267 return new TargetTuple(target, itemLayoutDirection);
H A DBaseWrapContentTest.java410 LongSparseArray<String> target,
414 assertNull(target.get(id));
415 target.put(id, log(base));
409 collectInto( LongSparseArray<String> target, List<? extends BaseRecyclerViewAnimationsTest.AnimateLogBase> list) argument
H A DItemAnimatorV2ApiTest.java62 final RecyclerView.ViewHolder target = mRecyclerView.findViewHolderForAdapterPosition(9);
68 LoggingInfo pre = mAnimator.preLayoutInfoMap.get(target);
70 assertNull("test sanity", mAnimator.postLayoutInfoMap.get(target));
73 assertEquals(new AnimateDisappearance(target, pre, null),
153 final RecyclerView.ViewHolder target = mRecyclerView.findViewHolderForAdapterPosition(0);
172 LoggingInfo pre = mAnimator.preLayoutInfoMap.get(target);
174 LoggingInfo postInfo = mAnimator.postLayoutInfoMap.get(target);
179 assertEquals(new AnimateDisappearance(target, pre, postInfo),
182 assertEquals(new AnimateDisappearance(target, pre, postInfo),
H A DItemTouchHelperTest.java152 final RecyclerView.ViewHolder target = mRecyclerView
154 target.itemView.setOnLongClickListener(new View.OnLongClickListener() {
161 TouchUtils.longClickView(getInstrumentation(), target.itemView);
181 final RecyclerView.ViewHolder target = mRecyclerView
183 target.itemView.setOnLongClickListener(new View.OnLongClickListener() {
190 TouchUtils.longClickView(getInstrumentation(), target.itemView);
200 final RecyclerView.ViewHolder target = mRecyclerView
202 TouchUtils.dragViewToX(getInstrumentation(), target.itemView, Gravity.CENTER, targetX);
207 return mCalback.getSwipe(target) != null;
210 final SwipeRecord swipe = mCalback.getSwipe(target);
246 onMove(@onNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder, @NonNull RecyclerView.ViewHolder target) argument
[all...]
H A DLinearLayoutManagerBaseConfigSetTest.java119 final TargetTuple target = findInvisibleTarget(config);
120 final String logPrefix = config + " " + target;
124 scrollToPositionWithOffset(target.mPosition, offset);
126 final View child = mLayoutManager.findViewByPosition(target.mPosition);
313 final int target;
317 target = tailTarget;
320 target = headTarget;
325 config + " target:" + target + " min:" + minPosition + ", max:" + maxPosition);
327 return new TargetTuple(target, itemLayoutDirectio
[all...]
H A DRecyclerViewAnimationsTest.java222 final TestViewHolder target) throws Throwable {
239 .getViewForPosition(target.getAdapterPosition());
240 assertSame(targetView, target.itemView);
250 + "layout", target.itemView.getParent());
258 assertFalse(itemAnimator.contains(target, itemAnimator.mAnimatePersistenceList));
259 assertFalse(itemAnimator.contains(target, itemAnimator.mAnimateChangeList));
260 assertFalse(itemAnimator.contains(target, itemAnimator.mAnimateAppearanceList));
263 assertTrue(itemAnimator.contains(target, itemAnimator.mAnimateDisappearanceList));
265 assertTrue(recycledVHs.contains(target));
275 final TestViewHolder target) throw
493 postSetup(List<TestViewHolder> recycledList, TestViewHolder target) argument
[all...]
H A DRecyclerViewLayoutTest.java3002 Log.d(TAG, "scrolling to target position " + targetPosition);
3026 assertTrue("target position should be checked on time ",
3031 assertNotNull("should scroll to new target " + newTarget
5243 public boolean onStartNestedScroll(@NonNull View child, @NonNull View target, argument
5250 public void onNestedPreScroll(@NonNull View target, int dx, int dy, argument
5263 public void onStopNestedScroll(View target) { argument
5264 super.onStopNestedScroll(target);
5268 public void onStopNestedScroll(@NonNull View target, argument
5270 super.onStopNestedScroll(target, type);
H A DStaggeredGridLayoutManagerBaseConfigSetTest.java525 final TargetTuple target = findInvisibleTarget(mConfig);
529 scrollToPositionWithOffset(target.mPosition, offset);
531 final View child = mLayoutManager.findViewByPosition(target.mPosition);
634 final TargetTuple target = findInvisibleTarget(mConfig);
636 scrollToPosition(target.mPosition);
638 final View child = mLayoutManager.findViewByPosition(target.mPosition);
647 if (target.mLayoutDirection == LAYOUT_START) {
H A DTestedFrameLayout.java175 public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) { argument
176 return onStartNestedScroll(child, target, nestedScrollAxes, ViewCompat.TYPE_TOUCH);
180 public void onNestedScrollAccepted(View child, View target, int axes) { argument
181 onNestedScrollAccepted(child, target, axes, ViewCompat.TYPE_TOUCH);
185 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
186 onNestedPreScroll(target, dx, dy, consumed, ViewCompat.TYPE_TOUCH);
190 public void onNestedScroll(View target, int dxConsumed, int dyConsumed, int dxUnconsumed, argument
192 onNestedScroll(target, dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed,
197 public void onStopNestedScroll(View target) { argument
198 onStopNestedScroll(target, ViewCompa
209 onStartNestedScroll(@onNull View child, @NonNull View target, @ViewCompat.ScrollAxis int axes, @ViewCompat.NestedScrollType int type) argument
216 onNestedScrollAccepted(@onNull View child, @NonNull View target, @ViewCompat.ScrollAxis int axes, @ViewCompat.NestedScrollType int type) argument
224 onNestedPreFling(View target, float velocityX, float velocityY) argument
230 onNestedFling(View target, float velocityX, float velocityY, boolean consumed) argument
236 onNestedScroll(@onNull View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, @ViewCompat.NestedScrollType int type) argument
245 onNestedPreScroll(@onNull View target, int dx, int dy, @NonNull int[] consumed, @ViewCompat.NestedScrollType int type) argument
253 onStopNestedScroll(@onNull View target, @ViewCompat.NestedScrollType int type) argument
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DItemTouchHelper.java271 //re-used list for selecting a swap target
861 ViewHolder target = mCallback.chooseDropTarget(viewHolder, swapTargets, x, y);
862 if (target == null) {
867 final int toPosition = target.getAdapterPosition();
869 if (mCallback.onMove(mRecyclerView, viewHolder, target)) {
870 // keep target visible
872 target, toPosition, x, y);
993 // swipe target is chose w/o applying flags so it does not really check if swiping in that
1141 View target = findChildView(event);
1144 if (anim.mViewHolder.itemView == target) {
1332 prepareForDrop(@onNull View view, @NonNull View target, int x, int y) argument
1605 canDropOver(@onNull RecyclerView recyclerView, @NonNull ViewHolder current, @NonNull ViewHolder target) argument
1629 onMove(@onNull RecyclerView recyclerView, @NonNull ViewHolder viewHolder, @NonNull ViewHolder target) argument
1922 onMoved(@onNull final RecyclerView recyclerView, @NonNull final ViewHolder viewHolder, int fromPos, @NonNull final ViewHolder target, int toPos, int x, int y) argument
[all...]
H A DLinearLayoutManager.java427 * target is approaching, so it can decelerate early and smoothly and 2) while motion is
527 // LLM may decide to layout items for "extra" pixels to account for scrolling target,
1005 * target position visible. If you are looking for a similar behavior to
2093 public void prepareForDrop(@NonNull View view, @NonNull View target, int x, int y) { argument
2098 final int targetPos = getPosition(target);
2105 - (mOrientationHelper.getDecoratedStart(target)
2110 - mOrientationHelper.getDecoratedEnd(target));
2114 scrollToPositionWithOffset(targetPos, mOrientationHelper.getDecoratedStart(target));
2117 mOrientationHelper.getDecoratedEnd(target)
H A DLinearSmoothScroller.java28 * the target position becomes a child of the RecyclerView and then uses a
29 * {@link DecelerateInterpolator} to slowly approach to target position.
76 // Trigger a scroll to a further distance than TARGET_SEEK_SCROLL_DISTANCE_PX so that if target
77 // view is not laid out until interim target position is reached, we can detect the case before
78 // scrolling slows down and reschedule another interim target scroll
89 // Temporary variables to keep track of the interim scroll target. These values do not
135 + " of the target. Some calculations are wrong");
201 * @return SNAP_TO_START, SNAP_TO_END or SNAP_TO_ANY; depending on the current target vector
215 * @return SNAP_TO_START, SNAP_TO_END or SNAP_TO_ANY; depending on the current target vector
226 * When the target scrol
[all...]
H A DStaggeredGridLayoutManager.java864 // Use regular anchor position, offset according to pending offset and target
870 final int target = mPrimaryOrientation.getEndAfterPadding()
872 anchorInfo.mOffset = target - mPrimaryOrientation.getDecoratedEnd(child);
874 final int target = mPrimaryOrientation.getStartAfterPadding()
876 anchorInfo.mOffset = target - mPrimaryOrientation.getDecoratedStart(child);
1578 // The target position we are trying to reach.
/frameworks/support/v7/recyclerview/src/test/java/androidx/recyclerview/widget/
H A DDiffUtilTest.java364 final List<Item> target = new ArrayList<>();
365 target.addAll(before);
370 target.add(i + position, new Item(true));
377 target.remove(position);
383 Item item = target.remove(fromPosition);
384 target.add(toPosition, item);
391 Item existing = target.get(positionInList);
399 target.remove(positionInList);
400 target.add(positionInList, replica);
404 return target;
[all...]
/frameworks/support/wear/src/main/java/androidx/wear/widget/drawer/
H A DWearableDrawerLayout.java656 public boolean onNestedFling(@NonNull View target, float velocityX, float velocityY, argument
662 public boolean onNestedPreFling(@NonNull View target, float velocityX, float velocityY) { argument
663 maybeUpdateScrollingContentView(target);
666 if (target == mScrollingContentView) {
677 public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int[] consumed) { argument
678 maybeUpdateScrollingContentView(target);
682 public void onNestedScroll(@NonNull View target, int dxConsumed, int dyConsumed, argument
876 public void onNestedScrollAccepted(@NonNull View child, @NonNull View target, argument
878 mNestedScrollingParentHelper.onNestedScrollAccepted(child, target, nestedScrollAxes);
882 public boolean onStartNestedScroll(@NonNull View child, @NonNull View target, argument
889 onStopNestedScroll(@onNull View target) argument
[all...]

Completed in 391 milliseconds

1234567891011>>