/frameworks/base/core/java/android/app/servertransaction/ |
D | TransactionExecutor.java | 72 public void execute(@NonNull ClientTransaction transaction) { in execute() argument 74 Slog.d(TAG, tId(transaction) + "Start resolving transaction"); in execute() 75 Slog.d(TAG, transactionToString(transaction, mTransactionHandler)); in execute() 80 if (transaction.getTransactionItems() != null) { in execute() 81 executeTransactionItems(transaction); in execute() 84 executeCallbacks(transaction); in execute() 85 executeLifecycleState(transaction); in execute() 89 + transactionToString(transaction, mTransactionHandler)); in execute() 96 if (DEBUG_RESOLVER) Slog.d(TAG, tId(transaction) + "End resolving transaction"); in execute() 101 public void executeTransactionItems(@NonNull ClientTransaction transaction) { in executeTransactionItems() argument [all …]
|
/frameworks/native/include/android/ |
D | surface_control.h | 120 void ASurfaceTransaction_delete(ASurfaceTransaction* _Nullable transaction) __INTRODUCED_IN(29); 131 void ASurfaceTransaction_apply(ASurfaceTransaction* _Nonnull transaction) __INTRODUCED_IN(29); 284 void ASurfaceTransaction_setOnComplete(ASurfaceTransaction* _Nonnull transaction, 296 void ASurfaceTransaction_setOnCommit(ASurfaceTransaction* _Nonnull transaction, 309 void ASurfaceTransaction_reparent(ASurfaceTransaction* _Nonnull transaction, 327 void ASurfaceTransaction_setVisibility(ASurfaceTransaction* _Nonnull transaction, 341 void ASurfaceTransaction_setZOrder(ASurfaceTransaction* _Nonnull transaction, 358 void ASurfaceTransaction_setBuffer(ASurfaceTransaction* _Nonnull transaction, 371 void ASurfaceTransaction_setColor(ASurfaceTransaction* _Nonnull transaction, 396 void ASurfaceTransaction_setGeometry(ASurfaceTransaction* _Nonnull transaction, [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ClientLifecycleManagerTests.java | 116 ClientTransaction transaction = mTransactionCaptor.getValue(); in testScheduleTransactionItem_notBundle() local 117 assertEquals(1, transaction.getCallbacks().size()); in testScheduleTransactionItem_notBundle() 118 assertEquals(mTransactionItem, transaction.getCallbacks().get(0)); in testScheduleTransactionItem_notBundle() 119 assertNull(transaction.getLifecycleStateRequest()); in testScheduleTransactionItem_notBundle() 120 assertNull(transaction.getTransactionItems()); in testScheduleTransactionItem_notBundle() 126 transaction = mTransactionCaptor.getValue(); in testScheduleTransactionItem_notBundle() 127 assertNull(transaction.getCallbacks()); in testScheduleTransactionItem_notBundle() 128 assertEquals(mLifecycleItem, transaction.getLifecycleStateRequest()); in testScheduleTransactionItem_notBundle() 142 ClientTransaction transaction = in testScheduleTransactionItem() local 144 assertEquals(1, transaction.getTransactionItems().size()); in testScheduleTransactionItem() [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | LayerCallback_test.cpp | 58 static int fillBuffer(Transaction& transaction, const sp<SurfaceControl>& layer, in fillBuffer() argument 68 transaction.setBuffer(layer, buffer, fence); in fillBuffer() 72 transaction.setBackgroundColor(layer, /*color*/ half3(1.0f, 0, 0), /*alpha*/ 1.0f, in fillBuffer() 79 static int fillTransaction(Transaction& transaction, CallbackHelper* callbackHelper, in fillTransaction() argument 83 int err = fillBuffer(transaction, layer, setBuffer, setBackgroundColor); in fillTransaction() 89 transaction.addTransactionCompletedCallback(callbackHelper->function, in fillTransaction() 169 Transaction transaction; in TEST_F() local 171 int err = fillTransaction(transaction, &callback, layer, true, true); in TEST_F() 177 transaction.apply(); in TEST_F() 188 Transaction transaction; in TEST_F() local [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/ |
D | UnfoldAnimationController.java | 174 SurfaceControl.Transaction transaction = null; in onStateChangeStarted() local 178 if (transaction == null) transaction = mTransactionPool.acquire(); in onStateChangeStarted() 179 animator.prepareStartTransaction(transaction); in onStateChangeStarted() 183 if (transaction != null) { in onStateChangeStarted() 184 transaction.apply(); in onStateChangeStarted() 185 mTransactionPool.release(transaction); in onStateChangeStarted() 195 SurfaceControl.Transaction transaction = null; in onStateChangeProgress() local 199 if (transaction == null) transaction = mTransactionPool.acquire(); in onStateChangeProgress() 200 animator.applyAnimationProgress(progress, transaction); in onStateChangeProgress() 204 if (transaction != null) { in onStateChangeProgress() [all …]
|
D | UnfoldBackgroundController.java | 51 public void ensureBackground(@NonNull SurfaceControl.Transaction transaction) { in ensureBackground() argument 55 transaction.setColor(mBackgroundLayer, expectedColor); in ensureBackground() 67 transaction in ensureBackground() 78 public void removeBackground(@NonNull SurfaceControl.Transaction transaction) { in removeBackground() argument 81 transaction.remove(mBackgroundLayer); in removeBackground()
|
/frameworks/base/native/android/ |
D | surface_control.cpp | 212 Transaction* transaction = new Transaction; in ASurfaceTransaction_create() local 213 return reinterpret_cast<ASurfaceTransaction*>(transaction); in ASurfaceTransaction_create() 217 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_delete() local 218 delete transaction; in ASurfaceTransaction_delete() 226 Transaction* transaction = in ASurfaceTransaction_fromJava() local 228 LOG_ALWAYS_FATAL_IF(!transaction, in ASurfaceTransaction_fromJava() 230 return reinterpret_cast<ASurfaceTransaction*>(transaction); in ASurfaceTransaction_fromJava() 236 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_apply() local 238 transaction->apply(); in ASurfaceTransaction_apply() 349 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_setOnComplete() local [all …]
|
/frameworks/base/services/core/java/com/android/server/location/contexthub/ |
D | ContextHubTransactionManager.java | 108 TransactionRecord(String transaction) { in TransactionRecord() argument 109 mTransaction = transaction; in TransactionRecord() 414 ContextHubServiceTransaction transaction) throws IllegalStateException { 415 if (transaction == null) { 424 mTransactionQueue.add(transaction); 425 mTransactionRecordDeque.add(new TransactionRecord(transaction.toString())); 440 ContextHubServiceTransaction transaction = mTransactionQueue.peek(); 441 if (transaction == null) { 445 if (transaction.getTransactionId() != transactionId) { 447 + transaction.getTransactionId() + ", received ID = " + transactionId + ")"); [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | TransactionTracingTest.cpp | 51 TransactionState transaction; in queueAndCommitTransaction() local 52 transaction.id = static_cast<uint64_t>(vsyncId * 3); in queueAndCommitTransaction() 53 transaction.originUid = 1; in queueAndCommitTransaction() 54 transaction.originPid = 2; in queueAndCommitTransaction() 55 mTracing.addQueuedTransaction(transaction); in queueAndCommitTransaction() 57 update.transactions.emplace_back(transaction); in queueAndCommitTransaction() 97 TransactionState transaction; in TEST_F() local 98 transaction.id = i; in TEST_F() 99 transaction.originPid = static_cast<int32_t>(i); in TEST_F() 100 transaction.mergedTransactionIds = std::vector<uint64_t>{i + 100, i + 102}; in TEST_F() [all …]
|
D | TransactionApplicationTest.cpp | 94 void setupSingle(TransactionInfo& transaction, uint32_t flags, int64_t desiredPresentTime, in setupSingle() argument 97 transaction.flags |= flags; in setupSingle() 98 transaction.desiredPresentTime = desiredPresentTime; in setupSingle() 99 transaction.isAutoTimestamp = isAutoTimestamp; in setupSingle() 100 transaction.frameTimelineInfo = frameTimelineInfo; in setupSingle() 106 TransactionInfo transaction; in NotPlacedOnTransactionQueue() local 107 setupSingle(transaction, flags, in NotPlacedOnTransactionQueue() 111 mFlinger.setTransactionState(transaction.frameTimelineInfo, transaction.states, in NotPlacedOnTransactionQueue() 112 transaction.displays, transaction.flags, in NotPlacedOnTransactionQueue() 113 transaction.applyToken, transaction.inputWindowCommands, in NotPlacedOnTransactionQueue() [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | ContextHubTransactionHelper.java | 40 @NonNull() ContextHubTransaction<List<NanoAppState>> transaction) { in createNanoAppQueryCallback() 41 Objects.requireNonNull(transaction, "transaction cannot be null"); in createNanoAppQueryCallback() 45 transaction.setResponse(new ContextHubTransaction.Response<List<NanoAppState>>( in createNanoAppQueryCallback() 52 transaction.setResponse(new ContextHubTransaction.Response<List<NanoAppState>>( in createNanoAppQueryCallback() 66 @NonNull() ContextHubTransaction<Void> transaction) { 67 Objects.requireNonNull(transaction, "transaction cannot be null"); 72 transaction.setResponse(new ContextHubTransaction.Response<Void>( 78 transaction.setResponse(new ContextHubTransaction.Response<Void>(result, null));
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | BlurUtilsTest.kt | 44 @Mock lateinit var transaction: SurfaceControl.Transaction variable in com.android.systemui.statusbar.BlurUtilsTest 75 verify(transaction).setBackgroundBlurRadius(eq(surfaceControl), eq(radius)) in testApplyBlur_success() 76 verify(transaction).setOpaque(eq(surfaceControl), eq(true)) in testApplyBlur_success() 77 verify(transaction).apply() in testApplyBlur_success() 90 verify(transaction).setOpaque(eq(surfaceControl), eq(true)) in testApplyBlur_blurDisabled() 91 verify(transaction, never()).setBackgroundBlurRadius(any(), anyInt()) in testApplyBlur_blurDisabled() 92 verify(transaction).apply() in testApplyBlur_blurDisabled() 103 verify(transaction).setEarlyWakeupStart() in testEarlyWakeUp() 104 clearInvocations(transaction) in testEarlyWakeUp() 106 verify(transaction).setEarlyWakeupEnd() in testEarlyWakeUp() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/animation/ |
D | UnfoldTaskAnimator.java | 92 default void applyAnimationProgress(float progress, Transaction transaction) {} in applyAnimationProgress() argument 98 default void prepareStartTransaction(Transaction transaction) {} in prepareStartTransaction() argument 104 default void prepareFinishTransaction(Transaction transaction) {} in prepareFinishTransaction() argument 110 default void resetSurface(TaskInfo taskInfo, Transaction transaction) {} in resetSurface() argument 116 default void resetAllSurfaces(Transaction transaction) {} in resetAllSurfaces() argument
|
D | FullscreenUnfoldTaskAnimator.java | 150 public void resetSurface(TaskInfo taskInfo, Transaction transaction) { in resetSurface() argument 153 resetSurface(context, transaction); in resetSurface() 158 public void applyAnimationProgress(float progress, Transaction transaction) { in applyAnimationProgress() argument 171 transaction.setWindowCrop(context.mLeash, context.mCurrentCropRect) in applyAnimationProgress() 179 public void prepareStartTransaction(Transaction transaction) { in prepareStartTransaction() argument 180 mBackgroundController.ensureBackground(transaction); in prepareStartTransaction() 184 public void prepareFinishTransaction(Transaction transaction) { in prepareFinishTransaction() argument 185 mBackgroundController.removeBackground(transaction); in prepareFinishTransaction() 197 public void resetAllSurfaces(Transaction transaction) { in resetAllSurfaces() argument 200 resetSurface(context, transaction); in resetAllSurfaces() [all …]
|
/frameworks/base/core/jni/ |
D | android_view_SurfaceControl.cpp | 543 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeApplyTransaction() local 544 transaction->apply(sync, oneWay); in nativeApplyTransaction() 549 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeMergeTransaction() local 552 transaction->merge(std::move(*otherTransaction)); in nativeMergeTransaction() 556 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeSetAnimationTransaction() local 557 transaction->setAnimationTransaction(); in nativeSetAnimationTransaction() 561 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeSetEarlyWakeupStart() local 562 transaction->setEarlyWakeupStart(); in nativeSetEarlyWakeupStart() 566 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeSetEarlyWakeupEnd() local 567 transaction->setEarlyWakeupEnd(); in nativeSetEarlyWakeupEnd() [all …]
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteSession.java | 363 Transaction transaction = obtainTransaction(transactionMode, transactionListener); in beginTransactionUnchecked() local 364 transaction.mParent = mTransactionStack; in beginTransactionUnchecked() 365 mTransactionStack = transaction; in beginTransactionUnchecked() 1042 Transaction transaction = mTransactionPool; in obtainTransaction() local 1043 if (transaction != null) { in obtainTransaction() 1044 mTransactionPool = transaction.mParent; in obtainTransaction() 1045 transaction.mParent = null; in obtainTransaction() 1046 transaction.mMarkedSuccessful = false; in obtainTransaction() 1047 transaction.mChildFailed = false; in obtainTransaction() 1049 transaction = new Transaction(); in obtainTransaction() [all …]
|
/frameworks/base/tests/graphics/HwAccelerationTest/jni/ |
D | native-lib.cpp | 32 ASurfaceTransaction* transaction = ASurfaceTransaction_create(); in setBuffer() local 33 ASurfaceTransaction_setBuffer(transaction, surfaceControl, buffer, -1); in setBuffer() 34 ASurfaceTransaction_setVisibility(transaction, surfaceControl, in setBuffer() 36 ASurfaceTransaction_apply(transaction); in setBuffer() 37 ASurfaceTransaction_delete(transaction); in setBuffer()
|
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | TransactionParcelTests.java | 308 ClientTransaction transaction = ClientTransaction.obtain(null /* client */); in testClientTransaction() local 309 transaction.addTransactionItem(callback1); in testClientTransaction() 310 transaction.addTransactionItem(callback2); in testClientTransaction() 311 transaction.addTransactionItem(lifecycleRequest); in testClientTransaction() 313 writeAndPrepareForReading(transaction); in testClientTransaction() 318 assertEquals(transaction.hashCode(), result.hashCode()); in testClientTransaction() 319 assertEquals(transaction, result); in testClientTransaction() 332 ClientTransaction transaction = ClientTransaction.obtain(null /* client */); in testClientTransactionCallbacksOnly() local 333 transaction.addTransactionItem(callback1); in testClientTransactionCallbacksOnly() 334 transaction.addTransactionItem(callback2); in testClientTransactionCallbacksOnly() [all …]
|
D | ClientTransactionTests.java | 77 final ClientTransaction transaction = ClientTransaction.obtain(null /* client */); in testPreExecuteInner() local 78 transaction.addTransactionItem(callback1); in testPreExecuteInner() 79 transaction.addTransactionItem(callback2); in testPreExecuteInner() 80 transaction.addTransactionItem(stateRequest); in testPreExecuteInner() 82 transaction.preExecute(clientTransactionHandler); in testPreExecuteInner()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ClientLifecycleManager.java | 78 void scheduleTransaction(@NonNull ClientTransaction transaction) throws RemoteException { in scheduleTransaction() argument 79 final IApplicationThread client = transaction.getClient(); in scheduleTransaction() 81 transaction.schedule(); in scheduleTransaction() 84 + "\ntransaction=" + transaction); in scheduleTransaction() 91 transaction.recycle(); in scheduleTransaction() 185 final ClientTransaction transaction = mPendingTransactions.valueAt(i); in dispatchPendingTransactions() local 187 scheduleTransaction(transaction); in dispatchPendingTransactions() 236 final ClientTransaction transaction = ClientTransaction.obtain(client); in getOrCreatePendingTransaction() local 237 mPendingTransactions.put(clientBinder, transaction); in getOrCreatePendingTransaction() 238 return transaction; in getOrCreatePendingTransaction()
|
/frameworks/native/services/surfaceflinger/FrontEnd/ |
D | TransactionHandler.cpp | 43 auto transaction = maybeTransaction.value(); in collectTransactions() local 44 mPendingTransactionQueues[transaction.applyToken].emplace(std::move(transaction)); in collectTransactions() 104 auto& transaction = queue.front(); in popTransactionFromPending() local 107 removeFromStalledTransactions(transaction.id); in popTransactionFromPending() 108 transactions.emplace_back(std::move(transaction)); in popTransactionFromPending() 156 auto& transaction = queue.front(); in flushPendingTransactionQueues() local 157 flushState.transaction = &transaction; in flushPendingTransactionQueues()
|
/frameworks/base/libs/hwui/ |
D | WebViewFunctorManager.cpp | 48 static void mergeTransaction(ASurfaceTransaction* transaction) { in mergeTransaction() argument 50 sCurrentFunctor->mergeTransaction(transaction); in mergeTransaction() 232 ASurfaceTransaction* transaction = funcs.transactionCreateFunc(); in getSurfaceControl() local 234 funcs.transactionSetZOrderFunc(transaction, mSurfaceControl, -1); in getSurfaceControl() 235 funcs.transactionSetVisibilityFunc(transaction, mSurfaceControl, in getSurfaceControl() 237 funcs.transactionApplyFunc(transaction); in getSurfaceControl() 238 funcs.transactionDeleteFunc(transaction); in getSurfaceControl() 242 void WebViewFunctor::mergeTransaction(ASurfaceTransaction* transaction) { in mergeTransaction() argument 244 if (transaction == nullptr) return; in mergeTransaction() 249 done = activeContext->mergeTransaction(transaction, mSurfaceControl); in mergeTransaction() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | TunerActivity.java | 116 FragmentTransaction transaction = getFragmentManager().beginTransaction(); in onPreferenceStartFragment() local 118 transaction.replace(R.id.content_frame, fragment); in onPreferenceStartFragment() 119 transaction.addToBackStack("PreferenceFragment"); in onPreferenceStartFragment() 120 transaction.commit(); in onPreferenceStartFragment() 130 FragmentTransaction transaction = getFragmentManager().beginTransaction(); in onPreferenceStartScreen() local 136 transaction.replace(R.id.content_frame, fragment); in onPreferenceStartScreen() 137 transaction.addToBackStack("PreferenceFragment"); in onPreferenceStartScreen() 138 transaction.commit(); in onPreferenceStartScreen()
|
/frameworks/native/libs/binder/tests/ |
D | binderRecordedTransactionTest.cpp | 35 auto transaction = RecordedTransaction::fromDetails(interfaceName, 1, 42, ts, d, r, 0); in TEST() local 36 EXPECT_TRUE(transaction.has_value()); in TEST() 41 status_t status = transaction->dumpToFile(fd); in TEST() 71 auto transaction = RecordedTransaction::fromDetails(interfaceName, 1, 42, ts, d, r, 0); in TEST() local 76 status_t status = transaction->dumpToFile(fd); in TEST() 107 auto transaction = RecordedTransaction::fromDetails(interfaceName, 1, 42, ts, d, r, 0); in TEST() local 113 status_t status = transaction->dumpToFile(fd); in TEST() 115 status = transaction->dumpToFile(fd); in TEST()
|
/frameworks/base/core/java/android/content/om/ |
D | OverlayManager.java | 326 private void commitToSystemServer(@NonNull final OverlayManagerTransaction transaction) { in commitToSystemServer() argument 328 mService.commit(transaction); in commitToSystemServer() 345 public void commit(@NonNull final OverlayManagerTransaction transaction) { in commit() argument 346 if (transaction.isSelfTargeting() in commit() 350 commitSelfTarget(transaction); in commit() 357 commitToSystemServer(transaction); in commit() 396 void commitSelfTarget(@NonNull final OverlayManagerTransaction transaction) in commitSelfTarget() argument 399 mOverlayManagerImpl.commit(transaction); in commitSelfTarget()
|