Home
last modified time | relevance | path

Searched refs:sceneRoot (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/support/transition/src/android/support/transition/
DTransitionManager.java137 ViewGroup sceneRoot = scene.getSceneRoot(); in getTransition() local
138 if (sceneRoot != null) { in getTransition()
140 Scene currScene = Scene.getCurrentScene(sceneRoot); in getTransition()
167 final ViewGroup sceneRoot = scene.getSceneRoot(); in changeScene() local
169 if (!sPendingTransitions.contains(sceneRoot)) { in changeScene()
173 sPendingTransitions.add(sceneRoot); in changeScene()
176 transitionClone.setSceneRoot(sceneRoot); in changeScene()
178 Scene oldScene = Scene.getCurrentScene(sceneRoot); in changeScene()
183 sceneChangeSetup(sceneRoot, transitionClone); in changeScene()
187 sceneChangeRunTransition(sceneRoot, transitionClone); in changeScene()
[all …]
DSlide.java69 float getGoneX(ViewGroup sceneRoot, View view); in getGoneX() argument
72 float getGoneY(ViewGroup sceneRoot, View view); in getGoneY() argument
78 public float getGoneY(ViewGroup sceneRoot, View view) { in getGoneY() argument
86 public float getGoneX(ViewGroup sceneRoot, View view) { in getGoneX() argument
93 public float getGoneX(ViewGroup sceneRoot, View view) {
94 return view.getTranslationX() - sceneRoot.getWidth();
100 public float getGoneX(ViewGroup sceneRoot, View view) {
101 final boolean isRtl = ViewCompat.getLayoutDirection(sceneRoot)
105 x = view.getTranslationX() + sceneRoot.getWidth();
107 x = view.getTranslationX() - sceneRoot.getWidth();
[all …]
DSidePropagation.java73 public long getStartDelay(ViewGroup sceneRoot, Transition transition, in getStartDelay() argument
92 sceneRoot.getLocationOnScreen(loc); in getStartDelay()
93 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); in getStartDelay()
94 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); in getStartDelay()
95 int right = left + sceneRoot.getWidth(); in getStartDelay()
96 int bottom = top + sceneRoot.getHeight(); in getStartDelay()
108 float distance = distance(sceneRoot, viewCenterX, viewCenterY, epicenterX, epicenterY, in getStartDelay()
110 float maxDistance = getMaxDistance(sceneRoot); in getStartDelay()
121 private int distance(View sceneRoot, int viewX, int viewY, int epicenterX, int epicenterY, in distance() argument
125 final boolean isRtl = ViewCompat.getLayoutDirection(sceneRoot) in distance()
[all …]
DScene.java59 public static Scene getSceneForLayout(@NonNull ViewGroup sceneRoot, @LayoutRes int layoutId, in getSceneForLayout() argument
63 (SparseArray<Scene>) sceneRoot.getTag(R.id.transition_scene_layoutid_cache); in getSceneForLayout()
66 sceneRoot.setTag(R.id.transition_scene_layoutid_cache, scenes); in getSceneForLayout()
72 scene = new Scene(sceneRoot, layoutId, context); in getSceneForLayout()
88 public Scene(@NonNull ViewGroup sceneRoot) { in Scene() argument
89 mSceneRoot = sceneRoot; in Scene()
107 private Scene(ViewGroup sceneRoot, int layoutId, Context context) { in Scene() argument
109 mSceneRoot = sceneRoot; in Scene()
123 public Scene(@NonNull ViewGroup sceneRoot, @NonNull View layout) { in Scene() argument
124 mSceneRoot = sceneRoot; in Scene()
DExplode.java81 public Animator onAppear(ViewGroup sceneRoot, View view, in onAppear() argument
89 calculateOut(sceneRoot, bounds, mTempLoc); in onAppear()
98 public Animator onDisappear(ViewGroup sceneRoot, View view, in onDisappear() argument
118 calculateOut(sceneRoot, bounds, mTempLoc); in onDisappear()
126 private void calculateOut(View sceneRoot, Rect bounds, int[] outVector) { in calculateOut() argument
127 sceneRoot.getLocationOnScreen(mTempLoc); in calculateOut()
135 focalX = sceneRootX + (sceneRoot.getWidth() / 2) in calculateOut()
136 + Math.round(sceneRoot.getTranslationX()); in calculateOut()
137 focalY = sceneRootY + (sceneRoot.getHeight() / 2) in calculateOut()
138 + Math.round(sceneRoot.getTranslationY()); in calculateOut()
[all …]
DCircularPropagation.java57 public long getStartDelay(ViewGroup sceneRoot, Transition transition, in getStartDelay() argument
82 sceneRoot.getLocationOnScreen(loc); in getStartDelay()
83 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) in getStartDelay()
84 + sceneRoot.getTranslationX()); in getStartDelay()
85 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2) in getStartDelay()
86 + sceneRoot.getTranslationY()); in getStartDelay()
89 float maxDistance = distance(0, 0, sceneRoot.getWidth(), sceneRoot.getHeight()); in getStartDelay()
DVisibility.java240 public Animator createAnimator(@NonNull ViewGroup sceneRoot, in createAnimator() argument
246 return onAppear(sceneRoot, startValues, visInfo.mStartVisibility, in createAnimator()
249 return onDisappear(sceneRoot, startValues, visInfo.mStartVisibility, in createAnimator()
273 public Animator onAppear(ViewGroup sceneRoot, TransitionValues startValues, int startVisibility, in onAppear() argument
289 return onAppear(sceneRoot, endValues.view, startValues, endValues); in onAppear()
309 public Animator onAppear(ViewGroup sceneRoot, View view, TransitionValues startValues, in onAppear() argument
330 public Animator onDisappear(ViewGroup sceneRoot, TransitionValues startValues, in onDisappear() argument
359 overlayView = TransitionUtils.copyViewImage(sceneRoot, startView, in onDisappear()
363 if (id != View.NO_ID && sceneRoot.findViewById(id) != null in onDisappear()
394 sceneRoot.getLocationOnScreen(loc); in onDisappear()
[all …]
DTransitionSet.java408 protected void createAnimators(ViewGroup sceneRoot, TransitionValuesMaps startValues, in createAnimators() argument
425 childTransition.createAnimators(sceneRoot, startValues, endValues, startValuesList, in createAnimators()
503 public void pause(View sceneRoot) { in pause() argument
504 super.pause(sceneRoot); in pause()
507 mTransitions.get(i).pause(sceneRoot); in pause()
514 public void resume(View sceneRoot) { in resume() argument
515 super.resume(sceneRoot); in resume()
518 mTransitions.get(i).resume(sceneRoot); in resume()
536 void forceToEnd(ViewGroup sceneRoot) { in forceToEnd() argument
537 super.forceToEnd(sceneRoot); in forceToEnd()
[all …]
DTransitionInflater.java89 public TransitionManager inflateTransitionManager(int resource, ViewGroup sceneRoot) { in inflateTransitionManager() argument
92 return createTransitionManagerFromXml(parser, Xml.asAttributeSet(parser), sceneRoot); in inflateTransitionManager()
280 AttributeSet attrs, ViewGroup sceneRoot) throws XmlPullParserException, IOException { in createTransitionManagerFromXml() argument
298 loadTransition(attrs, parser, sceneRoot, transitionManager); in createTransitionManagerFromXml()
306 private void loadTransition(AttributeSet attrs, XmlPullParser parser, ViewGroup sceneRoot, in loadTransition() argument
314 Scene fromScene = (fromId < 0) ? null : Scene.getSceneForLayout(sceneRoot, fromId, in loadTransition()
318 Scene toScene = (toId < 0) ? null : Scene.getSceneForLayout(sceneRoot, toId, mContext); in loadTransition()
/frameworks/base/core/java/android/transition/
DTransitionManager.java156 ViewGroup sceneRoot = scene.getSceneRoot(); in getTransition() local
157 if (sceneRoot != null) { in getTransition()
159 Scene currScene = Scene.getCurrentScene(sceneRoot); in getTransition()
186 final ViewGroup sceneRoot = scene.getSceneRoot(); in changeScene() local
187 if (!sPendingTransitions.contains(sceneRoot)) { in changeScene()
191 sPendingTransitions.add(sceneRoot); in changeScene()
194 transitionClone.setSceneRoot(sceneRoot); in changeScene()
196 Scene oldScene = Scene.getCurrentScene(sceneRoot); in changeScene()
201 sceneChangeSetup(sceneRoot, transitionClone); in changeScene()
205 sceneChangeRunTransition(sceneRoot, transitionClone); in changeScene()
[all …]
DSlide.java61 float getGoneX(ViewGroup sceneRoot, View view, float fraction); in getGoneX() argument
64 float getGoneY(ViewGroup sceneRoot, View view, float fraction); in getGoneY() argument
70 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) { in getGoneY() argument
78 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { in getGoneX() argument
85 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) {
86 return view.getTranslationX() - sceneRoot.getWidth() * fraction;
92 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) {
93 final boolean isRtl = sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
96 x = view.getTranslationX() + sceneRoot.getWidth() * fraction;
98 x = view.getTranslationX() - sceneRoot.getWidth() * fraction;
[all …]
DSidePropagation.java73 public long getStartDelay(ViewGroup sceneRoot, Transition transition, in getStartDelay() argument
92 sceneRoot.getLocationOnScreen(loc); in getStartDelay()
93 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); in getStartDelay()
94 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); in getStartDelay()
95 int right = left + sceneRoot.getWidth(); in getStartDelay()
96 int bottom = top + sceneRoot.getHeight(); in getStartDelay()
108 float distance = distance(sceneRoot, viewCenterX, viewCenterY, epicenterX, epicenterY, in getStartDelay()
110 float maxDistance = getMaxDistance(sceneRoot); in getStartDelay()
121 private int distance(View sceneRoot, int viewX, int viewY, int epicenterX, int epicenterY, in distance() argument
125 final boolean isRtl = sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in distance()
[all …]
DScene.java55 public static Scene getSceneForLayout(ViewGroup sceneRoot, int layoutId, Context context) { in getSceneForLayout() argument
56 SparseArray<Scene> scenes = (SparseArray<Scene>) sceneRoot.getTag( in getSceneForLayout()
60 sceneRoot.setTagInternal(com.android.internal.R.id.scene_layoutid_cache, scenes); in getSceneForLayout()
66 scene = new Scene(sceneRoot, layoutId, context); in getSceneForLayout()
82 public Scene(ViewGroup sceneRoot) { in Scene() argument
83 mSceneRoot = sceneRoot; in Scene()
101 private Scene(ViewGroup sceneRoot, int layoutId, Context context) { in Scene() argument
103 mSceneRoot = sceneRoot; in Scene()
117 public Scene(ViewGroup sceneRoot, View layout) { in Scene() argument
118 mSceneRoot = sceneRoot; in Scene()
[all …]
DExplode.java80 public Animator onAppear(ViewGroup sceneRoot, View view, in onAppear() argument
88 calculateOut(sceneRoot, bounds, mTempLoc); in onAppear()
97 public Animator onDisappear(ViewGroup sceneRoot, View view, in onDisappear() argument
117 calculateOut(sceneRoot, bounds, mTempLoc); in onDisappear()
125 private void calculateOut(View sceneRoot, Rect bounds, int[] outVector) { in calculateOut() argument
126 sceneRoot.getLocationOnScreen(mTempLoc); in calculateOut()
134 focalX = sceneRootX + (sceneRoot.getWidth() / 2) in calculateOut()
135 + Math.round(sceneRoot.getTranslationX()); in calculateOut()
136 focalY = sceneRootY + (sceneRoot.getHeight() / 2) in calculateOut()
137 + Math.round(sceneRoot.getTranslationY()); in calculateOut()
[all …]
DCircularPropagation.java57 public long getStartDelay(ViewGroup sceneRoot, Transition transition, in getStartDelay() argument
82 sceneRoot.getLocationOnScreen(loc); in getStartDelay()
83 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) in getStartDelay()
84 + sceneRoot.getTranslationX()); in getStartDelay()
85 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2) in getStartDelay()
86 + sceneRoot.getTranslationY()); in getStartDelay()
89 double maxDistance = distance(0, 0, sceneRoot.getWidth(), sceneRoot.getHeight()); in getStartDelay()
DVisibility.java240 public Animator createAnimator(ViewGroup sceneRoot, TransitionValues startValues, in createAnimator() argument
246 return onAppear(sceneRoot, startValues, visInfo.startVisibility, in createAnimator()
249 return onDisappear(sceneRoot, startValues, visInfo.startVisibility, in createAnimator()
275 public Animator onAppear(ViewGroup sceneRoot, in onAppear() argument
293 return onAppear(sceneRoot, endValues.view, startValues, endValues); in onAppear()
311 public Animator onAppear(ViewGroup sceneRoot, View view, TransitionValues startValues, in onAppear() argument
350 public Animator onDisappear(ViewGroup sceneRoot, in onDisappear() argument
380 overlayView = TransitionUtils.copyViewImage(sceneRoot, startView, in onDisappear()
384 if (id != View.NO_ID && sceneRoot.findViewById(id) != null in onDisappear()
408 final ViewGroup finalSceneRoot = sceneRoot; in onDisappear()
[all …]
DTransitionSet.java379 protected void createAnimators(ViewGroup sceneRoot, TransitionValuesMaps startValues, in createAnimators() argument
396 childTransition.createAnimators(sceneRoot, startValues, endValues, startValuesList, in createAnimators()
473 public void pause(View sceneRoot) { in pause() argument
474 super.pause(sceneRoot); in pause()
477 mTransitions.get(i).pause(sceneRoot); in pause()
483 public void resume(View sceneRoot) { in resume() argument
484 super.resume(sceneRoot); in resume()
487 mTransitions.get(i).resume(sceneRoot); in resume()
503 void forceToEnd(ViewGroup sceneRoot) { in forceToEnd() argument
504 super.forceToEnd(sceneRoot); in forceToEnd()
[all …]
DTransitionUtils.java90 public static View copyViewImage(ViewGroup sceneRoot, View view, View parent) { in copyViewImage() argument
94 sceneRoot.transformMatrixToLocal(matrix); in copyViewImage()
104 Bitmap bitmap = createViewBitmap(view, matrix, bounds, sceneRoot); in copyViewImage()
164 ViewGroup sceneRoot) { in createViewBitmap() argument
167 if (sceneRoot == null || !sceneRoot.isAttachedToWindow()) { in createViewBitmap()
170 sceneRoot.getOverlay().add(view); in createViewBitmap()
192 sceneRoot.getOverlay().remove(view); in createViewBitmap()
DTransitionInflater.java104 ViewGroup sceneRoot) { in inflateTransitionManager() argument
108 return createTransitionManagerFromXml(parser, Xml.asAttributeSet(parser), sceneRoot); in inflateTransitionManager()
295 AttributeSet attrs, ViewGroup sceneRoot) throws XmlPullParserException, IOException { in createTransitionManagerFromXml() argument
313 loadTransition(attrs, sceneRoot, transitionManager); in createTransitionManagerFromXml()
321 private void loadTransition(AttributeSet attrs, ViewGroup sceneRoot, in loadTransition() argument
327 Scene fromScene = (fromId < 0) ? null: Scene.getSceneForLayout(sceneRoot, fromId, mContext); in loadTransition()
329 Scene toScene = (toId < 0) ? null : Scene.getSceneForLayout(sceneRoot, toId, mContext); in loadTransition()
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/
DFadeAndShortSlide.java62 float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { in getGoneX() argument
67 float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { in getGoneY() argument
72 float getHorizontalDistance(ViewGroup sceneRoot) { in getHorizontalDistance() argument
73 return mDistance >= 0 ? mDistance : (sceneRoot.getWidth() / 4); in getHorizontalDistance()
76 float getVerticalDistance(ViewGroup sceneRoot) { in getVerticalDistance() argument
77 return mDistance >= 0 ? mDistance : (sceneRoot.getHeight() / 4); in getVerticalDistance()
82 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) {
83 final boolean isRtl = sceneRoot.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
86 x = view.getTranslationX() + t.getHorizontalDistance(sceneRoot);
88 x = view.getTranslationX() - t.getHorizontalDistance(sceneRoot);
[all …]
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DInterruptionTest.java43 ViewGroup sceneRoot = findViewById(R.id.sceneRoot); in onCreate() local
45 mScene1 = Scene.getSceneForLayout(sceneRoot, R.layout.interruption_inner_1, this); in onCreate()
46 mScene2 = Scene.getSceneForLayout(sceneRoot, R.layout.interruption_inner_2, this); in onCreate()
47 mScene3 = Scene.getSceneForLayout(sceneRoot, R.layout.interruption_inner_3, this); in onCreate()
48 mScene4 = Scene.getSceneForLayout(sceneRoot, R.layout.interruption_inner_4, this); in onCreate()
/frameworks/base/core/tests/coretests/src/android/transition/
DSlideTransitionTest.java51 final View sceneRoot = mActivity.findViewById(R.id.container); in testShortSlide() local
56 final float finalOffsetOut = sceneRoot.getHeight() * slideFraction; in testShortSlide()
73 final float initialOffsetIn = sceneRoot.getHeight() * slideFraction; in testShortSlide()
92 final ViewGroup sceneRoot = (ViewGroup) mActivity.findViewById(R.id.container); in setVisibilityInTransition() local
93 final View view = sceneRoot.findViewById(viewId); in setVisibilityInTransition()
99 TransitionManager.beginDelayedTransition(sceneRoot, transition); in setVisibilityInTransition()
/frameworks/support/fragment/java/android/support/v4/app/
DFragmentTransitionImpl.java119 public abstract void beginDelayedTransition(ViewGroup sceneRoot, Object transition); in beginDelayedTransition() argument
145 void setNameOverridesReordered(final View sceneRoot, in setNameOverridesReordered() argument
168 OneShotPreDrawListener.add(sceneRoot, new Runnable() { in setNameOverridesReordered()
230 void setNameOverridesOrdered(final View sceneRoot, in setNameOverridesOrdered() argument
232 OneShotPreDrawListener.add(sceneRoot, new Runnable() { in setNameOverridesOrdered()
289 void scheduleNameReset(final ViewGroup sceneRoot, in scheduleNameReset() argument
291 OneShotPreDrawListener.add(sceneRoot, new Runnable() { in scheduleNameReset()
DFragmentTransition.java210 ViewGroup sceneRoot = null; in configureTransitionsReordered() local
212 sceneRoot = (ViewGroup) fragmentManager.mContainer.onFindViewById(containerId); in configureTransitionsReordered()
214 if (sceneRoot == null) { in configureTransitionsReordered()
231 Object sharedElementTransition = configureSharedElementsReordered(impl, sceneRoot, in configureTransitionsReordered()
258 impl.beginDelayedTransition(sceneRoot, transition); in configureTransitionsReordered()
259 impl.setNameOverridesReordered(sceneRoot, sharedElementsOut, in configureTransitionsReordered()
308 ViewGroup sceneRoot = null; in configureTransitionsOrdered() local
310 sceneRoot = (ViewGroup) fragmentManager.mContainer.onFindViewById(containerId); in configureTransitionsOrdered()
312 if (sceneRoot == null) { in configureTransitionsOrdered()
330 Object sharedElementTransition = configureSharedElementsOrdered(impl, sceneRoot, in configureTransitionsOrdered()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DTitleHelper.java58 public TitleHelper(ViewGroup sceneRoot, View titleView) { in TitleHelper() argument
59 if (sceneRoot == null || titleView == null) { in TitleHelper()
62 mSceneRoot = sceneRoot; in TitleHelper()

123