Home
last modified time | relevance | path

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

1234

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DAbstractContactsProvider.java159 ContactsTransaction transaction = startTransaction(false); in insert() local
163 transaction.markDirty(); in insert()
165 transaction.markSuccessful(false); in insert()
180 ContactsTransaction transaction = startTransaction(false); in delete() local
184 transaction.markDirty(); in delete()
186 transaction.markSuccessful(false); in delete()
201 ContactsTransaction transaction = startTransaction(false); in update() local
205 transaction.markDirty(); in update()
207 transaction.markSuccessful(false); in update()
222 ContactsTransaction transaction = startTransaction(true); in bulkInsert() local
[all …]
DProfileProvider.java109 ContactsTransaction transaction = getCurrentTransaction(); in useProfileDbForTransaction() local
111 transaction.startTransactionForDb(db, ContactsProvider2.PROFILE_DB_TAG, this); in useProfileDbForTransaction()
144 protected boolean yield(ContactsTransaction transaction) { in yield() argument
145 return mDelegate.yield(transaction); in yield()
/packages/apps/Dialer/java/com/android/incallui/
DInCallActivity.java820 FragmentTransaction transaction = dialpadFragmentManager.beginTransaction(); in showDialpadFragment() local
824 transaction.add(getDialpadContainerId(), dialpadFragment, Tags.DIALPAD_FRAGMENT); in showDialpadFragment()
826 transaction.show(dialpadFragment); in showDialpadFragment()
832 transaction.commitAllowingStateLoss(); in showDialpadFragment()
847 FragmentTransaction transaction = dialpadFragmentManager.beginTransaction(); in hideDialpadFragment() local
848 transaction.hide(dialpadFragment); in hideDialpadFragment()
849 transaction.commitAllowingStateLoss(); in hideDialpadFragment()
1200 FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); in hideMainInCallFragment() local
1201 hideInCallScreenFragment(transaction); in hideMainInCallFragment()
1202 hideVideoCallScreenFragment(transaction); in hideMainInCallFragment()
[all …]
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/homescreen/audio/
DAudioCardFragment.java79 FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); in onViewCreated() local
80 transaction.hide(mInCallFragment); in onViewCreated()
81 transaction.commit(); in onViewCreated()
122 FragmentTransaction transaction = fragmentManager.beginTransaction(); in showMediaCard() local
123 transaction.show(mMediaFragment); in showMediaCard()
124 transaction.hide(mInCallFragment); in showMediaCard()
125 transaction.commitAllowingStateLoss(); in showMediaCard()
131 FragmentTransaction transaction = fragmentManager.beginTransaction(); in showInCallCard() local
132 transaction.hide(mMediaFragment); in showInCallCard()
133 transaction.show(mInCallFragment); in showInCallCard()
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/board/
DTestWorkspaceBuilder.java63 FavoriteItemsTransaction transaction, int screenId) { in fillWithWidgets() argument
70 transaction.addItem(createWidgetInCell( in fillWithWidgets()
78 return transaction; in fillWithWidgets()
99 FavoriteItemsTransaction transaction, int screenId) { in addCorrespondingWidgetRect() argument
101 fillWithWidgets(widgetRect, transaction, screenId); in addCorrespondingWidgetRect()
103 transaction.addItem(createWidgetInCell(widgetRect, screenId)); in addCorrespondingWidgetRect()
111 FavoriteItemsTransaction transaction, final int screenId) { in buildFromBoard() argument
113 (widgetRect) -> addCorrespondingWidgetRect(widgetRect, transaction, screenId)); in buildFromBoard()
115 transaction.addItem(() -> createIconInCell(iconPoint, screenId)) in buildFromBoard()
118 transaction.addItem(() -> createFolderInCell(folderPoint, screenId)) in buildFromBoard()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/voip/
DSerialTransaction.java37 public void appendTransaction(VoipCallTransaction transaction){ in appendTransaction() argument
38 mSubTransactions.add(transaction); in appendTransaction()
68 VoipCallTransaction transaction = mSubTransactions.get( in processTransactions()
70 transaction.setCompleteListener(this); in processTransactions()
71 transaction.start(); in processTransactions()
97 VoipCallTransaction transaction = mSubTransactions.get(0); in processTransactions() local
98 transaction.setCompleteListener(subTransactionListener); in processTransactions()
99 transaction.start(); in processTransactions()
DParallelTransaction.java85 for (VoipCallTransaction transaction : mSubTransactions) { in processTransactions()
86 transaction.setCompleteListener(subTransactionListener); in processTransactions()
87 transaction.start(); in processTransactions()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DMsrpParser.java43 MsrpChunk.Builder transaction = MsrpChunk.newBuilder(); in parse() local
108 transaction.transactionId(txId).responseCode(responseCode).responseReason( in parse()
111 transaction.transactionId(txId).method(method); in parse()
117 readHeaders(stream, transaction, value); in parse()
120 if (transaction.continuation() != Continuation.UNKNOWN) { in parse()
121 return transaction.build(); in parse()
132 readChunk(stream, transaction); in parse()
135 return transaction.build(); in parse()
139 final InputStream stream, final MsrpChunk.Builder transaction, in readHeaders() argument
160 transaction.addHeader(headerName, headerValue); in readHeaders()
[all …]
DMsrpSession.java144 final MsrpTransaction transaction = new MsrpTransaction(completer); in send()
145 transactions.put(request.transactionId(), transaction); in send()
223 MsrpTransaction transaction = session.transactions.remove(chunk.transactionId()); in completeTransaction() local
224 if (transaction != null) { in completeTransaction()
225 transaction.complete(chunk); in completeTransaction()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatRestoreHelper.java42 try (SQLiteTransaction transaction = dbController.newTransaction()) { in createBackup() argument
43 GridBackupTable backupTable = new GridBackupTable(context, transaction.getDb()); in createBackup()
45 transaction.commit(); in createBackup()
57 try (SQLiteTransaction transaction = model.getModelDbController().newTransaction()) { in restoreBackup() argument
58 if (!tableExists(transaction.getDb(), HYBRID_HOTSEAT_BACKUP_TABLE)) { in restoreBackup()
61 GridBackupTable backupTable = new GridBackupTable(context, transaction.getDb()); in restoreBackup()
63 transaction.commit(); in restoreBackup()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DAutomaticStorageManagementSwitchPreferenceControllerTest.java170 final FragmentTransaction transaction = mock(FragmentTransaction.class); in togglingOnShouldTriggerWarningFragment() local
171 when(mFragmentManager.beginTransaction()).thenReturn(transaction); in togglingOnShouldTriggerWarningFragment()
178 verify(transaction).add(any(), eq(ActivationWarningFragment.TAG)); in togglingOnShouldTriggerWarningFragment()
183 final FragmentTransaction transaction = mock(FragmentTransaction.class); in togglingOffShouldTriggerWarningFragment() local
184 when(mFragmentManager.beginTransaction()).thenReturn(transaction); in togglingOffShouldTriggerWarningFragment()
188 verify(transaction, never()).add(any(), eq(ActivationWarningFragment.TAG)); in togglingOffShouldTriggerWarningFragment()
193 final FragmentTransaction transaction = mock(FragmentTransaction.class); in togglingOnShouldNotTriggerWarningFragmentIfEnabledByDefault() local
194 when(mFragmentManager.beginTransaction()).thenReturn(transaction); in togglingOnShouldNotTriggerWarningFragmentIfEnabledByDefault()
201 verify(transaction, never()).add(any(), eq(ActivationWarningFragment.TAG)); in togglingOnShouldNotTriggerWarningFragmentIfEnabledByDefault()
206 final FragmentTransaction transaction = mock(FragmentTransaction.class); in togglingOnShouldTriggerWarningFragmentIfEnabledByDefaultAndDisabledByPolicy() local
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DDatastoreManager.java91 ITransaction transaction = createNewTransaction(); in runInTransactionWithResult() local
92 if (transaction == null) { in runInTransactionWithResult()
95 measurementDao.setTransaction(transaction); in runInTransactionWithResult()
96 transaction.begin(); in runInTransactionWithResult()
110 transaction.rollback(); in runInTransactionWithResult()
128 transaction.rollback(); in runInTransactionWithResult()
131 transaction.end(); in runInTransactionWithResult()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DMainPanel.java140 FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); in setCategoryFragment() local
142 transaction.setCustomAnimations(R.anim.slide_in_right, R.anim.slide_out_right); in setCategoryFragment()
144 transaction.setCustomAnimations(R.anim.slide_in_left, R.anim.slide_out_left); in setCategoryFragment()
146 transaction.replace(R.id.category_panel_container, category, CategoryPanel.FRAGMENT_TAG); in setCategoryFragment()
147 transaction.commitAllowingStateLoss(); in setCategoryFragment()
264 FragmentTransaction transaction = null; in showImageStatePanel() local
269 transaction = getChildFragmentManager().beginTransaction(); in showImageStatePanel()
274 transaction = getFragmentManager().beginTransaction(); in showImageStatePanel()
283 transaction.replace(R.id.state_panel_container, statePanel, StatePanel.FRAGMENT_TAG); in showImageStatePanel()
289 transaction.remove(statePanel); in showImageStatePanel()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTransactionTests.java130 EndCallTransaction transaction = in testEndCallTransactionWithDisconnect() local
134 transaction.processTransaction(null); in testEndCallTransactionWithDisconnect()
150 HoldCallTransaction transaction = in testHoldCallTransaction() local
161 transaction.processTransaction(null); in testHoldCallTransaction()
173 RequestNewActiveCallTransaction transaction = in testRequestNewCallFocusWithDialingCall() local
178 transaction.processTransaction(null); in testRequestNewCallFocusWithDialingCall()
188 RequestNewActiveCallTransaction transaction = in testRequestNewCallFocusWithRingingCall() local
193 transaction.processTransaction(null); in testRequestNewCallFocusWithRingingCall()
203 RequestNewActiveCallTransaction transaction = in testRequestNewCallFocusFailure() local
209 transaction.processTransaction(null); in testRequestNewCallFocusFailure()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorPanel.java124 FragmentTransaction transaction = null; in showImageStatePanel() local
130 transaction = getChildFragmentManager().beginTransaction(); in showImageStatePanel()
136 transaction = getFragmentManager().beginTransaction(); in showImageStatePanel()
141 transaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out); in showImageStatePanel()
146 transaction.replace(R.id.state_panel_container, statePanel, StatePanel.FRAGMENT_TAG); in showImageStatePanel()
154 transaction.remove(statePanel); in showImageStatePanel()
157 transaction.commit(); in showImageStatePanel()
/packages/apps/Dialer/java/com/android/dialer/main/impl/
DMainSearchController.java161 FragmentTransaction transaction = activity.getFragmentManager().beginTransaction(); in showDialpad() local
166 transaction.add(R.id.search_fragment_container, searchFragment, SEARCH_FRAGMENT_TAG); in showDialpad()
167 transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE); in showDialpad()
169 transaction.show(searchFragment); in showDialpad()
176 transaction.add(R.id.dialpad_fragment_container, dialpadFragment, DIALPAD_FRAGMENT_TAG); in showDialpad()
180 transaction.show(dialpadFragment); in showDialpad()
182 transaction.commit(); in showDialpad()
415 FragmentTransaction transaction = activity.getFragmentManager().beginTransaction(); in openSearch() local
419 transaction.add(R.id.search_fragment_container, searchFragment, SEARCH_FRAGMENT_TAG); in openSearch()
420 transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE); in openSearch()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DTransformParams.java139 SurfaceTransaction transaction = new SurfaceTransaction(); in createSurfaceParams() local
141 return transaction; in createSurfaceParams()
145 SurfaceProperties builder = transaction.forSurface(app.leash); in createSurfaceParams()
164 transaction.forSurface(wallpaper.leash).setLayer(Integer.MIN_VALUE); in createSurfaceParams()
166 return transaction; in createSurfaceParams()
DBaseDepthController.java171 SurfaceControl.Transaction transaction = new SurfaceControl.Transaction() in applyDepthAndBlur() local
179 transaction.setEarlyWakeupStart(); in applyDepthAndBlur()
182 transaction.setEarlyWakeupEnd(); in applyDepthAndBlur()
189 rootSurfaceControl.applyTransactionOnDraw(transaction); in applyDepthAndBlur()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DFadeAnimationSurfaceView.kt33 transaction: SurfaceControl.Transaction, in onSetSurfacePositionAndScale()
41 transaction, in onSetSurfacePositionAndScale()
48 transaction.setAlpha(surface, alpha) in onSetSurfacePositionAndScale()
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/
DTaplReorderWidgetsTest.java103 FavoriteItemsTransaction transaction) { in buildWorkspaceFromBoards() argument
106 mWorkspaceBuilder.buildFromBoard(board, transaction, i); in buildWorkspaceFromBoards()
108 return transaction; in buildWorkspaceFromBoards()
169 FavoriteItemsTransaction transaction = in runTestCase() local
171 transaction = buildWorkspaceFromBoards(testCase.mStart, transaction); in runTestCase()
172 transaction.commit(); in runTestCase()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/
DTwoPanelSettingsFragment.java338 final FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); in navigateToPreviewFragment() local
339 transaction.replace(frameResIds[mPrefPanelIdx + 1], initialPreviewFragment, in navigateToPreviewFragment()
341 transaction.commitAllowingStateLoss(); in navigateToPreviewFragment()
413 FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); in startPreferenceFragment() local
414 transaction.add(frameResIds[mPrefPanelIdx], fragment, PREFERENCE_FRAGMENT_TAG); in startPreferenceFragment()
415 transaction.commitNowAllowingStateLoss(); in startPreferenceFragment()
423 transaction = getChildFragmentManager().beginTransaction(); in startPreferenceFragment()
424 transaction.add(frameResIds[mPrefPanelIdx + 1], initialPreviewFragment, in startPreferenceFragment()
426 transaction.commitAllowingStateLoss(); in startPreferenceFragment()
597 final FragmentTransaction transaction = in handleFragmentTransactionWhenFocused() local
[all …]
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/
DSplitAnimationControllerTest.kt84 private val transaction: Transaction = mock() constant in com.android.quickstep.util.SplitAnimationControllerTest
265 transaction, in playsAppropriateSplitLaunchAnimation_playsRecentsLaunchCorrectly()
293 transaction, in playsAppropriateSplitLaunchAnimation_playsIconLaunchCorrectly()
321 transaction, in playsAppropriateSplitLaunchAnimation_playsIconFullscreenLaunchCorrectly()
348 transaction, in playsAppropriateSplitLaunchAnimation_playsIconLaunchFromTaskbarCMultiWindow()
375 transaction, in playsAppropriateSplitLaunchAnimation_playsIconLaunchFromTaskbarFullscreen()
401 transaction, in playsAppropriateSplitLaunchAnimation_playsFadeInLaunchCorrectly()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/
DControlBarActivity.java85 FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); in initializeCards() local
87 transaction.replace(cardModule.getCardResId(), cardModule.getCardView().getFragment()); in initializeCards()
89 transaction.commitNow(); in initializeCards()
/packages/apps/Contacts/src/com/android/contacts/activities/
DPeopleActivity.java717 final FragmentTransaction transaction = fragmentManager.beginTransaction(); in updateViewConfiguration() local
727 transaction.remove(unavailableFragment); in updateViewConfiguration()
730 transaction.show(mContactsListFragment); in updateViewConfiguration()
742 transaction.hide(mContactsListFragment); in updateViewConfiguration()
743 transaction.replace(R.id.contacts_unavailable_container, fragment, TAG_UNAVAILABLE); in updateViewConfiguration()
746 if (!transaction.isEmpty()) { in updateViewConfiguration()
747 transaction.commit(); in updateViewConfiguration()
997 final FragmentTransaction transaction = fragmentManager.beginTransaction(); in switchView() local
1001 transaction.replace( in switchView()
1010 transaction.remove(unavailableFragment); in switchView()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCallStreamingController.java332 CallStreamingStateChangeTransaction transaction = null; in onCallStateChanged() local
335 transaction = new CallStreamingStateChangeTransaction( in onCallStateChanged()
339 transaction = new CallStreamingStateChangeTransaction( in onCallStateChanged()
345 transaction = new CallStreamingStateChangeTransaction( in onCallStateChanged()
351 if (transaction != null) { in onCallStateChanged()
352 mTransactionalServiceWrapper.getTransactionManager().addTransaction(transaction, in onCallStateChanged()

1234