Home
last modified time | relevance | path

Searched refs:mLeash (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipContentOverlay.java42 protected SurfaceControl mLeash; field in PipContentOverlay
49 if (mLeash != null && mLeash.isValid()) { in detach()
50 tx.remove(mLeash); in detach()
57 return mLeash; in getLeash()
78 mLeash = new SurfaceControl.Builder(new SurfaceSession()) in PipColorOverlay()
87 tx.show(mLeash); in attach()
88 tx.setLayer(mLeash, Integer.MAX_VALUE); in attach()
89 tx.setColor(mLeash, getContentOverlayColor(mContext)); in attach()
90 tx.setAlpha(mLeash, 0f); in attach()
91 tx.reparent(mLeash, parentLeash); in attach()
[all …]
DPipTaskOrganizer.java218 mSurfaceTransactionHelper.round(tx, mLeash, isInPip());
329 protected SurfaceControl mLeash; field in PipTaskOrganizer
584 return mLeash; in getSurfaceControl()
638 if (mLeash == null) { in exitPip()
665 mSurfaceTransactionHelper.scale(tx, mLeash, destinationBounds, in exitPip()
667 tx.setWindowCrop(mLeash, destinationBounds.width(), destinationBounds.height()); in exitPip()
731 animator.applySurfaceControlTransaction(mLeash, t, FRACTION_START); in exitPip()
760 if (!mPipTransitionState.isInPip() || mToken == null || mLeash == null) { in removePip()
764 mPipTransitionState.getTransitionState(), mToken, mLeash); in removePip()
770 .getAnimator(mTaskInfo, mLeash, mPipBoundsState.getBounds(), in removePip()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DSurfaceFreezer.java59 SurfaceControl mLeash; field in SurfaceFreezer
85 mLeash = SurfaceAnimator.createAnimationLeash(mAnimatable, mAnimatable.getSurfaceControl(), in freeze()
89 mAnimatable.onAnimationLeashCreated(t, mLeash); in freeze()
103 mSnapshot = new Snapshot(t, screenshotBuffer, mLeash); in freeze()
112 SurfaceControl out = mLeash; in takeLeashForAnimation()
113 mLeash = null; in takeLeashForAnimation()
143 if (mLeash == null) { in unfreezeInner()
146 SurfaceControl leash = mLeash; in unfreezeInner()
147 mLeash = null; in unfreezeInner()
165 if (mLeash != null) { in reset()
[all …]
DSurfaceAnimator.java62 SurfaceControl mLeash; field in SurfaceAnimator
183 mLeash = freezer != null ? freezer.takeLeashForAnimation() : null;
184 if (mLeash == null) {
185 mLeash = createAnimationLeash(mAnimatable, surface, t, type,
188 mAnimatable.onAnimationLeashCreated(t, mLeash);
190 mAnimatable.onLeashAnimationStarting(t, mLeash);
195 mAnimation.startAnimation(mLeash, t, type, mInnerAnimationFinishedCallback);
238 mAnimation.startAnimation(mLeash, mAnimatable.getSyncTransaction(),
280 t.setLayer(mLeash != null ? mLeash : mAnimatable.getSurfaceControl(), layer);
289 … t.setRelativeLayer(mLeash != null ? mLeash : mAnimatable.getSurfaceControl(), relativeTo, layer);
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/
DActivityEmbeddingAnimationAdapter.java50 final SurfaceControl mLeash; field in ActivityEmbeddingAnimationAdapter
91 mLeash = leash; in ActivityEmbeddingAnimationAdapter()
129 startTransaction.show(mLeash); in prepareForFirstFrame()
131 startTransaction.setLayer(mLeash, mOverrideLayer); in prepareForFirstFrame()
150 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
151 t.setAlpha(mLeash, mTransformation.getAlpha()); in onAnimationUpdateInner()
167 t.setAlpha(mLeash, 0); in onAnimationUpdateInner()
176 t.setCrop(mLeash, cropRect); in onAnimationUpdateInner()
204 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
205 t.setAlpha(mLeash, mTransformation.getAlpha()); in onAnimationUpdateInner()
[all …]
/frameworks/base/core/java/android/view/
DInsetsSourceControl.java47 private final @Nullable SurfaceControl mLeash; field in InsetsSourceControl
62 mLeash = leash; in InsetsSourceControl()
71 if (other.mLeash != null) { in InsetsSourceControl()
72 mLeash = new SurfaceControl(other.mLeash, "InsetsSourceControl"); in InsetsSourceControl()
74 mLeash = null; in InsetsSourceControl()
85 mLeash = in.readTypedObject(SurfaceControl.CREATOR); in InsetsSourceControl()
107 return mLeash; in getLeash()
168 dest.writeTypedObject(mLeash, mParcelableFlags); in writeToParcel()
176 if (mLeash != null) { in release()
177 surfaceReleaseConsumer.accept(mLeash); in release()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipAnimationControllerTest.java62 private SurfaceControl mLeash; field in PipAnimationControllerTest
74 mLeash = new SurfaceControl.Builder() in setUp()
83 .getAnimator(mTaskInfo, mLeash, new Rect(), 0f, 1f); in getAnimator_withAlpha_returnFloatAnimator()
92 .getAnimator(mTaskInfo, mLeash, new Rect(), new Rect(), new Rect(), null, in getAnimator_withBounds_returnBoundsAnimator()
106 .getAnimator(mTaskInfo, mLeash, baseValue, startValue, endValue1, null, in getAnimator_whenSameTypeRunning_updateExistingAnimator()
113 .getAnimator(mTaskInfo, mLeash, baseValue, startValue, endValue2, null, in getAnimator_whenSameTypeRunning_updateExistingAnimator()
125 .getAnimator(mTaskInfo, mLeash, new Rect(), 0f, 1f) in getAnimator_setTransitionDirection()
131 .getAnimator(mTaskInfo, mLeash, new Rect(), 0f, 1f) in getAnimator_setTransitionDirection()
144 .getAnimator(mTaskInfo, mLeash, null, startBounds, endBounds, null, in pipTransitionAnimator_rotatedEndValue()
147 animator.applySurfaceControlTransaction(mLeash, tx, 1); in pipTransitionAnimator_rotatedEndValue()
[all …]
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DTaskFragmentAnimationAdapter.java50 final SurfaceControl mLeash; field in TaskFragmentAnimationAdapter
91 mLeash = leash; in TaskFragmentAnimationAdapter()
121 t.show(mLeash); in onAnimationUpdate()
123 t.setLayer(mLeash, mOverrideLayer); in onAnimationUpdate()
139 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
140 t.setAlpha(mLeash, mTransformation.getAlpha()); in onAnimationUpdateInner()
156 t.setAlpha(mLeash, 0); in onAnimationUpdateInner()
161 t.setCrop(mLeash, cropRect); in onAnimationUpdateInner()
188 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
189 t.setAlpha(mLeash, mTransformation.getAlpha()); in onAnimationUpdateInner()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DBackgroundWindowManager.java67 private SurfaceControl mLeash; field in BackgroundWindowManager
115 mLeash = builder.build(); in getParentSurface()
116 return mLeash; in getParentSurface()
150 if (mBackgroundView == null || mViewHost == null || mLeash == null) { in updateThemeOnly()
170 if (mLeash == null) { in showBackgroundLayer()
177 .setAlpha(mLeash, 1.0f) in showBackgroundLayer()
178 .setLayer(mLeash, -1 /* at bottom-most layer */) in showBackgroundLayer()
179 .show(mLeash) in showBackgroundLayer()
196 if (mLeash != null) { in removeBackgroundLayer()
197 mTransactionFactory.getTransaction().remove(mLeash).apply(); in removeBackgroundLayer()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/taskview/
DTaskViewTest.java99 SurfaceControl mLeash; field in TaskViewTest
109 mLeash = new SurfaceControl.Builder(mSession) in setUp()
181 mTaskViewTaskController.onTaskAppeared(mTaskInfo, mLeash); in testOnTaskAppeared_noSurface_legacyTransitions()
193 mTaskViewTaskController.onTaskAppeared(mTaskInfo, mLeash); in testOnTaskAppeared_withSurface_legacyTransitions()
214 mTaskViewTaskController.onTaskAppeared(mTaskInfo, mLeash); in testSurfaceCreated_withTask_legacyTransitions()
238 mTaskViewTaskController.onTaskAppeared(mTaskInfo, mLeash); in testSurfaceDestroyed_withTask_shouldNotHideTask_legacyTransitions()
250 mTaskViewTaskController.onTaskAppeared(mTaskInfo, mLeash); in testSurfaceDestroyed_withTask_legacyTransitions()
261 mTaskViewTaskController.onTaskAppeared(mTaskInfo, mLeash); in testOnReleased_legacyTransitions()
273 mTaskViewTaskController.onTaskAppeared(mTaskInfo, mLeash); in testOnTaskVanished_legacyTransitions()
283 mTaskViewTaskController.onTaskAppeared(mTaskInfo, mLeash); in testOnBackPressedOnTaskRoot_legacyTransitions()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DSplitWindowManager.java59 private SurfaceControl mLeash; field in SplitWindowManager
108 mLeash = builder.build(); in getParentSurface()
109 mParentContainerCallbacks.onLeashReady(mLeash); in getParentSurface()
110 return mLeash; in getParentSurface()
163 if (mLeash != null) { in release()
165 new SurfaceControl.Transaction().remove(mLeash).apply(); in release()
167 t.remove(mLeash); in release()
169 mLeash = null; in release()
205 return mLeash; in getSurfaceControl()
/frameworks/base/core/java/android/window/
DDisplayAreaAppearedInfo.java37 private final SurfaceControl mLeash; field in DisplayAreaAppearedInfo
59 mLeash = leash; in DisplayAreaAppearedInfo()
65 dest.writeTypedObject(mLeash, flags); in writeToParcel()
86 return mLeash; in getLeash()
DTaskAppearedInfo.java37 private final SurfaceControl mLeash; field in TaskAppearedInfo
57 mLeash = leash; in TaskAppearedInfo()
63 dest.writeTypedObject(mLeash, flags); in writeToParcel()
84 return mLeash; in getLeash()
DTransitionInfo.java353 return mRoots.get(0).mLeash; in getRootLeash()
607 mRoots.get(i).mLeash.release(); in releaseAnimSurfaces()
660 private SurfaceControl mLeash; field in TransitionInfo.Change
686 mLeash = leash; in Change()
693 mLeash = new SurfaceControl(); in Change()
694 mLeash.readFromParcel(in); in Change()
716 final Change out = new Change(mContainer, new SurfaceControl(mLeash, "localRemote")); in localRemoteCopy()
755 mLeash = Objects.requireNonNull(leash); in setLeash()
922 return mLeash; in getLeash()
1000 mLeash.writeToParcel(dest, flags); in writeToParcel()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DCompatUIWindowManagerAbstract.java84 protected SurfaceControl mLeash; field in CompatUIWindowManagerAbstract
182 mLeash = builder.build(); in getParentSurface()
183 initSurface(mLeash); in getParentSurface()
184 return mLeash; in getParentSurface()
315 if (mLeash != null) { in release()
316 final SurfaceControl leash = mLeash; in release()
318 mLeash = null; in release()
358 if (mLeash == null) { in updateSurfacePosition()
362 if (mLeash == null || !mLeash.isValid()) { in updateSurfacePosition()
366 t.setPosition(mLeash, positionX, positionY); in updateSurfacePosition()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/unfold/
DUnfoldAnimationControllerTest.java74 private SurfaceControl mLeash; field in UnfoldAnimationControllerTest
114 mUnfoldAnimationController.onTaskAppeared(taskInfo, mLeash); in testAppearedMatchingTask_appliesUnfoldProgress()
129 mUnfoldAnimationController.onTaskAppeared(taskInfo1, mLeash); in testAppearedMatchingTaskTwoDifferentAnimators_appliesUnfoldProgressToBoth()
130 mUnfoldAnimationController.onTaskAppeared(taskInfo2, mLeash); in testAppearedMatchingTaskTwoDifferentAnimators_appliesUnfoldProgressToBoth()
143 mUnfoldAnimationController.onTaskAppeared(taskInfo, mLeash); in testAppearedNonMatchingTask_doesNotApplyUnfoldProgress()
155 mUnfoldAnimationController.onTaskAppeared(taskInfo, mLeash); in testAppearedAndChangedToNonMatchingTask_doesNotApplyUnfoldProgress()
169 mUnfoldAnimationController.onTaskAppeared(taskInfo, mLeash); in testAppearedAndChangedToNonMatchingTaskAndBack_appliesUnfoldProgress()
185 mUnfoldAnimationController.onTaskAppeared(taskInfo, mLeash); in testAppearedNonMatchingTaskAndChangedToMatching_appliesUnfoldProgress()
199 mUnfoldAnimationController.onTaskAppeared(taskInfo, mLeash); in testAppearedMatchingTaskAndChanged_appliesUnfoldProgress()
213 mUnfoldAnimationController.onTaskAppeared(taskInfo, mLeash); in testShellTransitionRunning_doesNotApplyUnfoldProgress()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/animation/
DFullscreenUnfoldTaskAnimator.java171 transaction.setWindowCrop(context.mLeash, context.mCurrentCropRect) in applyAnimationProgress()
172 .setMatrix(context.mLeash, context.mMatrix, FLOAT_9) in applyAnimationProgress()
173 .setCornerRadius(context.mLeash, mWindowCornerRadiusPx) in applyAnimationProgress()
174 .show(context.mLeash); in applyAnimationProgress()
206 .setWindowCrop(context.mLeash, null) in resetSurface()
207 .setCornerRadius(context.mLeash, 0.0F) in resetSurface()
208 .setMatrix(context.mLeash, 1.0F, 0.0F, 0.0F, 1.0F) in resetSurface()
209 .setPosition(context.mLeash, in resetSurface()
215 final SurfaceControl mLeash; field in FullscreenUnfoldTaskAnimator.AnimationContext
225 mLeash = leash; in AnimationContext()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/hidedisplaycutout/
DHideDisplayCutoutOrganizerTest.java79 private SurfaceControl mLeash; field in HideDisplayCutoutOrganizerTest
112 mLeash = new SurfaceControl(); in setUp()
116 DisplayAreaAppearedInfo info = new DisplayAreaAppearedInfo(mDisplayAreaInfo, mLeash); in setUp()
129 verify(mOrganizer).addDisplayAreaInfoAndLeashToMap(mDisplayAreaInfo, mLeash); in testEnableHideDisplayCutout()
132 assertThat(mOrganizer.mDisplayAreaMap.containsValue(mLeash)).isTrue(); in testEnableHideDisplayCutout()
137 mOrganizer.onDisplayAreaAppeared(mDisplayAreaInfo, mLeash); in testOnDisplayAreaAppeared()
140 assertThat(mOrganizer.mDisplayAreaMap.containsValue(mLeash)).isTrue(); in testOnDisplayAreaAppeared()
145 mOrganizer.mDisplayAreaMap.put(mDisplayAreaInfo.token, mLeash); in testOnDisplayAreaVanished()
161 verify(mOrganizer).addDisplayAreaInfoAndLeashToMap(mDisplayAreaInfo, mLeash); in testToggleHideDisplayCutout_enable_rot0()
179 verify(mOrganizer).addDisplayAreaInfoAndLeashToMap(mDisplayAreaInfo, mLeash); in testToggleHideDisplayCutout_enable_rot90()
[all …]
/frameworks/base/tests/TaskOrganizerTest/src/com/android/test/taskembed/
DTaskView.java40 private SurfaceControl mLeash; field in TaskView
113 mLeash = leash; in reparentTask()
119 t.reparent(mLeash, getSurfaceControl()) in reparentLeash()
120 .show(mLeash) in reparentLeash()
126 t.remove(mLeash).apply(); in releaseLeash()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceAnimatorTest.java103 verify(mTransaction).reparent(eq(mAnimatable.mSurface), eq(mAnimatable.mLeash)); in testRunAnimation()
111 verify(mTransaction).remove(eq(mAnimatable.mLeash)); in testRunAnimation()
119 final SurfaceControl firstLeash = mAnimatable.mLeash; in testOverrideAnimation()
155 verify(mTransaction).remove(eq(mAnimatable.mLeash)); in testCancelAnimation()
169 verify(mTransaction).remove(eq(mAnimatable.mLeash)); in testCancelWithNullFinishCallbackAnimation()
194 verify(mTransaction).remove(eq(mAnimatable.mLeash)); in testDelayingAnimationStartAndCancelled()
206 final SurfaceControl leash = mAnimatable.mLeash; in testTransferAnimation()
211 assertEquals(leash, mAnimatable2.mSurfaceAnimator.mLeash); in testTransferAnimation()
230 final SurfaceControl leash = mAnimatable.mLeash; in testOnAnimationLeashLostWhenAnimatableParentSurfaceControlNull()
250 verify(mTransaction).remove(eq(mDeferFinishAnimatable.mLeash)); in testDeferFinish()
[all …]
DAppWindowTokenAnimationTests.java71 eq(mActivity.mSurfaceAnimator.mLeash)); in clipAfterAnim_boundsLayerIsCreated()
72 verify(mTransaction).reparent(eq(mActivity.mSurfaceAnimator.mLeash), in clipAfterAnim_boundsLayerIsCreated()
103 final SurfaceControl leash = mActivity.mSurfaceAnimator.mLeash; in clipAfterAnim_boundsLayerIsDestroyed()
123 final SurfaceControl leash = mActivity.mSurfaceAnimator.mLeash; in clipAfterAnimCancelled_boundsLayerIsDestroyed()
139 eq(mActivity.mSurfaceAnimator.mLeash)); in clipNoneAnim_boundsLayerIsNotCreated()
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsSourceConsumerTest.java77 private SurfaceControl mLeash; field in InsetsSourceConsumerTest
88 mLeash = new SurfaceControl.Builder(mSession) in setup()
118 new InsetsSourceControl(ID_STATUS_BAR, statusBars(), mLeash, in setup()
190 new InsetsSourceControl(ID_STATUS_BAR, statusBars(), mLeash, in testRestore()
208 new InsetsSourceControl(ID_STATUS_BAR, statusBars(), mLeash, in testRestore_noAnimation()
238 imeConsumer.setControl(new InsetsSourceControl(ID_IME, ime(), mLeash, in testWontUpdateImeLeashVisibility_whenAnimation()
247 imeConsumer.setControl(new InsetsSourceControl(ID_IME, ime(), mLeash, in testWontUpdateImeLeashVisibility_whenAnimation()
249 verify(mMockTransaction, never()).show(mLeash); in testWontUpdateImeLeashVisibility_whenAnimation()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/animation/
DPipResizeAnimator.java40 private final SurfaceControl mLeash; field in PipResizeAnimator
69 mLeash = leash; in PipResizeAnimator()
105 setBoundsAndRotation(mStartTx, mLeash, mBaseBounds, mStartBounds, mDelta); in onAnimationStart()
115 setBoundsAndRotation(tx, mLeash, mBaseBounds, mAnimatedRect, degrees); in onAnimationUpdate()
142 setBoundsAndRotation(mFinishTx, mLeash, mBaseBounds, mEndBounds, 0f); in onAnimationEnd()
DPipAlphaAnimator.java51 private final SurfaceControl mLeash; field in PipAlphaAnimator
65 mLeash = leash; in PipAlphaAnimator()
102 mSurfaceControlTransactionFactory.getTransaction().setAlpha(mLeash, alpha).apply(); in onAnimationUpdate()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/fullscreen/
DFullscreenTaskListener.java55 SurfaceControl mLeash; field in FullscreenTaskListener.State
96 state.mLeash = leash; in onTaskAppeared()
147 if (!state.mLeash.isValid()) { in onTaskInfoChanged()
152 t.show(state.mLeash); in onTaskInfoChanged()
154 t.setPosition(state.mLeash, positionInParent.x, positionInParent.y); in onTaskInfoChanged()
195 return mTasks.get(taskId).mLeash; in findTaskSurface()

12