/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/displaysound/ |
D | HdrFormatSelectionFragmentTest.java | 52 import org.robolectric.shadows.androidx.fragment.FragmentController; 73 HdrFormatSelectionFragment fragment = createDefaultHdrFormatSelectionFragment(); in testOnPreferenceTreeClick_withAuto_allowsUserDisabledHdrTypes() local 74 RadioPreference preference = fragment.findPreference(KEY_HDR_FORMAT_SELECTION_AUTO); in testOnPreferenceTreeClick_withAuto_allowsUserDisabledHdrTypes() 76 fragment.onPreferenceTreeClick(preference); in testOnPreferenceTreeClick_withAuto_allowsUserDisabledHdrTypes() 83 HdrFormatSelectionFragment fragment = createDefaultHdrFormatSelectionFragment(); in testOnPreferenceTreeClick_withManual_disallowsUserDisabledHdrTypes() local 84 RadioPreference preference = fragment.findPreference(KEY_HDR_FORMAT_SELECTION_MANUAL); in testOnPreferenceTreeClick_withManual_disallowsUserDisabledHdrTypes() 86 fragment.onPreferenceTreeClick(preference); in testOnPreferenceTreeClick_withManual_disallowsUserDisabledHdrTypes() 98 HdrFormatSelectionFragment fragment = in testOnPreferenceTreeClick_withFormatDisabled_disablesHdrTypeInDisplayManager() local 102 RadioPreference preference = fragment.findPreference(KEY_HDR_FORMAT_SELECTION_MANUAL); in testOnPreferenceTreeClick_withFormatDisabled_disablesHdrTypeInDisplayManager() 103 fragment.onPreferenceTreeClick(preference); in testOnPreferenceTreeClick_withFormatDisabled_disablesHdrTypeInDisplayManager() [all …]
|
D | AdvancedVolumeFragmentTest.java | 50 import org.robolectric.shadows.androidx.fragment.FragmentController; 72 AdvancedVolumeFragment fragment = createDefaultAdvancedVolumeFragment(); in testOnPreferenceChange_withAuto_storesAutoInSettings() local 73 Preference preference = fragment.findPreference(KEY_SURROUND_SOUND_AUTO); in testOnPreferenceChange_withAuto_storesAutoInSettings() 75 fragment.onPreferenceTreeClick(preference); in testOnPreferenceChange_withAuto_storesAutoInSettings() 84 AdvancedVolumeFragment fragment = createDefaultAdvancedVolumeFragment(); in testOnPreferenceChange_withManual_storesManualInSettings() local 85 Preference preference = fragment.findPreference(KEY_SURROUND_SOUND_MANUAL); in testOnPreferenceChange_withManual_storesManualInSettings() 87 fragment.onPreferenceTreeClick(preference); in testOnPreferenceChange_withManual_storesManualInSettings() 96 AdvancedVolumeFragment fragment = createDefaultAdvancedVolumeFragment(); in testOnPreferenceChange_withNever_storesNeverInSettings() local 97 Preference preference = fragment.findPreference(KEY_SURROUND_SOUND_NONE); in testOnPreferenceChange_withNever_storesNeverInSettings() 99 fragment.onPreferenceTreeClick(preference); in testOnPreferenceChange_withNever_storesNeverInSettings() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | FragmentTabPagerAdapter.kt | 22 import androidx.fragment.app.Fragment 23 import androidx.fragment.app.FragmentManager 24 import androidx.fragment.app.FragmentTransaction 62 var fragment = mFragmentCache[tab] in getCount() variable 63 if (fragment != null) { in getCount() 64 return fragment in getCount() 70 fragment = mFragmentManager.findFragmentByTag(tab.name) as DeskClockFragment? in getCount() 71 if (fragment != null) { in getCount() 72 fragment.setFabContainer(mDeskClock) in getCount() 73 mFragmentCache[tab] = fragment in getCount() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/blockreportspam/ |
D | BlockReportSpamDialogs.java | 42 Activity activity, final DialogFragment fragment) { in createDialogBuilder() argument 45 .setNegativeButton(android.R.string.cancel, (dialog, which) -> fragment.dismiss()); in createDialogBuilder() 53 final DialogFragment fragment, final OnConfirmListener listener) { in createGenericOnClickListener() argument 55 fragment.dismiss(); in createGenericOnClickListener() 142 DialogFragmentForBlockingNumberAndOptionallyReportingAsSpam fragment = in newInstance() local 144 fragment.spamChecked = spamChecked; in newInstance() 145 fragment.displayNumber = displayNumber; in newInstance() 146 fragment.onSpamDialogClickListener = onSpamDialogClickListener; in newInstance() 147 fragment.dismissListener = dismissListener; in newInstance() 148 return fragment; in newInstance() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerPagerAdapter.kt | 23 import androidx.fragment.app.Fragment 24 import androidx.fragment.app.FragmentManager 25 import androidx.fragment.app.FragmentTransaction 55 val fragment = any as TimerItemFragment in getItemPosition() constant 56 val timer = fragment.timer in getItemPosition() 72 var fragment = mFragmentManager.findFragmentByTag(tag) as TimerItemFragment? in instantiateItem() variable 74 if (fragment != null) { in instantiateItem() 76 mCurrentTransaction!!.attach(fragment) in instantiateItem() 79 fragment = TimerItemFragment.newInstance(timer) in instantiateItem() 80 mCurrentTransaction!!.add(container.id, fragment, tag) in instantiateItem() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | FragmentUtils.java | 42 public static <T> T getParent(@NonNull Fragment fragment, @NonNull Class<T> callbackInterface) { in getParent() argument 49 Fragment parentFragment = fragment.getParentFragment(); in getParent() 54 } else if (callbackInterface.isInstance(fragment.getActivity())) { in getParent() 56 T parent = (T) fragment.getActivity(); in getParent() 58 } else if (fragment.getActivity() instanceof FragmentUtilListener) { in getParent() 60 T parent = ((FragmentUtilListener) fragment.getActivity()).getImpl(callbackInterface); in getParent() 62 } else if (fragment.getActivity() instanceof MainActivityPeer.PeerSupplier) { in getParent() 63 MainActivityPeer peer = ((MainActivityPeer.PeerSupplier) fragment.getActivity()).getPeer(); in getParent() 78 @NonNull android.app.Fragment fragment, @NonNull Class<T> callbackInterface) { in getParent() 85 android.app.Fragment parentFragment = fragment.getParentFragment(); in getParent() [all …]
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | FragmentUtils.java | 23 import androidx.fragment.app.Fragment; 24 import androidx.fragment.app.FragmentActivity; 48 public static <T> T getParent(@NonNull Fragment fragment, @NonNull Class<T> parentType) { in getParent() argument 55 Fragment parentFragment = fragment.getParentFragment(); in getParent() 62 FragmentActivity activity = fragment.getActivity(); in getParent() 78 public static <T> T requireParent(@NonNull Fragment fragment, @NonNull Class<T> parentType) { in requireParent() argument 79 return Objects.requireNonNull(getParent(fragment, parentType)); in requireParent() 89 public static void checkParent(@NonNull Fragment fragment, @NonNull Class<?> parentType) in checkParent() argument 94 if (FragmentUtils.getParent(fragment, parentType) != null) { in checkParent() 98 if (fragment.getParentFragment() == null) { in checkParent() [all …]
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/ |
D | TwoPanelSettingsFragment.java | 52 import androidx.fragment.app.Fragment; 53 import androidx.fragment.app.FragmentTransaction; 211 private boolean isPreferenceFragment(String fragment) { in isPreferenceFragment() argument 213 return LeanbackPreferenceFragmentCompat.class.isAssignableFrom(Class.forName(fragment)); in isPreferenceFragment() 220 private boolean isInfoFragment(String fragment) { in isInfoFragment() argument 222 return InfoFragment.class.isAssignableFrom(Class.forName(fragment)); in isInfoFragment() 302 Fragment fragment = getChildFragmentManager().findFragmentById(frameResIds[mPrefPanelIdx]); in navigateToPreviewFragment() local 303 addOrRemovePreferenceFocusedListener(fragment, true); in navigateToPreviewFragment() 320 private void updateAccessibilityTitle(Fragment fragment) { in updateAccessibilityTitle() argument 322 if (fragment instanceof SliceFragment) { in updateAccessibilityTitle() [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() 271 ContactPickerFragment fragment = new ContactPickerFragment(); in configureListFragment() local 272 fragment.setEditMode(true); in configureListFragment() 273 fragment.setDirectorySearchMode(DirectoryListLoader.SEARCH_MODE_NONE); in configureListFragment() 274 fragment.setCreateContactEnabled(!mRequest.isSearchMode()); in configureListFragment() 275 fragment.setListType(ListEvent.ListType.PICK_CONTACT); in configureListFragment() 276 mListFragment = fragment; in configureListFragment() 282 ContactPickerFragment fragment = new ContactPickerFragment(); in configureListFragment() local [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiDppConfiguratorActivity.java | 30 import androidx.fragment.app.FragmentTransaction; 189 WifiDppQrCodeScannerFragment fragment = in showQrCodeScannerFragment() local 193 if (fragment == null) { in showQrCodeScannerFragment() 194 fragment = new WifiDppQrCodeScannerFragment(); in showQrCodeScannerFragment() 196 if (fragment.isVisible()) { in showQrCodeScannerFragment() 207 fragmentTransaction.replace(R.id.fragment_container, fragment, in showQrCodeScannerFragment() 213 WifiDppQrCodeGeneratorFragment fragment = in showQrCodeGeneratorFragment() local 217 if (fragment == null) { in showQrCodeGeneratorFragment() 218 fragment = new WifiDppQrCodeGeneratorFragment(); in showQrCodeGeneratorFragment() 220 if (fragment.isVisible()) { in showQrCodeGeneratorFragment() [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 …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | ProgressDialogFragment.java | 50 ProgressDialogFragment fragment = (ProgressDialogFragment) fm.findFragmentByTag(TAG); in show() local 51 if (fragment != null in show() 52 && TextUtils.equals(fragment.getArguments().getString(ARG_TITLE), title)) { in show() 57 if (fragment != null) { in show() 58 ft.remove(fragment); in show() 61 fragment = new ProgressDialogFragment(); in show() 62 fragment.setDismissCallback(dismissCallback); in show() 66 fragment.setArguments(arguments); in show() 67 fragment.show(ft, TAG); in show() 76 DialogFragment fragment = (DialogFragment) fm.findFragmentByTag(TAG); in dismiss() local [all …]
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/ |
D | EmergencyListPreferenceTest.java | 61 EditInfoFragment fragment = (EditInfoFragment) activity.getFragment(); in testSummary_organDonor() local 63 getEmergencyListPreference(fragment, PreferenceKeys.KEY_ORGAN_DONOR); in testSummary_organDonor() 73 EditInfoFragment fragment = (EditInfoFragment) activity.getFragment(); in testSummary_bloodType() local 75 getEmergencyListPreference(fragment, PreferenceKeys.KEY_BLOOD_TYPE); in testSummary_bloodType() 85 EditInfoFragment fragment = (EditInfoFragment) activity.getFragment(); in testTitle_organDonor() local 87 getEmergencyListPreference(fragment, PreferenceKeys.KEY_ORGAN_DONOR); in testTitle_organDonor() 96 EditInfoFragment fragment = (EditInfoFragment) activity.getFragment(); in testTitle_bloodType() local 98 getEmergencyListPreference(fragment, PreferenceKeys.KEY_BLOOD_TYPE); in testTitle_bloodType() 107 EditInfoFragment fragment = (EditInfoFragment) activity.getFragment(); in testProperties_organDonor() local 109 getEmergencyListPreference(fragment, PreferenceKeys.KEY_ORGAN_DONOR); in testProperties_organDonor() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | ExternalSourcesDetailsTest.java | 111 final ExternalSourcesDetails fragment = new ExternalSourcesDetails(); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference() local 117 ReflectionHelpers.setField(fragment, "mSwitchPref", mSwitchPref); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference() 118 ReflectionHelpers.setField(fragment, "mPackageInfo", mPackageInfo); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference() 120 ReflectionHelpers.setField(fragment, "mUserManager", userManager); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference() 124 ReflectionHelpers.setField(fragment, "mAppBridge", appBridge); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference() 138 assertThat(fragment.refreshUi()).isTrue(); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference() 150 final ExternalSourcesDetails fragment = new ExternalSourcesDetails(); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference() local 156 ReflectionHelpers.setField(fragment, "mSwitchPref", mSwitchPref); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference() 157 ReflectionHelpers.setField(fragment, "mPackageInfo", mPackageInfo); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference() 159 ReflectionHelpers.setField(fragment, "mUserManager", userManager); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | UriTest.java | 36 .fragment("foo") in testParcelling() 64 Uri b = a.buildUpon().fragment("new").build(); in testBuildUpon() 71 .fragment("tee") in testBuildUpon() 73 b = a.buildUpon().fragment("new").build(); in testBuildUpon() 79 b = a.buildUpon().fragment("qux").build(); in testBuildUpon() 182 .fragment("tee") in testEqualsAndHashCode() 374 Uri withFragment = uri.buildUpon().fragment("top").build(); in testOpaqueUri() 390 String path, String query, String fragment) { in testHierarchical() argument 408 if (fragment != null) { in testHierarchical() 409 sb.append('#').append(fragment); in testHierarchical() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/ |
D | WifiNetworkDetailsFragment2Test.java | 125 final FakeFragment fragment = spy(new FakeFragment()); in restrictUi_shouldShowRestrictedText() local 128 doReturn(screen).when(fragment).getPreferenceScreen(); in restrictUi_shouldShowRestrictedText() 129 doReturn(false).when(fragment).isUiRestrictedByOnlyAdmin(); in restrictUi_shouldShowRestrictedText() 130 doReturn(restrictedText).when(fragment).getEmptyTextView(); in restrictUi_shouldShowRestrictedText() 132 fragment.restrictUi(); in restrictUi_shouldShowRestrictedText() 139 final FakeFragment fragment = spy(new FakeFragment()); in restrictUi_shouldRemoveAllPreferences() local 141 doReturn(screen).when(fragment).getPreferenceScreen(); in restrictUi_shouldRemoveAllPreferences() 142 doReturn(true).when(fragment).isUiRestrictedByOnlyAdmin(); in restrictUi_shouldRemoveAllPreferences() 144 fragment.restrictUi(); in restrictUi_shouldRemoveAllPreferences() 151 final FakeFragment fragment = spy(new FakeFragment()); in refreshPreferences_controllerShouldUpdateStateAndDisplayPreference() local [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | TopLevelMenuFragment.java | 29 import androidx.fragment.app.DialogFragment; 30 import androidx.fragment.app.Fragment; 31 import androidx.fragment.app.FragmentActivity; 32 import androidx.fragment.app.FragmentManager; 90 public void launchFragment(@Nullable Fragment fragment) { in launchFragment() argument 91 if (fragment == null) { in launchFragment() 95 if (fragment.getArguments() != null) { in launchFragment() 96 preferenceKey = fragment.getArguments().getString(FRAGMENT_MENU_PREFERENCE_KEY); in launchFragment() 98 if (TextUtils.equals(getCurrentFragmentClass(), fragment.getClass().getName()) in launchFragment() 105 super.launchFragment(fragment); in launchFragment() [all …]
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | StorageManagerUpsellDialogTest.java | 42 StorageManagerUpsellDialog fragment = StorageManagerUpsellDialog.newInstance(0); in testNoThanksMaximumShownTimes() local 43 fragment.setClock(mClock); in testNoThanksMaximumShownTimes() 48 startFragment(fragment); in testNoThanksMaximumShownTimes() 49 fragment.onClick(null, BUTTON_NEGATIVE); in testNoThanksMaximumShownTimes() 54 startFragment(fragment); in testNoThanksMaximumShownTimes() 55 fragment.onClick(null, BUTTON_NEGATIVE); in testNoThanksMaximumShownTimes() 60 startFragment(fragment); in testNoThanksMaximumShownTimes() 61 fragment.onClick(null, BUTTON_NEGATIVE); in testNoThanksMaximumShownTimes() 66 startFragment(fragment); in testNoThanksMaximumShownTimes() 67 fragment.onClick(null, BUTTON_NEGATIVE); in testNoThanksMaximumShownTimes()
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
D | OldSpeedDialFragment.java | 377 private final OldSpeedDialFragment fragment; field in OldSpeedDialFragment.ContactTileLoaderListener 380 ContactTileLoaderListener(OldSpeedDialFragment fragment, PhoneFavoritesTileAdapter adapter) { in ContactTileLoaderListener() argument 381 this.fragment = fragment; in ContactTileLoaderListener() 387 return ContactTileLoaderFactory.createStrequentPhoneOnlyLoader(fragment.getContext()); in onCreateLoader() 393 fragment.setEmptyViewVisibility(adapter.getCount() == 0); in onLoadFinished() 394 FragmentUtils.getParentUnsafe(fragment, HostInterface.class) in onLoadFinished() 404 private final OldSpeedDialFragment fragment; field in OldSpeedDialFragment.ContactTileAdapterListener 406 ContactTileAdapterListener(OldSpeedDialFragment fragment) { in ContactTileAdapterListener() argument 407 this.fragment = fragment; in ContactTileAdapterListener() 413 FragmentUtils.getParentUnsafe(fragment, OnPhoneNumberPickerActionListener.class) in onContactSelected() [all …]
|
D | DialtactsPagerAdapter.java | 114 final Fragment fragment = (Fragment) super.instantiateItem(container, position); in instantiateItem() local 115 if (fragment instanceof OldSpeedDialFragment) { in instantiateItem() 116 oldSpeedDialFragment = (OldSpeedDialFragment) fragment; in instantiateItem() 117 } else if (fragment instanceof CallLogFragment && position == TAB_INDEX_HISTORY) { in instantiateItem() 118 callLogFragment = (CallLogFragment) fragment; in instantiateItem() 119 } else if (fragment instanceof ContactsFragment) { in instantiateItem() 120 contactsFragment = (ContactsFragment) fragment; in instantiateItem() 121 } else if (fragment instanceof CallLogFragment && position == TAB_INDEX_VOICEMAIL) { in instantiateItem() 122 voicemailFragment = (CallLogFragment) fragment; in instantiateItem() 125 fragments.set(position, fragment); in instantiateItem() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
D | ConfirmPasswordFragmentFactory.java | 25 import androidx.fragment.app.Fragment; 45 Fragment fragment; in getFragment() local 53 fragment = new ConfirmLockPatternFragment(); in getFragment() 57 fragment = ConfirmLockPinPasswordFragment.newPinInstance(); in getFragment() 61 fragment = ConfirmLockPinPasswordFragment.newPasswordInstance(); in getFragment() 65 fragment = ConfirmLockPinPasswordFragment.newPasswordInstance(); in getFragment() 68 Bundle bundle = fragment.getArguments(); in getFragment() 73 fragment.setArguments(bundle); in getFragment() 74 return fragment; in getFragment()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | CustomizationPickerActivity.java | 31 import androidx.fragment.app.Fragment; 32 import androidx.fragment.app.FragmentActivity; 33 import androidx.fragment.app.FragmentManager; 93 Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.fragment_container); in onCreate() local 94 if (fragment == null) { in onCreate() 167 Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.fragment_container); in onBackPressed() local 168 if (fragment instanceof BottomActionBarFragment in onBackPressed() 169 && ((BottomActionBarFragment) fragment).onBackPressed()) { in onBackPressed() 182 private void switchFragment(Fragment fragment) { in switchFragment() argument 185 .replace(R.id.fragment_container, fragment) in switchFragment() [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/ |
D | SetupActionHelper.java | 30 public static boolean onActionClick(Fragment fragment, String category, int actionId) { in onActionClick() argument 31 return onActionClick(fragment, category, actionId, null); in onActionClick() 36 Fragment fragment, String category, int actionId, Bundle params) { in onActionClick() argument 37 if (fragment.getActivity() instanceof OnActionClickListener) { in onActionClick() 38 return ((OnActionClickListener) fragment.getActivity()) in onActionClick() 55 Fragment fragment, String category, int actionId, Bundle params) { in createOnClickListenerForAction() argument 56 return new OnActionClickListenerForAction(fragment, category, actionId, params); in createOnClickListenerForAction() 72 Fragment fragment, String category, int actionId, Bundle params) { in OnActionClickListenerForAction() argument 73 mFragment = fragment; in OnActionClickListenerForAction()
|
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
D | DefaultAppPickerFragment.java | 28 import androidx.fragment.app.DialogFragment; 29 import androidx.fragment.app.Fragment; 30 import androidx.fragment.app.FragmentActivity; 63 final DialogFragment fragment = in onRadioButtonClicked() local 65 fragment.show(activity.getSupportFragmentManager(), ConfirmationDialogFragment.TAG); in onRadioButtonClicked() 95 final ConfirmationDialogFragment fragment = new ConfirmationDialogFragment(); in newConfirmationDialogFragment() local 96 fragment.init(this, selectedKey, confirmationMessage); in newConfirmationDialogFragment() 97 return fragment; in newConfirmationDialogFragment() 148 final Fragment fragment = getTargetFragment(); in onClick() local 149 if (fragment instanceof DefaultAppPickerFragment) { in onClick() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/ |
D | SearchFragment.java | 33 import androidx.fragment.app.Fragment; 34 import androidx.fragment.app.FragmentManager; 35 import androidx.fragment.app.FragmentTransaction; 63 final SearchFragment fragment = new SearchFragment(); in showFragment() local 66 fragment.setArguments(args); in showFragment() 69 ft.replace(getFragmentId(), fragment, TAG); in showFragment() local 74 SearchFragment fragment = get(fm); in dismissFragment() local 75 if (fragment != null && fragment.getActivity() != null) { in dismissFragment() 76 fragment.dismiss(); in dismissFragment() 81 final Fragment fragment = fm.findFragmentByTag(TAG); in get() local [all …]
|