Home
last modified time | relevance | path

Searched refs:leash (Results 1 – 25 of 80) sorted by relevance

1234

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipSurfaceTransactionHelper.java53 public PipSurfaceTransactionHelper alpha(SurfaceControl.Transaction tx, SurfaceControl leash, in alpha() argument
55 tx.setAlpha(leash, alpha); in alpha()
63 public PipSurfaceTransactionHelper crop(SurfaceControl.Transaction tx, SurfaceControl leash, in crop() argument
65 tx.setWindowCrop(leash, destinationBounds.width(), destinationBounds.height()) in crop()
66 .setPosition(leash, destinationBounds.left, destinationBounds.top); in crop()
74 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() argument
76 return scale(tx, leash, sourceBounds, destinationBounds, 0 /* degrees */); in scale()
83 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() argument
93 tx.setMatrix(leash, mTmpTransform, mTmpFloat9); in scale()
102 SurfaceControl leash, in scaleAndCrop() argument
[all …]
DPipAnimationController.java118 public PipTransitionAnimator getAnimator(TaskInfo taskInfo, SurfaceControl leash, in getAnimator() argument
122 PipTransitionAnimator.ofAlpha(taskInfo, leash, destinationBounds, alphaStart, in getAnimator()
131 PipTransitionAnimator.ofAlpha(taskInfo, leash, destinationBounds, alphaStart, in getAnimator()
157 public PipTransitionAnimator getAnimator(TaskInfo taskInfo, SurfaceControl leash, in getAnimator() argument
163 PipTransitionAnimator.ofBounds(taskInfo, leash, startBounds, startBounds, in getAnimator()
180 PipTransitionAnimator.ofBounds(taskInfo, leash, baseBounds, startBounds, in getAnimator()
231 public boolean handlePipTransaction(SurfaceControl leash, SurfaceControl.Transaction tx, in handlePipTransaction() argument
262 private PipTransitionAnimator(TaskInfo taskInfo, SurfaceControl leash, in PipTransitionAnimator() argument
266 mLeash = leash; in PipTransitionAnimator()
331 boolean handlePipTransaction(SurfaceControl leash, SurfaceControl.Transaction tx, in handlePipTransaction() argument
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/pip/
DPipSurfaceTransactionHelper.java44 SurfaceControl.Transaction tx, SurfaceControl leash, in scale() argument
53 tx.setMatrix(leash, mTmpTransform, mTmpFloat9) in scale()
54 .setPosition(leash, positionX, positionY) in scale()
55 .setCornerRadius(leash, cornerRadius); in scale()
61 SurfaceControl.Transaction tx, SurfaceControl leash, in scale() argument
70 tx.setMatrix(leash, mTmpTransform, mTmpFloat9) in scale()
71 .setPosition(leash, positionX, positionY) in scale()
72 .setCornerRadius(leash, cornerRadius); in scale()
78 SurfaceControl.Transaction tx, SurfaceControl leash, in scaleAndCrop() argument
92 tx.setMatrix(leash, mTmpTransform, mTmpFloat9) in scaleAndCrop()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedAnimationController.java74 OneHandedTransitionAnimator getAnimator(WindowContainerToken token, SurfaceControl leash, in getAnimator() argument
79 OneHandedTransitionAnimator.ofYOffset(token, leash, startPos, endPos, in getAnimator()
86 OneHandedTransitionAnimator.ofYOffset(token, leash, startPos, endPos, in getAnimator()
138 private OneHandedTransitionAnimator(WindowContainerToken token, SurfaceControl leash, in OneHandedTransitionAnimator() argument
140 mLeash = leash; in OneHandedTransitionAnimator()
191 void onStartTransaction(SurfaceControl leash, SurfaceControl.Transaction tx) { in onStartTransaction() argument
194 void onEndTransaction(SurfaceControl leash, SurfaceControl.Transaction tx) { in onEndTransaction() argument
197 abstract void applySurfaceControlTransaction(SurfaceControl leash, in applySurfaceControlTransaction() argument
259 SurfaceControl leash, float startValue, float endValue, Rect displayBounds) { in ofYOffset() argument
261 return new OneHandedTransitionAnimator(token, leash, startValue, endValue) { in ofYOffset()
[all …]
DOneHandedSurfaceTransactionHelper.java54 OneHandedSurfaceTransactionHelper translate(SurfaceControl.Transaction tx, SurfaceControl leash, in translate() argument
56 tx.setPosition(leash, 0, offset); in translate()
65 OneHandedSurfaceTransactionHelper crop(SurfaceControl.Transaction tx, SurfaceControl leash, in crop() argument
67 tx.setWindowCrop(leash, destinationBounds.width(), destinationBounds.height()); in crop()
76 OneHandedSurfaceTransactionHelper round(SurfaceControl.Transaction tx, SurfaceControl leash) { in round() argument
78 tx.setCornerRadius(leash, mCornerRadius); in round()
DOneHandedDisplayAreaOrganizer.java144 @NonNull SurfaceControl leash) { in onDisplayAreaAppeared() argument
145 mDisplayAreaTokenMap.put(displayAreaInfo.token, leash); in onDisplayAreaAppeared()
216 (token, leash) -> { in scheduleOffset() argument
217 animateWindows(token, leash, fromPos, yOffset, direction, in scheduleOffset()
228 (token, leash) -> { in resetWindowsOffset() argument
234 tx.setPosition(leash, 0, 0) in resetWindowsOffset()
235 .setWindowCrop(leash, -1, -1) in resetWindowsOffset()
236 .setCornerRadius(leash, -1); in resetWindowsOffset()
243 private void animateWindows(WindowContainerToken token, SurfaceControl leash, float fromPos, in animateWindows() argument
247 mAnimationController.getAnimator(token, leash, fromPos, toPos, in animateWindows()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DRemoteAnimationTargetCompat.java60 public final SurfaceControlCompat leash; field in RemoteAnimationTargetCompat
79 leash = new SurfaceControlCompat(app.leash); in RemoteAnimationTargetCompat()
116 private static void setupLeash(@NonNull SurfaceControl leash, in setupLeash() argument
128 t.show(leash); in setupLeash()
129 t.setPosition(leash, change.getEndRelOffset().x, change.getEndRelOffset().y); in setupLeash()
137 t.reparent(leash, info.getRootLeash()); in setupLeash()
138 t.setPosition(leash, change.getStartAbsBounds().left - info.getRootOffset().x, in setupLeash()
141 t.show(leash); in setupLeash()
145 t.setLayer(leash, zSplitLine + info.getChanges().size() - layer); in setupLeash()
148 t.setAlpha(leash, 0.f); in setupLeash()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/legacysplitscreen/
DLegacySplitScreenTaskListener.java121 public void onTaskAppeared(RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
124 handleChildTaskAppeared(taskInfo, leash); in onTaskAppeared()
133 mPrimarySurface = leash; in onTaskAppeared()
138 mSecondarySurface = leash; in onTaskAppeared()
229 private void handleChildTaskAppeared(RunningTaskInfo taskInfo, SurfaceControl leash) { in handleChildTaskAppeared() argument
230 mLeashByTaskId.put(taskInfo.taskId, leash); in handleChildTaskAppeared()
233 updateChildTaskSurface(taskInfo, leash, true /* firstAppeared */); in handleChildTaskAppeared()
238 final SurfaceControl leash = mLeashByTaskId.get(taskInfo.taskId); in handleChildTaskChanged()
239 updateChildTaskSurface(taskInfo, leash, false /* firstAppeared */); in handleChildTaskChanged()
243 RunningTaskInfo taskInfo, SurfaceControl leash, boolean firstAppeared) { in updateChildTaskSurface() argument
[all …]
DLegacySplitScreenTransitions.java122 private void startExampleAnimation(@NonNull SurfaceControl leash, boolean show) { in startExampleAnimation() argument
130 transaction.setAlpha(leash, start * (1.f - fraction) + end * fraction); in startExampleAnimation()
134 transaction.setAlpha(leash, end); in startExampleAnimation()
164 private void startExampleResizeAnimation(@NonNull SurfaceControl leash, in startExampleResizeAnimation() argument
171 transaction.setWindowCrop(leash, in startExampleResizeAnimation()
175 transaction.setPosition(leash, in startExampleResizeAnimation()
181 transaction.setWindowCrop(leash, 0, 0); in startExampleResizeAnimation()
182 transaction.setPosition(leash, endBounds.left, endBounds.top); in startExampleResizeAnimation()
235 final SurfaceControl leash = change.getLeash(); in startAnimation() local
246 t.reparent(leash, info.getRootLeash()); in startAnimation()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DSplitScreenTransitions.java108 final SurfaceControl leash = change.getLeash(); in playInternalAnimation() local
119 t.reparent(leash, info.getRootLeash()); in playInternalAnimation()
120 t.setLayer(leash, info.getChanges().size() - i); in playInternalAnimation()
122 mFinishTransaction.reparent(leash, parentChange.getLeash()); in playInternalAnimation()
123 mFinishTransaction.setPosition(leash, in playInternalAnimation()
137 startExampleResizeAnimation(leash, startBounds, endBounds); in playInternalAnimation()
145 t.setWindowCrop(leash, change.getStartAbsBounds().width(), in playInternalAnimation()
151 startExampleAnimation(leash, true /* show */); in playInternalAnimation()
158 t.setAlpha(leash, 0.f); in playInternalAnimation()
160 startExampleAnimation(leash, false /* show */); in playInternalAnimation()
[all …]
DStageTaskListener.java102 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
104 mRootLeash = leash; in onTaskAppeared()
112 mChildrenLeashes.put(taskId, leash); in onTaskAppeared()
114 updateChildTaskSurface(taskInfo, leash, true /* firstAppeared */); in onTaskAppeared()
208 SurfaceControl leash, boolean firstAppeared) { in updateChildTaskSurface() argument
211 t.setWindowCrop(leash, null); in updateChildTaskSurface()
212 t.setPosition(leash, taskPositionInParent.x, taskPositionInParent.y); in updateChildTaskSurface()
214 t.setAlpha(leash, 1f); in updateChildTaskSurface()
215 t.setMatrix(leash, 1, 0, 0, 1); in updateChildTaskSurface()
216 t.show(leash); in updateChildTaskSurface()
/frameworks/base/services/core/java/com/android/server/wm/
DSurfaceAnimator.java306 final SurfaceControl leash = mLeash;
313 animation.onAnimationCancelled(leash);
325 if (forwardCancel && leash != null) {
326 t.remove(leash);
343 SurfaceControl leash = mLeash;
345 final boolean scheduleAnim = removeLeash(t, mAnimatable, leash, destroyLeash);
351 static boolean removeLeash(Transaction t, Animatable animatable, @NonNull SurfaceControl leash,
371 t.remove(leash);
400 final SurfaceControl leash = builder.build();
401 t.setWindowCrop(leash, width, height);
[all …]
DWindowAnimationSpec.java88 public void apply(Transaction t, SurfaceControl leash, long currentPlayTime) { in apply() argument
93 t.setMatrix(leash, tmp.transformation.getMatrix(), tmp.floats); in apply()
94 t.setAlpha(leash, tmp.transformation.getAlpha()); in apply()
99 t.setWindowCrop(leash, tmp.transformation.getClipRect()); in apply()
107 t.setWindowCrop(leash, mTmpRect); in apply()
114 t.setCornerRadius(leash, mWindowCornerRadius); in apply()
DSurfaceAnimationRunner.java150 void onAnimationCancelled(SurfaceControl leash) { in onAnimationCancelled() argument
152 if (mPendingAnimations.containsKey(leash)) { in onAnimationCancelled()
153 mPendingAnimations.remove(leash); in onAnimationCancelled()
156 final RunningAnimation anim = mRunningAnimations.get(leash); in onAnimationCancelled()
158 mRunningAnimations.remove(leash); in onAnimationCancelled()
276 RunningAnimation(AnimationSpec animSpec, SurfaceControl leash, Runnable finishCallback) { in RunningAnimation() argument
278 mLeash = leash; in RunningAnimation()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/
DFullscreenTaskListener.java52 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument
59 mDataByTaskId.put(taskInfo.taskId, new TaskData(leash, positionInParent)); in onTaskAppeared()
64 t.setWindowCrop(leash, null); in onTaskAppeared()
65 t.setPosition(leash, positionInParent.x, positionInParent.y); in onTaskAppeared()
66 t.setAlpha(leash, 1f); in onTaskAppeared()
67 t.setMatrix(leash, 1, 0, 0, 1); in onTaskAppeared()
68 t.show(leash); in onTaskAppeared()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/hidedisplaycutout/
DHideDisplayCutoutOrganizer.java111 @NonNull SurfaceControl leash) { in onDisplayAreaAppeared() argument
112 if (!addDisplayAreaInfoAndLeashToMap(displayAreaInfo, leash)) { in onDisplayAreaAppeared()
117 applyBoundsAndOffsets(displayAreaInfo.token, leash, wct, tx); in onDisplayAreaAppeared()
141 final SurfaceControl leash = displayAreaInfos.get(i).getLeash(); in updateDisplayAreaMap() local
142 addDisplayAreaInfoAndLeashToMap(info, leash); in updateDisplayAreaMap()
148 @NonNull SurfaceControl leash) { in addDisplayAreaInfoAndLeashToMap() argument
157 mDisplayAreaMap.put(displayAreaInfo.token, leash); in addDisplayAreaInfoAndLeashToMap()
290 mDisplayAreaMap.forEach((token, leash) -> {
291 applyBoundsAndOffsets(token, leash, wct, t);
297 void applyBoundsAndOffsets(WindowContainerToken token, SurfaceControl leash, in applyBoundsAndOffsets() argument
[all …]
/frameworks/base/core/java/android/window/
DDisplayAreaAppearedInfo.java45 final SurfaceControl leash = source.readTypedObject(SurfaceControl.CREATOR);
46 return new DisplayAreaAppearedInfo(displayAreaInfo, leash);
57 @NonNull SurfaceControl leash) { in DisplayAreaAppearedInfo() argument
59 mLeash = leash; in DisplayAreaAppearedInfo()
DTaskAppearedInfo.java44 final SurfaceControl leash = source.readTypedObject(SurfaceControl.CREATOR);
45 return new TaskAppearedInfo(taskInfo, leash);
55 public TaskAppearedInfo(@NonNull RunningTaskInfo taskInfo, @NonNull SurfaceControl leash) { in TaskAppearedInfo() argument
57 mLeash = leash; in TaskAppearedInfo()
DTaskOrganizer.java110 public void removeStartingWindow(int taskId, @Nullable SurfaceControl leash, in removeStartingWindow() argument
136 @NonNull SurfaceControl leash) {} in onTaskAppeared() argument
255 public void removeStartingWindow(int taskId, SurfaceControl leash, Rect frame,
257 mExecutor.execute(() -> TaskOrganizer.this.removeStartingWindow(taskId, leash, frame,
272 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) {
273 mExecutor.execute(() -> TaskOrganizer.this.onTaskAppeared(taskInfo, leash));
DITaskOrganizer.aidl46 void removeStartingWindow(int taskId, in SurfaceControl leash, in Rect frame, in removeStartingWindow() argument
67 void onTaskAppeared(in ActivityManager.RunningTaskInfo taskInfo, in SurfaceControl leash); in onTaskAppeared() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DTransitions.java237 final SurfaceControl leash = change.getLeash(); in setupStartState() local
243 t.show(leash); in setupStartState()
244 t.setMatrix(leash, 1, 0, 0, 1); in setupStartState()
245 t.setAlpha(leash, 1.f); in setupStartState()
246 t.setPosition(leash, change.getEndRelOffset().x, change.getEndRelOffset().y); in setupStartState()
252 t.show(leash); in setupStartState()
253 t.setMatrix(leash, 1, 0, 0, 1); in setupStartState()
257 t.setAlpha(leash, 0.f); in setupStartState()
259 finishT.setAlpha(leash, 1.f); in setupStartState()
268 finishT.hide(leash); in setupStartState()
[all …]
/frameworks/base/core/java/android/view/
DRemoteAnimationTarget.java98 public final SurfaceControl leash; field in RemoteAnimationTarget
205 public RemoteAnimationTarget(int taskId, int mode, SurfaceControl leash, boolean isTranslucent, in RemoteAnimationTarget() argument
210 this(taskId, mode, leash, isTranslucent, clipRect, contentInsets, prefixOrderIndex, in RemoteAnimationTarget()
215 public RemoteAnimationTarget(int taskId, int mode, SurfaceControl leash, boolean isTranslucent, in RemoteAnimationTarget() argument
224 this.leash = leash; in RemoteAnimationTarget()
244 leash = in.readTypedObject(SurfaceControl.CREATOR); in RemoteAnimationTarget()
270 dest.writeTypedObject(leash, 0 /* flags */); in writeToParcel()
300 pw.print(prefix); pw.print("leash="); pw.println(leash); in dump()
309 leash.dumpDebug(proto, LEASH); in dumpDebug()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sizecompatui/
DSizeCompatUILayout.java267 final SurfaceControl leash = mButtonWindowManager.getSurfaceControl(); in updateButtonSurfacePosition() local
281 updateSurfacePosition(leash, positionX, positionY); in updateButtonSurfacePosition()
289 final SurfaceControl leash = mHintWindowManager.getSurfaceControl(); in updateHintSurfacePosition() local
304 updateSurfacePosition(leash, positionX, positionY); in updateHintSurfacePosition()
307 private void updateSurfacePosition(SurfaceControl leash, int positionX, int positionY) { in updateSurfacePosition() argument
309 t.setPosition(leash, positionX, positionY); in updateSurfacePosition()
312 t.setLayer(leash, Integer.MAX_VALUE); in updateSurfacePosition()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DAppWindowTokenAnimationTests.java92 final SurfaceControl leash = mActivity.mSurfaceAnimator.mLeash; in clipAfterAnim_boundsLayerIsDestroyed() local
102 verify(mTransaction).remove(eq(leash)); in clipAfterAnim_boundsLayerIsDestroyed()
112 final SurfaceControl leash = mActivity.mSurfaceAnimator.mLeash; in clipAfterAnimCancelled_boundsLayerIsDestroyed() local
116 verify(mTransaction).remove(eq(leash)); in clipAfterAnimCancelled_boundsLayerIsDestroyed()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipAnimationControllerTest.java211 public SurfaceControl.Transaction setAlpha(SurfaceControl leash, float alpha) { in setAlpha() argument
216 public SurfaceControl.Transaction setPosition(SurfaceControl leash, float x, float y) { in setPosition() argument
221 public SurfaceControl.Transaction setWindowCrop(SurfaceControl leash, int w, int h) { in setWindowCrop() argument
226 public SurfaceControl.Transaction setCornerRadius(SurfaceControl leash, float radius) { in setCornerRadius() argument
231 public SurfaceControl.Transaction setMatrix(SurfaceControl leash, Matrix matrix, in setMatrix() argument

1234