/frameworks/base/core/java/android/transition/ |
D | TransitionManager.java | 17 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 …]
|
D | TransitionInflater.java | 17 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 …]
|
D | TransitionListenerAdapter.java | 17 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
|
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/ |
D | Element.kt | 287 val transition = elementTransition(layoutImpl, element, transitions) in approachMeasure() constant 292 val overscrollScene = transition?.currentOverscrollSpec?.scene in approachMeasure() 294 val isNotPartOfAnyOngoingTransitions = transitions.isNotEmpty() && transition == null in approachMeasure() 304 measure(layoutImpl, element, transition, sceneState, measurable, constraints) in approachMeasure() 306 return layout(placeable.width, placeable.height) { place(transition, placeable) } in approachMeasure() 311 transition: TransitionState.Transition?, in Placeable() 321 if (!shouldPlaceElement(layoutImpl, scene.key, element, transition)) { in Placeable() 332 transition, in Placeable() 343 transition, in Placeable() 354 transition = transition, in Placeable() [all …]
|
D | SceneTransitionLayoutState.kt | 36 import com.android.compose.animation.scene.transition.link.LinkedTransition in <lambda>() 37 import com.android.compose.animation.scene.transition.link.StateLink in <lambda>() 446 val transition = currentTransition ?: return false in isTransitioning() constant 447 return transition.isTransitioning(from, to) in isTransitioning() 451 val transition = currentTransition ?: return false in isTransitioningBetween() constant 452 return transition.isTransitioningBetween(scene, other) in isTransitioningBetween() 464 internal fun startTransition(transition: TransitionState.Transition, chain: Boolean = true) { in startTransition() 468 val fromScene = transition.fromScene in startTransition() 469 val toScene = transition.toScene in startTransition() 470 val orientation = (transition as? TransitionState.HasOverscrollProperties)?.orientation in startTransition() [all …]
|
D | TransitionDsl.kt | 226 transition: TransitionState.Transition, in sceneDuringTransition() 242 transition: TransitionState.Transition, in sceneDuringTransition() 245 val fromScene = transition.fromScene in sceneDuringTransition() 246 val toScene = transition.toScene in sceneDuringTransition() 268 transition: TransitionState.Transition, in sceneDuringTransition() 273 transition.fromScene in sceneDuringTransition() 275 transition.toScene in sceneDuringTransition() 284 transition: TransitionState.Transition, in sceneDuringTransition() 289 transition.fromScene in sceneDuringTransition() 291 transition.toScene in sceneDuringTransition() [all …]
|
D | AnimateSharedAsState.kt | 353 val transition = transition(sharedValue) in value() constant 355 valueOrNull(sharedValue, transition) in value() 361 val interruptedValue = computeInterruptedValue(sharedValue, transition, value) in value() 370 transition: TransitionState.Transition?, in get() 372 if (transition == null) { in get() 376 val fromValue = sharedValue[transition.fromScene] in get() 377 val toValue = sharedValue[transition.toScene] in get() 384 val overscrollSpec = transition.currentOverscrollSpec in get() 388 if (canOverflow) transition.progress in get() 389 else transition.progress.fastCoerceIn(0f, 1f) in get() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/ |
D | KeyguardBlueprintViewModel.kt | 21 import android.transition.Transition 22 import android.transition.TransitionManager 53 override fun onTransitionCancel(transition: Transition) { in onTransitionCancel() 55 updateTransitions(null) { remove(transition) } in onTransitionCancel() 58 override fun onTransitionEnd(transition: Transition) { in onTransitionEnd() 60 updateTransitions(null) { remove(transition) } in onTransitionEnd() 63 override fun onTransitionPause(transition: Transition) { in onTransitionPause() 65 updateTransitions(null) { remove(transition) } in onTransitionPause() 68 override fun onTransitionResume(transition: Transition) { in onTransitionResume() 70 updateTransitions(null) { add(transition) } in onTransitionResume() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/ |
D | SplitScreenTransitions.java | 33 import static com.android.wm.shell.transition.Transitions.TRANSIT_SPLIT_DISMISS; 34 import static com.android.wm.shell.transition.Transitions.TRANSIT_SPLIT_DISMISS_SNAP; 54 import com.android.wm.shell.transition.OneShotRemoteHandler; 55 import com.android.wm.shell.transition.Transitions; 95 private void initTransition(@NonNull IBinder transition, in initTransition() argument 98 mAnimatingTransition = transition; in initTransition() 104 void playAnimation(@NonNull IBinder transition, @NonNull TransitionInfo info, in playAnimation() argument 111 initTransition(transition, finishTransaction, finishCallback); in playAnimation() 113 final TransitSession pendingTransition = getPendingTransition(transition); in playAnimation() 123 pendingTransition.mRemoteHandler.startAnimation(transition, info, startTransaction, in playAnimation() [all …]
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/ |
D | SceneTransitionLayoutStateTest.kt | 29 import com.android.compose.animation.scene.transition.link.StateLink in <lambda>() 60 state.startTransition(transition(from = SceneA, to = SceneB)) in <lambda>() 79 val transition = state.setTargetScene(SceneB, coroutineScope = this) in <lambda>() constant 80 assertThat(transition).isNotNull() in <lambda>() 81 assertThat(state.transitionState).isEqualTo(transition) in <lambda>() 83 transition!!.finish().join() in <lambda>() 91 val transition = state.setTargetScene(SceneB, coroutineScope = this) in <lambda>() constant 92 assertThat(transition).isNotNull() in <lambda>() 95 transition!!.finish().join() in <lambda>() 104 val transition = state.setTargetScene(SceneC, coroutineScope = this) in <lambda>() constant [all …]
|
D | SwipeToSceneTest.kt | 151 var transition = assertThat(layoutState.transitionState).isTransition() in <lambda>() variable 152 assertThat(transition).hasFromScene(SceneA) in <lambda>() 153 assertThat(transition).hasToScene(SceneB) in <lambda>() 154 assertThat(transition).hasCurrentScene(SceneA) in <lambda>() 155 assertThat(transition).hasProgress(55.dp / LayoutWidth) in <lambda>() 156 assertThat(transition).isInitiatedByUserInput() in <lambda>() 161 transition = assertThat(layoutState.transitionState).isTransition() in <lambda>() 162 assertThat(transition).hasFromScene(SceneA) in <lambda>() 163 assertThat(transition).hasToScene(SceneB) in <lambda>() 164 assertThat(transition).hasCurrentScene(SceneA) in <lambda>() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | PerfettoTransitionTracer.java | 29 import android.tracing.transition.TransitionDataSource; 64 public void logSentTransition(Transition transition, ArrayList<Transition.ChangeInfo> targets) { in logSentTransition() argument 71 doLogSentTransition(transition, targets); in logSentTransition() 78 Transition transition, ArrayList<Transition.ChangeInfo> targets) { in doLogSentTransition() argument 84 os.write(ShellTransition.ID, transition.getSyncId()); in doLogSentTransition() 86 transition.mLogger.mCreateTimeNs); in doLogSentTransition() 87 os.write(ShellTransition.SEND_TIME_NS, transition.mLogger.mSendTimeNs); in doLogSentTransition() 89 transition.getStartTransaction().getId()); in doLogSentTransition() 91 transition.getFinishTransaction().getId()); in doLogSentTransition() 92 os.write(ShellTransition.TYPE, transition.mType); in doLogSentTransition() [all …]
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | Demo3.java | 20 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 48 …transition.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()
|
D | ScenesTestAutoTargets.java | 21 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 49 …transition.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()
|
D | Demo2.java | 22 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()
|
D | Demo1.java | 24 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()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/ |
D | DefaultMixedTransition.java | 17 package com.android.wm.shell.transition; 21 import static com.android.wm.shell.transition.DefaultMixedHandler.subCopy; 22 import static com.android.wm.shell.transition.MixedTransitionHelper.animateEnterPipFromSplit; 23 import static com.android.wm.shell.transition.MixedTransitionHelper.animateKeyguard; 43 DefaultMixedTransition(int type, IBinder transition, Transitions player, in DefaultMixedTransition() argument 48 super(type, transition, player, mixedHandler, pipHandler, splitHandler, keyguardHandler); in DefaultMixedTransition() 68 @NonNull IBinder transition, @NonNull TransitionInfo info, in startAnimation() 89 animateOpenIntentWithRemoteAndPip(transition, info, startTransaction, in startAnimation() 150 @NonNull IBinder transition, @NonNull TransitionInfo info, in animateOpenIntentWithRemoteAndPip() 164 mPlayer.getRemoteTransitionHandler().onTransitionConsumed(transition, false, null); in animateOpenIntentWithRemoteAndPip() [all …]
|
D | DefaultMixedHandler.java | 17 package com.android.wm.shell.transition; 152 MixedTransition(int type, IBinder transition, Transitions player, in MixedTransition() argument 156 mTransition = transition; in MixedTransition() 165 @NonNull IBinder transition, @NonNull TransitionInfo info, in startAnimation() 171 @NonNull IBinder transition, @NonNull TransitionInfo info, in mergeAnimation() 176 @NonNull IBinder transition, boolean aborted, in onTransitionConsumed() 258 public WindowContainerTransaction handleRequest(@NonNull IBinder transition, in handleRequest() argument 268 MixedTransition.TYPE_ENTER_PIP_FROM_SPLIT, transition)); in handleRequest() 271 mPipHandler.augmentRequest(transition, request, out); in handleRequest() 280 MixedTransition.TYPE_ENTER_PIP_FROM_ACTIVITY_EMBEDDING, transition)); in handleRequest() [all …]
|
D | OneShotRemoteHandler.java | 17 package com.android.wm.shell.transition; 56 public void setTransition(@NonNull IBinder transition) { in setTransition() argument 57 mTransition = transition; in setTransition() 61 public boolean startAnimation(@NonNull IBinder transition, @NonNull TransitionInfo info, in startAnimation() argument 65 if (mTransition != transition) return false; in startAnimation() 83 mRemote.getRemoteTransition().startAnimation(transition, remoteInfo, remoteStartT, cb); in startAnimation() 98 public void mergeAnimation(@NonNull IBinder transition, @NonNull TransitionInfo info, in mergeAnimation() argument 128 transition, remoteInfo, remoteT, mergeTarget, cb); in mergeAnimation() 136 @NonNull IBinder transition, @NonNull TransitionInfo info, in takeOverAnimation() 140 if (mTransition != transition) return false; in takeOverAnimation() [all …]
|
D | RecentsMixedTransition.java | 17 package com.android.wm.shell.transition; 22 import static com.android.wm.shell.transition.DefaultMixedHandler.handoverTransitionLeashes; 23 import static com.android.wm.shell.transition.MixedTransitionHelper.animateEnterPipFromSplit; 24 import static com.android.wm.shell.transition.MixedTransitionHelper.animateKeyguard; 45 RecentsMixedTransition(int type, IBinder transition, Transitions player, in RecentsMixedTransition() argument 50 super(type, transition, player, mixedHandler, pipHandler, splitHandler, keyguardHandler); in RecentsMixedTransition() 58 @NonNull IBinder transition, @NonNull TransitionInfo info, in startAnimation() 177 @NonNull IBinder transition, @NonNull TransitionInfo info, in mergeAnimation() 182 mLeftoversHandler.mergeAnimation(transition, info, t, mergeTarget, finishCallback); in mergeAnimation() 192 mLeftoversHandler.mergeAnimation(transition, info, t, mergeTarget, in mergeAnimation() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TransitionTests.java | 134 final Transition transition = new Transition(transitType, 0 /* flags */, controller, in createTestTransition() local 136 spyOn(transition.mLogger); in createTestTransition() 137 doNothing().when(transition.mLogger).logOnSendAsync(any()); in createTestTransition() 138 return transition; in createTestTransition() 154 final Transition transition = createTestTransition(TRANSIT_OPEN); in testCreateInfo_NewTask() local 155 ArrayMap<WindowContainer, Transition.ChangeInfo> changes = transition.mChanges; in testCreateInfo_NewTask() 156 ArraySet<WindowContainer> participants = transition.mParticipants; in testCreateInfo_NewTask() 172 final int transit = transition.mType; in testCreateInfo_NewTask() 212 final Transition transition = createTestTransition(TRANSIT_OPEN); in testCreateInfo_Activity() local 213 ArrayMap<WindowContainer, Transition.ChangeInfo> changes = transition.mChanges; in testCreateInfo_Activity() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/blueprints/transitions/ |
D | BaseBlueprintTransition.kt | 21 import android.transition.ChangeBounds in <lambda>() 22 import android.transition.Transition in <lambda>() 23 import android.transition.TransitionSet in <lambda>() 24 import android.transition.TransitionValues in <lambda>() 25 import android.transition.Visibility in <lambda>() 42 private fun excludeClockAndSmartspaceViews(transition: Transition) { in <lambda>() 43 transition.excludeTarget(SmartspaceView::class.java, true) in <lambda>() 45 clock.largeClock.layout.views.forEach { view -> transition.excludeTarget(view, true) } in <lambda>() 46 clock.smallClock.layout.views.forEach { view -> transition.excludeTarget(view, true) } in <lambda>()
|
/frameworks/base/core/java/android/app/ |
D | FragmentTransition.java | 20 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 …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/ |
D | DesktopTasksLimiter.kt | 29 import com.android.wm.shell.transition.Transitions in <lambda>() 30 import com.android.wm.shell.transition.Transitions.TransitionObserver in <lambda>() 56 fun addPendingTransitionToken(transition: IBinder, taskDetails: TaskDetails) { in <lambda>() 57 mPendingTransitionTokensAndTasks[transition] = taskDetails in <lambda>() 61 transition: IBinder, in <lambda>() 66 val taskToMinimize = mPendingTransitionTokensAndTasks.remove(transition) ?: return in <lambda>() 100 override fun onTransitionStarting(transition: IBinder) {} in <lambda>() 108 override fun onTransitionFinished(transition: IBinder, aborted: Boolean) { in <lambda>() 111 "DesktopTasksLimiter: transition %s finished", transition) in <lambda>() 112 mPendingTransitionTokensAndTasks.remove(transition) in <lambda>() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/freeform/ |
D | FreeformTaskTransitionHandler.java | 43 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 …]
|