Home
last modified time | relevance | path

Searched refs:Scene (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/core/java/android/transition/
DScene.java32 public final class Scene { class
55 public static Scene getSceneForLayout(ViewGroup sceneRoot, int layoutId, Context context) { in getSceneForLayout()
56 SparseArray<Scene> scenes = (SparseArray<Scene>) sceneRoot.getTag( in getSceneForLayout()
59 scenes = new SparseArray<Scene>(); in getSceneForLayout()
62 Scene scene = scenes.get(layoutId); in getSceneForLayout()
66 scene = new Scene(sceneRoot, layoutId, context); in getSceneForLayout()
82 public Scene(ViewGroup sceneRoot) { in Scene() method in Scene
101 private Scene(ViewGroup sceneRoot, int layoutId, Context context) { in Scene() method in Scene
117 public Scene(ViewGroup sceneRoot, View layout) { in Scene() method in Scene
126 public Scene(ViewGroup sceneRoot, ViewGroup layout) { in Scene() method in Scene
[all …]
DTransitionManager.java73 ArrayMap<Scene, Transition> mSceneTransitions = new ArrayMap<Scene, Transition>();
74 ArrayMap<Scene, ArrayMap<Scene, Transition>> mScenePairTransitions =
75 new ArrayMap<Scene, ArrayMap<Scene, Transition>>();
117 public void setTransition(Scene scene, Transition transition) { in setTransition()
133 public void setTransition(Scene fromScene, Scene toScene, Transition transition) { in setTransition()
134 ArrayMap<Scene, Transition> sceneTransitionMap = mScenePairTransitions.get(toScene); in setTransition()
136 sceneTransitionMap = new ArrayMap<Scene, Transition>(); in setTransition()
154 public Transition getTransition(Scene scene) { in getTransition()
159 Scene currScene = Scene.getCurrentScene(sceneRoot); in getTransition()
161 ArrayMap<Scene, Transition> sceneTransitionMap = mScenePairTransitions.get(scene); in getTransition()
[all …]
/frameworks/support/transition/src/main/java/androidx/transition/
DScene.java36 public class Scene { class
60 public static Scene getSceneForLayout(@NonNull ViewGroup sceneRoot, @LayoutRes int layoutId, in getSceneForLayout()
63 SparseArray<Scene> scenes = in getSceneForLayout()
64 (SparseArray<Scene>) sceneRoot.getTag(R.id.transition_scene_layoutid_cache); in getSceneForLayout()
69 Scene scene = scenes.get(layoutId); in getSceneForLayout()
73 scene = new Scene(sceneRoot, layoutId, context); in getSceneForLayout()
89 public Scene(@NonNull ViewGroup sceneRoot) { in Scene() method in Scene
108 private Scene(ViewGroup sceneRoot, int layoutId, Context context) { in Scene() method in Scene
124 public Scene(@NonNull ViewGroup sceneRoot, @NonNull View layout) { in Scene() method in Scene
195 static void setCurrentScene(View view, Scene scene) { in setCurrentScene()
[all …]
DTransitionManager.java85 private ArrayMap<Scene, Transition> mSceneTransitions = new ArrayMap<>();
86 private ArrayMap<Scene, ArrayMap<Scene, Transition>> mScenePairTransitions = new ArrayMap<>();
100 public void setTransition(@NonNull Scene scene, @Nullable Transition transition) { in setTransition()
116 public void setTransition(@NonNull Scene fromScene, @NonNull Scene toScene, in setTransition()
118 ArrayMap<Scene, Transition> sceneTransitionMap = mScenePairTransitions.get(toScene); in setTransition()
136 private Transition getTransition(Scene scene) { in getTransition()
141 Scene currScene = Scene.getCurrentScene(sceneRoot); in getTransition()
143 ArrayMap<Scene, Transition> sceneTransitionMap = mScenePairTransitions in getTransition()
167 private static void changeScene(Scene scene, Transition transition) { in changeScene()
179 Scene oldScene = Scene.getCurrentScene(sceneRoot); in changeScene()
[all …]
/frameworks/support/transition/src/androidTest/java/androidx/transition/
DSceneTest.java40 Scene scene = new Scene(root); in testGetSceneRoot()
50 Scene scene = new Scene(root, layout); in testSceneWithViewGroup()
70 Scene scene = new Scene(root, view); in testSceneWithView()
88 Scene scene = new Scene(root); in testEnterAction()
99 Scene scene = new Scene(root); in testExitAction()
111 Scene scene = new Scene(root); in testExitAction_withoutEnter()
122 Scene scene = Scene.getSceneForLayout(root, R.layout.support_scene0, activity); in testGetSceneForLayout_cache()
124 Scene.getSceneForLayout(root, R.layout.support_scene0, activity), in testGetSceneForLayout_cache()
DBaseTransitionTest.java67 Scene loadScene(final int layoutId) throws Throwable { in loadScene()
68 final Scene[] scene = new Scene[1]; in loadScene()
72 scene[0] = Scene.getSceneForLayout(mRoot, layoutId, rule.getActivity()); in loadScene()
83 private void startTransition(final Scene scene) throws Throwable { in startTransition()
97 void enterScene(final Scene scene) throws Throwable { in enterScene()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DLoginActivityFromResources.java22 import android.transition.Scene;
30 Scene mCurrentScene;
32 Scene mLoginScene, mPasswordScene, mIncorrectPasswordScene, mSuccessScene, mUsernameTakenScene,
44 public void applyScene(Scene scene) { in applyScene()
53 mLoginScene = Scene.getSceneForLayout(mSceneRoot, R.layout.activity_login, this); in sendMessage()
54 mPasswordScene = Scene.getSceneForLayout(mSceneRoot, R.layout.login_password, this); in sendMessage()
55 mIncorrectPasswordScene = Scene.getSceneForLayout(mSceneRoot, R.layout in sendMessage()
57 … mUsernameTakenScene = Scene.getSceneForLayout(mSceneRoot, R.layout.username_taken, this); in sendMessage()
58 mSuccessScene = Scene.getSceneForLayout(mSceneRoot, R.layout.success, this); in sendMessage()
59 mNewUserScene = Scene.getSceneForLayout(mSceneRoot, R.layout.new_user, this); in sendMessage()
DInterruptionTest.java23 import android.transition.Scene;
31 private Scene mScene1;
32 private Scene mScene2;
33 private Scene mScene3;
34 private Scene mScene4;
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()
DLoginActivity.java22 import android.transition.Scene;
34 Scene mCurrentScene;
36 Scene mLoginScene, mPasswordScene, mIncorrectPasswordScene, mSuccessScene, mUsernameTakenScene,
46 mLoginScene = Scene.getSceneForLayout(mSceneRoot, R.layout.activity_login, this); in onCreate()
47 mPasswordScene = Scene.getSceneForLayout(mSceneRoot, R.layout.login_password, this); in onCreate()
48 … mIncorrectPasswordScene = Scene.getSceneForLayout(mSceneRoot, R.layout.incorrect_password, this); in onCreate()
49 mUsernameTakenScene = Scene.getSceneForLayout(mSceneRoot, R.layout.username_taken, this); in onCreate()
50 mSuccessScene = Scene.getSceneForLayout(mSceneRoot, R.layout.success, this); in onCreate()
51 mNewUserScene = Scene.getSceneForLayout(mSceneRoot, R.layout.new_user, this); in onCreate()
75 public void applyScene(Scene scene) { in applyScene()
DResourceLoadingTest.java22 import android.transition.Scene;
57 Scene loadedScene = new Scene(mSceneRoot); in sendMessage()
66 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this); in sendMessage()
70 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.results_screen, this); in sendMessage()
DDemo5.java22 import android.transition.Scene;
28 static Scene mCurrentScene;
29 Scene mSearchScreen, mResultsScreen;
39 mSearchScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this); in onCreate()
40 mResultsScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.results_screen, this); in onCreate()
DScenesTestAutoTransition2.java23 import android.transition.Scene;
29 static Scene mCurrentScene;
31 Scene mResultsScreen, mSearchScreen;
41 mSearchScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this); in onCreate()
42 mResultsScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.results_screen, this); in onCreate()
DScenesTestAutoTransition.java24 import android.transition.Scene;
31 static Scene mCurrentScene;
33 Scene mResultsScreen, mSearchScreen;
43 mSearchScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this); in onCreate()
44 mResultsScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.results_screen, this); in onCreate()
DChangingText.java22 import android.transition.Scene;
30 Scene mScene1, mScene2;
33 Scene mCurrentScene;
43 mScene1 = Scene.getSceneForLayout(mSceneRoot, R.layout.changing_text_1, this); in onCreate()
44 mScene2 = Scene.getSceneForLayout(mSceneRoot, R.layout.changing_text_2, this); in onCreate()
DScenesTestAutoTargets.java26 import android.transition.Scene;
33 static Scene mCurrentScene;
35 Scene mResultsScreen, mSearchScreen;
45 mSearchScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this); in onCreate()
46 mResultsScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.results_screen, this); in onCreate()
DDemo3.java25 import android.transition.Scene;
32 static Scene mCurrentScene;
33 Scene mSearchScreen, mResultsScreen;
44 mSearchScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this); in onCreate()
45 mResultsScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.results_screen, this); in onCreate()
DClippingText.java23 import android.transition.Scene;
33 Scene mScene1, mScene2;
38 Scene mCurrentScene;
48 mScene1 = Scene.getSceneForLayout(mSceneRoot, R.layout.clipping_text_1, this); in onCreate()
49 mScene2 = Scene.getSceneForLayout(mSceneRoot, R.layout.clipping_text_2, this); in onCreate()
DFadingTest.java22 import android.transition.Scene;
31 Scene mScene1, mScene2;
34 Scene mCurrentScene;
61 mScene1 = Scene.getSceneForLayout(mSceneRoot, R.layout.fading_test, this); in onCreate()
62 mScene2 = Scene.getSceneForLayout(mSceneRoot, R.layout.fading_test_scene_2, this); in onCreate()
DDemo2.java25 import android.transition.Scene;
31 static Scene mCurrentScene;
33 Scene mSearchScreen, mResultsScreen;
53 mSearchScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this); in sendMessage()
54 mResultsScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this); in sendMessage()
DDemo1.java26 import android.transition.Scene;
33 static Scene mCurrentScene;
35 Scene mSearchScreen, mResultsScreen;
48 mResultsScreen = new Scene(mSceneRoot); in onCreate()
57 mSearchScreen = new Scene(mSceneRoot); in onCreate()
DSequenceTestSimple.java23 import android.transition.Scene;
34 Scene mScene1, mScene2;
38 Scene mCurrentScene;
50 mScene1 = Scene.getSceneForLayout(mSceneRoot, R.layout.fading_test_simple, this); in onCreate()
51 mScene2 = Scene.getSceneForLayout(mSceneRoot, R.layout.fading_test_simple2, this); in onCreate()
DScenesTestv21.java26 import android.transition.Scene;
33 static Scene mCurrentScene;
35 Scene mResultsScreen, mSearchScreen;
45 mSearchScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this); in onCreate()
46 mResultsScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.results_screen, this); in onCreate()
DDemo4.java25 import android.transition.Scene;
32 static Scene mCurrentScene;
33 Scene mSearchScreen, mResultsScreen;
44 mSearchScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this); in onCreate()
45 mResultsScreen = Scene.getSceneForLayout(mSceneRoot, R.layout.results_screen, this); in onCreate()
/frameworks/support/samples/SupportTransitionDemos/src/main/java/com/example/android/support/transition/widget/
DCustomUsage.java22 import androidx.transition.Scene;
43 Scene[] setUpScenes(ViewGroup root) { in setUpScenes()
44 return new Scene[]{ in setUpScenes()
45 Scene.getSceneForLayout(root, R.layout.custom0, this), in setUpScenes()
46 Scene.getSceneForLayout(root, R.layout.custom1, this), in setUpScenes()
47 Scene.getSceneForLayout(root, R.layout.custom2, this), in setUpScenes()
52 void go(Scene scene) { in go()
DSceneUsage.java21 import androidx.transition.Scene;
32 Scene[] setUpScenes(ViewGroup root) { in setUpScenes()
33 return new Scene[]{ in setUpScenes()
34 Scene.getSceneForLayout(root, R.layout.scene0, this), in setUpScenes()
35 Scene.getSceneForLayout(root, R.layout.scene1, this), in setUpScenes()
40 void go(Scene scene) { in go()

123