Searched refs:epicenter (Results 1 - 19 of 19) sorted by relevance

/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
H A DTrackingVisibility.java39 Rect epicenter = getEpicenter();
40 if (epicenter != null) {
41 mEpicenter[0] = new Rect(epicenter);
52 Rect epicenter = getEpicenter();
53 if (epicenter != null) {
54 mEpicenter[0] = new Rect(epicenter);
H A DTrackingTransition.java68 Rect epicenter = getEpicenter();
69 if (epicenter != null) {
70 mEpicenter[0] = new Rect(epicenter);
H A DFragmentTransitionTest.java874 private void verifyAndClearTransition(TargetTracking transition, Rect epicenter, argument
876 if (epicenter == null) {
879 assertEquals(epicenter, transition.getCapturedEpicenter());
/frameworks/base/core/java/android/transition/
H A DCircularPropagation.java23 * A propagation that varies with the distance to the epicenter of the Transition
24 * or center of the scene if no epicenter exists. When a View is visible in the
25 * start of the transition, Views farther from the epicenter will transition
26 * sooner than Views closer to the epicenter. When a View is not in the start
28 * transition sooner when closer to the epicenter and later when farther from
29 * the epicenter. This is the default TransitionPropagation used with
40 * the epicenter and View centered at the epicenter will have a difference
74 Rect epicenter = transition.getEpicenter();
77 if (epicenter !
[all...]
H A DSidePropagation.java26 * and, orthogonally, the distance to epicenter. If the transitioning View is visible in
79 Rect epicenter = transition.getEpicenter();
100 if (epicenter != null) {
101 epicenterX = epicenter.centerX();
102 epicenterY = epicenter.centerY();
H A DExplode.java38 * no epicenter was provided.</p>
132 Rect epicenter = getEpicenter();
133 if (epicenter == null) {
139 focalX = epicenter.centerX();
140 focalY = epicenter.centerY();
/frameworks/support/transition/src/main/java/androidx/transition/
H A DCircularPropagation.java24 * A propagation that varies with the distance to the epicenter of the Transition
25 * or center of the scene if no epicenter exists. When a View is visible in the
26 * start of the transition, Views farther from the epicenter will transition
27 * sooner than Views closer to the epicenter. When a View is not in the start
29 * transition sooner when closer to the epicenter and later when farther from
30 * the epicenter. This is the default TransitionPropagation used with
40 * the epicenter and View centered at the epicenter will have a difference
74 Rect epicenter = transition.getEpicenter();
77 if (epicenter !
[all...]
H A DSidePropagation.java28 * and, orthogonally, the distance to epicenter. If the transitioning View is visible in
80 Rect epicenter = transition.getEpicenter();
101 if (epicenter != null) {
102 epicenterX = epicenter.centerX();
103 epicenterY = epicenter.centerY();
H A DFragmentTransitionSupport.java85 final Rect epicenter = new Rect();
86 getBoundsOnScreen(view, epicenter);
91 return epicenter;
306 public void setEpicenter(Object transitionObj, final Rect epicenter) { argument
312 if (epicenter == null || epicenter.isEmpty()) {
315 return epicenter;
H A DExplode.java40 * no epicenter was provided.</p>
134 Rect epicenter = getEpicenter();
135 if (epicenter == null) {
141 focalX = epicenter.centerX();
142 focalY = epicenter.centerY();
/frameworks/support/fragment/src/main/java/androidx/fragment/app/
H A DFragmentTransitionCompat21.java78 final Rect epicenter = new Rect();
79 getBoundsOnScreen(view, epicenter);
84 return epicenter;
302 public void setEpicenter(Object transitionObj, final Rect epicenter) { argument
308 if (epicenter == null || epicenter.isEmpty()) {
311 return epicenter;
H A DFragmentTransitionImpl.java66 * Sets a transition epicenter to the rectangle of a given View.
74 protected void getBoundsOnScreen(View view, Rect epicenter) { argument
77 epicenter.set(loc[0], loc[1], loc[0] + view.getWidth(), loc[1] + view.getHeight());
285 * Sets the epicenter of a transition to a rect object. The object can be modified until
288 public abstract void setEpicenter(Object transitionObj, Rect epicenter); argument
H A DFragmentTransition.java529 * views, and sets up the epicenter on the transitions.
531 * The epicenter of exit and shared element transitions is the first shared element
532 * in the outgoing fragment. The epicenter of the entering transition is the first shared
548 * epicenter
550 * epicenter
601 final Rect epicenter;
611 epicenter = new Rect();
615 impl.setEpicenter(enterTransition, epicenter);
618 epicenter = null;
628 impl.getBoundsOnScreen(epicenterView, epicenter);
[all...]
/frameworks/base/core/java/android/app/
H A DActivityTransitionCoordinator.java310 * Sets the transition epicenter to the position of the first shared element.
313 View epicenter = null;
317 epicenter = mSharedElements.get(index);
320 setEpicenter(epicenter);
327 Rect epicenter = new Rect();
328 view.getBoundsOnScreen(epicenter);
329 mEpicenterCallback.setEpicenter(epicenter);
1045 public void setEpicenter(Rect epicenter) { mEpicenter = epicenter; } argument
H A DFragmentTransition.java454 * views, and sets up the epicenter on the transitions.
456 * The epicenter of exit and shared element transitions is the first shared element
457 * in the outgoing fragment. The epicenter of the entering transition is the first shared
473 * epicenter
475 * epicenter
525 final Rect epicenter;
534 epicenter = new Rect();
541 return epicenter;
546 epicenter = null;
554 epicenterView.getBoundsOnScreen(epicenter);
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuPopupHelper.java176 * Additionally, the popup's transition epicenter (see
265 // Set the transition epicenter to be roughly finger (or mouse
271 final Rect epicenter = new Rect(xOffset - halfSize, yOffset - halfSize,
273 popup.setEpicenterBounds(epicenter);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
H A DMenuPopupHelper.java185 * Additionally, the popup's transition epicenter (see
279 // Set the transition epicenter to be roughly finger (or mouse
285 final Rect epicenter = new Rect(xOffset - halfSize, yOffset - halfSize,
287 popup.setEpicenterBounds(epicenter);
/frameworks/base/core/java/com/android/internal/transition/
H A DEpicenterTranslateClipReveal.java40 * epicenter bounds during a visibility transition.
135 // Translate the view to be centered on the epicenter.
192 final Rect epicenter = getEpicenter();
193 if (epicenter != null) {
194 return epicenter;
/frameworks/base/core/java/android/widget/
H A DPopupWindow.java455 * Sets the bounds used as the epicenter of the enter and exit transitions.
457 * Transitions use a point or Rect, referred to as the epicenter, to orient
459 * used as the default epicenter.
464 * @param bounds the epicenter bounds relative to the anchor view, or
465 * {@code null} to use the default epicenter
1917 final Rect epicenter = getTransitionEpicenter();
1922 decorView.startExitTransition(exitTransition, anchorRoot, epicenter,
1942 * Returns the window-relative epicenter bounds to be used by enter and
1948 * @return the window-relative epicenter bounds to be used by enter and
1967 // Use anchor-relative epicenter, i
2483 startExitTransition(@onNull Transition transition, @Nullable final View anchorRoot, @Nullable final Rect epicenter, @NonNull final TransitionListener listener) argument
[all...]

Completed in 271 milliseconds