/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | StubTransaction.java | 33 public class StubTransaction extends SurfaceControl.Transaction { 47 public SurfaceControl.Transaction setVisibility(SurfaceControl sc, boolean visible) { in setVisibility() 52 public SurfaceControl.Transaction show(SurfaceControl sc) { in show() 57 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide() 62 public SurfaceControl.Transaction setPosition(SurfaceControl sc, float x, float y) { in setPosition() 67 public SurfaceControl.Transaction setBufferSize(SurfaceControl sc, in setBufferSize() 73 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int z) { in setLayer() 78 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, SurfaceControl relativeTo, in setRelativeLayer() 84 public SurfaceControl.Transaction setTransparentRegionHint(SurfaceControl sc, in setTransparentRegionHint() 90 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 …]
|
D | Replayer.cpp | 334 status_t Replayer::doTransaction(const Transaction& t, const std::shared_ptr<Event>& event) { in doTransaction() 337 SurfaceComposerClient::Transaction liveTransaction; in doTransaction() 358 SurfaceComposerClient::Transaction& transaction, in doSurfaceTransaction() 443 void Replayer::doDisplayTransaction(SurfaceComposerClient::Transaction& t, in doDisplayTransaction() 471 void Replayer::setPosition(SurfaceComposerClient::Transaction& t, in setPosition() 477 void Replayer::setSize(SurfaceComposerClient::Transaction& t, in setSize() 483 void Replayer::setLayer(SurfaceComposerClient::Transaction& t, in setLayer() 489 void Replayer::setAlpha(SurfaceComposerClient::Transaction& t, in setAlpha() 495 void Replayer::setCrop(SurfaceComposerClient::Transaction& t, in setCrop() 506 void Replayer::setCornerRadius(SurfaceComposerClient::Transaction& t, in setCornerRadius() [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | SurfaceComposerClient.h | 341 class Transaction : public Parcelable { 383 Transaction() = default; 384 virtual ~Transaction() = default; 385 Transaction(Transaction const& other); 388 static std::unique_ptr<Transaction> createFromParcel(const Parcel* parcel); 399 Transaction& merge(Transaction&& other); 400 Transaction& show(const sp<SurfaceControl>& sc); 401 Transaction& hide(const sp<SurfaceControl>& sc); 402 Transaction& setPosition(const sp<SurfaceControl>& sc, 404 Transaction& setSize(const sp<SurfaceControl>& sc, [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceInterceptor.h | 42 using Transaction = surfaceflinger::Transaction; variable 141 SurfaceChange* createSurfaceChangeLocked(Transaction* transaction, int32_t layerId); 143 void addPositionLocked(Transaction* transaction, int32_t layerId, float x, float y); 144 void addDepthLocked(Transaction* transaction, int32_t layerId, uint32_t z); 145 void addSizeLocked(Transaction* transaction, int32_t layerId, uint32_t w, uint32_t h); 146 void addAlphaLocked(Transaction* transaction, int32_t layerId, float alpha); 147 void addMatrixLocked(Transaction* transaction, int32_t layerId, 149 void addTransparentRegionLocked(Transaction* transaction, int32_t layerId, 151 void addFlagsLocked(Transaction* transaction, int32_t layerId, uint8_t flags, uint8_t mask); 152 void addLayerStackLocked(Transaction* transaction, int32_t layerId, uint32_t layerStack); [all …]
|
D | SurfaceInterceptor.cpp | 102 Transaction* transaction(increment->mutable_transaction()); in addInitialSurfaceStateLocked() 138 Transaction* transaction(increment->mutable_transaction()); in addInitialDisplayStateLocked() 201 SurfaceChange* SurfaceInterceptor::createSurfaceChangeLocked(Transaction* transaction, in createSurfaceChangeLocked() 209 DisplayChange* SurfaceInterceptor::createDisplayChangeLocked(Transaction* transaction, in createDisplayChangeLocked() 224 void SurfaceInterceptor::addPositionLocked(Transaction* transaction, int32_t layerId, in addPositionLocked() 233 void SurfaceInterceptor::addDepthLocked(Transaction* transaction, int32_t layerId, in addDepthLocked() 241 void SurfaceInterceptor::addSizeLocked(Transaction* transaction, int32_t layerId, uint32_t w, in addSizeLocked() 250 void SurfaceInterceptor::addAlphaLocked(Transaction* transaction, int32_t layerId, in addAlphaLocked() 258 void SurfaceInterceptor::addMatrixLocked(Transaction* transaction, int32_t layerId, in addMatrixLocked() 269 void SurfaceInterceptor::addTransparentRegionLocked(Transaction* transaction, in addTransparentRegionLocked() [all …]
|
/frameworks/native/libs/gui/ |
D | SurfaceComposerClient.cpp | 351 SurfaceComposerClient::Transaction::Transaction(const Transaction& other) in Transaction() function in android::SurfaceComposerClient::Transaction 366 std::unique_ptr<SurfaceComposerClient::Transaction> 367 SurfaceComposerClient::Transaction::createFromParcel(const Parcel* parcel) { in createFromParcel() 368 auto transaction = std::make_unique<Transaction>(); in createFromParcel() 375 status_t SurfaceComposerClient::Transaction::readFromParcel(const Parcel* parcel) { in readFromParcel() 461 status_t SurfaceComposerClient::Transaction::writeToParcel(Parcel* parcel) const { in writeToParcel() 473 const_cast<SurfaceComposerClient::Transaction*>(this)->cacheBuffers(); in writeToParcel() 511 SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::merge(Transaction&& other) { in merge() 562 void SurfaceComposerClient::Transaction::clear() { in clear() 588 void SurfaceComposerClient::Transaction::cacheBuffers() { in cacheBuffers() [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | LayerCallback_test.cpp | 37 static int fillTransaction(Transaction& transaction, CallbackHelper* callbackHelper, in fillTransaction() 91 Transaction transaction; in TEST_F() 102 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer); in TEST_F() 110 Transaction transaction; in TEST_F() 121 expected.addSurface(ExpectedResult::Transaction::NOT_PRESENTED, layer, in TEST_F() 130 Transaction transaction; in TEST_F() 141 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer); in TEST_F() 149 Transaction transaction; in TEST_F() 160 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F() 166 Transaction transaction; in TEST_F() [all …]
|
D | LayerUpdate_test.cpp | 65 asTransaction([&](Transaction& t) { in SetUp() 113 Transaction{} in TEST_F() 123 Transaction{}.detachChildren(mFGSurfaceControl).apply(); in TEST_F() 131 Transaction{}.hide(relative).apply(); in TEST_F() 166 asTransaction([&](Transaction& t) { in restoreInitialState() 209 asTransaction([&](Transaction& t) { in TEST_F() 215 asTransaction([&](Transaction& t) { in TEST_F() 240 asTransaction([&](Transaction& t) { t.setAlpha(mFGSurfaceControl, 1.0); }); in TEST_F() 262 SurfaceComposerClient::Transaction{} in TEST_F() 272 SurfaceComposerClient::Transaction{} in TEST_F() [all …]
|
D | RelativeZ_test.cpp | 45 asTransaction([&](Transaction& t) { in SetUp() 73 Transaction{} in TEST_F() 86 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F() 91 Transaction{}.reparent(childLayer, mBackgroundLayer->getHandle()).apply(); in TEST_F() 120 Transaction{} in TEST_F() 135 Transaction{}.reparent(childLevel1, nullptr).apply(); in TEST_F() 143 Transaction{}.reparent(childLevel1, mForegroundLayer->getHandle()).apply(); in TEST_F() 164 Transaction{} in TEST_F() 180 Transaction{}.reparent(relativeToLayer, nullptr).apply(); in TEST_F() 191 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F() [all …]
|
D | LayerRenderTypeTransaction_test.cpp | 64 Transaction().setPosition(layer, 5, 10).apply(); in TEST_P() 83 Transaction().setPosition(layer, 0.5f - epsilon, 0.5f - epsilon).apply(); in TEST_P() 89 Transaction().setPosition(layer, 0.5f + epsilon, 0.5f + epsilon).apply(); in TEST_P() 101 Transaction().setPosition(layer, -32, -32).apply(); in TEST_P() 107 Transaction().setPosition(layer, mDisplayWidth, mDisplayHeight).apply(); in TEST_P() 120 Transaction().setPosition(layer, -30, -30).apply(); in TEST_P() 126 Transaction().setPosition(layer, mDisplayWidth - 2, mDisplayHeight - 2).apply(); in TEST_P() 142 Transaction().setPosition(layer, 5, 10).setSize(layer, 64, 64).apply(); in TEST_P() 163 Transaction().setSize(layer, 64, 64).apply(); in TEST_P() 188 Transaction() in TEST_P() [all …]
|
D | MirrorLayer_test.cpp | 36 asTransaction([&](Transaction& t) { in SetUp() 59 Transaction() in TEST_F() 70 Transaction() in TEST_F() 86 Transaction().setColor(grandchild, half3{1, 1, 1}).apply(); in TEST_F() 97 Transaction().setColor(mChildLayer, half3{0, 0, 0}).apply(); in TEST_F() 108 Transaction().reparent(grandchild, nullptr).apply(); in TEST_F() 119 Transaction().reparent(mChildLayer, nullptr).apply(); in TEST_F() 130 Transaction().reparent(grandchild, mChildLayer->getHandle()).apply(); in TEST_F() 141 Transaction().reparent(mChildLayer, mParentLayer->getHandle()).apply(); in TEST_F() 156 Transaction().show(bufferQueueLayer).apply(); in TEST_F() [all …]
|
D | SurfaceInterceptor_test.cpp | 37 using Transaction = SurfaceComposerClient::Transaction; typedef 158 using TestTransactionAction = void (SurfaceInterceptorTest::*)(Transaction&); 216 void positionUpdate(Transaction&); 217 void sizeUpdate(Transaction&); 218 void alphaUpdate(Transaction&); 219 void layerUpdate(Transaction&); 220 void cropUpdate(Transaction&); 221 void cornerRadiusUpdate(Transaction&); 222 void backgroundBlurRadiusUpdate(Transaction&); 223 void matrixUpdate(Transaction&); [all …]
|
D | LayerTypeAndRenderTypeTransaction_test.cpp | 68 Transaction().setLayer(layerR, mLayerZBase + 1).apply(); in TEST_P() 74 Transaction().setLayer(layerG, mLayerZBase + 2).apply(); in TEST_P() 90 Transaction() in TEST_P() 95 Transaction().reparent(layerG, nullptr).apply(); in TEST_P() 106 Transaction().setFlags(layer, layer_state_t::eLayerHidden, layer_state_t::eLayerHidden).apply(); in TEST_P() 112 Transaction().setFlags(layer, 0, layer_state_t::eLayerHidden).apply(); in TEST_P() 128 Transaction() in TEST_P() 137 Transaction().setFlags(layerR, 0, layer_state_t::eLayerOpaque).apply(); in TEST_P() 149 Transaction().setCrop_legacy(parent, Rect(0, 0, mDisplayWidth, mDisplayHeight)).apply(); in TEST_P() 157 Transaction() in TEST_P() [all …]
|
D | LayerTypeTransaction_test.cpp | 46 Transaction().setCrop_legacy(parent, Rect(0, 0, mDisplayWidth, mDisplayHeight)).apply(); in TEST_P() 57 Transaction().reparent(layerB, parent->getHandle()).apply(); in TEST_P() 60 Transaction().setRelativeLayer(layerG, layerR->getHandle(), -1).setLayer(layerB, -2).apply(); in TEST_P() 80 Transaction() in TEST_P() 89 Transaction() in TEST_P() 102 Transaction() in TEST_P() 131 Transaction() in TEST_P() 142 Transaction().setRelativeLayer(childLayer, relativeParent->getHandle(), 1).apply(); in TEST_P() 152 Transaction().hide(relativeParent).apply(); in TEST_P() 170 Transaction() in TEST_P() [all …]
|
D | SetGeometry_test.cpp | 33 asTransaction([&](Transaction& t) { t.setLayer(mLayer, INT32_MAX - 1).show(mLayer); }); in SetUp() 58 Transaction{}.setGeometry(mLayer, source, dest, 0).apply(); in TEST_F() 71 Transaction{}.setGeometry(mLayer, source, dest, 0).apply(); in TEST_F() 84 Transaction{}.setGeometry(mLayer, source, dest, 0).apply(); in TEST_F() 94 Transaction{}.setGeometry(mLayer, source, dest, 0).apply(); in TEST_F()
|
/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/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 | WindowContainerThumbnail.java | 39 import android.view.SurfaceControl.Transaction; 62 WindowContainerThumbnail(Supplier<Surface> surfaceFactory, Transaction t, in WindowContainerThumbnail() 74 WindowContainerThumbnail(Supplier<Surface> surfaceFactory, Transaction t, in WindowContainerThumbnail() 79 WindowContainerThumbnail(Transaction t, WindowContainer container, in WindowContainerThumbnail() 125 void startAnimation(Transaction t, Animation anim) { in startAnimation() 129 void startAnimation(Transaction t, Animation anim, Point position) { in startAnimation() 143 void startAnimation(Transaction t, AnimationAdapter anim, boolean hidden) { in startAnimation() 150 void setShowing(Transaction pendingTransaction, boolean show) { in setShowing() 185 public Transaction getPendingTransaction() { in getPendingTransaction() 195 public void onAnimationLeashCreated(Transaction t, SurfaceControl leash) { in onAnimationLeashCreated() [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() 232 void stopDim(SurfaceControl.Transaction t) { in stopDim() 249 void dimAbove(SurfaceControl.Transaction t, float alpha) { in dimAbove() 262 void dimAbove(SurfaceControl.Transaction t, WindowContainer container, float alpha) { in dimAbove() 274 void dimBelow(SurfaceControl.Transaction t, WindowContainer container, float alpha) { in dimBelow() 306 boolean updateDims(SurfaceControl.Transaction t, Rect bounds) { in updateDims() [all …]
|
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/packages/SystemUI/src/com/android/systemui/ |
D | TransactionPool.java | 30 private final Pools.SynchronizedPool<SurfaceControl.Transaction> mTransactionPool = 38 public SurfaceControl.Transaction acquire() { in acquire() 39 SurfaceControl.Transaction t = mTransactionPool.acquire(); in acquire() 41 return new SurfaceControl.Transaction(); in acquire() 50 public void release(SurfaceControl.Transaction t) { in release()
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControl.java | 252 void onReparent(@NonNull Transaction transaction, @Nullable SurfaceControl parent); in onReparent() 273 static Transaction sGlobalTransaction; 1171 sGlobalTransaction = new Transaction(); in openTransaction() 1187 public static void mergeToGlobalTransaction(Transaction t) { in mergeToGlobalTransaction() 2271 public static class Transaction implements Closeable, Parcelable { class in SurfaceControl 2276 Transaction.class.getClassLoader(), 2304 public Transaction() { in Transaction() method in SurfaceControl.Transaction 2310 private Transaction(Parcel in) { in Transaction() method in SurfaceControl.Transaction 2379 public Transaction setVisibility(@NonNull SurfaceControl sc, boolean visible) { in setVisibility() 2395 public Transaction setFrameRateSelectionPriority(@NonNull SurfaceControl sc, int priority) { in setFrameRateSelectionPriority() [all …]
|
/frameworks/base/native/android/ |
D | surface_control.cpp | 38 using Transaction = SurfaceComposerClient::Transaction; typedef 113 Transaction* ASurfaceTransaction_to_Transaction(ASurfaceTransaction* aSurfaceTransaction) { in ASurfaceTransaction_to_Transaction() 114 return reinterpret_cast<Transaction*>(aSurfaceTransaction); in ASurfaceTransaction_to_Transaction() 183 Transaction* transaction = new Transaction; in ASurfaceTransaction_create() 188 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_delete() 195 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_apply() 306 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_setOnComplete() 321 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_reparent() 333 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_setVisibility() 354 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_setZOrder() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/ |
D | PipSurfaceTransactionHelper.java | 67 PipSurfaceTransactionHelper alpha(SurfaceControl.Transaction tx, SurfaceControl leash, in alpha() 77 PipSurfaceTransactionHelper crop(SurfaceControl.Transaction tx, SurfaceControl leash, in crop() 88 PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale() 102 PipSurfaceTransactionHelper scaleAndCrop(SurfaceControl.Transaction tx, SurfaceControl leash, in scaleAndCrop() 125 PipSurfaceTransactionHelper resetScale(SurfaceControl.Transaction tx, SurfaceControl leash, in resetScale() 136 PipSurfaceTransactionHelper round(SurfaceControl.Transaction tx, SurfaceControl leash, in round() 145 SurfaceControl.Transaction getTransaction(); in getTransaction()
|