Home
last modified time | relevance | path

Searched refs:scene (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/support/transition/tests/src/android/support/transition/
DSceneTest.java37 Scene scene = new Scene(root); in testGetSceneRoot() local
38 assertThat(scene.getSceneRoot(), is(sameInstance(root))); in testGetSceneRoot()
47 Scene scene = new Scene(root, layout); in testSceneWithViewGroup() local
50 scene.setEnterAction(enterAction); in testSceneWithViewGroup()
51 scene.setExitAction(exitAction); in testSceneWithViewGroup()
52 scene.enter(); in testSceneWithViewGroup()
57 scene.exit(); in testSceneWithViewGroup()
67 Scene scene = new Scene(root, view); in testSceneWithView() local
70 scene.setEnterAction(enterAction); in testSceneWithView()
71 scene.setExitAction(exitAction); in testSceneWithView()
[all …]
/frameworks/base/docs/html/training/transitions/
Dscenes.jd17 values. The transitions framework can run animations between a starting and an ending scene.
18 The starting scene is often determined automatically from the current state of the user
19 interface. For the ending scene, the framework enables you to create a scene from a layout
22 <p>This lesson shows you how to create scenes in your app and how to define scene actions.
36 scene represents the state of the view hierarchy at the time you created the
38 recreate the scene. The framework creates the scene from the entire view hierarchy in the
39 file; you can not create a scene from part of a layout file.</p>
42 the scene root from your layout as a {@link android.view.ViewGroup} instance and then call the
44 scene root and the resource ID of the layout file that contains the view hierarchy for the
45 scene.</p>
[all …]
Doverview.jd88 scene. This procedure is described in detail in the remaining lessons in this class.</p>
94 <p>A scene stores the state of a view hierarchy, including all its views and their property
96 Storing the view hierarchy state in a scene enables you to transition into that state from
97 another scene. The framework provides the {@link android.transition.Scene} class to represent
98 a scene.</p>
101 {@link android.view.ViewGroup} objects in your code. Creating a scene in your code is useful
104 <p>In most cases, you do not create a starting scene explicitly. If you have applied a
105 transition, the framework uses the previous ending scene as the starting scene for any
109 <p>A scene can also define its own actions that run when you make a scene change. For example,
110 this feature is useful for cleaning up view settings after you transition to a scene.</p>
[all …]
Dcustom-transitions.jd77 method. The framework calls this method for every view in the starting scene. The method
125 once for every target view in the ending scene. In all other respects, {@link
150 <p>To animate the changes to a view between its state in the starting scene and its state in
151 the ending scene, you provide an animator by overriding the {@link
153 framework calls this method, it passes in the scene root view and the {@link
160 implemented as a custom transition. If the starting scene has five targets of which two are
161 removed from the ending scene, and the ending scene has the three targets from the starting
162 scene plus a new target, then the framework calls {@link
164 animate the fading out and fading in of the targets that stay in both scene objects; two more calls
165 animate the fading out of the targets removed from the ending scene; and one call
[all …]
/frameworks/support/transition/src/android/support/transition/
DTransitionManager.java65 public static void go(@NonNull Scene scene) { in go() argument
66 sImpl.go(scene.mImpl); in go()
83 public static void go(@NonNull Scene scene, @Nullable Transition transition) { in go() argument
84 sImpl.go(scene.mImpl, transition == null ? null : transition.mImpl); in go()
137 public void setTransition(@NonNull Scene scene, @Nullable Transition transition) { in setTransition() argument
138 mImpl.setTransition(scene.mImpl, transition == null ? null : transition.mImpl); in setTransition()
167 public void transitionTo(@NonNull Scene scene) { in transitionTo() argument
168 mImpl.transitionTo(scene.mImpl); in transitionTo()
DScene.java81 private Scene(SceneImpl scene) { in Scene() argument
82 mImpl = scene; in Scene()
110 Scene scene = scenes.get(layoutId); in getSceneForLayout() local
111 if (scene != null) { in getSceneForLayout()
112 return scene; in getSceneForLayout()
114 scene = new Scene(sImpl.getSceneForLayout(sceneRoot, layoutId, context)); in getSceneForLayout()
115 scenes.put(layoutId, scene); in getSceneForLayout()
116 return scene; in getSceneForLayout()
/frameworks/base/core/java/android/transition/
DTransitionManager.java116 public void setTransition(Scene scene, Transition transition) { in setTransition() argument
117 mSceneTransitions.put(scene, transition); in setTransition()
151 private Transition getTransition(Scene scene) { in getTransition() argument
153 ViewGroup sceneRoot = scene.getSceneRoot(); in getTransition()
158 ArrayMap<Scene, Transition> sceneTransitionMap = mScenePairTransitions.get(scene); in getTransition()
167 transition = mSceneTransitions.get(scene); in getTransition()
181 private static void changeScene(Scene scene, Transition transition) { in changeScene() argument
183 final ViewGroup sceneRoot = scene.getSceneRoot(); in changeScene()
201 scene.enter(); in changeScene()
342 public void transitionTo(Scene scene) { in transitionTo() argument
[all …]
DScene.java62 Scene scene = scenes.get(layoutId); in getSceneForLayout() local
63 if (scene != null) { in getSceneForLayout()
64 return scene; in getSceneForLayout()
66 scene = new Scene(sceneRoot, layoutId, context); in getSceneForLayout()
67 scenes.put(layoutId, scene); in getSceneForLayout()
68 return scene; in getSceneForLayout()
197 static void setCurrentScene(View view, Scene scene) { in setCurrentScene() argument
198 view.setTagInternal(com.android.internal.R.id.current_scene, scene); in setCurrentScene()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCameraCapabilities.java131 for (String scene : supportedSceneModes) { in buildSceneModes()
132 if (Camera.Parameters.SCENE_MODE_AUTO.equals(scene)) { in buildSceneModes()
134 } else if (Camera.Parameters.SCENE_MODE_ACTION.equals(scene)) { in buildSceneModes()
136 } else if (Camera.Parameters.SCENE_MODE_BARCODE.equals(scene)) { in buildSceneModes()
138 } else if (Camera.Parameters.SCENE_MODE_BEACH.equals(scene)) { in buildSceneModes()
140 } else if (Camera.Parameters.SCENE_MODE_CANDLELIGHT.equals(scene)) { in buildSceneModes()
142 } else if (Camera.Parameters.SCENE_MODE_FIREWORKS.equals(scene)) { in buildSceneModes()
144 } else if (Camera.Parameters.SCENE_MODE_HDR.equals(scene)) { in buildSceneModes()
146 } else if (Camera.Parameters.SCENE_MODE_LANDSCAPE.equals(scene)) { in buildSceneModes()
148 } else if (Camera.Parameters.SCENE_MODE_NIGHT.equals(scene)) { in buildSceneModes()
[all …]
/frameworks/support/transition/ics/android/support/transition/
DTransitionManagerPort.java86 private static void changeScene(ScenePort scene, TransitionPort transition) { in changeScene() argument
88 final ViewGroup sceneRoot = scene.getSceneRoot(); in changeScene()
103 scene.enter(); in changeScene()
150 public static void go(ScenePort scene) { in go() argument
151 changeScene(scene, sDefaultTransition); in go()
154 public static void go(ScenePort scene, TransitionPort transition) { in go() argument
155 changeScene(scene, transition); in go()
180 public void setTransition(ScenePort scene, TransitionPort transition) { in setTransition() argument
181 mSceneTransitions.put(scene, transition); in setTransition()
203 private TransitionPort getTransition(ScenePort scene) { in getTransition() argument
[all …]
DTransitionManagerIcs.java24 public void setTransition(SceneImpl scene, TransitionImpl transition) { in setTransition() argument
25 mTransitionManager.setTransition(((SceneIcs) scene).mScene, in setTransition()
36 public void transitionTo(SceneImpl scene) { in transitionTo() argument
37 mTransitionManager.transitionTo(((SceneIcs) scene).mScene); in transitionTo()
DTransitionManagerStaticsIcs.java24 public void go(SceneImpl scene) { in go() argument
25 TransitionManagerPort.go(((SceneIcs) scene).mScene); in go()
29 public void go(SceneImpl scene, TransitionImpl transition) { in go() argument
30 TransitionManagerPort.go(((SceneIcs) scene).mScene, in go()
DSceneStaticsIcs.java26 SceneIcs scene = new SceneIcs(); in getSceneForLayout() local
27 scene.mScene = ScenePort.getSceneForLayout(sceneRoot, layoutId, context); in getSceneForLayout()
28 return scene; in getSceneForLayout()
/frameworks/support/transition/kitkat/android/support/transition/
DTransitionManagerKitKat.java26 public void setTransition(SceneImpl scene, TransitionImpl transition) { in setTransition() argument
27 mTransitionManager.setTransition(((SceneWrapper) scene).mScene, in setTransition()
39 public void transitionTo(SceneImpl scene) { in transitionTo() argument
40 mTransitionManager.transitionTo(((SceneWrapper) scene).mScene); in transitionTo()
DTransitionManagerStaticsKitKat.java24 public void go(SceneImpl scene) { in go() argument
25 android.transition.TransitionManager.go(((SceneWrapper) scene).mScene); in go()
29 public void go(SceneImpl scene, TransitionImpl transition) { in go() argument
30 android.transition.TransitionManager.go(((SceneWrapper) scene).mScene, in go()
DSceneStaticsKitKat.java26 SceneKitKat scene = new SceneKitKat(); in getSceneForLayout() local
27 scene.mScene = android.transition.Scene.getSceneForLayout(sceneRoot, layoutId, context); in getSceneForLayout()
28 return scene; in getSceneForLayout()
/frameworks/support/transition/api21/android/support/transition/
DSceneStaticsApi21.java26 SceneApi21 scene = new SceneApi21(); in getSceneForLayout() local
27 scene.mScene = android.transition.Scene.getSceneForLayout(sceneRoot, layoutId, context); in getSceneForLayout()
28 return scene; in getSceneForLayout()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DResourceLoadingTest.java66 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.search_screen, this); in sendMessage() local
67 mTransitionManager.transitionTo(scene); in sendMessage()
70 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.results_screen, this); in sendMessage() local
71 mTransitionManager.transitionTo(scene); in sendMessage()
DUniqueIds.java47 ToggleScene scene = new ToggleScene(container, button); in onCreate() local
48 mSceneMap.put(button, scene); in onCreate()
51 scene = new ToggleScene(container, button); in onCreate()
52 mSceneMap.put(button, scene); in onCreate()
DLoginActivityFromResources.java44 public void applyScene(Scene scene) { in applyScene() argument
45 mTransitionManager.transitionTo(scene); in applyScene()
46 mCurrentScene = scene; in applyScene()
/frameworks/base/libs/hwui/tests/macrobench/
DTestSceneRunner.cpp69 std::unique_ptr<TestScene> scene(info.createScene(opts)); in run() local
79 [&scene, width, height](RenderProperties& props, TestCanvas& canvas) { in run()
81 scene->createContent(width, height, canvas); in run()
112 scene->doFrame(i); in run()
/frameworks/support/transition/base/android/support/transition/
DTransitionManagerImpl.java24 public abstract void setTransition(SceneImpl scene, TransitionImpl transition); in setTransition() argument
29 public abstract void transitionTo(SceneImpl scene); in transitionTo() argument
DTransitionManagerStaticsImpl.java26 public abstract void go(SceneImpl scene); in go() argument
28 public abstract void go(SceneImpl scene, TransitionImpl transition); in go() argument
/frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/
DBasicUsage.java39 void go(Scene scene) { in go() argument
40 TransitionManager.go(scene); in go()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DPlayAnimationThread.java30 public PlayAnimationThread(Animator animator, RenderSessionImpl scene, String animName, in PlayAnimationThread() argument
32 super(scene, animName, listener); in PlayAnimationThread()

12