Home
last modified time | relevance | path

Searched refs:ConfirmationDialogFragment (Results 1 – 25 of 45) sorted by relevance

12

/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUsersDialogProvider.java25 import com.android.car.settings.common.ConfirmationDialogFragment;
50 public static ConfirmationDialogFragment getConfirmCreateNewUserDialogFragment(Context context, in getConfirmCreateNewUserDialogFragment()
51 @Nullable ConfirmationDialogFragment.ConfirmListener confirmListener, in getConfirmCreateNewUserDialogFragment()
52 @Nullable ConfirmationDialogFragment.RejectListener rejectListener) { in getConfirmCreateNewUserDialogFragment()
59 ConfirmationDialogFragment dialogFragment = new ConfirmationDialogFragment.Builder(context) in getConfirmCreateNewUserDialogFragment()
70 public static ConfirmationDialogFragment getConfirmExitRetailModeDialogFragment(Context context, in getConfirmExitRetailModeDialogFragment()
71 @Nullable ConfirmationDialogFragment.ConfirmListener confirmListener, in getConfirmExitRetailModeDialogFragment()
72 @Nullable ConfirmationDialogFragment.RejectListener rejectListener) { in getConfirmExitRetailModeDialogFragment()
73 return new ConfirmationDialogFragment.Builder(context) in getConfirmExitRetailModeDialogFragment()
86 public static ConfirmationDialogFragment getMaxUsersLimitReachedDialogFragment(Context context, in getMaxUsersLimitReachedDialogFragment()
[all …]
DMakeAdminPreferenceController.java27 import com.android.car.settings.common.ConfirmationDialogFragment;
35 final ConfirmationDialogFragment.ConfirmListener mConfirmListener =
58 ConfirmationDialogFragment dialog = in onCreateInternal()
59 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal()
60 ConfirmationDialogFragment.TAG); in onCreateInternal()
62 ConfirmationDialogFragment.resetListeners( in onCreateInternal()
73 ConfirmationDialogFragment dialogFragment = in updateState()
77 getFragmentController().showDialog(dialogFragment, ConfirmationDialogFragment.TAG); in updateState()
DChooseNewAdminPreferenceController.java26 import com.android.car.settings.common.ConfirmationDialogFragment;
36 private final ConfirmationDialogFragment.ConfirmListener mConfirmListener = arguments -> {
67 ConfirmationDialogFragment dialogFragment = in onCreateInternal()
68 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal()
69 ConfirmationDialogFragment.TAG); in onCreateInternal()
71 ConfirmationDialogFragment.resetListeners( in onCreateInternal()
80 ConfirmationDialogFragment dialogFragment = in userClicked()
83 getFragmentController().showDialog(dialogFragment, ConfirmationDialogFragment.TAG); in userClicked()
DUsersListFragment.java33 import com.android.car.settings.common.ConfirmationDialogFragment;
76 final ConfirmationDialogFragment.ConfirmListener mConfirmCreateNewUserListener = arguments -> {
89 final ConfirmationDialogFragment.ConfirmListener mConfirmExitRetailModeListener = arguments -> {
123 ConfirmationDialogFragment.resetListeners( in onCreate()
124 (ConfirmationDialogFragment) findDialogByTag(CONFIRM_CREATE_NEW_USER_DIALOG_TAG), in onCreate()
128 ConfirmationDialogFragment.resetListeners( in onCreate()
129 (ConfirmationDialogFragment) findDialogByTag(CONFIRM_EXIT_RETAIL_MODE_DIALOG_TAG), in onCreate()
197 ConfirmationDialogFragment dialogFragment = in handleAddUserClicked()
208 ConfirmationDialogFragment dialogFragment = in handleAddUserClicked()
218 ConfirmationDialogFragment dialogFragment = in handleAddUserClicked()
DUserDetailsBaseFragment.java27 import com.android.car.settings.common.ConfirmationDialogFragment;
41 private final ConfirmationDialogFragment.ConfirmListener mConfirmListener = arguments -> {
82 ConfirmationDialogFragment dialogFragment = in onCreate()
83 (ConfirmationDialogFragment) findDialogByTag(ConfirmationDialogFragment.TAG); in onCreate()
84 ConfirmationDialogFragment.resetListeners( in onCreate()
128 ConfirmationDialogFragment dialogFragment; in showConfirmRemoveUserDialog()
141 dialogFragment.show(getFragmentManager(), ConfirmationDialogFragment.TAG); in showConfirmRemoveUserDialog()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceControllerTest.java40 import com.android.car.settings.common.ConfirmationDialogFragment;
312 any(ConfirmationDialogFragment.class), in performClick_toggleTrue_securityDialogShown()
327 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded()
328 ConfirmationDialogFragment.class); in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded()
331 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded()
351 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in performClick_toggleTrue_showSecurityDialog_positive_preferenceChecked()
352 ConfirmationDialogFragment.class); in performClick_toggleTrue_showSecurityDialog_positive_preferenceChecked()
355 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in performClick_toggleTrue_showSecurityDialog_positive_preferenceChecked()
374 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in performClick_toggleTrue_showSecurityDialog_positive_preferenceEnabled()
375 ConfirmationDialogFragment.class); in performClick_toggleTrue_showSecurityDialog_positive_preferenceEnabled()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DConfirmationDialogFragmentTest.java53 private ConfirmationDialogFragment.Builder mDialogFragmentBuilder;
56 private ConfirmationDialogFragment.ConfirmListener mConfirmListener;
58 private ConfirmationDialogFragment.RejectListener mRejectListener;
60 private ConfirmationDialogFragment.DismissListener mDismissListener;
66 mDialogFragmentBuilder = new ConfirmationDialogFragment.Builder( in setUp()
80 ConfirmationDialogFragment dialogFragment = mDialogFragmentBuilder.build(); in buildDialogFragment_hasTitleAndMessage()
81 dialogFragment.show(mFragment.getFragmentManager(), ConfirmationDialogFragment.TAG); in buildDialogFragment_hasTitleAndMessage()
91 ConfirmationDialogFragment dialogFragment = mDialogFragmentBuilder.build(); in buildDialogFragment_positiveButtonSet_negativeAndNeutralButtonNotVisible()
92 dialogFragment.show(mFragment.getFragmentManager(), ConfirmationDialogFragment.TAG); in buildDialogFragment_positiveButtonSet_negativeAndNeutralButtonNotVisible()
106 ConfirmationDialogFragment dialogFragment = mDialogFragmentBuilder.build(); in buildDialogFragment_negativeButtonSet_positiveAndNeutralButtonNotVisible()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileDataTogglePreferenceController.java34 import com.android.car.settings.common.ConfirmationDialogFragment;
47 static final String DISABLE_DIALOG_TAG = ConfirmationDialogFragment.TAG + "_DisableData";
50 ConfirmationDialogFragment.TAG + "_EnableMultisim";
65 private final ConfirmationDialogFragment.ConfirmListener mConfirmDisableListener =
68 private final ConfirmationDialogFragment.ConfirmListener mConfirmMultiSimListener =
71 private final ConfirmationDialogFragment.RejectListener mRejectRefreshListener =
99 ConfirmationDialogFragment.resetListeners( in onCreateInternal()
100 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal()
106 ConfirmationDialogFragment.resetListeners( in onCreateInternal()
107 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal()
[all …]
DRoamingPreferenceController.java34 import com.android.car.settings.common.ConfirmationDialogFragment;
48 private final ConfirmationDialogFragment.ConfirmListener mConfirmListener =
75 ConfirmationDialogFragment.resetListeners( in onStartInternal()
76 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onStartInternal()
77 ConfirmationDialogFragment.TAG), in onStartInternal()
100 ConfirmationDialogFragment.TAG); in handlePreferenceChanged()
131 private ConfirmationDialogFragment getRoamingAlertDialog() { in getRoamingAlertDialog()
132 return new ConfirmationDialogFragment.Builder(getContext()) in getRoamingAlertDialog()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceController.java38 import com.android.car.settings.common.ConfirmationDialogFragment;
70 private final ConfirmationDialogFragment.ConfirmListener mGrantConfirmListener = arguments -> {
74 private final ConfirmationDialogFragment.ConfirmListener mRevokeConfirmListener =
101 ConfirmationDialogFragment grantConfirmDialogFragment = in onCreateInternal()
102 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal()
104 ConfirmationDialogFragment.resetListeners( in onCreateInternal()
110 ConfirmationDialogFragment revokeConfirmDialogFragment = in onCreateInternal()
111 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal()
113 ConfirmationDialogFragment.resetListeners( in onCreateInternal()
194 ConfirmationDialogFragment.Builder dialogFragment = in promptUserToConfirmChange()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/preferences/
DWifiWakeupTogglePreferenceController.java37 import com.android.car.settings.common.ConfirmationDialogFragment;
52 final ConfirmationDialogFragment.ConfirmListener mConfirmListener = arguments -> {
60 private final ConfirmationDialogFragment.NeutralListener mNeutralListener = arguments -> {
87 ConfirmationDialogFragment dialog = in onCreateInternal()
88 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal()
89 ConfirmationDialogFragment.TAG); in onCreateInternal()
90 ConfirmationDialogFragment.resetListeners( in onCreateInternal()
166 ConfirmationDialogFragment dialogFragment = in showScanningDialog()
169 dialogFragment, ConfirmationDialogFragment.TAG); in showScanningDialog()
172 private ConfirmationDialogFragment getConfirmEnableWifiScanningDialogFragment() { in getConfirmEnableWifiScanningDialogFragment()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceController.java31 import com.android.car.settings.common.ConfirmationDialogFragment;
52 private final ConfirmationDialogFragment.ConfirmListener mDirectBootWarnConfirmListener =
59 private final ConfirmationDialogFragment.RejectListener mRejectListener = args ->
61 private final ConfirmationDialogFragment.ConfirmListener mSecurityWarnDialogConfirmListener =
90 ConfirmationDialogFragment dialogFragment = (ConfirmationDialogFragment) in onCreateInternal()
92 ConfirmationDialogFragment.resetListeners(dialogFragment, in onCreateInternal()
97 dialogFragment = (ConfirmationDialogFragment) getFragmentController() in onCreateInternal()
99 ConfirmationDialogFragment.resetListeners(dialogFragment, in onCreateInternal()
220 ConfirmationDialogFragment dialog = new ConfirmationDialogFragment.Builder(getContext()) in showDirectBootWarnDialog()
233 ConfirmationDialogFragment dialog = new ConfirmationDialogFragment.Builder(getContext()) in showSecurityWarnDialog()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DMobileDataTogglePreferenceControllerTest.java37 import com.android.car.settings.common.ConfirmationDialogFragment;
162 any(ConfirmationDialogFragment.class), in handlePreferenceChanged_setFalse_isSingleSim_opensDialog()
241 any(ConfirmationDialogFragment.class), in handlePreferenceChanged_setTrue_isMultiSim_otherSimActive_opensDialog()
252 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in disableSingleSimDialog_onConfirm_disablesData()
253 ConfirmationDialogFragment.class); in disableSingleSimDialog_onConfirm_disablesData()
258 ConfirmationDialogFragment dialog = dialogCaptor.getValue(); in disableSingleSimDialog_onConfirm_disablesData()
273 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in disableSingleSimDialog_onConfirm_setsUnchecked()
274 ConfirmationDialogFragment.class); in disableSingleSimDialog_onConfirm_setsUnchecked()
279 ConfirmationDialogFragment dialog = dialogCaptor.getValue(); in disableSingleSimDialog_onConfirm_setsUnchecked()
297 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in enableMutliSimDialog_onConfirm_enablesData()
[all …]
DRoamingPreferenceControllerTest.java38 import com.android.car.settings.common.ConfirmationDialogFragment;
175 any(ConfirmationDialogFragment.class), eq(ConfirmationDialogFragment.TAG)); in callChangeListener_toggleTrue_needsDialog_showDialog()
189 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in confirmDialog_turnOnRoaming()
190 ConfirmationDialogFragment.class); in confirmDialog_turnOnRoaming()
192 dialogCaptor.capture(), eq(ConfirmationDialogFragment.TAG)); in confirmDialog_turnOnRoaming()
195 ConfirmationDialogFragment dialog = dialogCaptor.getValue(); in confirmDialog_turnOnRoaming()
228 private AlertDialog showDialog(ConfirmationDialogFragment dialog) { in showDialog()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountAutoSyncPreferenceController.java27 import com.android.car.settings.common.ConfirmationDialogFragment;
50 final ConfirmationDialogFragment.ConfirmListener mConfirmListener = arguments -> {
77 ConfirmationDialogFragment dialog = in onCreateInternal()
78 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal()
79 ConfirmationDialogFragment.TAG); in onCreateInternal()
81 ConfirmationDialogFragment.resetListeners( in onCreateInternal()
92 ConfirmationDialogFragment.TAG); in handlePreferenceChanged()
98 private ConfirmationDialogFragment getAutoSyncChangeConfirmationDialogFragment( in getAutoSyncChangeConfirmationDialogFragment()
111 ConfirmationDialogFragment dialogFragment = in getAutoSyncChangeConfirmationDialogFragment()
112 new ConfirmationDialogFragment.Builder(getContext()) in getAutoSyncChangeConfirmationDialogFragment()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DNoLockPreferenceController.java29 import com.android.car.settings.common.ConfirmationDialogFragment;
41 final ConfirmationDialogFragment.ConfirmListener mConfirmListener = arguments -> {
61 ConfirmationDialogFragment dialog = in onCreateInternal()
62 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal()
63 ConfirmationDialogFragment.TAG); in onCreateInternal()
64 ConfirmationDialogFragment.resetListeners( in onCreateInternal()
80 ConfirmationDialogFragment.TAG); in handlePreferenceClicked()
97 private ConfirmationDialogFragment getConfirmRemoveScreenLockDialogFragment() { in getConfirmRemoveScreenLockDialogFragment()
98 return new ConfirmationDialogFragment.Builder(getContext()) in getConfirmRemoveScreenLockDialogFragment()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceControllerTest.java43 import com.android.car.settings.common.ConfirmationDialogFragment;
144 ConfirmationDialogFragment.class), in preferenceClicked_serviceAccessGranted_showsRevokeConfirmDialog()
159 ConfirmationDialogFragment.class), in preferenceClicked_serviceAccessNotGranted_showsGrantConfirmDialog()
174 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in revokeConfirmed_revokesNotificationAccess()
175 ConfirmationDialogFragment.class); in revokeConfirmed_revokesNotificationAccess()
178 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in revokeConfirmed_revokesNotificationAccess()
197 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules()
198 ConfirmationDialogFragment.class); in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules()
201 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules()
228 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in grantConfirmed_grantsNotificationAccess()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationDetailsFragment.java47 import com.android.car.settings.common.ConfirmationDialogFragment;
161 ConfirmationDialogFragment.resetListeners( in onCreate()
162 (ConfirmationDialogFragment) findDialogByTag(DISABLE_CONFIRM_DIALOG_TAG), in onCreate()
166 ConfirmationDialogFragment.resetListeners( in onCreate()
167 (ConfirmationDialogFragment) findDialogByTag(FORCE_STOP_CONFIRM_DIALOG_TAG), in onCreate()
400 private final ConfirmationDialogFragment.ConfirmListener mForceStopConfirmListener =
401 new ConfirmationDialogFragment.ConfirmListener() {
414 ConfirmationDialogFragment dialogFragment =
415 new ConfirmationDialogFragment.Builder(getContext())
434 private final ConfirmationDialogFragment.ConfirmListener mDisableConfirmListener =
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataLimitPreferenceController.java33 import com.android.car.settings.common.ConfirmationDialogFragment;
40 Preference.OnPreferenceChangeListener, ConfirmationDialogFragment.ConfirmListener,
74 ConfirmationDialogFragment.resetListeners( in onCreateInternal()
75 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal()
76 ConfirmationDialogFragment.TAG), in onCreateInternal()
113 ConfirmationDialogFragment dialogFragment = in onPreferenceChange()
114 new ConfirmationDialogFragment.Builder(getContext()) in onPreferenceChange()
120 getFragmentController().showDialog(dialogFragment, ConfirmationDialogFragment.TAG); in onPreferenceChange()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DAppStorageSettingsDetailsFragment.java36 import com.android.car.settings.common.ConfirmationDialogFragment;
110 private final ConfirmationDialogFragment.ConfirmListener mConfirmClearStorageDialog =
114 private final ConfirmationDialogFragment.ConfirmListener mConfirmCannotClearStorageDialog =
194 ConfirmationDialogFragment.resetListeners( in onCreate()
195 (ConfirmationDialogFragment) findDialogByTag(CONFIRM_CLEAR_STORAGE_DIALOG_TAG), in onCreate()
199 ConfirmationDialogFragment.resetListeners( in onCreate()
200 (ConfirmationDialogFragment) findDialogByTag( in onCreate()
323 ConfirmationDialogFragment confirmClearStorageDialog = in showClearDataDialog()
324 new ConfirmationDialogFragment.Builder(getContext()) in showClearDataDialog()
334 ConfirmationDialogFragment dialogFragment = in showCannotClearDataDialog()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAppsPickerBasePreferenceController.java28 import com.android.car.settings.common.ConfirmationDialogFragment;
49 private final ConfirmationDialogFragment.ConfirmListener mConfirmListener = arguments -> {
61 ConfirmationDialogFragment.resetListeners( in onCreateInternal()
62 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal()
63 ConfirmationDialogFragment.TAG), in onCreateInternal()
99 ConfirmationDialogFragment dialogFragment = in handleGroupItemSelected()
100 new ConfirmationDialogFragment.Builder(getContext()) in handleGroupItemSelected()
106 getFragmentController().showDialog(dialogFragment, ConfirmationDialogFragment.TAG); in handleGroupItemSelected()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiRequestToggleActivity.java35 import com.android.car.settings.common.ConfirmationDialogFragment;
67 private ConfirmationDialogFragment mDialog;
72 final ConfirmationDialogFragment.ConfirmListener mConfirmListener = arguments -> {
91 final ConfirmationDialogFragment.RejectListener mRejectListener = arguments -> {
96 final ConfirmationDialogFragment.DismissListener mDismissListener = arguments -> {
189 ConfirmationDialogFragment.Builder builder = in updateUi()
190 new ConfirmationDialogFragment.Builder(/* context= */ this).setDismissListener( in updateUi()
214 mDialog.show(getSupportFragmentManager(), ConfirmationDialogFragment.TAG); in updateUi()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountAutoSyncPreferenceControllerTest.java35 import com.android.car.settings.common.ConfirmationDialogFragment;
57 private ConfirmationDialogFragment mDialog;
68 mDialog = new ConfirmationDialogFragment.Builder(context).build(); in setUp()
74 ConfirmationDialogFragment.TAG)).thenReturn(mDialog); in testOnCreate_hasPreviousDialog_dialogListenerSet()
105 any(ConfirmationDialogFragment.class), eq(ConfirmationDialogFragment.TAG)); in onPreferenceClicked_shouldOpenDialog()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DMakeAdminPreferenceControllerTest.java34 import com.android.car.settings.common.ConfirmationDialogFragment;
60 private ConfirmationDialogFragment mDialog;
77 mDialog = new ConfirmationDialogFragment.Builder(context).build(); in setUp()
88 ConfirmationDialogFragment.TAG)).thenReturn(mDialog); in testOnCreate_hasPreviousDialog_dialogListenerSet()
99 any(ConfirmationDialogFragment.class), in testOnButtonClick_showsDialog()
100 matches(ConfirmationDialogFragment.TAG)); in testOnButtonClick_showsDialog()
DChooseNewAdminPreferenceControllerTest.java34 import com.android.car.settings.common.ConfirmationDialogFragment;
66 private ConfirmationDialogFragment mDialog;
83 mDialog = new ConfirmationDialogFragment.Builder(mContext).build(); in setUp()
95 ConfirmationDialogFragment.TAG)).thenReturn(mDialog); in testOnCreate_hasPreviousDialog_dialogListenerSet()
114 any(ConfirmationDialogFragment.class), in testUserClicked_opensDialog()
115 eq(ConfirmationDialogFragment.TAG)); in testUserClicked_opensDialog()

12