Home
last modified time | relevance | path

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

12

/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 …]
Dtransitions.jd22 run an animation, you provide the transition to use and the ending scene to a transition
33 different view hierarchies. Once you have defined the starting scene and the ending scene you
127 a search term and clicks the search button, the app changes to the scene that represents the
131 <p>To make a scene change while applying a transition in response to some event in your
133 static method with the ending scene and the transition instance to use for the animation,
140 <p>The framework changes the view hierarchy inside the scene root with the view hierarchy
141 from the ending scene while running the animation specified by the transition instance. The
142 starting scene is the ending scene from the last transition. If there was no previous
143 transition, the starting scene is determined automatically from the current state of the
156 scene. For example, the framework does not support animating changes to
[all …]
Dindex.jd68 Learn how to create a scene to store the state of a view hierarchy.
/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()
199 scene.enter(); in changeScene()
334 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 …]
DCameraCapabilities.java407 public String stringify(SceneMode scene) { in stringify() argument
408 return toApiCase(scene.name()); in stringify()
568 public final boolean supports(SceneMode scene) { in supports() argument
569 return (scene != null && mSupportedSceneModes.contains(scene)); in supports()
DAndroidCamera2Capabilities.java110 for (int scene : scenes) { in buildSceneModes()
111 SceneMode equiv = sceneModeFromInt(scene); in buildSceneModes()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DFullscreenBlur.java83 …static RenderPass addPass(Scene scene, Camera cam, TextureRenderTarget color, TextureRenderTarget … in addPass() argument
90 scene.appendRenderPass(pass); in addPass()
94 static void addBlurPasses(Scene scene, RenderScriptGL rs, Camera cam) { in addBlurPasses() argument
96 ArrayList<RenderableBase> allDraw = scene.getRenderables(); in addBlurPasses()
109 RenderPass blurSourcePass = addPass(scene, cam, in addBlurPasses()
121 RenderPass selectColorPass = addPass(scene, cam, in addBlurPasses()
129 RenderPass horizontalBlurPass = addPass(scene, cam, in addBlurPasses()
138 RenderPass verticalBlurPass = addPass(scene, cam, in addBlurPasses()
148 static void addCompositePass(Scene scene, RenderScriptGL rs, Camera cam) { in addCompositePass() argument
154 RenderPass compositePass = addPass(scene, cam, null, null); in addCompositePass()
DTouchHandler.java43 public void init(Scene scene) { in init() argument
51 mCameraRig = scene.appendNewCompoundTransform(); in init()
59 mCamera = scene.appendNewCamera(); in init()
/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()
DLoginActivity.java75 public void applyScene(Scene scene) { in applyScene() argument
76 mTransitionManager.transitionTo(scene); in applyScene()
77 mCurrentScene = scene; in applyScene()
/frameworks/support/v17/leanback/kitkat/android/support/v17/leanback/transition/
DTransitionHelperKitkat.java42 Scene scene = new Scene(sceneRoot); in createScene() local
43 scene.setEnterAction(enterAction); in createScene()
44 return scene; in createScene()
216 static void runTransition(Object scene, Object transition) { in runTransition() argument
217 TransitionManager.go((Scene) scene, (Transition) transition); in runTransition()
/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()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridgeRenderSession.java194 /*package*/ BridgeRenderSession(RenderSessionImpl scene, Result lastResult) { in BridgeRenderSession() argument
195 mSession = scene; in BridgeRenderSession()
196 if (scene != null) { in BridgeRenderSession()
DBridge.java316 RenderSessionImpl scene = new RenderSessionImpl(params); in createSession() local
319 lastResult = scene.init(params.getTimeout()); in createSession()
321 lastResult = scene.inflate(); in createSession()
323 lastResult = scene.render(true /*freshRender*/); in createSession()
327 scene.release(); in createSession()
331 return new BridgeRenderSession(scene, lastResult); in createSession()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/transition/
DTransitionHelper.java108 public void runTransition(Object scene, Object transition); in runTransition() argument
278 public void runTransition(Object scene, Object transition) { in runTransition() argument
283 Runnable r = ((Runnable) scene); in runTransition()
463 public void runTransition(Object scene, Object transition) { in runTransition() argument
464 TransitionHelperKitkat.runTransition(scene, transition); in runTransition()
675 public void runTransition(Object scene, Object transition) { in runTransition() argument
676 mImpl.runTransition(scene, transition); in runTransition()
/frameworks/base/tools/layoutlib/bridge/src/android/animation/
DAnimationThread.java73 public AnimationThread(RenderSessionImpl scene, String threadName, in AnimationThread() argument
76 mSession = scene; in AnimationThread()
/frameworks/base/docs/html/training/material/
Danimations.jd152 <li>An <strong>enter</strong> transition determines how views in an activity enter the scene.
153 For example, in the <em>explode</em> enter transition, the views enter the scene from the outside
156 <li>An <strong>exit</strong> transition determines how views in an activity exit the scene. For
157 example, in the <em>explode</em> exit transition, the views exit the scene away from the
169 <li><em>explode</em> - Moves views in or out from the center of the scene.</li>
170 <li><em>slide</em> - Moves views in or out from one of the edges of the scene.</li>
171 <li><em>fade</em> - Adds or removes a view from the scene by changing its opacity.</li>
193   <strong>Figure 2</strong> - A scene transition with one shared element.
324 <p>To reverse the scene transition animation when you finish the second activity, call the
330 <p>To make a scene transition animation between two activities that have more than one shared
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DColladaParser.java486 private void getScene(Element scene) { in getScene() argument
487 String name = scene.getAttribute("name"); in getScene()
488 String id = scene.getAttribute("id"); in getScene()
490 Node childNode = scene.getFirstChild(); in getScene()
DSceneManager.java424 ColladaScene scene = new ColladaScene(name, cb); in loadModel() local
425 scene.init(mRS, mRes); in loadModel()

12