/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | StubTransaction.java | 35 public class StubTransaction extends SurfaceControl.Transaction { 49 public SurfaceControl.Transaction setVisibility(SurfaceControl sc, boolean visible) { in setVisibility() 54 public SurfaceControl.Transaction show(SurfaceControl sc) { in show() 59 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide() 64 public SurfaceControl.Transaction setPosition(SurfaceControl sc, float x, float y) { in setPosition() 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() 86 public SurfaceControl.Transaction setTransparentRegionHint(SurfaceControl sc, in setTransparentRegionHint() 92 public SurfaceControl.Transaction setAlpha(SurfaceControl sc, float alpha) { in setAlpha() [all …]
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Replayer.h | 72 status_t doTransaction(const Transaction& transaction, const std::shared_ptr<Event>& event); 80 status_t doSurfaceTransaction(SurfaceComposerClient::Transaction& transaction, 82 void doDisplayTransaction(SurfaceComposerClient::Transaction& transaction, 85 void setPosition(SurfaceComposerClient::Transaction& t, 87 void setSize(SurfaceComposerClient::Transaction& t, 89 void setAlpha(SurfaceComposerClient::Transaction& t, 91 void setLayer(SurfaceComposerClient::Transaction& t, 93 void setCrop(SurfaceComposerClient::Transaction& t, 95 void setCornerRadius(SurfaceComposerClient::Transaction& t, 97 void setBackgroundBlurRadius(SurfaceComposerClient::Transaction& t, [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | SurfaceComposerClient.h | 347 class Transaction : public Parcelable { 405 Transaction(); 406 virtual ~Transaction() = default; 407 Transaction(Transaction const& other); 410 static std::unique_ptr<Transaction> createFromParcel(const Parcel* parcel); 421 Transaction& merge(Transaction&& other); 422 Transaction& show(const sp<SurfaceControl>& sc); 423 Transaction& hide(const sp<SurfaceControl>& sc); 424 Transaction& setPosition(const sp<SurfaceControl>& sc, 426 Transaction& setSize(const sp<SurfaceControl>& sc, [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceInterceptor.h | 44 using Transaction = surfaceflinger::Transaction; variable 152 SurfaceChange* createSurfaceChangeLocked(Transaction* transaction, int32_t layerId); 154 void addPositionLocked(Transaction* transaction, int32_t layerId, float x, float y); 155 void addDepthLocked(Transaction* transaction, int32_t layerId, uint32_t z); 156 void addSizeLocked(Transaction* transaction, int32_t layerId, uint32_t w, uint32_t h); 157 void addAlphaLocked(Transaction* transaction, int32_t layerId, float alpha); 158 void addMatrixLocked(Transaction* transaction, int32_t layerId, 160 void addTransparentRegionLocked(Transaction* transaction, int32_t layerId, 162 void addFlagsLocked(Transaction* transaction, int32_t layerId, uint8_t flags, uint8_t mask); 163 void addLayerStackLocked(Transaction* transaction, int32_t layerId, uint32_t layerStack); [all …]
|
/frameworks/native/libs/gui/ |
D | SurfaceComposerClient.cpp | 506 std::atomic<uint32_t> SurfaceComposerClient::Transaction::idCounter = 1; 508 SurfaceComposerClient::Transaction::Transaction() { in Transaction() function in android::SurfaceComposerClient::Transaction 512 SurfaceComposerClient::Transaction::Transaction(const Transaction& other) in Transaction() function in android::SurfaceComposerClient::Transaction 530 std::unique_ptr<SurfaceComposerClient::Transaction> 531 SurfaceComposerClient::Transaction::createFromParcel(const Parcel* parcel) { in createFromParcel() 532 auto transaction = std::make_unique<Transaction>(); in createFromParcel() 539 int64_t SurfaceComposerClient::Transaction::generateId() { in generateId() 543 status_t SurfaceComposerClient::Transaction::readFromParcel(const Parcel* parcel) { in readFromParcel() 639 status_t SurfaceComposerClient::Transaction::writeToParcel(Parcel* parcel) const { in writeToParcel() 651 const_cast<SurfaceComposerClient::Transaction*>(this)->cacheBuffers(); in writeToParcel() [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | client.cpp | 128 Transaction::Transaction(Client& client) : client_{client} {} in Transaction() function in android::pdx::Transaction 130 Transaction::~Transaction() { in ~Transaction() 135 bool Transaction::EnsureStateAllocated() { in EnsureStateAllocated() 143 void Transaction::SendTransaction(int opcode, Status<void>* ret, in SendTransaction() 167 void Transaction::SendTransaction(int opcode, Status<int>* ret, in SendTransaction() 188 void Transaction::SendTransaction(int opcode, Status<LocalHandle>* ret, in SendTransaction() 209 void Transaction::SendTransaction(int opcode, Status<LocalChannelHandle>* ret, in SendTransaction() 230 Status<FileReference> Transaction::PushFileHandle(const LocalHandle& handle) { in PushFileHandle() 236 Status<FileReference> Transaction::PushFileHandle( in PushFileHandle() 243 Status<FileReference> Transaction::PushFileHandle(const RemoteHandle& handle) { in PushFileHandle() [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | LayerCallback_test.cpp | 57 static int fillTransaction(Transaction& transaction, CallbackHelper* callbackHelper, in fillTransaction() 140 Transaction transaction; in TEST_F() 151 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer); in TEST_F() 159 Transaction transaction; in TEST_F() 173 expected.addSurface(ExpectedResult::Transaction::NOT_PRESENTED, layer, in TEST_F() 182 Transaction transaction; in TEST_F() 196 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer); in TEST_F() 204 Transaction transaction; in TEST_F() 218 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F() 224 Transaction transaction; in TEST_F() [all …]
|
D | LayerUpdate_test.cpp | 65 asTransaction([&](Transaction& t) { in SetUp() 164 SurfaceComposerClient::Transaction{} in TEST_F() 174 SurfaceComposerClient::Transaction{}.setCrop(childNoBuffer, Rect(0, 0, 20, 20)).apply(true); in TEST_F() 192 Transaction t1, t2; in TEST_F() 207 Transaction().hide(mFGSurfaceControl).apply(); in TEST_F() 217 Transaction t1, t2; in TEST_F() 255 asTransaction([&](Transaction& t) { in TEST_F() 271 asTransaction([&](Transaction& t) { t.setPosition(mFGSurfaceControl, 0, 0); }); in TEST_F() 285 asTransaction([&](Transaction& t) { in TEST_F() 301 asTransaction([&](Transaction& t) { in TEST_F() [all …]
|
D | RelativeZ_test.cpp | 45 asTransaction([&](Transaction& t) { in SetUp() 73 Transaction{}.setRelativeLayer(childLayer, mForegroundLayer, 1).show(childLayer).apply(); in TEST_F() 83 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F() 88 Transaction{}.reparent(childLayer, mBackgroundLayer).apply(); in TEST_F() 117 Transaction{} in TEST_F() 132 Transaction{}.reparent(childLevel1, nullptr).apply(); in TEST_F() 140 Transaction{}.reparent(childLevel1, mForegroundLayer).apply(); in TEST_F() 161 Transaction{} in TEST_F() 177 Transaction{}.reparent(relativeToLayer, nullptr).apply(); in TEST_F() 188 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F() [all …]
|
D | LayerRenderTypeTransaction_test.cpp | 67 Transaction().setPosition(layer, 5, 10).apply(); in TEST_P() 86 Transaction().setPosition(layer, 0.5f - epsilon, 0.5f - epsilon).apply(); in TEST_P() 92 Transaction().setPosition(layer, 0.5f + epsilon, 0.5f + epsilon).apply(); in TEST_P() 104 Transaction().setPosition(layer, -32, -32).apply(); in TEST_P() 110 Transaction().setPosition(layer, mDisplayWidth, mDisplayHeight).apply(); in TEST_P() 123 Transaction().setPosition(layer, -30, -30).apply(); in TEST_P() 129 Transaction().setPosition(layer, mDisplayWidth - 2, mDisplayHeight - 2).apply(); in TEST_P() 157 Transaction().setPosition(layerG, 16, 16).setRelativeLayer(layerG, layerR, 1).apply(); in setRelativeZBasicHelper() 160 Transaction().setPosition(layerG, 16, 16).setRelativeLayer(layerG, layerR, 1).apply(); in setRelativeZBasicHelper() 172 Transaction().setRelativeLayer(layerG, layerR, -1).apply(); in setRelativeZBasicHelper() [all …]
|
D | MirrorLayer_test.cpp | 38 asTransaction([&](Transaction& t) { in SetUp() 61 Transaction() in TEST_F() 72 Transaction() in TEST_F() 88 Transaction().setColor(grandchild, half3{1, 1, 1}).apply(); in TEST_F() 99 Transaction().setColor(mChildLayer, half3{0, 0, 0}).apply(); in TEST_F() 110 Transaction().reparent(grandchild, nullptr).apply(); in TEST_F() 121 Transaction().reparent(mChildLayer, nullptr).apply(); in TEST_F() 132 Transaction().reparent(grandchild, mChildLayer).apply(); in TEST_F() 143 Transaction().reparent(mChildLayer, mParentLayer).apply(); in TEST_F() 158 Transaction().show(bufferQueueLayer).apply(); in TEST_F() [all …]
|
D | SurfaceInterceptor_test.cpp | 38 using Transaction = SurfaceComposerClient::Transaction; typedef 158 using TestTransactionAction = void (SurfaceInterceptorTest::*)(Transaction&); 215 void positionUpdate(Transaction&); 216 void sizeUpdate(Transaction&); 217 void alphaUpdate(Transaction&); 218 void layerUpdate(Transaction&); 219 void cropUpdate(Transaction&); 220 void cornerRadiusUpdate(Transaction&); 221 void backgroundBlurRadiusUpdate(Transaction&); 222 void blurRegionsUpdate(Transaction&); [all …]
|
D | LayerTypeTransaction_test.cpp | 47 Transaction().setCrop(parent, Rect(0, 0, mDisplayWidth, mDisplayHeight)).apply(); in TEST_P() 58 Transaction().reparent(layerB, parent).apply(); in TEST_P() 61 Transaction().setRelativeLayer(layerG, layerR, -1).setLayer(layerB, -2).apply(); in TEST_P() 83 Transaction() in TEST_P() 92 Transaction().setRelativeLayer(childLayer, parent, -1).setLayer(childLayer, 1).apply(); in TEST_P() 102 Transaction().setLayer(childLayer, 1).setRelativeLayer(childLayer, parent, -1).apply(); in TEST_P() 128 Transaction() in TEST_P() 139 Transaction().setRelativeLayer(childLayer, relativeParent, 1).apply(); in TEST_P() 149 Transaction().hide(relativeParent).apply(); in TEST_P() 166 Transaction() in TEST_P() [all …]
|
D | ReleaseBufferCallback_test.cpp | 87 Transaction t; in submitBuffer() 137 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F() 143 Transaction t; in TEST_F() 157 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F() 176 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F() 183 Transaction t; in TEST_F() 189 expected.addSurface(ExpectedResult::Transaction::NOT_PRESENTED, layer, in TEST_F() 202 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F() 214 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F() 233 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F() [all …]
|
D | ScreenCapture_test.cpp | 55 asTransaction([&](Transaction& t) { in SetUp() 85 Transaction().show(layer).setLayer(layer, INT32_MAX).apply(true); in TEST_F() 130 Transaction().show(parentLayer).setLayer(parentLayer, INT32_MAX).show(childLayer).apply(true); in TEST_F() 165 SurfaceComposerClient::Transaction().show(child).apply(true); in TEST_F() 182 SurfaceComposerClient::Transaction().show(child).apply(true); in TEST_F() 203 SurfaceComposerClient::Transaction() in TEST_F() 234 SurfaceComposerClient::Transaction() in TEST_F() 258 SurfaceComposerClient::Transaction().show(child).apply(true); in TEST_F() 278 SurfaceComposerClient::Transaction() in TEST_F() 301 SurfaceComposerClient::Transaction() in TEST_F() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SimpleSurfaceAnimatable.java | 44 private final Supplier<SurfaceControl.Transaction> mPendingTransaction; 45 private final BiConsumer<SurfaceControl.Transaction, SurfaceControl> mOnAnimationLeashCreated; 46 private final Consumer<SurfaceControl.Transaction> mOnAnimationLeashLost; 69 public SurfaceControl.Transaction getPendingTransaction() { in getPendingTransaction() 79 public void onAnimationLeashCreated(SurfaceControl.Transaction t, SurfaceControl leash) { in onAnimationLeashCreated() 87 public void onAnimationLeashLost(SurfaceControl.Transaction t) { in onAnimationLeashLost() 153 private BiConsumer<SurfaceControl.Transaction, SurfaceControl> mOnAnimationLeashCreated = 157 private Consumer<SurfaceControl.Transaction> mOnAnimationLeashLost = null; 163 private Supplier<SurfaceControl.Transaction> mPendingTransactionSupplier; 190 @Nullable BiConsumer<SurfaceControl.Transaction, SurfaceControl> in setOnAnimationLeashCreated() [all …]
|
D | Dimmer.java | 53 public SurfaceControl.Transaction getPendingTransaction() { in getPendingTransaction() 63 public void onAnimationLeashCreated(SurfaceControl.Transaction t, SurfaceControl leash) { in onAnimationLeashCreated() 67 public void onAnimationLeashLost(SurfaceControl.Transaction t) { in onAnimationLeashLost() 160 void startAnimation(SurfaceAnimator surfaceAnimator, SurfaceControl.Transaction t, in startAnimation() 206 private void dim(SurfaceControl.Transaction t, WindowContainer container, int relativeLayer, in dim() 233 void stopDim(SurfaceControl.Transaction t) { in stopDim() 250 void dimAbove(SurfaceControl.Transaction t, float alpha) { in dimAbove() 263 void dimAbove(SurfaceControl.Transaction t, WindowContainer container, float alpha) { in dimAbove() 276 void dimBelow(SurfaceControl.Transaction t, WindowContainer container, float alpha, in dimBelow() 309 boolean updateDims(SurfaceControl.Transaction t, Rect bounds) { in updateDims() [all …]
|
D | WindowContainerThumbnail.java | 40 import android.view.SurfaceControl.Transaction; 65 WindowContainerThumbnail(Transaction t, WindowContainer container, in WindowContainerThumbnail() 70 WindowContainerThumbnail(Transaction t, WindowContainer container, in WindowContainerThumbnail() 110 void startAnimation(Transaction t, Animation anim) { in startAnimation() 114 void startAnimation(Transaction t, Animation anim, Point position) { in startAnimation() 128 void startAnimation(Transaction t, AnimationAdapter anim, boolean hidden) { in startAnimation() 135 void setShowing(Transaction pendingTransaction, boolean show) { in setShowing() 170 public Transaction getPendingTransaction() { in getPendingTransaction() 180 public void onAnimationLeashCreated(Transaction t, SurfaceControl leash) { in onAnimationLeashCreated() 185 public void onAnimationLeashLost(Transaction t) { in onAnimationLeashLost()
|
D | SurfaceAnimator.java | 32 import android.view.SurfaceControl.Transaction; 134 void startAnimation(Transaction t, AnimationAdapter anim, boolean hidden, 163 void startAnimation(Transaction t, AnimationAdapter anim, boolean hidden, 169 void startAnimation(Transaction t, AnimationAdapter anim, boolean hidden, 235 void setLayer(Transaction t, int layer) { 244 void setRelativeLayer(Transaction t, SurfaceControl relativeTo, int layer) { 253 void reparent(Transaction t, SurfaceControl newParent) { 276 final Transaction t = mAnimatable.getPendingTransaction(); 304 private void cancelAnimation(Transaction t, boolean restarting, boolean forwardCancel) { 335 private void reset(Transaction t, boolean destroyLeash) { [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | TransactionPool.java | 26 private final Pools.SynchronizedPool<SurfaceControl.Transaction> mTransactionPool = 33 public SurfaceControl.Transaction acquire() { in acquire() 34 SurfaceControl.Transaction t = mTransactionPool.acquire(); in acquire() 36 return new SurfaceControl.Transaction(); in acquire() 45 public void release(SurfaceControl.Transaction t) { in release()
|
/frameworks/base/native/android/ |
D | surface_control.cpp | 38 using Transaction = SurfaceComposerClient::Transaction; typedef 56 Transaction* ASurfaceTransaction_to_Transaction(ASurfaceTransaction* aSurfaceTransaction) { in ASurfaceTransaction_to_Transaction() 57 return reinterpret_cast<Transaction*>(aSurfaceTransaction); in ASurfaceTransaction_to_Transaction() 186 Transaction* transaction = new Transaction; in ASurfaceTransaction_create() 191 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_delete() 198 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_apply() 310 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_setOnComplete() 324 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_reparent() 336 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_setVisibility() 357 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_setZOrder() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/ |
D | ShellTransitionTests.java | 110 transitions.onTransitionReady(transitToken, info, mock(SurfaceControl.Transaction.class), in testBasicTransitionFlow() 111 mock(SurfaceControl.Transaction.class)); in testBasicTransitionFlow() 130 @NonNull SurfaceControl.Transaction t, in testNonDefaultHandler() 159 transitions.onTransitionReady(transitToken, open, mock(SurfaceControl.Transaction.class), in testNonDefaultHandler() 160 mock(SurfaceControl.Transaction.class)); in testNonDefaultHandler() 173 transitions.onTransitionReady(transitToken, open, mock(SurfaceControl.Transaction.class), in testNonDefaultHandler() 174 mock(SurfaceControl.Transaction.class)); in testNonDefaultHandler() 191 transitions.onTransitionReady(transitToken, change, mock(SurfaceControl.Transaction.class), in testNonDefaultHandler() 192 mock(SurfaceControl.Transaction.class)); in testNonDefaultHandler() 211 SurfaceControl.Transaction t, in testRequestRemoteTransition() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipSurfaceTransactionHelper.java | 53 public PipSurfaceTransactionHelper alpha(SurfaceControl.Transaction tx, SurfaceControl leash, in alpha() 63 public PipSurfaceTransactionHelper crop(SurfaceControl.Transaction tx, SurfaceControl leash, in crop() 74 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 83 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 101 public PipSurfaceTransactionHelper scaleAndCrop(SurfaceControl.Transaction tx, in scaleAndCrop() 126 public PipSurfaceTransactionHelper rotateAndScaleWithCrop(SurfaceControl.Transaction tx, in rotateAndScaleWithCrop() 170 public PipSurfaceTransactionHelper resetScale(SurfaceControl.Transaction tx, in resetScale() 182 public PipSurfaceTransactionHelper round(SurfaceControl.Transaction tx, SurfaceControl leash, in round() 192 public PipSurfaceTransactionHelper round(SurfaceControl.Transaction tx, SurfaceControl leash, in round() 204 SurfaceControl.Transaction t, SurfaceControl parent, SurfaceControl snapshot) { in reparentAndShowSurfaceSnapshot() [all …]
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControl.java | 262 void onReparent(@NonNull Transaction transaction, @Nullable SurfaceControl parent); in onReparent() 1634 public static void mergeToGlobalTransaction(Transaction t) { in mergeToGlobalTransaction() 2574 public static class Transaction implements Closeable, Parcelable { class in SurfaceControl 2579 Transaction.class.getClassLoader(), 2607 public Transaction() { in Transaction() method in SurfaceControl.Transaction 2613 private Transaction(Parcel in) { in Transaction() method in SurfaceControl.Transaction 2700 public Transaction setVisibility(@NonNull SurfaceControl sc, boolean visible) { in setVisibility() 2716 public Transaction setFrameRateSelectionPriority(@NonNull SurfaceControl sc, int priority) { in setFrameRateSelectionPriority() 2730 public Transaction show(SurfaceControl sc) { in show() 2744 public Transaction hide(SurfaceControl sc) { in hide() [all …]
|
D | SyncRtSurfaceTransactionApplier.java | 21 import android.view.SurfaceControl.Transaction; 64 final Transaction t = new Transaction(); in scheduleApply() 84 void applyParams(Transaction t, final SurfaceParams... params) { in applyParams() 92 void applyTransaction(Transaction t, long frame) { in applyTransaction() 100 public static void applyParams(Transaction t, SurfaceParams params, float[] tmpFloat9) { in applyParams() 173 Transaction mergeTransaction; 257 public Builder withMergeTransaction(Transaction mergeTransaction) { in withMergeTransaction() 274 int backgroundBlurRadius, boolean visible, Transaction mergeTransaction) { in SurfaceParams() 312 public final Transaction mergeTransaction;
|