Searched defs:transaction (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/am/
H A DClientLifecycleManager.java30 * and execute them as a single transaction.
35 // TODO(lifecycler): Implement building transactions or global transaction.
36 // TODO(lifecycler): Use object pools for transactions and transaction items.
39 * Schedule a transaction, which may consist of multiple callbacks and a lifecycle request.
40 * @param transaction A sequence of client transaction items.
45 void scheduleTransaction(ClientTransaction transaction) throws RemoteException { argument
46 final IApplicationThread client = transaction.getClient();
47 transaction.schedule();
51 // the transaction i
[all...]
/frameworks/base/core/java/android/app/servertransaction/
H A DTransactionExecutor.java40 * Class that manages transaction execution in the correct order.
52 /** Initialize an instance with transaction handler, that will execute all requested actions. */
58 * Resolve transaction.
64 public void execute(ClientTransaction transaction) { argument
65 final IBinder token = transaction.getActivityToken();
66 log("Start resolving transaction for client: " + mTransactionHandler + ", token: " + token);
68 executeCallbacks(transaction);
70 executeLifecycleState(transaction);
72 log("End resolving transaction");
77 public void executeCallbacks(ClientTransaction transaction) { argument
125 executeLifecycleState(ClientTransaction transaction) argument
[all...]
H A DTransactionExecutorHelper.java171 /** Get the lifecycle state request to match the current state in the end of a transaction. */
217 static int lastCallbackRequestingState(ClientTransaction transaction) { argument
218 final List<ClientTransactionItem> callbacks = transaction.getCallbacks();
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Dpayload.h123 ClientPayload(Transaction& transaction) : transaction_{transaction} {} argument
/frameworks/base/services/core/java/com/android/server/location/
H A DContextHubTransactionManager.java40 * This class maintains a queue of transaction requests made to the ContextHubService by clients,
41 * and executes them through the Context Hub. At any point in time, either the transaction queue is
42 * empty, or there is a pending transaction that is waiting for an asynchronous response from the
43 * hub. This class also handles synchronous errors and timeouts of each transaction.
51 * Maximum number of transaction requests that can be pending at a time
76 * The next available transaction ID
95 * Creates a transaction for loading a nanoapp.
100 * @return the generated transaction
144 * Creates a transaction for unloading a nanoapp.
149 * @return the generated transaction
303 addTransaction( ContextHubServiceTransaction transaction) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DBlackFrame.java44 BlackSurface(SurfaceControl.Transaction transaction, int layer, argument
59 transaction.setAlpha(surface, 1);
60 transaction.setLayer(surface, layer);
61 transaction.show(surface);
H A DWindowSurfaceController.java140 void hide(SurfaceControl.Transaction transaction, String reason) { argument
146 hideSurface(transaction);
150 private void hideSurface(SurfaceControl.Transaction transaction) { argument
156 transaction.hide(mSurfaceControl);
H A DWindowStateAnimator.java308 void hide(SurfaceControl.Transaction transaction, String reason) { argument
319 mSurfaceController.hide(transaction, reason);
353 // This must be called while inside a transaction.
1011 // scaling in the same transaction which we resize the surface in.
H A DTaskStack.java766 private void updateSurfaceSize(SurfaceControl.Transaction transaction) { argument
782 transaction.setSize(mSurfaceControl, width, height);
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/
H A Dtrace_creator.py23 transaction(increment)
49 print ("1. Add transaction")
64 print ("What kind of transaction?")
83 print ("0. Finished adding Changes to this transaction")
88 def transaction(increment): function
91 increment.transaction.synchronous \
92 = bool(input("Is transaction synchronous (True/False): "))
93 increment.transaction.animation \
94 = bool(input("Is transaction animated (True/False): "))
104 change = increment.transaction
[all...]
/frameworks/base/core/java/android/app/
H A DClientTransactionHandler.java42 /** Prepare and schedule transaction for execution. */
43 void scheduleTransaction(ClientTransaction transaction) { argument
44 transaction.preExecute(this);
45 sendMessage(ActivityThread.H.EXECUTE_TRANSACTION, transaction);
49 * Execute transaction immediately without scheduling it. This is used for local requests, so
50 * it will also recycle the transaction.
53 public void executeTransaction(ClientTransaction transaction) { argument
54 transaction.preExecute(this);
55 getTransactionExecutor().execute(transaction);
56 transaction
[all...]
H A DDialogFragment.java85 * transaction is popped, the current DialogFragment and its Dialog will be
87 * DialogFragment will take care of popping the transaction of the Dialog
221 * is a convenience for explicitly creating a transaction, adding the
223 * <em>not</em> add the transaction to the back stack. When the fragment
224 * is dismissed, a new transaction will be executed to remove it from
248 * Display the dialog, adding the fragment using an existing transaction
249 * and then committing the transaction.
250 * @param transaction An existing transaction in which to add the fragment.
253 * @return Returns the identifier of the committed transaction, a
256 show(FragmentTransaction transaction, String tag) argument
[all...]
H A DFragmentTransition.java78 * @param isRecordPop For each transaction, whether it is a pop transaction or not.
83 * @param isReordered true if this is a reordered transaction, meaning that the
85 * transaction has yet to be run and Views haven't been created.
133 * @param isRecordPop For each transaction, whether it is a pop transaction or not.
178 * Configures a transition for a single fragment container for which the transaction was
250 * Configures a transition for a single fragment container for which the transaction was
251 * ordered. That means that the transaction has not been executed yet, so incoming
399 * @param isPop True if this is a pop transaction o
1197 calculateFragments(BackStackRecord transaction, SparseArray<FragmentContainerTransition> transitioningFragments, boolean isReordered) argument
1215 calculatePopFragments(BackStackRecord transaction, SparseArray<FragmentContainerTransition> transitioningFragments, boolean isReordered) argument
1241 addToFirstInLastOut(BackStackRecord transaction, BackStackRecord.Op op, SparseArray<FragmentContainerTransition> transitioningFragments, boolean isPop, boolean isReorderedTransaction) argument
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteSession.java41 * at most one read-write transaction is performed at a time. When WAL is not
51 * has its own session object and therefore its own transaction state independent
64 * There are two kinds of transaction: implicit transactions and explicit
67 * An implicit transaction is created whenever a database operation is requested
68 * and there is no explicit transaction currently in progress. An implicit transaction
72 * An explicit transaction is started by calling {@link #beginTransaction} and
73 * specifying the desired transaction mode. Once an explicit transaction has begun,
74 * all subsequent database operations will be performed as part of that transaction
950 recycleTransaction(Transaction transaction) argument
[all...]
/frameworks/base/core/java/android/hardware/location/
H A DContextHubManager.java318 * Helper function to generate a stub for a non-query transaction callback.
320 * @param transaction the transaction to unblock when complete
327 ContextHubTransaction<Void> transaction) {
332 transaction.setResponse(new ContextHubTransaction.Response<Void>(
338 transaction.setResponse(new ContextHubTransaction.Response<Void>(result, null));
344 * Helper function to generate a stub for a query transaction callback.
346 * @param transaction the transaction to unblock when complete
353 ContextHubTransaction<List<NanoAppState>> transaction) {
326 createTransactionCallback( ContextHubTransaction<Void> transaction) argument
352 createQueryCallback( ContextHubTransaction<List<NanoAppState>> transaction) argument
[all...]
H A DContextHubTransaction.java43 * @param <T> the type of the contents in the transaction response
52 * Constants describing the type of a transaction through the Context Hub Service.
72 * Constants describing the result of a transaction or request through the Context Hub Service.
110 * Failure mode when the transaction has timed out.
114 * Failure mode when the transaction has failed internally at the service.
129 * The result of the transaction.
155 * An interface describing the listener for a transaction completion.
157 * @param <L> the type of the contents in the transaction response
162 * The listener function to invoke when the transaction completes.
164 * @param transaction th
167 onComplete( ContextHubTransaction<L> transaction, ContextHubTransaction.Response<L> response) argument
[all...]
/frameworks/support/fragment/src/main/java/androidx/fragment/app/
H A DDialogFragment.java130 * is a convenience for explicitly creating a transaction, adding the
132 * This does <em>not</em> add the transaction to the fragment back stack. When the fragment
133 * is dismissed, a new transaction will be executed to remove it from
148 * Display the dialog, adding the fragment using an existing transaction
149 * and then {@link FragmentTransaction#commit() committing} the transaction.
150 * @param transaction An existing transaction in which to add the fragment.
153 * @return Returns the identifier of the committed transaction, as per
156 public int show(FragmentTransaction transaction, String tag) { argument
159 transaction
[all...]
H A DFragmentTransition.java93 * @param isRecordPop For each transaction, whether it is a pop transaction or not.
98 * @param isReordered true if this is a reordered transaction, meaning that the
100 * transaction has yet to be run and Views haven't been created.
150 * @param isRecordPop For each transaction, whether it is a pop transaction or not.
195 * Configures a transition for a single fragment container for which the transaction was
293 * Configures a transition for a single fragment container for which the transaction was
294 * ordered. That means that the transaction has not been executed yet, so incoming
485 * @param isPop True if this is a pop transaction o
1067 calculateFragments(BackStackRecord transaction, SparseArray<FragmentContainerTransition> transitioningFragments, boolean isReordered) argument
1085 calculatePopFragments(BackStackRecord transaction, SparseArray<FragmentContainerTransition> transitioningFragments, boolean isReordered) argument
1115 addToFirstInLastOut(BackStackRecord transaction, BackStackRecord.Op op, SparseArray<FragmentContainerTransition> transitioningFragments, boolean isPop, boolean isReorderedTransaction) argument
[all...]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipHelper.java337 ServerTransaction transaction = event.getServerTransaction();
338 if (transaction == null) {
342 return transaction;
353 ServerTransaction transaction = getServerTransaction(event);
362 transaction.sendResponse(response);
363 return transaction;
519 public static String getCallId(Transaction transaction) { argument
520 return ((transaction != null) ? getCallId(transaction.getRequest())
H A DSipSessionGroup.java423 ISipSessionListener listener, ServerTransaction transaction,
426 newSession.mServerTransaction = transaction;
741 "cannot initiate a new transaction to execute: "
867 if (SSI_DBG) log("not the current transaction; current="
871 if (SSI_DBG) log("transaction terminated: " + toString(current));
874 // no transaction; shouldn't be here; ignored
879 private String toString(Transaction transaction) { argument
880 if (transaction == null) return "null";
881 Request request = transaction.getRequest();
882 Dialog dialog = transaction
422 createNewSession(RequestEvent event, ISipSessionListener listener, ServerTransaction transaction, int newState) argument
[all...]
/frameworks/native/services/surfaceflinger/
H A DSurfaceInterceptor.cpp97 Transaction* transaction(increment->mutable_transaction());
98 transaction->set_synchronous(layer->mTransactionFlags & BnSurfaceComposer::eSynchronous);
99 transaction->set_animation(layer->mTransactionFlags & BnSurfaceComposer::eAnimation);
102 addPositionLocked(transaction, layerId, layer->mCurrentState.active.transform.tx(),
104 addDepthLocked(transaction, layerId, layer->mCurrentState.z);
105 addAlphaLocked(transaction, layerId, layer->mCurrentState.color.a);
106 addTransparentRegionLocked(transaction, layerId, layer->mCurrentState.activeTransparentRegion);
107 addLayerStackLocked(transaction, layerId, layer->mCurrentState.layerStack);
108 addCropLocked(transaction, layerId, layer->mCurrentState.crop);
110 addDeferTransactionLocked(transaction, layerI
171 createSurfaceChangeLocked(Transaction* transaction, int32_t layerId) argument
179 createDisplayChangeLocked(Transaction* transaction, int32_t displayId) argument
194 addPositionLocked(Transaction* transaction, int32_t layerId, float x, float y) argument
203 addDepthLocked(Transaction* transaction, int32_t layerId, uint32_t z) argument
211 addSizeLocked(Transaction* transaction, int32_t layerId, uint32_t w, uint32_t h) argument
220 addAlphaLocked(Transaction* transaction, int32_t layerId, float alpha) argument
228 addMatrixLocked(Transaction* transaction, int32_t layerId, const layer_state_t::matrix22_t& matrix) argument
239 addTransparentRegionLocked(Transaction* transaction, int32_t layerId, const Region& transRegion) argument
251 addFlagsLocked(Transaction* transaction, int32_t layerId, uint8_t flags) argument
272 addLayerStackLocked(Transaction* transaction, int32_t layerId, uint32_t layerStack) argument
280 addCropLocked(Transaction* transaction, int32_t layerId, const Rect& rect) argument
289 addFinalCropLocked(Transaction* transaction, int32_t layerId, const Rect& rect) argument
298 addDeferTransactionLocked(Transaction* transaction, int32_t layerId, const sp<const Layer>& layer, uint64_t frameNumber) argument
312 addOverrideScalingModeLocked(Transaction* transaction, int32_t layerId, int32_t overrideScalingMode) argument
320 addSurfaceChangesLocked(Transaction* transaction, const layer_state_t& state) argument
381 addDisplayChangesLocked(Transaction* transaction, const DisplayState& state, int32_t displayId) argument
451 addDisplaySurfaceLocked(Transaction* transaction, int32_t displayId, const sp<const IGraphicBufferProducer>& surface) argument
471 addDisplayLayerStackLocked(Transaction* transaction, int32_t displayId, uint32_t layerStack) argument
479 addDisplaySizeLocked(Transaction* transaction, int32_t displayId, uint32_t w, uint32_t h) argument
488 addDisplayProjectionLocked(Transaction* transaction, int32_t displayId, int32_t orientation, const Rect& viewport, const Rect& frame) argument
[all...]
/frameworks/av/media/mtp/
H A DMtpServer.cpp184 MtpTransactionID transaction = mRequest.getTransactionID(); local
210 mData.setTransactionID(transaction);
223 mResponse.setTransactionID(transaction);
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
H A DTransactionParcelTests.java64 /** Test parcelling and unparcelling of transactions and transaction items. */
315 ClientTransaction transaction = ClientTransaction.obtain(appThread, activityToken);
316 transaction.addCallback(callback1);
317 transaction.addCallback(callback2);
318 transaction.setLifecycleStateRequest(lifecycleRequest);
320 writeAndPrepareForReading(transaction);
325 assertEquals(transaction.hashCode(), result.hashCode());
326 assertTrue(transaction.equals(result));
339 ClientTransaction transaction = ClientTransaction.obtain(appThread, activityToken);
340 transaction
383 scheduleTransaction(ClientTransaction transaction) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_SurfaceControl.cpp313 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
314 transaction->apply(sync);
319 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
322 transaction->merge(std::move(*otherTransaction));
326 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
327 transaction->setAnimationTransaction();
331 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
332 transaction->setEarlyWakeup();
337 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
340 transaction
351 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
358 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
367 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
375 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
383 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
410 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
417 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
425 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
436 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
445 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
455 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
464 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
503 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
521 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
537 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
549 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
801 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
809 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
825 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
837 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
844 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
853 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
862 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); local
[all...]
/frameworks/native/services/surfaceflinger/tests/
H A DTransaction_test.cpp1750 // should trigger the first deferred transaction, but not the second one
1763 // trigger the second deferred transaction
2167 // Show the child layer in a deferred transaction
2177 // frame because SurfaceFlinger would never process the deferred transaction and would therefore
2684 auto transaction = Transaction().show(fgLayer); local

Completed in 435 milliseconds

12