Home
last modified time | relevance | path

Searched refs:dialogFragment (Results 1 – 25 of 67) sorted by relevance

123

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceControllerTest.java319 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded() local
321 dialogFragment.onClick(null, DialogInterface.BUTTON_POSITIVE); in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded()
343 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in performClick_toggleTrue_showSecurityDialog_positive_preferenceChecked() local
345 dialogFragment.onClick(null, DialogInterface.BUTTON_POSITIVE); in performClick_toggleTrue_showSecurityDialog_positive_preferenceChecked()
366 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in performClick_toggleTrue_showSecurityDialog_positive_preferenceEnabled() local
368 dialogFragment.onClick(null, DialogInterface.BUTTON_POSITIVE); in performClick_toggleTrue_showSecurityDialog_positive_preferenceEnabled()
388 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in performClick_toggleTrue_showSecurityDialog_positive_inputMethodEnabled() local
390 dialogFragment.onClick(null, DialogInterface.BUTTON_POSITIVE); in performClick_toggleTrue_showSecurityDialog_positive_inputMethodEnabled()
411 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in performClick_toggleTrue_showSecurityDialog_negative_noOtherPreferenceAdded() local
413 dialogFragment.onClick(null, DialogInterface.BUTTON_NEGATIVE); in performClick_toggleTrue_showSecurityDialog_negative_noOtherPreferenceAdded()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DBaseCarSettingsActivityTest.java88 DialogFragment dialogFragment = new DialogFragment(); in launchFragment_dialogFragment_throwsError() local
91 () -> mActivity.launchFragment(dialogFragment)); in launchFragment_dialogFragment_throwsError()
96 DialogFragment dialogFragment = mock(DialogFragment.class); in showDialog_launchDialogFragment_noTag() local
97 mActivity.showDialog(dialogFragment, /* tag */ null); in showDialog_launchDialogFragment_noTag()
98 verify(dialogFragment).show(mActivity.getSupportFragmentManager(), null); in showDialog_launchDialogFragment_noTag()
103 DialogFragment dialogFragment = mock(DialogFragment.class); in showDialog_launchDialogFragment_withTag() local
104 mActivity.showDialog(dialogFragment, TEST_TAG); in showDialog_launchDialogFragment_withTag()
105 verify(dialogFragment).show(mActivity.getSupportFragmentManager(), TEST_TAG); in showDialog_launchDialogFragment_withTag()
110 DialogFragment dialogFragment = new DialogFragment(); in findDialogByTag_retrieveOriginalDialog() local
111 mActivity.showDialog(dialogFragment, TEST_TAG); in findDialogByTag_retrieveOriginalDialog()
[all …]
DConfirmationDialogFragmentTest.java79 ConfirmationDialogFragment dialogFragment = mDialogFragmentBuilder.build(); in buildDialogFragment_hasTitleAndMessage() local
80 dialogFragment.show(mFragment.getFragmentManager(), ConfirmationDialogFragment.TAG); in buildDialogFragment_hasTitleAndMessage()
89 ConfirmationDialogFragment dialogFragment = mDialogFragmentBuilder.build(); in buildDialogFragment_negativeButtonNotSet_negativeButtonNotVisible() local
90 dialogFragment.show(mFragment.getFragmentManager(), ConfirmationDialogFragment.TAG); in buildDialogFragment_negativeButtonNotSet_negativeButtonNotVisible()
102 ConfirmationDialogFragment dialogFragment = mDialogFragmentBuilder.build(); in buildDialogFragment_positiveButtonNotSet_positiveButtonNotVisible() local
103 dialogFragment.show(mFragment.getFragmentManager(), ConfirmationDialogFragment.TAG); in buildDialogFragment_positiveButtonNotSet_positiveButtonNotVisible()
116 ConfirmationDialogFragment dialogFragment = mDialogFragmentBuilder.build(); in clickPositiveButton_callsCallbackWithArgs() local
117 dialogFragment.show(mFragment.getFragmentManager(), ConfirmationDialogFragment.TAG); in clickPositiveButton_callsCallbackWithArgs()
130 ConfirmationDialogFragment dialogFragment = mDialogFragmentBuilder.build(); in clickNegativeButton_callsCallbackWithArgs() local
131 dialogFragment.show(mFragment.getFragmentManager(), ConfirmationDialogFragment.TAG); in clickNegativeButton_callsCallbackWithArgs()
DSettingsFragmentTest.java114 DialogFragment dialogFragment = new DialogFragment(); in launchFragment_dialogFragment_throwsError() local
116 () -> mFragment.launchFragment(dialogFragment)); in launchFragment_dialogFragment_throwsError()
122 DialogFragment dialogFragment = mock(DialogFragment.class); in showDialog_noTag_launchesDialogFragment() local
123 mFragment.showDialog(dialogFragment, /* tag */ null); in showDialog_noTag_launchesDialogFragment()
124 verify(dialogFragment).show(mFragment.getFragmentManager(), null); in showDialog_noTag_launchesDialogFragment()
130 DialogFragment dialogFragment = mock(DialogFragment.class); in showDialog_withTag_launchesDialogFragment() local
131 mFragment.showDialog(dialogFragment, TEST_TAG); in showDialog_withTag_launchesDialogFragment()
132 verify(dialogFragment).show(mFragment.getFragmentManager(), TEST_TAG); in showDialog_withTag_launchesDialogFragment()
138 DialogFragment dialogFragment = new DialogFragment(); in findDialogByTag_retrieveOriginalDialog_returnsDialog() local
139 mFragment.showDialog(dialogFragment, TEST_TAG); in findDialogByTag_retrieveOriginalDialog_returnsDialog()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUsersDialogProvider.java59 ConfirmationDialogFragment dialogFragment = new ConfirmationDialogFragment.Builder(context) in getConfirmCreateNewUserDialogFragment() local
66 return dialogFragment; in getConfirmCreateNewUserDialogFragment()
80 ConfirmationDialogFragment dialogFragment = new ConfirmationDialogFragment.Builder(context) in getConfirmGrantAdminDialogFragment() local
88 return dialogFragment; in getConfirmGrantAdminDialogFragment()
104 ConfirmationDialogFragment dialogFragment = new ConfirmationDialogFragment.Builder(context) in getConfirmRemoveLastUserDialogFragment() local
112 return dialogFragment; in getConfirmRemoveLastUserDialogFragment()
124 ConfirmationDialogFragment dialogFragment = new ConfirmationDialogFragment.Builder(context) in getConfirmRemoveLastAdminDialogFragment() local
132 return dialogFragment; in getConfirmRemoveLastAdminDialogFragment()
143 ConfirmationDialogFragment dialogFragment = new ConfirmationDialogFragment.Builder(context) in getConfirmRemoveUserDialogFragment() local
151 return dialogFragment; in getConfirmRemoveUserDialogFragment()
DUserDetailsBaseFragment.java82 ConfirmationDialogFragment dialogFragment = in onCreate() local
84 ConfirmationDialogFragment.resetListeners(dialogFragment, in onCreate()
129 ConfirmationDialogFragment dialogFragment; in showConfirmRemoveUserDialog() local
132 dialogFragment = UsersDialogProvider.getConfirmRemoveLastUserDialogFragment( in showConfirmRemoveUserDialog()
135 dialogFragment = UsersDialogProvider.getConfirmRemoveLastAdminDialogFragment( in showConfirmRemoveUserDialog()
138 dialogFragment = UsersDialogProvider.getConfirmRemoveUserDialogFragment(getContext(), in showConfirmRemoveUserDialog()
142 dialogFragment.show(getFragmentManager(), ConfirmationDialogFragment.TAG); in showConfirmRemoveUserDialog()
DChooseNewAdminPreferenceController.java67 ConfirmationDialogFragment dialogFragment = in onCreateInternal() local
71 ConfirmationDialogFragment.resetListeners(dialogFragment, in onCreateInternal()
78 ConfirmationDialogFragment dialogFragment = in userClicked() local
82 getFragmentController().showDialog(dialogFragment, ConfirmationDialogFragment.TAG); in userClicked()
/packages/apps/Contacts/src/com/android/contacts/dialog/
DIndeterminateProgressDialog.java70 IndeterminateProgressDialog dialogFragment = new IndeterminateProgressDialog(); in show() local
71 dialogFragment.mTitle = title; in show()
72 dialogFragment.mMessage = message; in show()
73 dialogFragment.mMinDisplayTime = minDisplayTime; in show()
74 dialogFragment.show(fragmentManager, TAG); in show()
75 dialogFragment.mShowTime = System.currentTimeMillis(); in show()
76 dialogFragment.setCancelable(false); in show()
78 return dialogFragment; in show()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DConfirmationDialogFragment.java161 ConfirmationDialogFragment dialogFragment = new ConfirmationDialogFragment(); in init() local
168 dialogFragment.setArguments(args); in init()
169 dialogFragment.setConfirmListener(builder.mConfirmListener); in init()
170 dialogFragment.setRejectListener(builder.mRejectListener); in init()
171 return dialogFragment; in init()
178 public static void resetListeners(@Nullable ConfirmationDialogFragment dialogFragment, in resetListeners() argument
180 if (dialogFragment != null) { in resetListeners()
181 dialogFragment.setConfirmListener(confirmListener); in resetListeners()
182 dialogFragment.setRejectListener(rejectListener); in resetListeners()
DSettingsFragment.java254 DialogFragment dialogFragment = preference instanceof PasswordEditTextPreference in onDisplayPreferenceDialog() local
258 dialogFragment.setTargetFragment(/* fragment= */ this, /* requestCode= */ 0); in onDisplayPreferenceDialog()
259 showDialog(dialogFragment, DIALOG_FRAGMENT_TAG); in onDisplayPreferenceDialog()
281 public void showDialog(DialogFragment dialogFragment, @Nullable String tag) { in showDialog() argument
282 dialogFragment.show(getFragmentManager(), tag); in showDialog()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DDialogTestUtils.java34 public static void clickPositiveButton(DialogFragment dialogFragment) { in clickPositiveButton() argument
35 Button positiveButton = dialogFragment.getDialog().getWindow().findViewById( in clickPositiveButton()
43 public static void clickNegativeButton(DialogFragment dialogFragment) { in clickNegativeButton() argument
44 Button negativeButton = dialogFragment.getDialog().getWindow().findViewById( in clickNegativeButton()
52 public static String getTitle(DialogFragment dialogFragment) { in getTitle() argument
53 TextView titleView = dialogFragment.getDialog().getWindow().findViewById( in getTitle()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/preferences/
DWifiWakeupTogglePreferenceController.java58 ConfirmEnableWifiScanningDialogFragment dialogFragment = in onCreateInternal() local
61 if (dialogFragment != null) { in onCreateInternal()
62 dialogFragment.setWifiScanningEnabledListener(this); in onCreateInternal()
137 ConfirmEnableWifiScanningDialogFragment dialogFragment = in showScanningDialog() local
139 dialogFragment.setWifiScanningEnabledListener(this); in showScanningDialog()
140 getFragmentController().showDialog(dialogFragment, in showScanningDialog()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceControllerTest.java178 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in revokeConfirmed_revokesNotificationAccess() local
180 dialogFragment.onClick(/* dialog= */ null, DialogInterface.BUTTON_POSITIVE); in revokeConfirmed_revokesNotificationAccess()
201 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules() local
209 dialogFragment.onClick(/* dialog= */ null, DialogInterface.BUTTON_POSITIVE); in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules()
232 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in grantConfirmed_grantsNotificationAccess() local
234 dialogFragment.onClick(/* dialog= */ null, DialogInterface.BUTTON_POSITIVE); in grantConfirmed_grantsNotificationAccess()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DStartRotationErrorDialogFragment.java39 StartRotationErrorDialogFragment dialogFragment = new StartRotationErrorDialogFragment(); in newInstance() local
42 dialogFragment.setArguments(args); in newInstance()
43 return dialogFragment; in newInstance()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DInstantAppButtonDialogFragment.java43 final InstantAppButtonDialogFragment dialogFragment = new InstantAppButtonDialogFragment(); in newInstance() local
46 dialogFragment.setArguments(args); in newInstance()
47 return dialogFragment; in newInstance()
DButtonActionDialogFragment.java65 ButtonActionDialogFragment dialogFragment = new ButtonActionDialogFragment(); in newInstance() local
68 dialogFragment.setArguments(args); in newInstance()
70 return dialogFragment; in newInstance()
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceController.java91 ConfirmationDialogFragment dialogFragment = (ConfirmationDialogFragment) in onCreateInternal() local
93 ConfirmationDialogFragment.resetListeners(dialogFragment, in onCreateInternal()
97 dialogFragment = (ConfirmationDialogFragment) getFragmentController() in onCreateInternal()
99 ConfirmationDialogFragment.resetListeners(dialogFragment, in onCreateInternal()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DInstantAppButtonDialogFragment.java43 final InstantAppButtonDialogFragment dialogFragment = new InstantAppButtonDialogFragment(); in newInstance() local
46 dialogFragment.setArguments(args); in newInstance()
47 return dialogFragment; in newInstance()
DButtonActionDialogFragment.java65 ButtonActionDialogFragment dialogFragment = new ButtonActionDialogFragment(); in newInstance() local
68 dialogFragment.setArguments(args); in newInstance()
70 return dialogFragment; in newInstance()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DRoamingDialogFragment.java44 final RoamingDialogFragment dialogFragment = new RoamingDialogFragment(); in newInstance() local
47 dialogFragment.setArguments(args); in newInstance()
49 return dialogFragment; in newInstance()
DMobileDataDialogFragment.java54 final MobileDataDialogFragment dialogFragment = new MobileDataDialogFragment(); in newInstance() local
59 dialogFragment.setArguments(args); in newInstance()
61 return dialogFragment; in newInstance()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DRoamingDialogFragment.java44 final RoamingDialogFragment dialogFragment = new RoamingDialogFragment(); in newInstance() local
47 dialogFragment.setArguments(args); in newInstance()
49 return dialogFragment; in newInstance()
DContactDiscoveryDialogFragment.java57 final ContactDiscoveryDialogFragment dialogFragment = new ContactDiscoveryDialogFragment(); in newInstance() local
61 dialogFragment.setArguments(args); in newInstance()
63 return dialogFragment; in newInstance()
DMobileDataDialogFragment.java54 final MobileDataDialogFragment dialogFragment = new MobileDataDialogFragment(); in newInstance() local
59 dialogFragment.setArguments(args); in newInstance()
61 return dialogFragment; in newInstance()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictedAppDetailsTest.java167 final BatteryTipDialogFragment dialogFragment = mRestrictedAppDetails.createDialogFragment( in createDialogFragment_toRestrict_createRestrictDialog() local
170 FragmentController.setupFragment(dialogFragment, FragmentActivity.class, in createDialogFragment_toRestrict_createRestrictDialog()
180 final BatteryTipDialogFragment dialogFragment = mRestrictedAppDetails.createDialogFragment( in createDialogFragment_toUnrestrict_createUnrestrictDialog() local
183 FragmentController.setupFragment(dialogFragment, FragmentActivity.class, in createDialogFragment_toUnrestrict_createUnrestrictDialog()

123