Home
last modified time | relevance | path

Searched refs:transaction (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/native/services/surfaceflinger/
DSurfaceInterceptor.cpp98 Transaction* transaction(increment->mutable_transaction()); in addInitialSurfaceStateLocked() local
100 transaction->set_synchronous(layerFlags & BnSurfaceComposer::eSynchronous); in addInitialSurfaceStateLocked()
101 transaction->set_animation(layerFlags & BnSurfaceComposer::eAnimation); in addInitialSurfaceStateLocked()
104 addPositionLocked(transaction, layerId, layer->mCurrentState.active_legacy.transform.tx(), in addInitialSurfaceStateLocked()
106 addDepthLocked(transaction, layerId, layer->mCurrentState.z); in addInitialSurfaceStateLocked()
107 addAlphaLocked(transaction, layerId, layer->mCurrentState.color.a); in addInitialSurfaceStateLocked()
108 addTransparentRegionLocked(transaction, layerId, in addInitialSurfaceStateLocked()
110 addLayerStackLocked(transaction, layerId, layer->mCurrentState.layerStack); in addInitialSurfaceStateLocked()
111 addCropLocked(transaction, layerId, layer->mCurrentState.crop_legacy); in addInitialSurfaceStateLocked()
112 addCornerRadiusLocked(transaction, layerId, layer->mCurrentState.cornerRadius); in addInitialSurfaceStateLocked()
[all …]
DSurfaceInterceptor.h134 SurfaceChange* createSurfaceChangeLocked(Transaction* transaction, int32_t layerId);
136 void addPositionLocked(Transaction* transaction, int32_t layerId, float x, float y);
137 void addDepthLocked(Transaction* transaction, int32_t layerId, uint32_t z);
138 void addSizeLocked(Transaction* transaction, int32_t layerId, uint32_t w, uint32_t h);
139 void addAlphaLocked(Transaction* transaction, int32_t layerId, float alpha);
140 void addMatrixLocked(Transaction* transaction, int32_t layerId,
142 void addTransparentRegionLocked(Transaction* transaction, int32_t layerId,
144 void addFlagsLocked(Transaction* transaction, int32_t layerId, uint8_t flags);
145 void addLayerStackLocked(Transaction* transaction, int32_t layerId, uint32_t layerStack);
146 void addCropLocked(Transaction* transaction, int32_t layerId, const Rect& rect);
[all …]
/frameworks/base/core/java/android/app/servertransaction/
DTransactionExecutor.java69 public void execute(ClientTransaction transaction) { in execute() argument
70 if (DEBUG_RESOLVER) Slog.d(TAG, tId(transaction) + "Start resolving transaction"); in execute()
72 final IBinder token = transaction.getActivityToken(); in execute()
78 if (transaction.getLifecycleStateRequest() == destroyItem) { in execute()
86 Slog.w(TAG, tId(transaction) + "Skip pre-destroyed transaction:\n" in execute()
87 + transactionToString(transaction, mTransactionHandler)); in execute()
93 if (DEBUG_RESOLVER) Slog.d(TAG, transactionToString(transaction, mTransactionHandler)); in execute()
95 executeCallbacks(transaction); in execute()
97 executeLifecycleState(transaction); in execute()
99 if (DEBUG_RESOLVER) Slog.d(TAG, tId(transaction) + "End resolving transaction"); in execute()
[all …]
DTransactionExecutorHelper.java222 static int lastCallbackRequestingState(ClientTransaction transaction) { in lastCallbackRequestingState() argument
223 final List<ClientTransactionItem> callbacks = transaction.getCallbacks(); in lastCallbackRequestingState()
253 static String transactionToString(ClientTransaction transaction, in transactionToString() argument
257 final String prefix = tId(transaction); in transactionToString()
258 transaction.dump(prefix, pw); in transactionToString()
260 .println(getActivityName(transaction.getActivityToken(), transactionHandler)); in transactionToString()
265 static String tId(ClientTransaction transaction) { in tId() argument
266 return "tId:" + transaction.hashCode() + " "; in tId()
/frameworks/native/include/android/
Dsurface_control.h101 void ASurfaceTransaction_delete(ASurfaceTransaction* transaction) __INTRODUCED_IN(29);
112 void ASurfaceTransaction_apply(ASurfaceTransaction* transaction) __INTRODUCED_IN(29);
225 void ASurfaceTransaction_setOnComplete(ASurfaceTransaction* transaction, void* context,
236 void ASurfaceTransaction_reparent(ASurfaceTransaction* transaction,
252 void ASurfaceTransaction_setVisibility(ASurfaceTransaction* transaction,
265 void ASurfaceTransaction_setZOrder(ASurfaceTransaction* transaction,
279 void ASurfaceTransaction_setBuffer(ASurfaceTransaction* transaction,
291 void ASurfaceTransaction_setColor(ASurfaceTransaction* transaction,
311 void ASurfaceTransaction_setGeometry(ASurfaceTransaction* transaction,
330 void ASurfaceTransaction_setBufferTransparency(ASurfaceTransaction* transaction,
[all …]
/frameworks/base/native/android/
Dsurface_control.cpp179 Transaction* transaction = new Transaction; in ASurfaceTransaction_create() local
180 return reinterpret_cast<ASurfaceTransaction*>(transaction); in ASurfaceTransaction_create()
184 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_delete() local
185 delete transaction; in ASurfaceTransaction_delete()
191 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_apply() local
193 transaction->apply(); in ASurfaceTransaction_apply()
302 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_setOnComplete() local
304 transaction->addTransactionCompletedCallback(callback, context); in ASurfaceTransaction_setOnComplete()
317 Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction); in ASurfaceTransaction_reparent() local
319 transaction->reparent(surfaceControl, newParentHandle); in ASurfaceTransaction_reparent()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DContextHubTransactionManager.java304 ContextHubServiceTransaction transaction) throws IllegalStateException {
309 mTransactionQueue.add(transaction);
324 ContextHubServiceTransaction transaction = mTransactionQueue.peek();
325 if (transaction == null) {
329 if (transaction.getTransactionId() != transactionId) {
331 + transaction.getTransactionId() + ", received ID = " + transactionId + ")");
335 transaction.onTransactionComplete(
349 ContextHubServiceTransaction transaction = mTransactionQueue.peek();
350 if (transaction == null) {
354 if (transaction.getTransactionType() != ContextHubTransaction.TYPE_QUERY_NANOAPPS) {
[all …]
DContextHubService.java374 ContextHubServiceTransaction transaction = mTransactionManager.createLoadTransaction(
377 mTransactionManager.addTransaction(transaction);
399 ContextHubServiceTransaction transaction = mTransactionManager.createUnloadTransaction(
402 mTransactionManager.addTransaction(transaction);
452 ContextHubServiceTransaction transaction = mTransactionManager.createQueryTransaction(
455 mTransactionManager.addTransaction(transaction);
682 ContextHubServiceTransaction transaction = mTransactionManager.createLoadTransaction(
684 mTransactionManager.addTransaction(transaction);
706 ContextHubServiceTransaction transaction = mTransactionManager.createUnloadTransaction(
708 mTransactionManager.addTransaction(transaction);
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteSession.java347 Transaction transaction = obtainTransaction(transactionMode, transactionListener); in beginTransactionUnchecked() local
348 transaction.mParent = mTransactionStack; in beginTransactionUnchecked()
349 mTransactionStack = transaction; in beginTransactionUnchecked()
938 Transaction transaction = mTransactionPool; in obtainTransaction() local
939 if (transaction != null) { in obtainTransaction()
940 mTransactionPool = transaction.mParent; in obtainTransaction()
941 transaction.mParent = null; in obtainTransaction()
942 transaction.mMarkedSuccessful = false; in obtainTransaction()
943 transaction.mChildFailed = false; in obtainTransaction()
945 transaction = new Transaction(); in obtainTransaction()
[all …]
/frameworks/base/core/java/android/hardware/location/
DContextHubManager.java412 ContextHubTransaction<Void> transaction) { in createTransactionCallback() argument
417 transaction.setResponse(new ContextHubTransaction.Response<Void>( in createTransactionCallback()
423 transaction.setResponse(new ContextHubTransaction.Response<Void>(result, null)); in createTransactionCallback()
438 ContextHubTransaction<List<NanoAppState>> transaction) {
442 transaction.setResponse(new ContextHubTransaction.Response<List<NanoAppState>>(
449 transaction.setResponse(new ContextHubTransaction.Response<List<NanoAppState>>(
476 ContextHubTransaction<Void> transaction =
478 IContextHubTransactionCallback callback = createTransactionCallback(transaction);
486 return transaction;
504 ContextHubTransaction<Void> transaction =
[all …]
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp325 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeApplyTransaction() local
326 transaction->apply(sync); in nativeApplyTransaction()
331 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeMergeTransaction() local
334 transaction->merge(std::move(*otherTransaction)); in nativeMergeTransaction()
338 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeSetAnimationTransaction() local
339 transaction->setAnimationTransaction(); in nativeSetAnimationTransaction()
343 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeSetEarlyWakeup() local
344 transaction->setEarlyWakeup(); in nativeSetEarlyWakeup()
349 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeSetLayer() local
352 transaction->setLayer(ctrl, zorder); in nativeSetLayer()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerActivity.java98 FragmentTransaction transaction = getFragmentManager().beginTransaction(); in onPreferenceStartFragment() local
100 transaction.replace(R.id.content_frame, fragment); in onPreferenceStartFragment()
101 transaction.addToBackStack("PreferenceFragment"); in onPreferenceStartFragment()
102 transaction.commit(); in onPreferenceStartFragment()
112 FragmentTransaction transaction = getFragmentManager().beginTransaction(); in onPreferenceStartScreen() local
118 transaction.replace(R.id.content_frame, fragment); in onPreferenceStartScreen()
119 transaction.addToBackStack("PreferenceFragment"); in onPreferenceStartScreen()
120 transaction.commit(); in onPreferenceStartScreen()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DClientTransactionTests.java55 ClientTransaction transaction = ClientTransaction.obtain(null /* client */, in testPreExecute() local
57 transaction.addCallback(callback1); in testPreExecute()
58 transaction.addCallback(callback2); in testPreExecute()
59 transaction.setLifecycleStateRequest(stateRequest); in testPreExecute()
61 transaction.preExecute(clientTransactionHandler); in testPreExecute()
DTransactionParcelTests.java326 ClientTransaction transaction = ClientTransaction.obtain(appThread, activityToken); in testClientTransaction() local
327 transaction.addCallback(callback1); in testClientTransaction()
328 transaction.addCallback(callback2); in testClientTransaction()
329 transaction.setLifecycleStateRequest(lifecycleRequest); in testClientTransaction()
331 writeAndPrepareForReading(transaction); in testClientTransaction()
336 assertEquals(transaction.hashCode(), result.hashCode()); in testClientTransaction()
337 assertTrue(transaction.equals(result)); in testClientTransaction()
350 ClientTransaction transaction = ClientTransaction.obtain(appThread, activityToken); in testClientTransactionCallbacksOnly() local
351 transaction.addCallback(callback1); in testClientTransactionCallbacksOnly()
352 transaction.addCallback(callback2); in testClientTransactionCallbacksOnly()
[all …]
DTransactionExecutorTests.java229 ClientTransaction transaction = ClientTransaction.obtain(null /* client */, in testTransactionResolution() local
231 transaction.addCallback(callback1); in testTransactionResolution()
232 transaction.addCallback(callback2); in testTransactionResolution()
233 transaction.setLifecycleStateRequest(stateRequest); in testTransactionResolution()
235 transaction.preExecute(mTransactionHandler); in testTransactionResolution()
236 mExecutor.execute(transaction); in testTransactionResolution()
288 ClientTransaction transaction = ClientTransaction.obtain(null /* client */, in testActivityResultRequiredStateResolution() local
290 transaction.addCallback(postExecItem); in testActivityResultRequiredStateResolution()
294 mExecutor.executeCallbacks(transaction); in testActivityResultRequiredStateResolution()
295 verify(mExecutor, times(1)).cycleToPath(eq(mClientRecord), eq(ON_PAUSE), eq(transaction)); in testActivityResultRequiredStateResolution()
[all …]
/frameworks/base/core/java/android/app/
DClientTransactionHandler.java45 void scheduleTransaction(ClientTransaction transaction) { in scheduleTransaction() argument
46 transaction.preExecute(this); in scheduleTransaction()
47 sendMessage(ActivityThread.H.EXECUTE_TRANSACTION, transaction); in scheduleTransaction()
55 public void executeTransaction(ClientTransaction transaction) { in executeTransaction() argument
56 transaction.preExecute(this); in executeTransaction()
57 getTransactionExecutor().execute(transaction); in executeTransaction()
58 transaction.recycle(); in executeTransaction()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityThreadTest.java377 final ClientTransaction transaction = newTransaction(activity); in newRelaunchResumeTransaction() local
378 transaction.addCallback(callbackItem); in newRelaunchResumeTransaction()
379 transaction.setLifecycleStateRequest(resumeStateRequest); in newRelaunchResumeTransaction()
381 return transaction; in newRelaunchResumeTransaction()
388 final ClientTransaction transaction = newTransaction(activity); in newResumeTransaction() local
389 transaction.setLifecycleStateRequest(resumeStateRequest); in newResumeTransaction()
391 return transaction; in newResumeTransaction()
398 final ClientTransaction transaction = newTransaction(activity); in newStopTransaction() local
399 transaction.setLifecycleStateRequest(stopStateRequest); in newStopTransaction()
401 return transaction; in newStopTransaction()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DClientLifecycleManager.java45 void scheduleTransaction(ClientTransaction transaction) throws RemoteException { in scheduleTransaction() argument
46 final IApplicationThread client = transaction.getClient(); in scheduleTransaction()
47 transaction.schedule(); in scheduleTransaction()
52 transaction.recycle(); in scheduleTransaction()
DBlackFrame.java41 BlackSurface(SurfaceControl.Transaction transaction, int layer, in BlackSurface() argument
54 transaction.setWindowCrop(surface, w, h); in BlackSurface()
55 transaction.setLayerStack(surface, dc.getDisplayId()); in BlackSurface()
56 transaction.setAlpha(surface, 1); in BlackSurface()
57 transaction.setLayer(surface, layer); in BlackSurface()
58 transaction.setPosition(surface, left, top); in BlackSurface()
59 transaction.show(surface); in BlackSurface()
DSeamlessRotator.java66 public void unrotate(Transaction transaction, WindowState win) { in unrotate() argument
67 transaction.setMatrix(win.getSurfaceControl(), mTransform, mFloat9); in unrotate()
72 transaction.setPosition(win.getSurfaceControl(), winSurfacePos[0], winSurfacePos[1]); in unrotate()
DDragDropController.java170 final SurfaceControl.Transaction transaction = mDragState.mTransaction; in performDrag() local
171 transaction.setAlpha(surfaceControl, mDragState.mOriginalAlpha); in performDrag()
172 transaction.setPosition( in performDrag()
174 transaction.show(surfaceControl); in performDrag()
175 displayContent.reparentToOverlay(transaction, surfaceControl); in performDrag()
/frameworks/native/cmds/surfacereplayer/replayer/
DReplayer.cpp283 std::thread(&Replayer::doTransaction, this, increment.transaction(), event).detach(); in dispatchEvent()
358 SurfaceComposerClient::Transaction& transaction, in doSurfaceTransaction() argument
370 setPosition(transaction, change.id(), change.position()); in doSurfaceTransaction()
373 setSize(transaction, change.id(), change.size()); in doSurfaceTransaction()
376 setAlpha(transaction, change.id(), change.alpha()); in doSurfaceTransaction()
379 setLayer(transaction, change.id(), change.layer()); in doSurfaceTransaction()
382 setCrop(transaction, change.id(), change.crop()); in doSurfaceTransaction()
385 setCornerRadius(transaction, change.id(), change.corner_radius()); in doSurfaceTransaction()
388 setMatrix(transaction, change.id(), change.matrix()); in doSurfaceTransaction()
391 setOverrideScalingMode(transaction, change.id(), in doSurfaceTransaction()
[all …]
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/
Dtrace_creator.py23 transaction(increment)
88 def transaction(increment): function
91 increment.transaction.synchronous \
93 increment.transaction.animation \
104 change = increment.transaction.surface_change.add()
106 change = increment.transaction.display_change.add()
/frameworks/base/core/java/android/preference/
DPreferenceActivity.java1245 FragmentTransaction transaction = getFragmentManager().beginTransaction(); in switchToHeaderInner() local
1246 transaction.setTransition(mSinglePane in switchToHeaderInner()
1249 transaction.replace(com.android.internal.R.id.prefs, f); in switchToHeaderInner()
1250 transaction.commitAllowingStateLoss(); in switchToHeaderInner()
1353 FragmentTransaction transaction = getFragmentManager().beginTransaction(); in startPreferenceFragment() local
1354 transaction.replace(com.android.internal.R.id.prefs, fragment); in startPreferenceFragment()
1356 transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); in startPreferenceFragment()
1357 transaction.addToBackStack(BACK_STACK_PREFS); in startPreferenceFragment()
1359 transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE); in startPreferenceFragment()
1361 transaction.commitAllowingStateLoss(); in startPreferenceFragment()
[all …]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipHelper.java337 ServerTransaction transaction = event.getServerTransaction(); in getServerTransaction() local
338 if (transaction == null) { in getServerTransaction()
342 return transaction; in getServerTransaction()
353 ServerTransaction transaction = getServerTransaction(event); in sendRinging() local
362 transaction.sendResponse(response); in sendRinging()
363 return transaction; in sendRinging()
519 public static String getCallId(Transaction transaction) { in getCallId() argument
520 return ((transaction != null) ? getCallId(transaction.getRequest()) in getCallId()

123