Home
last modified time | relevance | path

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

12

/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/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/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DAutomaticStorageManagementSwitchPreferenceControllerTest.java166 final FragmentTransaction transaction = mock(FragmentTransaction.class); in togglingOnShouldTriggerWarningFragment() local
167 when(mFragmentManager.beginTransaction()).thenReturn(transaction); in togglingOnShouldTriggerWarningFragment()
174 verify(transaction).add(any(), eq(ActivationWarningFragment.TAG)); in togglingOnShouldTriggerWarningFragment()
179 final FragmentTransaction transaction = mock(FragmentTransaction.class); in togglingOffShouldTriggerWarningFragment() local
180 when(mFragmentManager.beginTransaction()).thenReturn(transaction); in togglingOffShouldTriggerWarningFragment()
184 verify(transaction, never()).add(any(), eq(ActivationWarningFragment.TAG)); in togglingOffShouldTriggerWarningFragment()
189 final FragmentTransaction transaction = mock(FragmentTransaction.class); in togglingOnShouldNotTriggerWarningFragmentIfEnabledByDefault() local
190 when(mFragmentManager.beginTransaction()).thenReturn(transaction); in togglingOnShouldNotTriggerWarningFragmentIfEnabledByDefault()
197 verify(transaction, never()).add(any(), eq(ActivationWarningFragment.TAG)); in togglingOnShouldNotTriggerWarningFragmentIfEnabledByDefault()
202 final FragmentTransaction transaction = mock(FragmentTransaction.class); in togglingOnShouldTriggerWarningFragmentIfEnabledByDefaultAndDisabledByPolicy() local
[all …]
/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/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatRestoreHelper.java40 try (LauncherDbUtils.SQLiteTransaction transaction = (LauncherDbUtils.SQLiteTransaction) in createBackup() argument
47 transaction.getDb(), idp.numDatabaseHotseatIcons, idp.numColumns, in createBackup()
50 transaction.commit(); in createBackup()
62 try (LauncherDbUtils.SQLiteTransaction transaction = (LauncherDbUtils.SQLiteTransaction) in restoreBackup() argument
67 if (!tableExists(transaction.getDb(), HYBRID_HOTSEAT_BACKUP_TABLE)) { in restoreBackup()
72 transaction.getDb(), idp.numDatabaseHotseatIcons, idp.numColumns, in restoreBackup()
75 transaction.commit(); in restoreBackup()
/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 …]
DOldMainActivityPeer.java1543 FragmentTransaction transaction = fragmentManager.beginTransaction(); in showFragment() local
1544 boolean fragmentShown = showIfEqualElseHide(transaction, fragment, oldSpeedDial); in showFragment()
1545 fragmentShown |= showIfEqualElseHide(transaction, fragment, oldCallLog); in showFragment()
1546 fragmentShown |= showIfEqualElseHide(transaction, fragment, contacts); in showFragment()
1547 fragmentShown |= showIfEqualElseHide(transaction, fragment, oldVoicemail); in showFragment()
1552 transaction.add(R.id.fragment_container, fragment, tag); in showFragment()
1555 transaction.commit(); in showFragment()
1598 FragmentTransaction transaction, Fragment fragment1, Fragment fragment2) { in showIfEqualElseHide() argument
1601 transaction.show(fragment1); in showIfEqualElseHide()
1608 transaction.hide(fragment2); in showIfEqualElseHide()
/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/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/
DTwoPanelSettingsFragment.java305 final FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); in navigateToPreviewFragment() local
306 transaction.replace(frameResIds[mPrefPanelIdx + 1], initialPreviewFragment, in navigateToPreviewFragment()
308 transaction.commit(); in navigateToPreviewFragment()
377 FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); in startPreferenceFragment() local
378 transaction.add(frameResIds[mPrefPanelIdx], fragment, PREFERENCE_FRAGMENT_TAG); in startPreferenceFragment()
379 transaction.commitNow(); in startPreferenceFragment()
387 transaction = getChildFragmentManager().beginTransaction(); in startPreferenceFragment()
388 transaction.add(frameResIds[mPrefPanelIdx + 1], initialPreviewFragment, in startPreferenceFragment()
390 transaction.commit(); in startPreferenceFragment()
550 final FragmentTransaction transaction = in handleFragmentTransactionWhenFocused() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/activities/
DPeopleActivity.java709 final FragmentTransaction transaction = fragmentManager.beginTransaction(); in updateViewConfiguration() local
719 transaction.remove(unavailableFragment); in updateViewConfiguration()
722 transaction.show(mContactsListFragment); in updateViewConfiguration()
734 transaction.hide(mContactsListFragment); in updateViewConfiguration()
735 transaction.replace(R.id.contacts_unavailable_container, fragment, TAG_UNAVAILABLE); in updateViewConfiguration()
738 if (!transaction.isEmpty()) { in updateViewConfiguration()
739 transaction.commit(); in updateViewConfiguration()
989 final FragmentTransaction transaction = fragmentManager.beginTransaction(); in switchView() local
993 transaction.replace( in switchView()
1002 transaction.remove(unavailableFragment); in switchView()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/settings/
DBlockedNumbersActivity.java201 final FragmentTransaction transaction = fragmentManager.beginTransaction(); in updateEnhancedCallBlockingFragment() local
205 transaction.add(R.id.enhanced_call_blocking_container, fragment); in updateEnhancedCallBlockingFragment()
207 transaction.show(fragment); in updateEnhancedCallBlockingFragment()
210 transaction.hide(fragment); in updateEnhancedCallBlockingFragment()
212 transaction.commit(); in updateEnhancedCallBlockingFragment()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java926 try (SQLiteTransaction transaction = (SQLiteTransaction) Settings.call(
937 copyTable(transaction.getDb(), Favorites.TABLE_NAME, transaction.getDb(),
941 GridBackupTable backupTable = new GridBackupTable(context, transaction.getDb(),
952 && new GridSizeMigrationTask(context, transaction.getDb(), validPackages,
960 if (new MultiStepMigrationTask(validPackages, context, transaction.getDb(),
977 transaction.commit();
1024 try (SQLiteTransaction transaction = (SQLiteTransaction) Settings.call(
1028 context, transaction.getDb(), getValidPackages(context),
1039 transaction.commit();
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DBaseFdnContactScreen.java200 FragmentTransaction transaction = fragmentManager.beginTransaction(); in showPin2LockedDialog() local
201 transaction.show(dialogFragment); in showPin2LockedDialog()
202 transaction.commitNow(); in showPin2LockedDialog()
DFdnSetting.java623 FragmentTransaction transaction = fragmentManager.beginTransaction(); in showPin2OrPuk2LockedDialog() local
624 transaction.show(dialogFragment); in showPin2OrPuk2LockedDialog()
625 transaction.commitNow(); in showPin2OrPuk2LockedDialog()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DInCallFragment.java324 FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); in setSecondary() local
327 transaction.replace(R.id.incall_on_hold_banner, OnHoldFragment.newInstance(secondaryInfo)); in setSecondary()
330 transaction.remove(oldBanner); in setSecondary()
333 transaction.setCustomAnimations(R.anim.abc_slide_in_top, R.anim.abc_slide_out_top); in setSecondary()
334 transaction.commitNowAllowingStateLoss(); in setSecondary()
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DRttChatFragment.java439 FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); in setSecondary() local
444 transaction.replace(R.id.rtt_on_hold_banner, onHoldFragment); in setSecondary()
447 transaction.remove(oldBanner); in setSecondary()
450 transaction.setCustomAnimations(R.anim.abc_slide_in_top, R.anim.abc_slide_out_top); in setSecondary()
451 transaction.commitNowAllowingStateLoss(); in setSecondary()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DCarLauncher.java278 FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); in initializeCards() local
280 transaction.replace(cardModule.getCardResId(), cardModule.getCardView()); in initializeCards()
282 transaction.commitNow(); in initializeCards()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java295 FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); in loadMainPanel() local
296 transaction.replace(R.id.main_panel_container, panel, MainPanel.FRAGMENT_TAG); in loadMainPanel()
297 transaction.commitAllowingStateLoss(); in loadMainPanel()
312 FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); in loadEditorPanel()
313 transaction.remove(getSupportFragmentManager().findFragmentByTag( in loadEditorPanel()
315 transaction.replace(R.id.main_panel_container, panel, MainPanel.FRAGMENT_TAG); in loadEditorPanel()
316 transaction.commit(); in loadEditorPanel()
341 FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); in toggleInformationPanel() local
342 transaction.setCustomAnimations(R.anim.slide_in_right, R.anim.slide_out_left); in toggleInformationPanel()
345 panel.show(transaction, InfoPanel.FRAGMENT_TAG); in toggleInformationPanel()
/packages/apps/Settings/src/com/android/settings/
DSettingsActivity.java588 FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); in switchToFragment() local
589 transaction.replace(R.id.main_content, f); in switchToFragment()
591 transaction.setBreadCrumbTitle(titleResId); in switchToFragment()
593 transaction.setBreadCrumbTitle(title); in switchToFragment()
595 transaction.commitAllowingStateLoss(); in switchToFragment()
/packages/apps/Dialer/java/com/android/dialer/app/
DDialtactsActivity.java1121 FragmentTransaction transaction = getFragmentManager().beginTransaction(); in enterSearchUi() local
1128 transaction.setCustomAnimations(android.R.animator.fade_in, 0); in enterSearchUi()
1130 transaction.setTransition(FragmentTransaction.TRANSIT_NONE); in enterSearchUi()
1136 transaction.add(R.id.dialtacts_frame, fragment, tag); in enterSearchUi()
1138 transaction.show(fragment); in enterSearchUi()
1144 transaction.commit(); in enterSearchUi()
1192 final FragmentTransaction transaction = getFragmentManager().beginTransaction(); in exitSearchUi() local
1194 transaction.remove(newSearchFragment); in exitSearchUi()
1196 transaction.commit(); in exitSearchUi()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DSurfaceViewVideoCallFragment.java846 FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); in setSecondary() local
851 transaction.replace(R.id.videocall_on_hold_banner, onHoldFragment); in setSecondary()
854 transaction.remove(oldBanner); in setSecondary()
857 transaction.setCustomAnimations(R.anim.abc_slide_in_top, R.anim.abc_slide_out_top); in setSecondary()
858 transaction.commitAllowingStateLoss(); in setSecondary()
DVideoCallFragment.java958 FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); in setSecondary() local
963 transaction.replace(R.id.videocall_on_hold_banner, onHoldFragment); in setSecondary()
966 transaction.remove(oldBanner); in setSecondary()
969 transaction.setCustomAnimations(R.anim.abc_slide_in_top, R.anim.abc_slide_out_top); in setSecondary()
970 transaction.commitAllowingStateLoss(); in setSecondary()

12