/packages/apps/DeskClock/src/com/android/deskclock/ |
D | FragmentTabPagerAdapter.java | 75 DeskClockFragment fragment = mFragmentCache.get(tab); in getDeskClockFragment() local 76 if (fragment != null) { in getDeskClockFragment() 77 return fragment; in getDeskClockFragment() 83 fragment = (DeskClockFragment) mFragmentManager.findFragmentByTag(tab.name()); in getDeskClockFragment() 84 if (fragment != null) { in getDeskClockFragment() 85 fragment.setFabContainer(mDeskClock); in getDeskClockFragment() 86 mFragmentCache.put(tab, fragment); in getDeskClockFragment() 87 return fragment; in getDeskClockFragment() 92 fragment = (DeskClockFragment) Fragment.instantiate(mDeskClock, fragmentClassName); in getDeskClockFragment() 93 fragment.setFabContainer(mDeskClock); in getDeskClockFragment() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/lifecycle/ |
D | LifecycleTest.java | 169 TestDialogFragment fragment = fragmentController.get(); in runThroughDialogFragmentLifecycles_shouldObserveEverything() local 172 fragment.onCreateOptionsMenu(null, null); in runThroughDialogFragmentLifecycles_shouldObserveEverything() 173 fragment.onPrepareOptionsMenu(null); in runThroughDialogFragmentLifecycles_shouldObserveEverything() 174 fragment.onOptionsItemSelected(null); in runThroughDialogFragmentLifecycles_shouldObserveEverything() 177 assertThat(fragment.mFragObserver.mOnAttachObserved).isTrue(); in runThroughDialogFragmentLifecycles_shouldObserveEverything() 178 assertThat(fragment.mFragObserver.mOnAttachHasContext).isTrue(); in runThroughDialogFragmentLifecycles_shouldObserveEverything() 179 assertThat(fragment.mFragObserver.mOnStartObserved).isTrue(); in runThroughDialogFragmentLifecycles_shouldObserveEverything() 180 assertThat(fragment.mFragObserver.mOnResumeObserved).isTrue(); in runThroughDialogFragmentLifecycles_shouldObserveEverything() 181 assertThat(fragment.mFragObserver.mOnPauseObserved).isTrue(); in runThroughDialogFragmentLifecycles_shouldObserveEverything() 182 assertThat(fragment.mFragObserver.mOnStopObserved).isTrue(); in runThroughDialogFragmentLifecycles_shouldObserveEverything() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/search2/ |
D | SearchFragmentTest.java | 98 SearchFragment fragment = (SearchFragment) activityController.get().getFragmentManager() in screenRotate_shouldPersistQuery() local 101 ReflectionHelpers.setField(fragment, "mShowingSavedQuery", false); in screenRotate_shouldPersistQuery() 102 fragment.mQuery = testQuery; in screenRotate_shouldPersistQuery() 109 assertThat(fragment.mQuery).isEqualTo(testQuery); in screenRotate_shouldPersistQuery() 121 SearchFragment fragment = (SearchFragment) activityController.get().getFragmentManager() in screenRotateEmptyString_ShouldNotCrash() local 126 fragment.mQuery = ""; in screenRotateEmptyString_ShouldNotCrash() 154 SearchFragment fragment = (SearchFragment) activityController.get().getFragmentManager() in queryTextChange_shouldTriggerLoader() local 159 fragment.onQueryTextChange(testQuery); in queryTextChange_shouldTriggerLoader() 188 SearchFragment fragment = spy((SearchFragment) activityController.get().getFragmentManager() in queryTextChangeToEmpty_shouldLoadSavedQuery() local 192 ReflectionHelpers.setField(fragment, "mSavedQueryController", mSavedQueryController); in queryTextChangeToEmpty_shouldLoadSavedQuery() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | BlockReportSpamDialogs.java | 42 Activity activity, final DialogFragment fragment) { in createDialogBuilder() argument 50 fragment.dismiss(); in createDialogBuilder() 60 final DialogFragment fragment, final OnConfirmListener listener) { 64 fragment.dismiss(); 146 BlockReportSpamDialogFragment fragment = new BlockReportSpamDialogFragment(); 147 fragment.mSpamChecked = spamChecked; 148 fragment.mDisplayNumber = displayNumber; 149 fragment.mPositiveListener = positiveListener; 150 fragment.mDismissListener = dismissListener; 151 return fragment; [all …]
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ContactSelectionActivity.java | 99 public void onAttachFragment(Fragment fragment) { in onAttachFragment() argument 100 if (fragment instanceof ContactEntryListFragment<?>) { in onAttachFragment() 101 mListFragment = (ContactEntryListFragment<?>) fragment; in onAttachFragment() 268 ContactPickerFragment fragment = new ContactPickerFragment(); in configureListFragment() local 269 fragment.setEditMode(true); in configureListFragment() 270 fragment.setDirectorySearchMode(DirectoryListLoader.SEARCH_MODE_NONE); in configureListFragment() 271 fragment.setCreateContactEnabled(!mRequest.isSearchMode()); in configureListFragment() 272 fragment.setListType(ListEvent.ListType.PICK_CONTACT); in configureListFragment() 273 mListFragment = fragment; in configureListFragment() 279 ContactPickerFragment fragment = new ContactPickerFragment(); in configureListFragment() local [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerPagerAdapter.java | 68 final TimerItemFragment fragment = (TimerItemFragment) object; in getItemPosition() local 69 final Timer timer = fragment.getTimer(); in getItemPosition() 86 TimerItemFragment fragment = (TimerItemFragment) mFragmentManager.findFragmentByTag(tag); in instantiateItem() local 88 if (fragment != null) { in instantiateItem() 90 mCurrentTransaction.attach(fragment); in instantiateItem() 93 fragment = TimerItemFragment.newInstance(timer); in instantiateItem() 94 mCurrentTransaction.add(container.getId(), fragment, tag); in instantiateItem() local 97 if (fragment != mCurrentPrimaryItem) { in instantiateItem() 98 setItemVisible(fragment, false); in instantiateItem() 101 mFragments.put(timer.getId(), fragment); in instantiateItem() local [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/ |
D | BlockedNumbersSettingsActivity.java | 47 BlockedNumbersFragment fragment = in showManagementUi() local 50 if (fragment == null) { in showManagementUi() 51 fragment = new BlockedNumbersFragment(); in showManagementUi() 56 .replace(R.id.blocked_numbers_activity_container, fragment, TAG_BLOCKED_MANAGEMENT_FRAGMENT) in showManagementUi() 64 BlockedListSearchFragment fragment = in showSearchUi() local 67 if (fragment == null) { in showSearchUi() 68 fragment = new BlockedListSearchFragment(); in showSearchUi() 69 fragment.setHasOptionsMenu(false); in showSearchUi() 70 fragment.setShowEmptyListForNullQuery(true); in showSearchUi() 71 fragment.setDirectorySearchEnabled(false); in showSearchUi() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
D | DialtactsPagerAdapter.java | 152 final Fragment fragment = (Fragment) super.instantiateItem(container, position); in instantiateItem() local 153 if (fragment instanceof OldSpeedDialFragment) { in instantiateItem() 154 oldSpeedDialFragment = (OldSpeedDialFragment) fragment; in instantiateItem() 155 } else if (fragment instanceof SpeedDialFragment) { in instantiateItem() 156 speedDialFragment = (SpeedDialFragment) fragment; in instantiateItem() 157 } else if (fragment instanceof CallLogFragment && position == TAB_INDEX_HISTORY) { in instantiateItem() 158 callLogFragment = (CallLogFragment) fragment; in instantiateItem() 159 } else if (fragment instanceof NewCallLogFragment) { in instantiateItem() 160 newCallLogFragment = (NewCallLogFragment) fragment; in instantiateItem() 161 } else if (fragment instanceof ContactsFragment) { in instantiateItem() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | DialogFragment.java | 60 Fragment fragment = getContentFragment(); in performEntryTransition() local 61 if (fragment instanceof ContentFragment) { in performEntryTransition() 62 ContentFragment cf = (ContentFragment) fragment; in performEntryTransition() 142 protected void setContentFragment(Fragment fragment) { in setContentFragment() argument 143 FragmentTransaction ft = getContentFragmentTransaction(fragment); in setContentFragment() 152 protected void setActionFragment(Fragment fragment) { in setActionFragment() argument 153 setActionFragment(fragment, true); in setActionFragment() 162 protected void setActionFragment(Fragment fragment, boolean addToBackStack) { in setActionFragment() argument 163 FragmentTransaction ft = addActionFragmentToTransaction(fragment, null, addToBackStack, in setActionFragment() 204 private FragmentTransaction getContentFragmentTransaction(Fragment fragment) { in getContentFragmentTransaction() argument [all …]
|
D | DialogActivity.java | 316 protected void setContentFragment(Fragment fragment) { in setContentFragment() argument 317 getDialogFragment().setContentFragment(fragment); in setContentFragment() 325 protected void setActionFragment(Fragment fragment) { in setActionFragment() argument 326 getDialogFragment().setActionFragment(fragment); in setActionFragment() 335 protected void setActionFragment(Fragment fragment, boolean addToBackStack) { in setActionFragment() argument 336 getDialogFragment().setActionFragment(fragment, addToBackStack); in setActionFragment() 368 protected void setDialogFragment(DialogFragment fragment) { in setDialogFragment() argument 369 setDialogFragment(fragment, true); in setDialogFragment() 372 protected void setDialogFragment(DialogFragment fragment, boolean addToBackStack) { in setDialogFragment() argument 373 mDialogFragment = fragment; in setDialogFragment() [all …]
|
D | ActionFragment.java | 40 ActionFragment fragment = new ActionFragment(); in newInstance() local 41 fragment.setArguments(BaseActionFragment.buildArgs(actions, name)); in newInstance() 42 return fragment; in newInstance() 46 ActionFragment fragment = new ActionFragment(); in newInstance() local 47 fragment.setArguments(BaseActionFragment.buildArgs(actions, index)); in newInstance() 48 return fragment; in newInstance() 52 ActionFragment fragment = new ActionFragment(); in newInstance() local 53 fragment.setArguments(BaseActionFragment.buildArgs(actions, name, index)); in newInstance() 54 return fragment; in newInstance()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | FragmentStatePagerAdapter2.java | 91 Fragment fragment = getItem(position); in instantiateItem() local 92 if (DEBUG) LogUtils.v(TAG, "Adding item #" + position + ": f=" + fragment); in instantiateItem() 96 fragment.setInitialSavedState(fss); in instantiateItem() 99 if (fragment != mCurrentPrimaryItem) { in instantiateItem() 100 setItemVisible(fragment, false); in instantiateItem() 102 mFragments.put(position, fragment); in instantiateItem() 103 mCurTransaction.add(container.getId(), fragment); in instantiateItem() local 105 return fragment; in instantiateItem() 110 Fragment fragment = (Fragment)object; in destroyItem() local 121 mSavedState.set(position, mFragmentManager.saveFragmentInstanceState(fragment)); in destroyItem() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | FormPageDisplayer.java | 172 public void displayFragment(Fragment fragment, boolean forward) { in displayFragment() argument 179 transaction.replace(mContentViewId, fragment).commit(); in displayFragment() 187 Fragment fragment = SelectFromListWizardFragment.newInstance( in displayList() local 192 displayFragment(fragment, forward); in displayList() 209 return fragment; in displayList() 218 Fragment fragment = TextInputWizardFragment.newInstance( in displayTextInput() local 223 displayFragment(fragment, forward); in displayTextInput() 237 return fragment; in displayTextInput() 247 Fragment fragment = in displayPskInput() local 251 displayFragment(fragment, forward); in displayPskInput() [all …]
|
D | ConnectToWifiFragment.java | 63 ConnectToWifiFragment fragment = new ConnectToWifiFragment(); in newInstance() local 67 fragment.setArguments(args); in newInstance() 68 return fragment; in newInstance() 103 public MessageHandler(ConnectToWifiFragment fragment) { in MessageHandler() argument 104 mFragmentRef = new WeakReference<>(fragment); in MessageHandler() 111 final ConnectToWifiFragment fragment = mFragmentRef.get(); in handleMessage() local 112 if (fragment == null) { in handleMessage() 116 if (fragment.isNetworkConnected()) { in handleMessage() 118 fragment.mConnected = true; in handleMessage() 119 fragment.notifyListener(RESULT_SUCCESS); in handleMessage() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/ |
D | DialtactsActivity.java | 612 public void onAttachFragment(final Fragment fragment) { in onAttachFragment() argument 613 LogUtil.d("DialtactsActivity.onAttachFragment", "fragment: %s", fragment); in onAttachFragment() 614 if (fragment instanceof DialpadFragment) { in onAttachFragment() 615 mDialpadFragment = (DialpadFragment) fragment; in onAttachFragment() 621 } else if (fragment instanceof SmartDialSearchFragment) { in onAttachFragment() 622 mSmartDialSearchFragment = (SmartDialSearchFragment) fragment; in onAttachFragment() 627 } else if (fragment instanceof SearchFragment) { in onAttachFragment() 628 mRegularSearchFragment = (RegularSearchFragment) fragment; in onAttachFragment() 630 } else if (fragment instanceof ListsFragment) { in onAttachFragment() 631 mListsFragment = (ListsFragment) fragment; in onAttachFragment() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/ |
D | DialerUiTaskFragment.java | 83 DialerUiTaskFragment<InputT, OutputT> fragment = in create() local 86 if (fragment == null) { in create() 88 fragment = new DialerUiTaskFragment<>(); in create() 89 fragmentManager.beginTransaction().add(fragment, taskId).commit(); in create() 91 fragment.taskId = taskId; in create() 92 fragment.worker = worker; in create() 93 fragment.successListener = successListener; in create() 94 fragment.failureListener = failureListener; in create() 96 fragment.serialExecutor = new SimpleAsyncTaskExecutor(serialExecutorService); in create() 99 fragment.parallelExecutor = new SimpleAsyncTaskExecutor(parallelExecutorService); in create() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/ |
D | AccountsSettingsFragmentTests.java | 71 final AccountsSettingsFragment fragment = in testEmptyAccounts() local 74 fragment.createAccountPicker(new String[0], null, null /* listener */); in testEmptyAccounts() 89 final AccountsSettingsFragment fragment = in testMultipleAccounts_noSettingsForManagedProfile() local 91 final AlertDialog dialog = initDialog(fragment, null).mDialog; in testMultipleAccounts_noSettingsForManagedProfile() 95 assertNull(fragment.findPreference(AccountsSettingsFragment.PREF_ACCCOUNT_SWITCHER)); in testMultipleAccounts_noSettingsForManagedProfile() 101 final AccountsSettingsFragment fragment = in testMultipleAccounts_noCurrentAccount() local 103 final AlertDialog dialog = initDialog(fragment, null).mDialog; in testMultipleAccounts_noCurrentAccount() 122 final AccountsSettingsFragment fragment = in testMultipleAccounts_currentAccount() local 124 final AlertDialog dialog = initDialog(fragment, "3@example.com").mDialog; in testMultipleAccounts_currentAccount() 141 final AccountsSettingsFragment fragment, in initDialog() argument [all …]
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | StorageManagerUpsellDialogTest.java | 47 StorageManagerUpsellDialog fragment = StorageManagerUpsellDialog.newInstance(0); in testNoThanksMaximumShownTimes() local 48 fragment.setClock(mClock); in testNoThanksMaximumShownTimes() 53 startFragment(fragment); in testNoThanksMaximumShownTimes() 54 fragment.onClick(null, BUTTON_NEGATIVE); in testNoThanksMaximumShownTimes() 59 startFragment(fragment); in testNoThanksMaximumShownTimes() 60 fragment.onClick(null, BUTTON_NEGATIVE); in testNoThanksMaximumShownTimes() 65 startFragment(fragment); in testNoThanksMaximumShownTimes() 66 fragment.onClick(null, BUTTON_NEGATIVE); in testNoThanksMaximumShownTimes() 71 startFragment(fragment); in testNoThanksMaximumShownTimes() 72 fragment.onClick(null, BUTTON_NEGATIVE); in testNoThanksMaximumShownTimes()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/ |
D | ManagePermissionsActivity.java | 42 Fragment fragment; in onCreate() local 48 fragment = com.android.packageinstaller.permission.ui.television in onCreate() 51 fragment = ManageStandardPermissionsFragment.newInstance(); in onCreate() 63 fragment = AppPermissionsFragmentWear.newInstance(packageName); in onCreate() 65 fragment = com.android.packageinstaller.permission.ui.television in onCreate() 71 fragment = com.android.packageinstaller.permission.ui.handheld in onCreate() 74 fragment = com.android.packageinstaller.permission.ui.handheld in onCreate() 88 fragment = com.android.packageinstaller.permission.ui.television in onCreate() 91 fragment = com.android.packageinstaller.permission.ui.handheld in onCreate() 103 getFragmentManager().beginTransaction().replace(android.R.id.content, fragment).commit(); in onCreate()
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/ |
D | SetupActionHelper.java | 34 public static boolean onActionClick(Fragment fragment, String category, int actionId) { in onActionClick() argument 35 return onActionClick(fragment, category, actionId, null); in onActionClick() 41 public static boolean onActionClick(Fragment fragment, String category, int actionId, in onActionClick() argument 43 if (fragment.getActivity() instanceof OnActionClickListener) { in onActionClick() 44 return ((OnActionClickListener) fragment.getActivity()).onActionClick(category, in onActionClick() 55 public static OnClickListener createOnClickListenerForAction(Fragment fragment, String category, in createOnClickListenerForAction() argument 57 return new OnActionClickListenerForAction(fragment, category, actionId, params); in createOnClickListenerForAction() 72 OnActionClickListenerForAction(Fragment fragment, String category, int actionId, in OnActionClickListenerForAction() argument 74 mFragment = fragment; in OnActionClickListenerForAction()
|
D | SetupActivity.java | 94 Fragment fragment = onCreateInitialFragment(); in showInitialFragment() local 95 if (fragment != null) { in showInitialFragment() 96 showFragment(fragment, false); in showInitialFragment() 104 protected FragmentTransaction showFragment(Fragment fragment, boolean addToBackStack) { in showFragment() argument 106 if (fragment instanceof SetupFragment) { in showFragment() 107 int[] sharedElements = ((SetupFragment) fragment).getSharedElementIds(); in showFragment() 113 fragment.setSharedElementEnterTransition(sharedTransition); in showFragment() 114 fragment.setSharedElementReturnTransition(sharedTransition); in showFragment() 123 String tag = fragment.getClass().getCanonicalName(); in showFragment() 127 ft.replace(R.id.fragment_container, fragment, tag).commit(); in showFragment()
|
/packages/apps/TV/src/com/android/tv/tuner/setup/ |
D | TunerSetupActivity.java | 88 SetupFragment fragment = new WelcomeFragment(); in onCreateInitialFragment() local 89 fragment.setShortDistance(SetupFragment.FRAGMENT_EXIT_TRANSITION in onCreateInitialFragment() 91 return fragment; in onCreateInitialFragment() 105 SetupFragment fragment = new ConnectionTypeFragment(); in executeAction() local 106 fragment.setShortDistance(SetupFragment.FRAGMENT_ENTER_TRANSITION in executeAction() 108 showFragment(fragment, true); in executeAction() 140 SetupFragment fragment = new ScanResultFragment(); in executeAction() local 141 fragment.setShortDistance(SetupFragment.FRAGMENT_EXIT_TRANSITION in executeAction() 143 showFragment(fragment, true); in executeAction() 154 SetupFragment fragment = new ConnectionTypeFragment(); in executeAction() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/support/ |
D | SupportDisclaimerDialogFragmentTest.java | 70 SupportDisclaimerDialogFragment fragment = in onClick_DoNotShowCheckedLogsAction() local 72 FragmentTestUtil.startFragment(fragment); in onClick_DoNotShowCheckedLogsAction() 75 CheckBox doNotShow = (CheckBox) fragment.getDialog() in onClick_DoNotShowCheckedLogsAction() 80 fragment.onClick(fragment.getDialog(), Dialog.BUTTON_POSITIVE); in onClick_DoNotShowCheckedLogsAction() 87 SupportDisclaimerDialogFragment fragment = in onClick_DoNotShowUncheckedDoesNotLogAction() local 89 FragmentTestUtil.startFragment(fragment); in onClick_DoNotShowUncheckedDoesNotLogAction() 92 CheckBox doNotShow = (CheckBox) fragment.getDialog() in onClick_DoNotShowUncheckedDoesNotLogAction() 97 fragment.onClick(fragment.getDialog(), Dialog.BUTTON_POSITIVE); in onClick_DoNotShowUncheckedDoesNotLogAction()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | ShortcutServicePickerFragment.java | 106 final DialogFragment fragment = ConfirmationDialogFragment.newInstance( in onRadioButtonClicked() local 108 fragment.show(activity.getFragmentManager(), ConfirmationDialogFragment.TAG); in onRadioButtonClicked() 124 final ConfirmationDialogFragment fragment = new ConfirmationDialogFragment(); in newInstance() local 127 fragment.setArguments(argument); in newInstance() 128 fragment.setTargetFragment(parent, 0); in newInstance() 129 fragment.mToken = new Binder(); in newInstance() 130 return fragment; in newInstance() 168 final Fragment fragment = getTargetFragment(); in onClick() local 169 if ((which == BUTTON_POSITIVE) && (fragment instanceof DefaultAppPickerFragment)) { in onClick() 171 ((ShortcutServicePickerFragment) fragment).onServiceConfirmed( in onClick()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ |
D | TelecomActivity.java | 141 private void setContentFragmentWithAnimations(Fragment fragment, int enter, int exit) { in setContentFragmentWithAnimations() argument 143 Log.d(TAG, "setContentFragmentWithAnimations: " + fragment); in setContentFragmentWithAnimations() 150 .replace(getContentContainerId(), fragment) in setContentFragmentWithAnimations() 153 mCurrentFragmentName = fragment.getClass().getSimpleName(); in setContentFragmentWithAnimations() 154 mCurrentFragment = fragment; in setContentFragmentWithAnimations() 361 private void setContentFragmentWithSlideAndDelayAnimation(Fragment fragment) { in setContentFragmentWithSlideAndDelayAnimation() argument 363 Log.d(TAG, "setContentFragmentWithSlideAndDelayAnimation, fragment: " + fragment); in setContentFragmentWithSlideAndDelayAnimation() 365 setContentFragmentWithAnimations(fragment, in setContentFragmentWithSlideAndDelayAnimation() 369 private void setContentFragmentWithFadeAnimation(Fragment fragment) { in setContentFragmentWithFadeAnimation() argument 371 Log.d(TAG, "setContentFragmentWithFadeAnimation, fragment: " + fragment); in setContentFragmentWithFadeAnimation() [all …]
|