Home
last modified time | relevance | path

Searched refs:change (Results 1 – 25 of 815) sorted by relevance

12345678910>>...33

/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/util/
H A DTransitionUtil.java79 if (change.getMode() == TRANSIT_CHANGE && change.hasFlags(FLAG_IS_DISPLAY)) { in hasDisplayChange()
102 return isNonApp(change) && change.hasFlags(FLAG_IS_DIVIDER_BAR); in isDividerBar()
109 && change.getStartAbsBounds().equals(change.getEndAbsBounds()) in isOrderOnly()
111 || change.getLastParent().equals(change.getParent())); in isOrderOnly()
165 (mode == TRANSIT_OPEN) ? change.getEndAbsBounds() : change.getStartAbsBounds(); in setupLeash()
169 if (isDividerBar(change)) { in setupLeash()
216 if (change.getParent() != null && (change.getFlags() & FLAG_IS_WALLPAPER) != 0) { in createLeash()
233 t.show(change.getLeash()); in createLeash()
278 if (isDividerBar(change)) { in newTarget()
299 localBounds.offsetTo(change.getEndRelOffset().x, change.getEndRelOffset().y); in newTarget()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/
H A DActivityEmbeddingAnimationRunner.java199 && !change.getStartAbsBounds().equals(change.getEndAbsBounds())) { in createAnimationAdapters()
243 openingChanges.add(change); in createOpenCloseAnimationAdapters()
246 closingChanges.add(change); in createOpenCloseAnimationAdapters()
267 SurfaceControl screenshot = getOrCreateScreenshot(change, change, startTransaction); in createOpenCloseAnimationAdapters()
358 return new ActivityEmbeddingAnimationAdapter(animation, change, change.getLeash(), in createOpenCloseAnimationAdapter()
384 || change.getStartAbsBounds().equals(change.getEndAbsBounds())) { in createChangeAnimationAdapters()
389 handledChanges.add(change); in createChangeAnimationAdapters()
521 || change.getStartAbsBounds().equals(change.getEndAbsBounds())) { in shouldUseJumpCutForChangeTransition()
524 changingChanges.add(change); in shouldUseJumpCutForChangeTransition()
565 change.getEndRelOffset().x, change.getEndRelOffset().y); in prepareForJumpCut()
[all …]
H A DActivityEmbeddingAnimationAdapter.java77 this(animation, change, change.getLeash(), change.getEndAbsBounds(), root); in ActivityEmbeddingAnimationAdapter()
87 @NonNull TransitionInfo.Change change, @NonNull SurfaceControl leash, in ActivityEmbeddingAnimationAdapter() argument
90 mChange = change; in ActivityEmbeddingAnimationAdapter()
94 final Rect startBounds = change.getStartAbsBounds(); in ActivityEmbeddingAnimationAdapter()
95 final Rect endBounds = change.getEndAbsBounds(); in ActivityEmbeddingAnimationAdapter()
96 if (change.getParent() != null) { in ActivityEmbeddingAnimationAdapter()
97 mContentRelOffset.set(change.getEndRelOffset()); in ActivityEmbeddingAnimationAdapter()
106 if (TransitionUtil.isClosingType(change.getMode())) { in ActivityEmbeddingAnimationAdapter()
115 mContentBounds.set(change.getEndAbsBounds()); in ActivityEmbeddingAnimationAdapter()
196 super(animation, change, snapshotLeash, change.getEndAbsBounds(), root); in SnapshotAdapter()
[all …]
H A DActivityEmbeddingController.java99 final TransitionInfo.Change change = changes.get(i); in startAnimation() local
100 if (!change.hasFlags(FLAG_IN_TASK_WITH_EMBEDDED_ACTIVITY)) { in startAnimation()
102 } else if (!change.hasFlags(FLAG_FILLS_TASK)) { in startAnimation()
142 final TransitionInfo.Change change = changes.get(i); in handleNonEmbeddedChanges() local
143 if (!TransitionUtil.isClosingType(change.getMode())) { in handleNonEmbeddedChanges()
144 if (change.hasFlags(FLAG_IN_TASK_WITH_EMBEDDED_ACTIVITY)) { in handleNonEmbeddedChanges()
145 nonClosingEmbeddedArea.union(change.getEndAbsBounds()); in handleNonEmbeddedChanges()
153 final TransitionInfo.Change change = changes.get(i); in handleNonEmbeddedChanges() local
154 if (!change.hasFlags(FLAG_IN_TASK_WITH_EMBEDDED_ACTIVITY) in handleNonEmbeddedChanges()
162 final TransitionInfo.Change change = changes.get(i); in handleNonEmbeddedChanges() local
[all …]
H A DActivityEmbeddingAnimationSpec.java73 static Animation createNoopAnimation(@NonNull TransitionInfo.Change change) { in createNoopAnimation() argument
90 Animation createChangeBoundsOpenAnimation(@NonNull TransitionInfo.Change change, in createChangeBoundsOpenAnimation() argument
93 final Rect bounds = change.getEndAbsBounds(); in createChangeBoundsOpenAnimation()
121 final Rect bounds = change.getStartAbsBounds(); in createChangeBoundsCloseAnimation()
154 final Rect startBounds = change.getStartAbsBounds(); in createChangeBoundsChangeAnimations()
155 final Rect endBounds = change.getEndAbsBounds(); in createChangeBoundsChangeAnimations()
201 final boolean isEnter = TransitionUtil.isOpeningType(change.getMode()); in loadOpenAnimation()
203 if (shouldShowBackdrop(info, change)) { in loadOpenAnimation()
225 final boolean isEnter = TransitionUtil.isOpeningType(change.getMode()); in loadCloseAnimation()
227 if (shouldShowBackdrop(info, change)) { in loadCloseAnimation()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/freeform/
H A DFreeformTaskTransitionObserver.java88 if (change.getParent() != null in onTransitionReady()
93 taskParents.add(change.getParent()); in onTransitionReady()
99 switch (change.getMode()) { in onTransitionReady()
107 taskInfoList.add(change.getTaskInfo()); in onTransitionReady()
121 TransitionInfo.Change change, in onOpenTransitionReady() argument
125 change.getTaskInfo(), change.getLeash(), startT, finishT); in onOpenTransitionReady()
129 TransitionInfo.Change change, in onCloseTransitionReady() argument
136 TransitionInfo.Change change, in onChangeTransitionReady() argument
140 change.getTaskInfo(), change.getLeash(), startT, finishT); in onChangeTransitionReady()
144 TransitionInfo.Change change, in onToFrontTransitionReady() argument
[all …]
H A DFreeformTaskTransitionHandler.java136 for (TransitionInfo.Change change : info.getChanges()) { in startAnimation()
137 if ((change.getFlags() & TransitionInfo.FLAG_IS_WALLPAPER) != 0) { in startAnimation()
141 final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo(); in startAnimation()
146 switch (change.getMode()) { in startAnimation()
149 transition, info.getType(), change); in startAnimation()
156 transitionHandled |= startCloseTransition(transition, change, in startAnimation()
196 TransitionInfo.Change change) { in startChangeTransition() argument
202 final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo(); in startChangeTransition()
222 private boolean startCloseTransition(IBinder transition, TransitionInfo.Change change, in startCloseTransition() argument
227 .getDisplayLayout(change.getTaskInfo().displayId).height(); in startCloseTransition()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
H A DDefaultTransitionHandler.java218 if (change.getEndRotation() == change.getStartRotation()) continue; in getRotationAnimationHint()
351 final int mode = change.getMode(); in startAnimation()
406 change.getEndAbsBounds().width(), change.getEndAbsBounds().height()); in startAnimation()
409 if (change.getParent() == null && !change.hasFlags(FLAG_IS_DISPLAY) in startAnimation()
410 && change.getStartRotation() != change.getEndRotation()) { in startAnimation()
574 if (change.getTaskInfo() != null in isDreamTransition()
665 final int changeMode = change.getMode(); in loadAnimation()
674 : change.getEndAbsBounds(); in loadAnimation()
725 ? change.getStartAbsBounds() : change.getEndAbsBounds(); in loadAnimation()
848 mMainExecutor, change.getEndRelOffset(), cornerRadius, change.getEndAbsBounds()); in attachCrossProfileThumbnailAnimation()
[all …]
H A DCounterRotatorHelper.java59 final TransitionInfo.Change change = changes.get(i); in handleClosingChanges() local
60 final WindowContainerToken parent = change.getParent(); in handleClosingChanges()
61 if (!TransitionUtil.isClosingType(change.getMode()) in handleClosingChanges()
62 || !TransitionInfo.isIndependent(change, info) || parent == null) { in handleClosingChanges()
74 final int layer = (change.getFlags() & FLAG_IS_WALLPAPER) == 0 in handleClosingChanges()
81 crot.addChild(startTransaction, change.getLeash()); in handleClosingChanges()
90 public Rect getEndBoundsInStartRotation(@NonNull TransitionInfo.Change change) { in getEndBoundsInStartRotation() argument
91 if (mLastRotationDelta == 0) return change.getEndAbsBounds(); in getEndBoundsInStartRotation()
92 final Rect rotatedBounds = new Rect(change.getEndAbsBounds()); in getEndBoundsInStartRotation()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
H A DFluidResizeTaskPositionerTest.kt120 return@argThat wct.changes.any { (token, change) ->
146 return@argThat wct.changes.any { (token, change) ->
168 return@argThat wct.changes.any { (token, change) ->
182 return@argThat wct.changes.any { (token, change) ->
209 return@argThat wct.changes.any { (token, change) ->
212 change.dragResizing
236 return@argThat wct.changes.any { (token, change) ->
239 change.dragResizing
243 return@argThat wct.changes.any { (token, change) ->
246 !change.dragResizing
[all …]
H A DVeiledResizeTaskPositionerTest.kt138 return@argThat wct.changes.any { (token, change) ->
179 return@argThat wct.changes.any { (token, change) ->
182 change.configuration.windowConfiguration.bounds == rectAfterEnd
205 return@argThat wct.changes.any { (token, change) ->
208 change.configuration.windowConfiguration.bounds == rectAfterMove
221 return@argThat wct.changes.any { (token, change) ->
248 return@argThat wct.changes.any { (token, change) ->
255 return@argThat wct.changes.any { (token, change) ->
281 return@argThat wct.changes.any { (token, change) ->
360 return@argThat wct.changes.any { (token, change) ->
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/recents/
H A DRecentsTransitionHandler.java591 recentsOpening = change; in merge()
601 openingTasks.add(change); in merge()
611 closingTasks.add(change); in merge()
635 openingTasks.add(change); in merge()
729 t.show(change.getLeash()); in merge()
762 t.show(change.getLeash()); in merge()
810 t.show(change.getLeash()); in mergeActivityOnly()
813 t.hide(change.getLeash()); in mergeActivityOnly()
1032 mToken = change.getContainer(); in TaskState()
1033 mTaskInfo = change.getTaskInfo(); in TaskState()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
H A DSplitScreenTransitions.java134 final SurfaceControl leash = change.getLeash(); in playInternalAnimation()
139 if (change.getParent() != null) { in playInternalAnimation()
151 change.getEndRelOffset().x, change.getEndRelOffset().y); in playInternalAnimation()
164 change.getEndRelOffset().x, change.getEndRelOffset().y); in playInternalAnimation()
171 t.setPosition(leash, change.getEndAbsBounds().left, change.getEndAbsBounds().top); in playInternalAnimation()
175 t.setPosition(leash, change.getEndAbsBounds().left, change.getEndAbsBounds().top); in playInternalAnimation()
206 t.setPosition(change.getSnapshot(), change.getStartAbsBounds().left, in playInternalAnimation()
207 change.getStartAbsBounds().top); in playInternalAnimation()
208 t.show(change.getSnapshot()); in playInternalAnimation()
266 if (mainRoot.equals(change.getContainer()) || sideRoot.equals(change.getContainer())) { in playResizeAnimation()
[all …]
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DRemoteAnimationRunnerCompat.java101 if (!leashMap.containsKey(change.getLeash())) continue; in wrap()
102 if (change.getTaskInfo() != null in wrap()
104 isReturnToHome = change.getMode() == TRANSIT_OPEN in wrap()
105 || change.getMode() == TRANSIT_TO_FRONT; in wrap()
106 launcherTask = change; in wrap()
109 wallpaper = change; in wrap()
111 if (change.getParent() == null && change.getEndRotation() >= 0 in wrap()
112 && change.getEndRotation() != change.getStartRotation()) { in wrap()
113 rotateDelta = change.getEndRotation() - change.getStartRotation(); in wrap()
114 displayW = change.getEndAbsBounds().width(); in wrap()
[all …]
H A DRemoteAnimationTargetCompat.java56 return wrap(info, t, leashMap, (change) -> (wallpapers in wrapNonApps()
57 ? TransitionUtil.isWallpaper(change) : TransitionUtil.isNonApp(change))); in wrapNonApps()
65 TransitionInfo.Change change = info.getChanges().get(i); in wrap() local
66 if (TransitionUtil.isOrderOnly(change)) continue; in wrap()
67 if (filter.test(change)) { in wrap()
69 change, info.getChanges().size() - i, info, t, leashMap)); in wrap()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
H A DEnterDesktopTaskTransitionHandler.java176 @NonNull TransitionInfo.Change change, in startChangeTransition() argument
195 final Rect endBounds = change.getEndAbsBounds(); in startChangeTransition()
213 @NonNull TransitionInfo.Change change, in animateMoveToDesktop()
221 final SurfaceControl leash = change.getLeash(); in animateMoveToDesktop()
229 change.getStartAbsBounds(), change.getEndAbsBounds()); in animateMoveToDesktop()
252 @NonNull TransitionInfo.Change change, in animateStartDragToDesktopMode()
258 final SurfaceControl sc = change.getLeash(); in animateStartDragToDesktopMode()
281 @NonNull TransitionInfo.Change change, in animateFinalizeDragToDesktopMode()
288 final SurfaceControl sc = change.getLeash(); in animateFinalizeDragToDesktopMode()
335 @NonNull TransitionInfo.Change change, in animateCancelDragToDesktopMode()
[all …]
H A DToggleResizeDesktopTaskTransitionHandler.kt70 val change = findRelevantChange(info) regex
71 val leash = change.leash
72 val taskId = checkNotNull(change.taskInfo).taskId
73 val startBounds = change.startAbsBounds
74 val endBounds = change.endAbsBounds
143 private fun isWallpaper(change: TransitionInfo.Change): Boolean {
144 return (change.flags and TransitionInfo.FLAG_IS_WALLPAPER) != 0
147 private fun isValidTaskChange(change: TransitionInfo.Change): Boolean {
148 return change.taskInfo != null && change.taskInfo?.taskId != -1
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/log/table/
H A DTableLogBuffer.kt215 change.set(value)
216 tryAddMessage(change)
229 change.set(value)
230 tryAddMessage(change)
243 change.set(value)
244 tryAddMessage(change)
248 private fun tryAddMessage(change: TableChange) {
249 logMessageChannel.trySend(change)
283 val name = change.getName()
288 previouslyEvicted.updateTo(change)
[all …]
H A DTableChange.kt77 fun updateTo(change: TableChange) {
78 reset(change.timestamp, change.columnPrefix, change.columnName, change.isInitial)
79 when (change.type) {
80 DataType.STRING -> set(change.str)
81 DataType.INT -> set(change.int)
82 DataType.BOOLEAN -> set(change.bool)
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
H A DEnterDesktopTaskTransitionHandlerTest.java109 TransitionInfo.Change change = in testEnterFreeformAnimation() local
112 change); in testEnterFreeformAnimation()
131 TransitionInfo.Change change = in testTransitEnterDesktopModeAnimation() local
133 change.setEndAbsBounds(new Rect(0, 0, 1, 1)); in testTransitEnterDesktopModeAnimation()
135 Transitions.TRANSIT_FINALIZE_DRAG_TO_DESKTOP_MODE, change); in testTransitEnterDesktopModeAnimation()
148 change.getEndAbsBounds().height()); in testTransitEnterDesktopModeAnimation()
157 final TransitionInfo.Change change = new TransitionInfo.Change( in createChange() local
159 change.setMode(type); in createChange()
160 change.setTaskInfo(taskInfo); in createChange()
161 return change; in createChange()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
H A DTransitionInfoBuilder.java54 final TransitionInfo.Change change = new TransitionInfo.Change( in addChange() local
56 change.setMode(mode); in addChange()
57 change.setFlags(flags); in addChange()
58 change.setTaskInfo(taskInfo); in addChange()
59 return addChange(change); in addChange()
71 public TransitionInfoBuilder addChange(TransitionInfo.Change change) { in addChange() argument
72 change.setDisplayId(DISPLAY_ID, DISPLAY_ID); in addChange()
73 mInfo.addChange(change); in addChange()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/freeform/
H A DFreeformTaskTransitionObserverTest.java96 final TransitionInfo.Change change = in testCreatesWindowDecorOnOpenTransition_freeform() local
99 .addChange(change).build(); in testCreatesWindowDecorOnOpenTransition_freeform()
108 change.getTaskInfo(), change.getLeash(), startT, finishT); in testCreatesWindowDecorOnOpenTransition_freeform()
113 final TransitionInfo.Change change = in testPreparesWindowDecorOnCloseTransition_freeform() local
116 .addChange(change).build(); in testPreparesWindowDecorOnCloseTransition_freeform()
130 final TransitionInfo.Change change = in testDoesntCloseWindowDecorDuringCloseTransition() local
133 .addChange(change).build(); in testDoesntCloseWindowDecorDuringCloseTransition()
149 .addChange(change).build(); in testClosesWindowDecorAfterCloseTransition()
234 change.setMode(mode); in createChange()
235 change.setTaskInfo(taskInfo); in createChange()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/
H A DUnfoldTransitionHandler.java113 info.getChanges().forEach(change -> { in startAnimation()
114 if (change.getTaskInfo() != null) { in startAnimation()
117 change.getTaskInfo(), TransitionInfo.modeToString(change.getMode()), in startAnimation()
118 animator.isApplicableTask(change.getTaskInfo())); in startAnimation()
120 if (change.getTaskInfo() != null && (change.getMode() == TRANSIT_CHANGE in startAnimation()
121 || TransitionUtil.isOpeningType(change.getMode())) in startAnimation()
122 && animator.isApplicableTask(change.getTaskInfo())) { in startAnimation()
123 animator.onTaskAppeared(change.getTaskInfo(), change.getLeash()); in startAnimation()
184 final TransitionInfo.Change change = info.getChanges().get(i); in mergeAnimation() local
185 final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo(); in mergeAnimation()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DUidObserverControllerTest.java84 int change = mUidObserverController.enqueueUidChange(null, TEST_UID1, in testEnqueueUidChange() local
87 assertEquals("expected=ACTIVE,actual=" + changeToStr(change), in testEnqueueUidChange()
88 UidRecord.CHANGE_ACTIVE, change); in testEnqueueUidChange()
95 change = mUidObserverController.enqueueUidChange(record2, TEST_UID2, in testEnqueueUidChange()
98 assertEquals("expected=ACTIVE,actual=" + changeToStr(change), in testEnqueueUidChange()
99 UidRecord.CHANGE_CACHED, change); in testEnqueueUidChange()
105 change = mUidObserverController.enqueueUidChange(record1, TEST_UID1, in testEnqueueUidChange()
109 UidRecord.CHANGE_ACTIVE | UidRecord.CHANGE_UNCACHED, change); in testEnqueueUidChange()
235 record.change = change; in addPendingChange()
250 assertEquals(change, record.change); in assertPendingChange()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/system/
H A DRemoteTransitionTest.java119 final TransitionInfo.Change change = tinfo.getChanges().get(0);
121 change.setTaskInfo(createTaskInfo(1 /* taskId */, ACTIVITY_TYPE_HOME));
122 change.setEndAbsBounds(endBounds);
123 change.setEndRelOffset(0, 0);
125 change, 0 /* order */, tinfo, mock(SurfaceControl.Transaction.class), null);
142 final TransitionInfo.Change change =
144 change.setMode(mode);
145 change.setFlags(flags);
146 change.setTaskInfo(taskInfo);
147 change.setDisplayId(0, 0);
[all …]

12345678910>>...33