Home
last modified time | relevance | path

Searched refs:transition (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/scene/
DSwipeToScene.kt49 val transition = remember { in <lambda>() constant
55 val enabled = state == transition || currentScene.shouldEnableSwipes(orientation) in <lambda>()
61 state == transition && in <lambda>()
62 transition.isAnimatingOffset && in <lambda>()
77 onDragStarted = { onDragStarted(layoutImpl, transition, orientation) }, in <lambda>()
79 rememberDraggableState { delta -> onDrag(layoutImpl, transition, orientation, delta) }, in <lambda>()
83 transition, in <lambda>()
181 transition: SwipeTransition, in onDragStarted()
184 if (layoutImpl.state.transitionState == transition) { in onDragStarted()
186 if (transition.isAnimatingOffset) { in onDragStarted()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/viewmodel/
DUdfpsLockscreenViewModelTest.kt135 val transition by collectLastValue(underTest.transition) in goneToAodTransition() constant
149 assertThat(transition?.alpha).isEqualTo(0f) in goneToAodTransition()
163 assertThat(transition?.alpha).isEqualTo(0f) in goneToAodTransition()
177 assertThat(transition?.alpha).isEqualTo(0f) in goneToAodTransition()
184 val transition by collectLastValue(underTest.transition) in lockscreenToAod() constant
199 assertThat(transition?.alpha).isEqualTo(1f) in lockscreenToAod()
200 assertThat(transition?.scale).isEqualTo(1f) in lockscreenToAod()
201 assertThat(transition?.color).isEqualTo(lockscreenColor) in lockscreenToAod()
215 assertThat(transition?.alpha).isIn(Range.closed(.39f, .41f)) in lockscreenToAod()
216 assertThat(transition?.scale).isEqualTo(1f) in lockscreenToAod()
[all …]
/frameworks/base/core/java/android/transition/
DTransitionManager.java17 package android.transition;
95 public void setDefaultTransition(Transition transition) { in setDefaultTransition() argument
96 sDefaultTransition = transition; in setDefaultTransition()
121 public void setTransition(Scene scene, Transition transition) { in setTransition() argument
122 mSceneTransitions.put(scene, transition); in setTransition()
137 public void setTransition(Scene fromScene, Scene toScene, Transition transition) { in setTransition() argument
143 sceneTransitionMap.put(fromScene, transition); in setTransition()
159 Transition transition = null; in getTransition() local
167 transition = sceneTransitionMap.get(currScene); in getTransition()
168 if (transition != null) { in getTransition()
[all …]
DTransitionInflater.java17 package android.transition;
131 Transition transition = null; in createTransitionFromXml() local
149 transition = new Fade(mContext, attrs); in createTransitionFromXml()
151 transition = new ChangeBounds(mContext, attrs); in createTransitionFromXml()
153 transition = new Slide(mContext, attrs); in createTransitionFromXml()
155 transition = new Explode(mContext, attrs); in createTransitionFromXml()
157 transition = new ChangeImageTransform(mContext, attrs); in createTransitionFromXml()
159 transition = new ChangeTransform(mContext, attrs); in createTransitionFromXml()
161 transition = new ChangeClipBounds(mContext, attrs); in createTransitionFromXml()
163 transition = new AutoTransition(mContext, attrs); in createTransitionFromXml()
[all …]
DTransitionListenerAdapter.java17 package android.transition;
31 public void onTransitionStart(Transition transition) { in onTransitionStart() argument
38 public void onTransitionEnd(Transition transition) { in onTransitionEnd() argument
45 public void onTransitionCancel(Transition transition) { in onTransitionCancel() argument
52 public void onTransitionPause(Transition transition) { in onTransitionPause() argument
59 public void onTransitionResume(Transition transition) { in onTransitionResume() argument
DTranslationAnimationCreator.java16 package android.transition;
23 import android.transition.Transition.TransitionListener;
53 Transition transition) { in createAnimation() argument
78 transition.addListener(listener); in createAnimation()
141 public void onTransitionStart(Transition transition) { in onTransitionStart() argument
145 public void onTransitionEnd(Transition transition) { in onTransitionEnd() argument
148 transition.removeListener(this); in onTransitionEnd()
152 public void onTransitionCancel(Transition transition) { in onTransitionCancel() argument
156 public void onTransitionPause(Transition transition) { in onTransitionPause() argument
160 public void onTransitionResume(Transition transition) { in onTransitionResume() argument
/frameworks/base/packages/SystemUI/compose/core/tests/src/com/android/compose/animation/scene/
DSwipeToSceneTest.kt118 var transition = layoutState.transitionState in testDragWithPositionalThreshold() variable
119 assertThat(transition).isInstanceOf(TransitionState.Transition::class.java) in testDragWithPositionalThreshold()
120 assertThat((transition as TransitionState.Transition).fromScene) in testDragWithPositionalThreshold()
122 assertThat(transition.toScene).isEqualTo(TestScenes.SceneB) in testDragWithPositionalThreshold()
123 assertThat(transition.currentScene).isEqualTo(TestScenes.SceneA) in testDragWithPositionalThreshold()
124 assertThat(transition.progress).isEqualTo(55.dp / LayoutWidth) in testDragWithPositionalThreshold()
129 transition = layoutState.transitionState in testDragWithPositionalThreshold()
130 assertThat(transition).isInstanceOf(TransitionState.Transition::class.java) in testDragWithPositionalThreshold()
131 assertThat((transition as TransitionState.Transition).fromScene) in testDragWithPositionalThreshold()
133 assertThat(transition.toScene).isEqualTo(TestScenes.SceneB) in testDragWithPositionalThreshold()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DSplitScreenTransitions.java31 import static com.android.wm.shell.transition.Transitions.TRANSIT_SPLIT_DISMISS;
32 import static com.android.wm.shell.transition.Transitions.TRANSIT_SPLIT_DISMISS_SNAP;
51 import com.android.wm.shell.transition.OneShotRemoteHandler;
52 import com.android.wm.shell.transition.Transitions;
89 private void initTransition(@NonNull IBinder transition, in initTransition() argument
92 mAnimatingTransition = transition; in initTransition()
98 void playAnimation(@NonNull IBinder transition, @NonNull TransitionInfo info, in playAnimation() argument
104 initTransition(transition, finishTransaction, finishCallback); in playAnimation()
106 final TransitSession pendingTransition = getPendingTransition(transition); in playAnimation()
116 pendingTransition.mRemoteHandler.startAnimation(transition, info, startTransaction, in playAnimation()
[all …]
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DScenesTestAutoTargets.java21 import android.transition.ChangeBounds;
24 import android.transition.Fade;
25 import android.transition.Recolor;
26 import android.transition.Scene;
27 import android.transition.TransitionSet;
28 import android.transition.TransitionManager;
48 TransitionSet transition = new TransitionSet(); in onCreate() local
49transition.addTransition(new Fade()).addTransition(new ChangeBounds()).addTransition(new Recolor()… in onCreate()
52 mTransitionManager.setTransition(mSearchScreen, transition); in onCreate()
53 mTransitionManager.setTransition(mResultsScreen, transition); in onCreate()
DDemo3.java20 import android.transition.ChangeBounds;
23 import android.transition.Fade;
24 import android.transition.Recolor;
25 import android.transition.Scene;
26 import android.transition.TransitionSet;
27 import android.transition.TransitionManager;
47 TransitionSet transition = new TransitionSet(); in onCreate() local
48transition.addTransition(new Fade()).addTransition(new ChangeBounds()).addTransition(new Recolor()… in onCreate()
51 mTransitionManager.setTransition(mSearchScreen, transition); in onCreate()
52 mTransitionManager.setTransition(mResultsScreen, transition); in onCreate()
DDemo2.java22 import android.transition.Fade;
23 import android.transition.ChangeBounds;
24 import android.transition.Recolor;
25 import android.transition.Scene;
26 import android.transition.TransitionSet;
27 import android.transition.TransitionManager;
59 TransitionSet transition = new TransitionSet(); in sendMessage() local
60 transition.addTransition(new Fade().addTarget(R.id.resultsText). in sendMessage()
65 mTransitionManager.setTransition(mSearchScreen, transition); in sendMessage()
66 mTransitionManager.setTransition(mResultsScreen, transition); in sendMessage()
DDemo1.java24 import android.transition.Fade;
25 import android.transition.ChangeBounds;
26 import android.transition.Scene;
27 import android.transition.TransitionSet;
28 import android.transition.TransitionManager;
72 TransitionSet transition = new TransitionSet(); in sendMessage() local
73 transition.addTransition(new Fade().addTarget(R.id.resultsText). in sendMessage()
77 mTransitionManager.setTransition(mSearchScreen, transition); in sendMessage()
78 mTransitionManager.setTransition(mResultsScreen, transition); in sendMessage()
DContactsExpansion.java21 import android.transition.ChangeBounds;
25 import android.transition.Fade;
26 import android.transition.Scene;
27 import android.transition.Transition;
28 import android.transition.TransitionSet;
31 import android.transition.Crossfade;
32 import android.transition.Rotate;
33 import android.transition.TransitionManager;
98 ToggleScene(ViewGroup rootView, Transition transition) { in ToggleScene() argument
100 mTransition = transition; in ToggleScene()
DCrossfadeImage.java22 import android.transition.Crossfade;
23 import android.transition.ChangeBounds;
24 import android.transition.Scene;
25 import android.transition.Transition;
26 import android.transition.TransitionSet;
27 import android.transition.TransitionManager;
DClippingText.java20 import android.transition.ChangeBounds;
23 import android.transition.Scene;
25 import android.transition.Fade;
26 import android.transition.ChangeText;
27 import android.transition.TransitionSet;
28 import android.transition.TransitionManager;
DListViewAddRemove.java23 import android.transition.Fade;
24 import android.transition.Scene;
30 import android.transition.AutoTransition;
31 import android.transition.ChangeBounds;
32 import android.transition.Transition;
33 import android.transition.TransitionListenerAdapter;
34 import android.transition.TransitionManager;
35 import android.transition.TransitionSet;
90 public void onTransitionStart(Transition transition) { in onCreate()
99 public void onTransitionEnd(Transition transition) { in onCreate()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTransitionTests.java134 final Transition transition = createTestTransition(TRANSIT_OPEN); in testCreateInfo_NewTask() local
135 ArrayMap<WindowContainer, Transition.ChangeInfo> changes = transition.mChanges; in testCreateInfo_NewTask()
136 ArraySet<WindowContainer> participants = transition.mParticipants; in testCreateInfo_NewTask()
152 final int transit = transition.mType; in testCreateInfo_NewTask()
192 final Transition transition = createTestTransition(TRANSIT_OPEN); in testCreateInfo_NestedTasks() local
193 ArrayMap<WindowContainer, Transition.ChangeInfo> changes = transition.mChanges; in testCreateInfo_NestedTasks()
194 ArraySet<WindowContainer> participants = transition.mParticipants; in testCreateInfo_NestedTasks()
220 final int transit = transition.mType; in testCreateInfo_NestedTasks()
248 final Transition transition = createTestTransition(TRANSIT_OPEN); in testCreateInfo_DisplayArea() local
249 ArrayMap<WindowContainer, Transition.ChangeInfo> changes = transition.mChanges; in testCreateInfo_DisplayArea()
[all …]
/frameworks/base/core/java/android/app/
DFragmentTransition.java20 import android.transition.Transition;
21 import android.transition.TransitionListenerAdapter;
22 import android.transition.TransitionManager;
23 import android.transition.TransitionSet;
229 Transition transition = mergeTransitions(enterTransition, exitTransition, in configureTransitionsReordered() local
232 if (transition != null) { in configureTransitionsReordered()
234 transition.setNameOverrides(nameOverrides); in configureTransitionsReordered()
235 scheduleRemoveTargets(transition, in configureTransitionsReordered()
238 TransitionManager.beginDelayedTransition(sceneRoot, transition); in configureTransitionsReordered()
307 Transition transition = mergeTransitions(enterTransition, exitTransition, in configureTransitionsOrdered() local
[all …]
DEnterTransitionCoordinator.java28 import android.transition.Transition;
29 import android.transition.TransitionListenerAdapter;
30 import android.transition.TransitionManager;
424 Transition transition = beginTransition(decorView, startEnterTransition, in startSharedElementTransition() local
430 startEnterTransition(transition); in startSharedElementTransition()
514 public void onTransitionStart(Transition transition) { in beginTransition()
519 public void onTransitionEnd(Transition transition) { in beginTransition()
520 transition.removeListener(this); in beginTransition()
538 public void onTransitionStart(Transition transition) { in beginTransition()
539 mEnterViewsTransition = transition; in beginTransition()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/freeform/
DFreeformTaskTransitionHandler.java43 import com.android.wm.shell.transition.Transitions;
123 public boolean startAnimation(@NonNull IBinder transition, @NonNull TransitionInfo info, in startAnimation() argument
132 mAnimations.remove(transition); in startAnimation()
149 transition, info.getType(), change); in startAnimation()
152 transitionHandled |= startMinimizeTransition(transition); in startAnimation()
156 transitionHandled |= startCloseTransition(transition, change, in startAnimation()
165 mAnimations.put(transition, animations); in startAnimation()
175 mPendingTransitionTokens.remove(transition); in startAnimation()
180 public void mergeAnimation(@NonNull IBinder transition, @NonNull TransitionInfo info, in mergeAnimation() argument
194 IBinder transition, in startChangeTransition() argument
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DOneShotRemoteHandler.java17 package com.android.wm.shell.transition;
55 public void setTransition(@NonNull IBinder transition) { in setTransition() argument
56 mTransition = transition; in setTransition()
60 public boolean startAnimation(@NonNull IBinder transition, @NonNull TransitionInfo info, in startAnimation() argument
64 if (mTransition != transition) return false; in startAnimation()
99 mRemote.getRemoteTransition().startAnimation(transition, remoteInfo, remoteStartT, cb); in startAnimation()
113 public void mergeAnimation(@NonNull IBinder transition, @NonNull TransitionInfo info, in mergeAnimation() argument
135 transition, remoteInfo, remoteT, mergeTarget, cb); in mergeAnimation()
143 public WindowContainerTransaction handleRequest(@NonNull IBinder transition, in handleRequest() argument
148 mTransition = transition; in handleRequest()
[all …]
DDefaultMixedHandler.java17 package com.android.wm.shell.transition;
130 MixedTransition(int type, IBinder transition) { in MixedTransition() argument
132 mTransition = transition; in MixedTransition()
182 public WindowContainerTransaction handleRequest(@NonNull IBinder transition, in handleRequest() argument
192 transition)); in handleRequest()
195 mPipHandler.augmentRequest(transition, request, out); in handleRequest()
208 mPlayer.dispatchRequest(transition, request, this); in handleRequest()
213 MixedTransition.TYPE_OPTIONS_REMOTE_AND_PIP_CHANGE, transition); in handleRequest()
218 mPlayer.getRemoteTransitionHandler().handleRequest(transition, request); in handleRequest()
229 mPlayer.dispatchRequest(transition, request, this); in handleRequest()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DTransitionController.java184 QueuedTransition(Transition transition, OnStartCollect onStartCollect) { in QueuedTransition() argument
185 mTransition = transition; in QueuedTransition()
316 void moveToCollecting(@NonNull Transition transition) { in moveToCollecting() argument
323 transition.abort(); in moveToCollecting()
326 mCollectingTransition = transition; in moveToCollecting()
329 transition.mType == TRANSIT_CHANGE ? CHANGE_TIMEOUT_MS : DEFAULT_TIMEOUT_MS; in moveToCollecting()
594 final Transition transition = mCollectingTransition; in hasCollectingRotationChange() local
595 if (transition == null || !transition.mParticipants.contains(wc)) return false; in hasCollectingRotationChange()
596 final Transition.ChangeInfo changeInfo = transition.mChanges.get(wc); in hasCollectingRotationChange()
692 Transition requestStartTransition(@NonNull Transition transition, @Nullable Task startTask, in requestStartTransition() argument
[all …]
/frameworks/base/core/java/android/view/
DRemoteAnimationDefinition.java57 public void addRemoteAnimation(@TransitionOldType int transition, in addRemoteAnimation() argument
59 mTransitionAnimationMap.put(transition, in addRemoteAnimation()
71 public void addRemoteAnimation(@TransitionOldType int transition, in addRemoteAnimation() argument
73 addRemoteAnimation(transition, ACTIVITY_TYPE_UNDEFINED, adapter); in addRemoteAnimation()
84 public boolean hasTransition(@TransitionOldType int transition, in hasTransition() argument
86 return getAdapter(transition, activityTypes) != null; in hasTransition()
97 public @Nullable RemoteAnimationAdapter getAdapter(@TransitionOldType int transition, in getAdapter() argument
99 final RemoteAnimationAdapterEntry entry = mTransitionAnimationMap.get(transition); in getAdapter()
115 final int transition = in.readInt(); in RemoteAnimationDefinition() local
118 mTransitionAnimationMap.put(transition, entry); in RemoteAnimationDefinition()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/keyguard/
DKeyguardTransitionHandler.java53 import com.android.wm.shell.transition.Transitions;
54 import com.android.wm.shell.transition.Transitions.TransitionFinishCallback;
123 public boolean startAnimation(@NonNull IBinder transition, @NonNull TransitionInfo info, in startAnimation() argument
135 transition, info, startTransaction, finishTransaction, finishCallback); in startAnimation()
141 transition, info, startTransaction, finishTransaction, finishCallback); in startAnimation()
145 transition, info, startTransaction, finishTransaction, finishCallback); in startAnimation()
150 transition, info, startTransaction, finishTransaction, finishCallback); in startAnimation()
158 @NonNull IBinder transition, @NonNull TransitionInfo info, in startAnimation() argument
172 mStartedTransitions.put(transition, in startAnimation()
174 remoteHandler.startAnimation(transition, info, startTransaction, in startAnimation()
[all …]

12345678910>>...17