/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
D | StubTransaction.java | 31 import android.view.SurfaceControl; 40 public class StubTransaction extends SurfaceControl.Transaction { 61 public SurfaceControl.Transaction setVisibility(SurfaceControl sc, boolean visible) { in setVisibility() 66 public SurfaceControl.Transaction show(SurfaceControl sc) { in show() 71 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide() 76 public SurfaceControl.Transaction setPosition(SurfaceControl sc, float x, float y) { in setPosition() 81 public SurfaceControl.Transaction setBufferSize(SurfaceControl sc, in setBufferSize() 87 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int z) { in setLayer() 92 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, SurfaceControl relativeTo, in setRelativeLayer() 98 public SurfaceControl.Transaction setTransparentRegionHint(SurfaceControl sc, in setTransparentRegionHint() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/util/ |
D | StubTransaction.java | 31 import android.view.SurfaceControl; 42 public class StubTransaction extends SurfaceControl.Transaction { 63 public SurfaceControl.Transaction setVisibility(SurfaceControl sc, boolean visible) { in setVisibility() 68 public SurfaceControl.Transaction show(SurfaceControl sc) { in show() 73 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide() 78 public SurfaceControl.Transaction setPosition(SurfaceControl sc, float x, float y) { in setPosition() 83 public SurfaceControl.Transaction setBufferSize(SurfaceControl sc, in setBufferSize() 89 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int z) { in setLayer() 94 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, SurfaceControl relativeTo, in setRelativeLayer() 100 public SurfaceControl.Transaction setTransparentRegionHint(SurfaceControl sc, in setTransparentRegionHint() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SimpleSurfaceAnimatable.java | 21 import android.view.SurfaceControl; 39 private final SurfaceControl mAnimationLeashParent; 40 private final SurfaceControl mSurfaceControl; 41 private final SurfaceControl mParentSurfaceControl; 43 private final Supplier<SurfaceControl.Builder> mAnimationLeashFactory; 44 private final Supplier<SurfaceControl.Transaction> mSyncTransaction; 45 private final Supplier<SurfaceControl.Transaction> mPendingTransaction; 46 private final BiConsumer<SurfaceControl.Transaction, SurfaceControl> mOnAnimationLeashCreated; 47 private final Consumer<SurfaceControl.Transaction> mOnAnimationLeashLost; 70 public SurfaceControl.Transaction getSyncTransaction() { in getSyncTransaction() [all …]
|
D | SurfaceFreezer.java | 30 import android.view.SurfaceControl; 59 SurfaceControl mLeash; 80 void freeze(SurfaceControl.Transaction t, Rect startBounds, Point relativePosition, in freeze() 81 @Nullable SurfaceControl freezeTarget) { in freeze() 111 SurfaceControl takeLeashForAnimation() { in takeLeashForAnimation() 112 SurfaceControl out = mLeash; in takeLeashForAnimation() 133 void unfreeze(SurfaceControl.Transaction t) { in unfreeze() 138 private void unfreezeInner(SurfaceControl.Transaction t) { in unfreezeInner() 146 SurfaceControl leash = mLeash; in unfreezeInner() 156 private void reset(SurfaceControl.Transaction t) { in reset() [all …]
|
D | LegacyDimmer.java | 31 import android.view.SurfaceControl; 46 private SurfaceControl mDimLayer; 48 private DimAnimatable(SurfaceControl dimLayer) { in DimAnimatable() 53 public SurfaceControl.Transaction getSyncTransaction() { in getSyncTransaction() 58 public SurfaceControl.Transaction getPendingTransaction() { in getPendingTransaction() 68 public void onAnimationLeashCreated(SurfaceControl.Transaction t, SurfaceControl leash) { in onAnimationLeashCreated() 72 public void onAnimationLeashLost(SurfaceControl.Transaction t) { in onAnimationLeashLost() 76 public SurfaceControl.Builder makeAnimationLeash() { in makeAnimationLeash() 81 public SurfaceControl getAnimationLeashParent() { in getAnimationLeashParent() 86 public SurfaceControl getSurfaceControl() { in getSurfaceControl() [all …]
|
/frameworks/native/libs/gui/ |
D | SurfaceControl.cpp | 53 SurfaceControl::SurfaceControl(const sp<SurfaceComposerClient>& client, const sp<IBinder>& handle, in SurfaceControl() function in android::SurfaceControl 66 SurfaceControl::SurfaceControl(const sp<SurfaceControl>& other) { in SurfaceControl() function in android::SurfaceControl 78 SurfaceControl::~SurfaceControl() in ~SurfaceControl() 88 void SurfaceControl::disconnect() { in disconnect() 95 bool SurfaceControl::isSameSurface( in isSameSurface() 96 const sp<SurfaceControl>& lhs, const sp<SurfaceControl>& rhs) in isSameSurface() 103 status_t SurfaceControl::clearLayerFrameStats() const { in clearLayerFrameStats() 110 status_t SurfaceControl::getLayerFrameStats(FrameStats* outStats) const { in getLayerFrameStats() 117 status_t SurfaceControl::validate() const in validate() 127 status_t SurfaceControl::writeSurfaceToParcel( in writeSurfaceToParcel() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | ScreenshotUtils.java | 21 import android.view.SurfaceControl; 38 public static void captureLayer(SurfaceControl sc, Rect crop, in captureLayer() 50 SurfaceControl mScreenshot = null; 51 SurfaceControl.Transaction mTransaction; 52 SurfaceControl mSurfaceControl; 53 SurfaceControl mParentSurfaceControl; 56 BufferConsumer(SurfaceControl.Transaction t, SurfaceControl sc, SurfaceControl parentSc, in BufferConsumer() 69 mScreenshot = new SurfaceControl.Builder() in accept() 96 public static SurfaceControl takeScreenshot(SurfaceControl.Transaction t, SurfaceControl sc, in takeScreenshot() 112 public static SurfaceControl takeScreenshot(SurfaceControl.Transaction t, SurfaceControl sc, in takeScreenshot() [all …]
|
D | SurfaceUtils.java | 19 import android.view.SurfaceControl; 27 public static SurfaceControl makeDimLayer(SurfaceControl.Transaction t, SurfaceControl host, in makeDimLayer() 29 final SurfaceControl dimLayer = makeColorLayer(host, name, surfaceSession); in makeDimLayer() 35 public static SurfaceControl makeColorLayer(SurfaceControl host, String name, in makeColorLayer() 37 return new SurfaceControl.Builder(surfaceSession) in makeColorLayer()
|
/frameworks/native/libs/gui/include/gui/ |
D | SurfaceControl.h | 47 class SurfaceControl : public RefBase 50 static status_t readFromParcel(const Parcel& parcel, sp<SurfaceControl>* outSurfaceControl); 54 sp<SurfaceControl>* outSurfaceControl); 55 static status_t writeNullableToParcel(Parcel& parcel, const sp<SurfaceControl>& surfaceControl); 57 static bool isValid(const sp<SurfaceControl>& surface) { in isValid() 66 const sp<SurfaceControl>& lhs, const sp<SurfaceControl>& rhs); 75 const sp<SurfaceControl>& control, Parcel* parcel); 99 explicit SurfaceControl(const sp<SurfaceControl>& other); 101 SurfaceControl(const sp<SurfaceComposerClient>& client, const sp<IBinder>& handle, 106 sp<SurfaceControl> getParentingLayer(); [all …]
|
D | SurfaceComposerClient.h | 71 SurfaceControlStats(const sp<SurfaceControl>& sc, nsecs_t latchTime, in SurfaceControlStats() 85 sp<SurfaceControl> surfaceControl; 346 sp<SurfaceControl> createSurface(const String8& name, // name of the surface 359 sp<SurfaceControl>* outSurface, 374 sp<SurfaceControl> mirrorSurface(SurfaceControl* mirrorFromSurface); 376 sp<SurfaceControl> mirrorDisplay(DisplayId displayId); 394 std::size_t operator()(const sp<SurfaceControl>& sc) const { in operator() 395 return std::hash<SurfaceControl *>{}(sc.get()); in operator() 417 std::unordered_set<sp<SurfaceControl>, SCHash> surfaceControls; 486 layer_state_t* getLayerState(const sp<SurfaceControl>& sc); [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/freeform/ |
D | FreeformTaskTransitionObserverTest.java | 33 import android.view.SurfaceControl; 102 final SurfaceControl.Transaction startT = mock(SurfaceControl.Transaction.class); in testCreatesWindowDecorOnOpenTransition_freeform() 103 final SurfaceControl.Transaction finishT = mock(SurfaceControl.Transaction.class); in testCreatesWindowDecorOnOpenTransition_freeform() 119 final SurfaceControl.Transaction startT = mock(SurfaceControl.Transaction.class); in testPreparesWindowDecorOnCloseTransition_freeform() 120 final SurfaceControl.Transaction finishT = mock(SurfaceControl.Transaction.class); in testPreparesWindowDecorOnCloseTransition_freeform() 136 final SurfaceControl.Transaction startT = mock(SurfaceControl.Transaction.class); in testDoesntCloseWindowDecorDuringCloseTransition() 137 final SurfaceControl.Transaction finishT = mock(SurfaceControl.Transaction.class); in testDoesntCloseWindowDecorDuringCloseTransition() 154 final SurfaceControl.Transaction startT = mock(SurfaceControl.Transaction.class); in testClosesWindowDecorAfterCloseTransition() 155 final SurfaceControl.Transaction finishT = mock(SurfaceControl.Transaction.class); in testClosesWindowDecorAfterCloseTransition() 172 final SurfaceControl.Transaction startT1 = mock(SurfaceControl.Transaction.class); in testClosesMergedWindowDecorationAfterTransitionFinishes() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/ |
D | PipSurfaceTransactionHelper.java | 24 import android.view.SurfaceControl; 61 public PipSurfaceTransactionHelper alpha(SurfaceControl.Transaction tx, SurfaceControl leash, in alpha() 71 public PipSurfaceTransactionHelper crop(SurfaceControl.Transaction tx, SurfaceControl leash, in crop() 82 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 92 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 101 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 111 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 129 public PipSurfaceTransactionHelper scaleAndCrop(SurfaceControl.Transaction tx, in scaleAndCrop() 130 SurfaceControl leash, Rect sourceRectHint, in scaleAndCrop() 169 public PipSurfaceTransactionHelper rotateAndScaleWithCrop(SurfaceControl.Transaction tx, in rotateAndScaleWithCrop() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipSurfaceTransactionHelper.java | 24 import android.view.SurfaceControl; 61 public PipSurfaceTransactionHelper alpha(SurfaceControl.Transaction tx, SurfaceControl leash, in alpha() 71 public PipSurfaceTransactionHelper crop(SurfaceControl.Transaction tx, SurfaceControl leash, in crop() 82 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 92 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 101 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 111 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 129 public PipSurfaceTransactionHelper scaleAndCrop(SurfaceControl.Transaction tx, in scaleAndCrop() 130 SurfaceControl leash, Rect sourceRectHint, in scaleAndCrop() 172 public PipSurfaceTransactionHelper rotateAndScaleWithCrop(SurfaceControl.Transaction tx, in rotateAndScaleWithCrop() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | SurfaceControlRegistryTests.java | 83 SurfaceControl sc = buildTestSurface(); in testCreateReleaseSurfaceControl() 92 SurfaceControl sc1 = buildTestSurface(); in testCreateReleaseMultipleSurfaceControls() 95 SurfaceControl sc2 = buildTestSurface(); in testCreateReleaseMultipleSurfaceControls() 111 SurfaceControl sc0 = new SurfaceControl(); in testInvalidSurfaceControlNotAddedToRegistry() 112 SurfaceControl sc1 = new SurfaceControl(sc0, "test"); in testInvalidSurfaceControlNotAddedToRegistry() 126 SurfaceControl sc1 = buildTestSurface(); in testThresholds() 127 SurfaceControl sc2 = buildTestSurface(); in testThresholds() 128 SurfaceControl sc3 = buildTestSurface(); in testThresholds() 129 SurfaceControl sc4 = buildTestSurface(); in testThresholds() 134 SurfaceControl sc5 = buildTestSurface(); in testThresholds() [all …]
|
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/ |
D | AttachedChoreographerTest.java | 34 import android.view.SurfaceControl; 151 SurfaceControl sc = mSurfaceView.getSurfaceControl(); in testCreateChoreographer() 154 SurfaceControl sc1 = new SurfaceControl(sc, "AttachedChoreographerTests"); in testCreateChoreographer() 164 SurfaceControl sc2 = new SurfaceControl(sc, "AttachedChoreographerTests"); in testCreateChoreographer() 174 SurfaceControl sc3 = new SurfaceControl(sc, "AttachedChoreographerTests"); in testCreateChoreographer() 195 SurfaceControl surfaceControl = mSurfaceView.getSurfaceControl(); in testCreateChoreographer() 208 SurfaceControl sc = mSurfaceView.getSurfaceControl(); in testCopySurfaceControl() 214 SurfaceControl copyConstructorSc = new SurfaceControl(sc, "AttachedChoreographerTests"); in testCopySurfaceControl() 222 SurfaceControl copyFromSc = new SurfaceControl(); in testCopySurfaceControl() 241 SurfaceControl sc = mSurfaceView.getSurfaceControl(); in testMirrorSurfaceControl() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DimmerTests.java | 39 import android.view.SurfaceControl; 59 final SurfaceControl mControl = mock(SurfaceControl.class); 60 final SurfaceControl.Transaction mPendingTransaction = spy(StubTransaction.class); 61 final SurfaceControl.Transaction mSyncTransaction = spy(StubTransaction.class); 68 public SurfaceControl getSurfaceControl() { in getSurfaceControl() 73 public SurfaceControl.Transaction getSyncTransaction() { in getSyncTransaction() 78 public SurfaceControl.Transaction getPendingTransaction() { in getPendingTransaction() 85 final SurfaceControl mHostControl = mock(SurfaceControl.class); 86 final SurfaceControl.Transaction mHostTransaction = spy(StubTransaction.class); 92 class MockSurfaceBuilder extends SurfaceControl.Builder { [all …]
|
D | SurfaceControlTests.java | 34 import android.view.SurfaceControl; 62 SurfaceControl sc = buildTestSurface(); in testUseValidSurface() 63 SurfaceControl.Transaction t = new SurfaceControl.Transaction(); in testUseValidSurface() 71 SurfaceControl sc = buildTestSurface(); in testUseInvalidSurface() 72 SurfaceControl.Transaction t = new SurfaceControl.Transaction(); in testUseInvalidSurface() 85 SurfaceControl sc = buildTestSurface(); in testUseInvalidSurface_debugEnabled() 86 SurfaceControl.Transaction t = new SurfaceControl.Transaction(); in testUseInvalidSurface_debugEnabled() 88 SurfaceControl.setDebugUsageAfterRelease(true); in testUseInvalidSurface_debugEnabled() 99 SurfaceControl.setDebugUsageAfterRelease(false); in testUseInvalidSurface_debugEnabled() 106 SurfaceControl sc = buildTestSurface(); in testWriteInvalidSurface_debugEnabled() [all …]
|
D | MockSurfaceControlBuilder.java | 21 import android.view.SurfaceControl; 29 class MockSurfaceControlBuilder extends SurfaceControl.Builder { 31 public SurfaceControl.Builder setParent(SurfaceControl sc) { in setParent() 36 public SurfaceControl build() { in build() 37 SurfaceControl mockSurfaceControl = mock(SurfaceControl.class); in build()
|
D | LetterboxTest.java | 36 import android.view.SurfaceControl; 54 SurfaceControl.Transaction mTransaction; 61 private SurfaceControl mParentSurface = mock(SurfaceControl.class); 219 mParentSurface = mock(SurfaceControl.class); in testNeedsApplySurfaceChanges_setParentSurface() 278 class SurfaceControlMocker implements Supplier<SurfaceControl.Builder> { 279 private SurfaceControl.Builder mLeftBuilder; 280 public SurfaceControl left; 281 private SurfaceControl.Builder mTopBuilder; 282 public SurfaceControl top; 283 private SurfaceControl.Builder mRightBuilder; [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | WindowDecorViewModel.java | 20 import android.view.SurfaceControl; 57 SurfaceControl taskSurface, in onTaskOpening() 58 SurfaceControl.Transaction startT, in onTaskOpening() 59 SurfaceControl.Transaction finishT); in onTaskOpening() 89 SurfaceControl taskSurface, in onTaskChanging() 90 SurfaceControl.Transaction startT, in onTaskChanging() 91 SurfaceControl.Transaction finishT); in onTaskChanging() 103 SurfaceControl.Transaction startT, in onTaskClosing() 104 SurfaceControl.Transaction finishT); in onTaskClosing()
|
/frameworks/base/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/ |
D | CounterRotator.java | 21 import android.view.SurfaceControl; 29 private SurfaceControl mSurface = null; 32 public SurfaceControl getSurface() { in getSurface() 42 public void setup(SurfaceControl.Transaction t, SurfaceControl parent, int rotateDelta, in setup() 45 mSurface = new SurfaceControl.Builder() in setup() 70 public void addChild(SurfaceControl.Transaction t, SurfaceControl child) { in addChild() 79 public void cleanUp(SurfaceControl.Transaction finishTransaction) { in cleanUp()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/ |
D | MockSurfaceControlHelper.java | 23 import android.view.SurfaceControl; 39 public static SurfaceControl.Builder createMockSurfaceControlBuilder( in createMockSurfaceControlBuilder() 40 SurfaceControl mockSurfaceControl) { in createMockSurfaceControlBuilder() 41 final SurfaceControl.Builder mockBuilder = mock(SurfaceControl.Builder.class, RETURNS_SELF); in createMockSurfaceControlBuilder() 52 public static SurfaceControl.Transaction createMockSurfaceControlTransaction() { in createMockSurfaceControlTransaction() 53 return mock(SurfaceControl.Transaction.class, RETURNS_SELF); in createMockSurfaceControlTransaction()
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/ |
D | RemoteAnimationTargetCompat.java | 21 import android.view.SurfaceControl; 42 SurfaceControl.Transaction t, ArrayMap<SurfaceControl, SurfaceControl> leashMap) { in wrapApps() argument 63 SurfaceControl.Transaction t, ArrayMap<SurfaceControl, SurfaceControl> leashMap) { in wrapNonApps() argument 73 SurfaceControl.Transaction t, ArrayMap<SurfaceControl, SurfaceControl> leashMap,
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/color/ |
D | DisplayWhiteBalanceTintControllerTest.java | 35 import android.view.SurfaceControl; 73 .mockStatic(SurfaceControl.class) in setUp() 184 SurfaceControl.DisplayPrimaries displayPrimaries = new SurfaceControl.DisplayPrimaries(); in displayWhiteBalance_setupWithSurfaceControl() 185 displayPrimaries.red = new SurfaceControl.CieXyz(); in displayWhiteBalance_setupWithSurfaceControl() 189 displayPrimaries.green = new SurfaceControl.CieXyz(); in displayWhiteBalance_setupWithSurfaceControl() 193 displayPrimaries.blue = new SurfaceControl.CieXyz(); in displayWhiteBalance_setupWithSurfaceControl() 197 displayPrimaries.white = new SurfaceControl.CieXyz(); in displayWhiteBalance_setupWithSurfaceControl() 216 SurfaceControl.DisplayPrimaries displayPrimaries = new SurfaceControl.DisplayPrimaries(); in displayWhiteBalance_setupWithInvalidSurfaceControlData() 217 displayPrimaries.red = new SurfaceControl.CieXyz(); in displayWhiteBalance_setupWithInvalidSurfaceControlData() 218 displayPrimaries.green = new SurfaceControl.CieXyz(); in displayWhiteBalance_setupWithInvalidSurfaceControlData() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/unfold/ |
D | UnfoldTransitionHandlerTest.java | 37 import android.view.SurfaceControl; 151 mock(SurfaceControl.Transaction.class), in startAnimation_animationHasNotFinishedYet_doesNotFinishTheTransition() 152 mock(SurfaceControl.Transaction.class), in startAnimation_animationHasNotFinishedYet_doesNotFinishTheTransition() 168 mock(SurfaceControl.Transaction.class), in startAnimation_sameTransitionAsHandleRequest_startsAnimation() 169 mock(SurfaceControl.Transaction.class), in startAnimation_sameTransitionAsHandleRequest_startsAnimation() 184 mock(SurfaceControl.Transaction.class), in startAnimation_differentTransitionFromRequestWithUnfold_startsAnimation() 185 mock(SurfaceControl.Transaction.class), in startAnimation_differentTransitionFromRequestWithUnfold_startsAnimation() 200 mock(SurfaceControl.Transaction.class), in startAnimation_differentTransitionFromRequestWithResize_doesNotStartAnimation() 201 mock(SurfaceControl.Transaction.class), in startAnimation_differentTransitionFromRequestWithResize_doesNotStartAnimation() 216 mock(SurfaceControl.Transaction.class), in startAnimation_differentTransitionFromRequestWithoutUnfold_doesNotStart() [all …]
|