/frameworks/base/core/java/android/transition/ |
D | Scene.java | 32 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 …]
|
D | TransitionManager.java | 73 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/ |
D | Scene.java | 36 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 …]
|
D | TransitionManager.java | 85 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/ |
D | SceneTest.java | 40 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()
|
D | BaseTransitionTest.java | 67 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/ |
D | LoginActivityFromResources.java | 22 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()
|
D | InterruptionTest.java | 23 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()
|
D | LoginActivity.java | 22 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()
|
D | ResourceLoadingTest.java | 22 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()
|
D | Demo5.java | 22 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()
|
D | ScenesTestAutoTransition2.java | 23 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()
|
D | ScenesTestAutoTransition.java | 24 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()
|
D | ChangingText.java | 22 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()
|
D | ScenesTestAutoTargets.java | 26 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()
|
D | Demo3.java | 25 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()
|
D | ClippingText.java | 23 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()
|
D | FadingTest.java | 22 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()
|
D | Demo2.java | 25 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()
|
D | Demo1.java | 26 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()
|
D | SequenceTestSimple.java | 23 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()
|
D | ScenesTestv21.java | 26 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()
|
D | Demo4.java | 25 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/ |
D | CustomUsage.java | 22 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()
|
D | SceneUsage.java | 21 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()
|