/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | StubTransaction.java | 54 public SurfaceControl.Transaction show(SurfaceControl sc) { in show() 59 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide() 69 public SurfaceControl.Transaction setBufferSize(SurfaceControl sc, in setBufferSize() 75 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int z) { in setLayer() 80 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, SurfaceControl relativeTo, in setRelativeLayer() 97 public SurfaceControl.Transaction setInputWindowInfo(SurfaceControl sc, in setInputWindowInfo() 109 public SurfaceControl.Transaction setMatrix(SurfaceControl sc, in setMatrix() 151 public SurfaceControl.Transaction reparent(SurfaceControl sc, SurfaceControl newParent) { in reparent() 217 public SurfaceControl.Transaction remove(SurfaceControl sc) { in remove() 244 public SurfaceControl.Transaction unsetColor(SurfaceControl sc) { in unsetColor() [all …]
|
H A D | DimmerTests.java | 36 import android.view.SurfaceControl; 54 final SurfaceControl mControl = mock(SurfaceControl.class); 74 final SurfaceControl mHostControl = mock(SurfaceControl.class); 87 public SurfaceControl build() { in build() 88 SurfaceControl mSc = mock(SurfaceControl.class); in build() 136 SurfaceControl dimLayer = getDimLayer(); in testDimAboveNoChildCreatesSurface() 173 SurfaceControl dimLayer = getDimLayer(); in testDimAboveNoChildNotReset() 188 SurfaceControl dimLayer = getDimLayer(); in testDimAboveWithChildCreatesSurfaceAboveChild() 203 SurfaceControl dimLayer = getDimLayer(); in testDimBelowWithChildSurfaceCreatesSurfaceBelowChild() 218 SurfaceControl dimLayer = getDimLayer(); in testDimBelowWithChildSurfaceDestroyedWhenReset() [all …]
|
H A D | ZOrderingTests.java | 55 import android.view.SurfaceControl; 84 private final HashMap<SurfaceControl, SurfaceControl> mParentFor = new HashMap<>(); 86 HashMap<SurfaceControl, SurfaceControl> mRelativeLayersForControl = new HashMap<>(); 89 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int layer) { in setLayer() 96 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, in setRelativeLayer() 108 private SurfaceControl getRelativeLayer(SurfaceControl sc) { in getRelativeLayer() 112 void addParentFor(SurfaceControl child, SurfaceControl parent) { in addParentFor() 116 SurfaceControl getParentFor(SurfaceControl child) { in getParentFor() 136 public SurfaceControl.Builder setParent(SurfaceControl sc) { in setParent() 183 SurfaceControl sc) { in getAncestors() [all …]
|
H A D | LetterboxTest.java | 36 import android.view.SurfaceControl; 52 SurfaceControl.Transaction mTransaction; 255 public SurfaceControl left; 256 private SurfaceControl.Builder mTopBuilder; 257 public SurfaceControl top; 259 public SurfaceControl right; 261 public SurfaceControl bottom; 263 public SurfaceControl fullWindowSurface; 266 public SurfaceControl.Builder get() { in get() 267 final SurfaceControl.Builder builder = mock(SurfaceControl.Builder.class, in get() [all …]
|
H A D | MockSurfaceControlBuilder.java | 21 import android.view.SurfaceControl; 27 class MockSurfaceControlBuilder extends SurfaceControl.Builder { 29 public SurfaceControl.Builder setParent(SurfaceControl sc) { in setParent() 34 public SurfaceControl build() { in build() 35 return mock(SurfaceControl.class); in build()
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | SimpleSurfaceAnimatable.java | 21 import android.view.SurfaceControl; 39 private final SurfaceControl mAnimationLeashParent; 40 private final SurfaceControl mSurfaceControl; 41 private final SurfaceControl mParentSurfaceControl; 45 private final BiConsumer<SurfaceControl.Transaction, SurfaceControl> mOnAnimationLeashCreated; 79 public void onAnimationLeashCreated(SurfaceControl.Transaction t, SurfaceControl leash) { in onAnimationLeashCreated() 100 public SurfaceControl getAnimationLeashParent() { in getAnimationLeashParent() 106 public SurfaceControl getSurfaceControl() { in getSurfaceControl() 111 public SurfaceControl getParentSurfaceControl() { in getParentSurfaceControl() 153 private BiConsumer<SurfaceControl.Transaction, SurfaceControl> mOnAnimationLeashCreated = [all …]
|
H A D | SurfaceFreezer.java | 30 import android.view.SurfaceControl; 58 SurfaceControl mLeash; 110 SurfaceControl takeLeashForAnimation() { in takeLeashForAnimation() 111 SurfaceControl out = mLeash; in takeLeashForAnimation() 132 void unfreeze(SurfaceControl.Transaction t) { in unfreeze() 145 SurfaceControl leash = mLeash; in unfreezeInner() 176 void setRelativeLayer(SurfaceControl.Transaction t, SurfaceControl relativeTo, int layer) { in setRelativeLayer() 204 SurfaceControl target, Rect bounds) { in createSnapshotBufferInner() 215 private SurfaceControl mSurfaceControl; 222 Snapshot(SurfaceControl.Transaction t, in Snapshot() [all …]
|
H A D | Dimmer.java | 29 import android.view.SurfaceControl; 46 private SurfaceControl mDimLayer; 63 public void onAnimationLeashCreated(SurfaceControl.Transaction t, SurfaceControl leash) { in onAnimationLeashCreated() 81 public SurfaceControl getSurfaceControl() { in getSurfaceControl() 119 SurfaceControl mDimLayer; 135 DimState(SurfaceControl dimLayer) { in DimState() 173 private SurfaceControl makeDimLayer() { in makeDimLayer() 233 void stopDim(SurfaceControl.Transaction t) { in stopDim() 338 SurfaceControl.Transaction t) { in startDimEnter() 343 SurfaceControl.Transaction t) { in startDimExit() [all …]
|
H A D | SurfaceAnimator.java | 31 import android.view.SurfaceControl; 32 import android.view.SurfaceControl.Transaction; 58 SurfaceControl mLeash; 284 void reparent(Transaction t, SurfaceControl newParent) { 338 final SurfaceControl leash = mLeash; 392 SurfaceControl leash = mLeash; 437 static SurfaceControl createAnimationLeash(Animatable animatable, SurfaceControl surface, 453 final SurfaceControl leash = builder.build(); 643 default SurfaceControl getAnimationLeash() { 651 SurfaceControl.Builder makeAnimationLeash(); [all …]
|
/aosp12/frameworks/native/libs/gui/ |
H A D | SurfaceControl.cpp | 51 SurfaceControl::SurfaceControl(const sp<SurfaceComposerClient>& client, const sp<IBinder>& handle, in SurfaceControl() function in android::SurfaceControl 65 SurfaceControl::SurfaceControl(const sp<SurfaceControl>& other) { in SurfaceControl() function in android::SurfaceControl 76 SurfaceControl::~SurfaceControl() in ~SurfaceControl() 86 void SurfaceControl::disconnect() { in disconnect() 93 bool SurfaceControl::isSameSurface( in isSameSurface() 94 const sp<SurfaceControl>& lhs, const sp<SurfaceControl>& rhs) in isSameSurface() 115 status_t SurfaceControl::validate() const in validate() 151 sp<Surface> SurfaceControl::getSurface() in getSurface() 160 sp<Surface> SurfaceControl::createSurface() in createSurface() 186 int32_t SurfaceControl::getLayerId() const { in getLayerId() [all …]
|
/aosp12/frameworks/native/libs/gui/include/gui/ |
H A D | SurfaceComposerClient.h | 70 sp<SurfaceControl> surfaceControl; 303 sp<SurfaceControl> mirrorSurface(SurfaceControl* mirrorFromSurface); 326 return std::hash<SurfaceControl *>{}(sc.get()); in operator() 426 Transaction& show(const sp<SurfaceControl>& sc); 427 Transaction& hide(const sp<SurfaceControl>& sc); 430 Transaction& setSize(const sp<SurfaceControl>& sc, 432 Transaction& setLayer(const sp<SurfaceControl>& sc, 448 Transaction& setFlags(const sp<SurfaceControl>& sc, 452 Transaction& setAlpha(const sp<SurfaceControl>& sc, 466 Transaction& reparent(const sp<SurfaceControl>& sc, const sp<SurfaceControl>& newParent); [all …]
|
H A D | SurfaceControl.h | 44 class SurfaceControl : public RefBase 51 sp<SurfaceControl>* outSurfaceControl); 54 static bool isValid(const sp<SurfaceControl>& surface) { in isValid() 63 const sp<SurfaceControl>& lhs, const sp<SurfaceControl>& rhs); 72 const sp<SurfaceControl>& control, Parcel* parcel); 92 explicit SurfaceControl(const sp<SurfaceControl>& other); 99 sp<SurfaceControl> getParentingLayer(); 103 SurfaceControl& operator = (SurfaceControl& rhs); 104 SurfaceControl(const SurfaceControl& rhs); 109 ~SurfaceControl(); [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
H A D | ScreenshotUtils.java | 22 import android.view.SurfaceControl; 38 public static void captureLayer(SurfaceControl sc, Rect crop, in captureLayer() 40 consumer.accept(SurfaceControl.captureLayers( in captureLayer() 41 new SurfaceControl.LayerCaptureArgs.Builder(sc) in captureLayer() 49 Consumer<SurfaceControl.ScreenshotHardwareBuffer> { 50 SurfaceControl mScreenshot = null; 51 SurfaceControl.Transaction mTransaction; 52 SurfaceControl mSurfaceControl; 55 BufferConsumer(SurfaceControl.Transaction t, SurfaceControl sc, int layer) { in BufferConsumer() 68 mScreenshot = new SurfaceControl.Builder() in accept() [all …]
|
H A 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()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
H A D | PipSurfaceTransactionHelper.java | 23 import android.view.SurfaceControl; 54 public PipSurfaceTransactionHelper alpha(SurfaceControl.Transaction tx, SurfaceControl leash, in alpha() 64 public PipSurfaceTransactionHelper crop(SurfaceControl.Transaction tx, SurfaceControl leash, in crop() 75 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 84 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 103 SurfaceControl leash, in scaleAndCrop() 173 SurfaceControl leash, in resetScale() 184 public PipSurfaceTransactionHelper round(SurfaceControl.Transaction tx, SurfaceControl leash, in round() 194 public PipSurfaceTransactionHelper round(SurfaceControl.Transaction tx, SurfaceControl leash, in round() 206 SurfaceControl.Transaction t, SurfaceControl parent, SurfaceControl snapshot) { in reparentAndShowSurfaceSnapshot() [all …]
|
H A D | PipAnimationController.java | 35 import android.view.SurfaceControl; 232 public boolean handlePipTransaction(SurfaceControl leash, SurfaceControl.Transaction tx, in handlePipTransaction() 246 private final SurfaceControl mLeash; 332 boolean handlePipTransaction(SurfaceControl leash, SurfaceControl.Transaction tx, in handlePipTransaction() 340 SurfaceControl getContentOverlay() { in getContentOverlay() 474 void onStartTransaction(SurfaceControl leash, SurfaceControl.Transaction tx) {} in onStartTransaction() 476 void onEndTransaction(SurfaceControl leash, SurfaceControl.Transaction tx, in onEndTransaction() 497 void onStartTransaction(SurfaceControl leash, SurfaceControl.Transaction tx) { in ofAlpha() 608 private void applyRotation(SurfaceControl.Transaction tx, SurfaceControl leash, in ofBounds() 664 void onStartTransaction(SurfaceControl leash, SurfaceControl.Transaction tx) { in ofBounds() [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/util/ |
H A D | CounterRotator.java | 19 import android.view.SurfaceControl; 27 SurfaceControl mSurface = null; 28 ArrayList<SurfaceControl> mRotateChildren = null; 31 public SurfaceControl getSurface() { in getSurface() 41 public void setup(SurfaceControl.Transaction t, SurfaceControl parent, int rotateDelta, in setup() 47 mSurface = new SurfaceControl.Builder() in setup() 69 public void addChild(SurfaceControl.Transaction t, SurfaceControl child) { in addChild() 78 public void cleanUp(SurfaceControl rootLeash) { in cleanUp() 80 SurfaceControl.Transaction t = new SurfaceControl.Transaction(); in cleanUp()
|
/aosp12/packages/apps/Car/Launcher/src/com/android/car/carlauncher/displayarea/ |
H A D | CarLauncherDisplayAreaAnimationController.java | 24 import android.view.SurfaceControl; 60 WindowContainerToken token, SurfaceControl leash, in getAnimator() 111 private final SurfaceControl mLeash; 127 SurfaceControl leash, in CarLauncherDisplayAreaTransitionAnimator() 180 void onStartTransaction(SurfaceControl leash, SurfaceControl.Transaction tx) { in onStartTransaction() 183 void onEndTransaction(SurfaceControl leash, SurfaceControl.Transaction tx) { in onEndTransaction() 187 SurfaceControl.Transaction tx, float fraction); in applySurfaceControlTransaction() 235 SurfaceControl.Transaction newSurfaceControlTransaction() { in newSurfaceControlTransaction() 254 void applySurfaceControlTransaction(SurfaceControl leash, in ofYOffset() 255 SurfaceControl.Transaction tx, float fraction) { in ofYOffset() [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/ |
H A D | OneHandedAnimationController.java | 25 import android.view.SurfaceControl; 124 private final SurfaceControl mLeash; 146 mSurfaceControlTransactionFactory = SurfaceControl.Transaction::new; in OneHandedTransitionAnimator() 191 void onStartTransaction(SurfaceControl leash, SurfaceControl.Transaction tx) { in onStartTransaction() 194 void onEndTransaction(SurfaceControl leash, SurfaceControl.Transaction tx) { in onEndTransaction() 197 abstract void applySurfaceControlTransaction(SurfaceControl leash, in applySurfaceControlTransaction() 198 SurfaceControl.Transaction tx, float fraction); in applySurfaceControlTransaction() 253 SurfaceControl.Transaction newSurfaceControlTransaction() { in newSurfaceControlTransaction() 270 void applySurfaceControlTransaction(SurfaceControl leash, in ofYOffset() 271 SurfaceControl.Transaction tx, float fraction) { in ofYOffset() [all …]
|
H A D | OneHandedSurfaceTransactionHelper.java | 22 import android.view.SurfaceControl; 54 OneHandedSurfaceTransactionHelper translate(SurfaceControl.Transaction tx, SurfaceControl leash, in translate() 65 OneHandedSurfaceTransactionHelper crop(SurfaceControl.Transaction tx, SurfaceControl leash, in crop() 76 OneHandedSurfaceTransactionHelper round(SurfaceControl.Transaction tx, SurfaceControl leash) { in round() 84 SurfaceControl.Transaction getTransaction(); in getTransaction()
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | SurfaceControl.java | 1081 private SurfaceControl mLayer; 1151 private SurfaceControl mParent; 1176 public SurfaceControl build() { in build() 1190 return new SurfaceControl( in build() 1539 public SurfaceControl(@NonNull SurfaceControl other, @NonNull String callsite) { in SurfaceControl() method in SurfaceControl 1543 private SurfaceControl(Parcel in) { in SurfaceControl() method in SurfaceControl 1550 public SurfaceControl() { in SurfaceControl() method in SurfaceControl 2599 public static SurfaceControl mirrorSurface(SurfaceControl mirrorOf) { in mirrorSurface() 2601 SurfaceControl sc = new SurfaceControl(); in mirrorSurface() 2682 private final ArrayMap<SurfaceControl, SurfaceControl> mReparentedSurfaces = [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
H A D | PipAnimationControllerTest.java | 37 import android.view.SurfaceControl; 60 private SurfaceControl mLeash; 72 mLeash = new SurfaceControl.Builder() in setUp() 202 any(SurfaceControl.Transaction.class), eq(animator)); in pipTransitionAnimator_setPipAnimationCallback() 209 public static class DummySurfaceControlTx extends SurfaceControl.Transaction { 211 public SurfaceControl.Transaction setAlpha(SurfaceControl leash, float alpha) { in setAlpha() 216 public SurfaceControl.Transaction setPosition(SurfaceControl leash, float x, float y) { in setPosition() 221 public SurfaceControl.Transaction setWindowCrop(SurfaceControl leash, int w, int h) { in setWindowCrop() 226 public SurfaceControl.Transaction setCornerRadius(SurfaceControl leash, float radius) { in setCornerRadius() 231 public SurfaceControl.Transaction setMatrix(SurfaceControl leash, Matrix matrix, in setMatrix() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/display/ |
H A D | LocalDisplayAdapter.java | 38 import android.view.SurfaceControl; 106 SurfaceControl.StaticDisplayInfo staticInfo = in tryConnectDisplayLocked() 112 SurfaceControl.DynamicDisplayInfo dynamicInfo = in tryConnectDisplayLocked() 136 SurfaceControl.DesiredDisplayModeSpecs modeSpecs = in tryConnectDisplayLocked() 169 return SurfaceControl.POWER_MODE_OFF; in getPowerModeForState() 171 return SurfaceControl.POWER_MODE_DOZE; in getPowerModeForState() 175 return SurfaceControl.POWER_MODE_ON_SUSPEND; in getPowerModeForState() 177 return SurfaceControl.POWER_MODE_NORMAL; in getPowerModeForState() 210 private SurfaceControl.DisplayMode[] mSfDisplayModes; 513 private SurfaceControl.DisplayMode getModeById(SurfaceControl.DisplayMode[] supportedModes, in getModeById() [all …]
|
/aosp12/frameworks/base/native/android/ |
H A D | surface_control.cpp | 60 SurfaceControl* ASurfaceControl_to_SurfaceControl(ASurfaceControl* aSurfaceControl) { in ASurfaceControl_to_SurfaceControl() 61 return reinterpret_cast<SurfaceControl*>(aSurfaceControl); in ASurfaceControl_to_SurfaceControl() 64 void SurfaceControl_acquire(SurfaceControl* surfaceControl) { in SurfaceControl_acquire() 69 void SurfaceControl_release(SurfaceControl* surfaceControl) { in SurfaceControl_release() 87 sp<SurfaceControl> surfaceControl; in ASurfaceControl_createFromWindow() 115 SurfaceControl* surfaceControlParent = ASurfaceControl_to_SurfaceControl(parent); in ASurfaceControl_create() 118 sp<SurfaceControl> surfaceControl = in ASurfaceControl_create() 132 SurfaceControl* surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl); in ASurfaceControl_acquire() 233 SurfaceControl** surfaceControls = new SurfaceControl*[size]; in ASurfaceTransactionStats_getASurfaceControls() 280 SurfaceControl** surfaceControls = reinterpret_cast<SurfaceControl**>(aSurfaceControls); in ASurfaceTransactionStats_releaseASurfaceControls() [all …]
|
/aosp12/frameworks/native/services/surfaceflinger/tests/ |
H A D | ScreenCapture_test.cpp | 81 sp<SurfaceControl> layer; in TEST_F() 120 sp<SurfaceControl> parentLayer; in TEST_F() 127 sp<SurfaceControl> childLayer; in TEST_F() 480 sp<SurfaceControl> redLayer = in TEST_F() 596 sp<SurfaceControl> layer; in TEST_F() 641 sp<SurfaceControl> layer; in TEST_F() 681 sp<SurfaceControl> layer; in TEST_F() 734 sp<SurfaceControl> layer; in TEST_F() 802 sp<SurfaceControl> layer; in TEST_F() 837 sp<SurfaceControl> layer; in TEST_F() [all …]
|