/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/ |
D | KeyboardManagementPreferenceControllerTest.java | 319 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/ |
D | BaseCarSettingsActivityTest.java | 88 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 …]
|
D | ConfirmationDialogFragmentTest.java | 79 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()
|
D | SettingsFragmentTest.java | 114 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/ |
D | UsersDialogProvider.java | 59 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()
|
D | UserDetailsBaseFragment.java | 82 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()
|
D | ChooseNewAdminPreferenceController.java | 67 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/ |
D | IndeterminateProgressDialog.java | 70 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/ |
D | ConfirmationDialogFragment.java | 161 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()
|
D | SettingsFragment.java | 254 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/ |
D | DialogTestUtils.java | 34 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/ |
D | WifiWakeupTogglePreferenceController.java | 58 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/ |
D | NotificationAccessPreferenceControllerTest.java | 178 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/ |
D | StartRotationErrorDialogFragment.java | 39 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/ |
D | InstantAppButtonDialogFragment.java | 43 final InstantAppButtonDialogFragment dialogFragment = new InstantAppButtonDialogFragment(); in newInstance() local 46 dialogFragment.setArguments(args); in newInstance() 47 return dialogFragment; in newInstance()
|
D | ButtonActionDialogFragment.java | 65 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/ |
D | KeyboardManagementPreferenceController.java | 91 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/ |
D | InstantAppButtonDialogFragment.java | 43 final InstantAppButtonDialogFragment dialogFragment = new InstantAppButtonDialogFragment(); in newInstance() local 46 dialogFragment.setArguments(args); in newInstance() 47 return dialogFragment; in newInstance()
|
D | ButtonActionDialogFragment.java | 65 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/ |
D | RoamingDialogFragment.java | 44 final RoamingDialogFragment dialogFragment = new RoamingDialogFragment(); in newInstance() local 47 dialogFragment.setArguments(args); in newInstance() 49 return dialogFragment; in newInstance()
|
D | MobileDataDialogFragment.java | 54 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/ |
D | RoamingDialogFragment.java | 44 final RoamingDialogFragment dialogFragment = new RoamingDialogFragment(); in newInstance() local 47 dialogFragment.setArguments(args); in newInstance() 49 return dialogFragment; in newInstance()
|
D | ContactDiscoveryDialogFragment.java | 57 final ContactDiscoveryDialogFragment dialogFragment = new ContactDiscoveryDialogFragment(); in newInstance() local 61 dialogFragment.setArguments(args); in newInstance() 63 return dialogFragment; in newInstance()
|
D | MobileDataDialogFragment.java | 54 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/ |
D | RestrictedAppDetailsTest.java | 167 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()
|