/frameworks/base/services/core/java/com/android/server/wm/ |
D | SurfaceAnimator.java | 52 SurfaceControl mLeash; field in SurfaceAnimator 123 mLeash = createAnimationLeash(surface, t, 125 mAnimatable.onAnimationLeashCreated(t, mLeash); 130 mAnimation.startAnimation(mLeash, t, mInnerAnimationFinishedCallback); 153 mAnimation.startAnimation(mLeash, mAnimatable.getPendingTransaction(), 190 t.setLayer(mLeash != null ? mLeash : mAnimatable.getSurfaceControl(), layer); 199 … t.setRelativeLayer(mLeash != null ? mLeash : mAnimatable.getSurfaceControl(), relativeTo, layer); 208 t.reparent(mLeash != null ? mLeash : mAnimatable.getSurfaceControl(), newParent); 215 return mLeash != null; 219 if (from.mLeash == null) { [all …]
|
D | SurfaceAnimationRunner.java | 198 mFrameTransaction.setAlpha(a.mLeash, 1); in startAnimationLocked() 206 mRunningAnimations.remove(a.mLeash); in startAnimationLocked() 218 mRunningAnimations.put(a.mLeash, a); in startAnimationLocked() 235 a.mAnimSpec.apply(t, a.mLeash, currentPlayTime); in applyTransformation() 261 final SurfaceControl mLeash; field in SurfaceAnimationRunner.RunningAnimation 270 mLeash = leash; in RunningAnimation()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | InsetsSourceConsumerTest.java | 61 private SurfaceControl mLeash; field in InsetsSourceConsumerTest 67 mLeash = new SurfaceControl.Builder(mSession) in setup() 85 mConsumer.setControl(new InsetsSourceControl(TYPE_TOP_BAR, mLeash, new Point())); in setup() 91 verify(mMockTransaction).hide(eq(mLeash)); in testHide() 98 verify(mMockTransaction, atLeastOnce()).show(eq(mLeash)); in testShow() 107 mConsumer.setControl(new InsetsSourceControl(TYPE_TOP_BAR, mLeash, new Point())); in testRestore() 108 verify(mMockTransaction).hide(eq(mLeash)); in testRestore()
|
D | InsetsControllerTest.java | 70 private SurfaceControl mLeash; field in InsetsControllerTest 74 mLeash = new SurfaceControl.Builder(mSession) in setup() 102 InsetsSourceControl control = new InsetsSourceControl(TYPE_TOP_BAR, mLeash, new Point()); in testControlsChanged() 104 assertEquals(mLeash, in testControlsChanged() 110 InsetsSourceControl control = new InsetsSourceControl(TYPE_TOP_BAR, mLeash, new Point()); in testControlsRevoked() 118 InsetsSourceControl control = new InsetsSourceControl(TYPE_TOP_BAR, mLeash, new Point()); in testControlsRevoked_duringAnim() 169 final InsetsSourceControl ime = new InsetsSourceControl(TYPE_IME, mLeash, new Point()); in testApplyImeVisibility() 320 InsetsSourceControl control = new InsetsSourceControl(TYPE_TOP_BAR, mLeash, new Point()); in testAnimationEndState_controller() 348 final InsetsSourceControl navBar = new InsetsSourceControl(TYPE_NAVIGATION_BAR, mLeash, in prepareControls() 350 final InsetsSourceControl topBar = new InsetsSourceControl(TYPE_TOP_BAR, mLeash, in prepareControls() [all …]
|
D | ImeInsetsSourceConsumerTest.java | 56 SurfaceControl mLeash; field in ImeInsetsSourceConsumerTest 60 mLeash = new SurfaceControl.Builder(new SurfaceSession()) in setup() 85 final InsetsSourceControl ime = new InsetsSourceControl(TYPE_IME, mLeash, new Point()); in testImeVisibility()
|
/frameworks/base/core/java/android/view/ |
D | InsetsSourceControl.java | 31 private final SurfaceControl mLeash; field in InsetsSourceControl 37 mLeash = leash; in InsetsSourceControl() 46 return mLeash; in getLeash() 51 mLeash = in.readParcelable(null /* loader */); in InsetsSourceControl() 75 dest.writeParcelable(mLeash, 0 /* flags*/); in writeToParcel()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SurfaceAnimatorTest.java | 94 verify(mTransaction).reparent(eq(mAnimatable.mSurface), eq(mAnimatable.mLeash)); in testRunAnimation() 100 verify(mTransaction).remove(eq(mAnimatable.mLeash)); in testRunAnimation() 107 final SurfaceControl firstLeash = mAnimatable.mLeash; in testOverrideAnimation() 137 verify(mTransaction).remove(eq(mAnimatable.mLeash)); in testCancelAnimation() 159 verify(mTransaction).remove(eq(mAnimatable.mLeash)); in testDelayingAnimationStartAndCancelled() 169 final SurfaceControl leash = mAnimatable.mLeash; in testTransferAnimation() 174 assertEquals(leash, mAnimatable2.mSurfaceAnimator.mLeash); in testTransferAnimation() 191 final SurfaceControl leash = mAnimatable.mLeash; in testOnAnimationLeashLostWhenAnimatableParentSurfaceControlNull() 210 verify(mTransaction).remove(eq(mDeferFinishAnimatable.mLeash)); in testDeferFinish() 260 SurfaceControl mLeash; field in SurfaceAnimatorTest.MyAnimatable [all …]
|
D | AppWindowTokenAnimationTests.java | 75 eq(mToken.mSurfaceAnimator.mLeash)); in clipAfterAnim_boundsLayerIsCreated() 76 verify(mTransaction).reparent(eq(mToken.mSurfaceAnimator.mLeash), in clipAfterAnim_boundsLayerIsCreated() 95 final SurfaceControl leash = mToken.mSurfaceAnimator.mLeash; in clipAfterAnim_boundsLayerIsDestroyed() 112 final SurfaceControl leash = mToken.mSurfaceAnimator.mLeash; in clipAfterAnimCancelled_boundsLayerIsDestroyed() 128 eq(mToken.mSurfaceAnimator.mLeash)); in clipNoneAnim_boundsLayerIsNotCreated()
|