/packages/apps/Car/Settings/src/com/android/car/settings/users/ |
D | UsersDialogProvider.java | 25 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 getConfirmGrantAdminDialogFragment(Context context, in getConfirmGrantAdminDialogFragment() 71 @Nullable ConfirmationDialogFragment.ConfirmListener confirmListener, in getConfirmGrantAdminDialogFragment() 72 @Nullable ConfirmationDialogFragment.RejectListener rejectListener, in getConfirmGrantAdminDialogFragment() 80 ConfirmationDialogFragment dialogFragment = new ConfirmationDialogFragment.Builder(context) in getConfirmGrantAdminDialogFragment() 95 public static ConfirmationDialogFragment getConfirmRemoveLastUserDialogFragment(Context context, in getConfirmRemoveLastUserDialogFragment() [all …]
|
D | MakeAdminPreferenceController.java | 27 import com.android.car.settings.common.ConfirmationDialogFragment; 35 final ConfirmationDialogFragment.ConfirmListener mConfirmListener = 57 ConfirmationDialogFragment dialog = in onCreateInternal() 58 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal() 59 ConfirmationDialogFragment.TAG); in onCreateInternal() 61 ConfirmationDialogFragment.resetListeners(dialog, mConfirmListener, /* rejectListener= */ in onCreateInternal() 69 ConfirmationDialogFragment dialogFragment = in updateState() 73 getFragmentController().showDialog(dialogFragment, ConfirmationDialogFragment.TAG); in updateState()
|
D | ChooseNewAdminPreferenceController.java | 26 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(dialogFragment, in onCreateInternal() 78 ConfirmationDialogFragment dialogFragment = in userClicked() 82 getFragmentController().showDialog(dialogFragment, ConfirmationDialogFragment.TAG); in userClicked()
|
D | UserDetailsBaseFragment.java | 26 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(dialogFragment, in onCreate() 129 ConfirmationDialogFragment dialogFragment; in showConfirmRemoveUserDialog() 142 dialogFragment.show(getFragmentManager(), ConfirmationDialogFragment.TAG); in showConfirmRemoveUserDialog()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/ |
D | KeyboardManagementPreferenceControllerTest.java | 41 import com.android.car.settings.common.ConfirmationDialogFragment; 300 any(ConfirmationDialogFragment.class), in performClick_toggleTrue_securityDialogShown() 315 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded() 316 ConfirmationDialogFragment.class); in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded() 319 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded() 339 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in performClick_toggleTrue_showSecurityDialog_positive_preferenceChecked() 340 ConfirmationDialogFragment.class); in performClick_toggleTrue_showSecurityDialog_positive_preferenceChecked() 343 ConfirmationDialogFragment dialogFragment = dialogCaptor.getValue(); in performClick_toggleTrue_showSecurityDialog_positive_preferenceChecked() 362 ArgumentCaptor<ConfirmationDialogFragment> dialogCaptor = ArgumentCaptor.forClass( in performClick_toggleTrue_showSecurityDialog_positive_preferenceEnabled() 363 ConfirmationDialogFragment.class); in performClick_toggleTrue_showSecurityDialog_positive_preferenceEnabled() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | ConfirmationDialogFragmentTest.java | 54 private ConfirmationDialogFragment.Builder mDialogFragmentBuilder; 57 private ConfirmationDialogFragment.ConfirmListener mConfirmListener; 59 private ConfirmationDialogFragment.RejectListener mRejectListener; 65 mDialogFragmentBuilder = new ConfirmationDialogFragment.Builder( in setUp() 79 ConfirmationDialogFragment dialogFragment = mDialogFragmentBuilder.build(); in buildDialogFragment_hasTitleAndMessage() 80 dialogFragment.show(mFragment.getFragmentManager(), ConfirmationDialogFragment.TAG); in buildDialogFragment_hasTitleAndMessage() 89 ConfirmationDialogFragment dialogFragment = mDialogFragmentBuilder.build(); in buildDialogFragment_negativeButtonNotSet_negativeButtonNotVisible() 90 dialogFragment.show(mFragment.getFragmentManager(), ConfirmationDialogFragment.TAG); in buildDialogFragment_negativeButtonNotSet_negativeButtonNotVisible() 102 ConfirmationDialogFragment dialogFragment = mDialogFragmentBuilder.build(); in buildDialogFragment_positiveButtonNotSet_positiveButtonNotVisible() 103 dialogFragment.show(mFragment.getFragmentManager(), ConfirmationDialogFragment.TAG); in buildDialogFragment_positiveButtonNotSet_positiveButtonNotVisible() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | MobileDataTogglePreferenceController.java | 34 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() 103 ConfirmationDialogFragment.resetListeners( in onCreateInternal() 104 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal() [all …]
|
D | RoamingPreferenceController.java | 34 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() 99 ConfirmationDialogFragment.TAG); in handlePreferenceChanged() 130 private ConfirmationDialogFragment getRoamingAlertDialog() { in getRoamingAlertDialog() 131 return new ConfirmationDialogFragment.Builder(getContext()) in getRoamingAlertDialog()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/ |
D | NotificationAccessPreferenceController.java | 39 import com.android.car.settings.common.ConfirmationDialogFragment; 72 private final ConfirmationDialogFragment.ConfirmListener mGrantConfirmListener = arguments -> { 76 private final ConfirmationDialogFragment.ConfirmListener mRevokeConfirmListener = 104 ConfirmationDialogFragment grantConfirmDialogFragment = in onCreateInternal() 105 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal() 107 ConfirmationDialogFragment.resetListeners(grantConfirmDialogFragment, in onCreateInternal() 110 ConfirmationDialogFragment revokeConfirmDialogFragment = in onCreateInternal() 111 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal() 113 ConfirmationDialogFragment.resetListeners(revokeConfirmDialogFragment, in onCreateInternal() 191 ConfirmationDialogFragment.Builder dialogFragment = in promptUserToConfirmChange() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/ |
D | KeyboardManagementPreferenceController.java | 32 import com.android.car.settings.common.ConfirmationDialogFragment; 53 private final ConfirmationDialogFragment.ConfirmListener mDirectBootWarnConfirmListener = 60 private final ConfirmationDialogFragment.RejectListener mRejectListener = args -> 62 private final ConfirmationDialogFragment.ConfirmListener mSecurityWarnDialogConfirmListener = 91 ConfirmationDialogFragment dialogFragment = (ConfirmationDialogFragment) in onCreateInternal() 93 ConfirmationDialogFragment.resetListeners(dialogFragment, in onCreateInternal() 97 dialogFragment = (ConfirmationDialogFragment) getFragmentController() in onCreateInternal() 99 ConfirmationDialogFragment.resetListeners(dialogFragment, in onCreateInternal() 209 ConfirmationDialogFragment dialog = new ConfirmationDialogFragment.Builder(getContext()) in showDirectBootWarnDialog() 222 ConfirmationDialogFragment dialog = new ConfirmationDialogFragment.Builder(getContext()) in showSecurityWarnDialog()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/ |
D | MobileDataTogglePreferenceControllerTest.java | 38 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 …]
|
D | RoamingPreferenceControllerTest.java | 39 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/ |
D | AccountAutoSyncPreferenceController.java | 28 import com.android.car.settings.common.ConfirmationDialogFragment; 51 final ConfirmationDialogFragment.ConfirmListener mConfirmListener = arguments -> { 79 ConfirmationDialogFragment dialog = in onCreateInternal() 80 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal() 81 ConfirmationDialogFragment.TAG); in onCreateInternal() 83 ConfirmationDialogFragment.resetListeners(dialog, mConfirmListener, /* rejectListener= */ in onCreateInternal() 91 ConfirmationDialogFragment.TAG); in handlePreferenceChanged() 97 private ConfirmationDialogFragment getAutoSyncChangeConfirmationDialogFragment( in getAutoSyncChangeConfirmationDialogFragment() 110 ConfirmationDialogFragment dialogFragment = in getAutoSyncChangeConfirmationDialogFragment() 111 new ConfirmationDialogFragment.Builder(getContext()) in getAutoSyncChangeConfirmationDialogFragment()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | NotificationAccessPreferenceControllerTest.java | 44 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/ |
D | ApplicationDetailsFragment.java | 48 import com.android.car.settings.common.ConfirmationDialogFragment; 159 ConfirmationDialogFragment.resetListeners( in onCreate() 160 (ConfirmationDialogFragment) findDialogByTag(DISABLE_CONFIRM_DIALOG_TAG), in onCreate() 162 ConfirmationDialogFragment.resetListeners( in onCreate() 163 (ConfirmationDialogFragment) findDialogByTag(FORCE_STOP_CONFIRM_DIALOG_TAG), in onCreate() 394 private final ConfirmationDialogFragment.ConfirmListener mForceStopConfirmListener = 395 new ConfirmationDialogFragment.ConfirmListener() { 408 ConfirmationDialogFragment dialogFragment = 409 new ConfirmationDialogFragment.Builder(getContext()) 428 private final ConfirmationDialogFragment.ConfirmListener mDisableConfirmListener = [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | AppStorageSettingsDetailsFragment.java | 37 import com.android.car.settings.common.ConfirmationDialogFragment; 112 private final ConfirmationDialogFragment.ConfirmListener mConfirmClearStorageDialog = 116 private final ConfirmationDialogFragment.ConfirmListener mConfirmCannotClearStorageDialog = 197 ConfirmationDialogFragment.resetListeners( in onCreate() 198 (ConfirmationDialogFragment) findDialogByTag(CONFIRM_CLEAR_STORAGE_DIALOG_TAG), in onCreate() 200 ConfirmationDialogFragment.resetListeners( in onCreate() 201 (ConfirmationDialogFragment) findDialogByTag( in onCreate() 322 ConfirmationDialogFragment confirmClearStorageDialog = in showClearDataDialog() 323 new ConfirmationDialogFragment.Builder(getContext()) in showClearDataDialog() 333 ConfirmationDialogFragment dialogFragment = in showCannotClearDataDialog() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataLimitPreferenceController.java | 33 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() 112 ConfirmationDialogFragment dialogFragment = in onPreferenceChange() 113 new ConfirmationDialogFragment.Builder(getContext()) in onPreferenceChange() 119 getFragmentController().showDialog(dialogFragment, ConfirmationDialogFragment.TAG); in onPreferenceChange()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAppsPickerBasePreferenceController.java | 29 import com.android.car.settings.common.ConfirmationDialogFragment; 52 private final ConfirmationDialogFragment.ConfirmListener mConfirmListener = arguments -> { 71 ConfirmationDialogFragment.resetListeners( in onCreateInternal() 72 (ConfirmationDialogFragment) getFragmentController().findDialogByTag( in onCreateInternal() 73 ConfirmationDialogFragment.TAG), in onCreateInternal() 121 ConfirmationDialogFragment dialogFragment = in onPreferenceClick() 122 new ConfirmationDialogFragment.Builder(getContext()) in onPreferenceClick() 128 getFragmentController().showDialog(dialogFragment, ConfirmationDialogFragment.TAG); in onPreferenceClick()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/ |
D | MakeAdminPreferenceControllerTest.java | 35 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()
|
D | ChooseNewAdminPreferenceControllerTest.java | 37 import com.android.car.settings.common.ConfirmationDialogFragment; 65 private ConfirmationDialogFragment mDialog; 79 mDialog = new ConfirmationDialogFragment.Builder(mContext).build(); in setUp() 90 ConfirmationDialogFragment.TAG)).thenReturn(mDialog); in testOnCreate_hasPreviousDialog_dialogListenerSet() 109 any(ConfirmationDialogFragment.class), in testUserClicked_opensDialog() 110 eq(ConfirmationDialogFragment.TAG)); in testUserClicked_opensDialog()
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | ConfirmationDialogFragment.java | 37 public class ConfirmationDialogFragment extends CarUiDialogFragment { class 135 public ConfirmationDialogFragment build() { in build() 136 return ConfirmationDialogFragment.init(this); in build() 160 private static ConfirmationDialogFragment init(Builder builder) { in init() 161 ConfirmationDialogFragment dialogFragment = new ConfirmationDialogFragment(); in init() 178 public static void resetListeners(@Nullable ConfirmationDialogFragment dialogFragment, in resetListeners()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountAutoSyncPreferenceControllerTest.java | 38 import com.android.car.settings.common.ConfirmationDialogFragment; 62 private ConfirmationDialogFragment mDialog; 79 mDialog = new ConfirmationDialogFragment.Builder(context).build(); in setUp() 90 ConfirmationDialogFragment.TAG)).thenReturn(mDialog); in testOnCreate_hasPreviousDialog_dialogListenerSet() 121 any(ConfirmationDialogFragment.class), eq(ConfirmationDialogFragment.TAG)); in onPreferenceClicked_shouldOpenDialog()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/defaultapps/ |
D | DefaultAppPickerFragment.java | 65 fragment.show(activity.getSupportFragmentManager(), ConfirmationDialogFragment.TAG); in onRadioButtonClicked() 93 protected ConfirmationDialogFragment newConfirmationDialogFragment(String selectedKey, in newConfirmationDialogFragment() 95 final ConfirmationDialogFragment fragment = new ConfirmationDialogFragment(); in newConfirmationDialogFragment() 104 public static class ConfirmationDialogFragment extends InstrumentedDialogFragment class in DefaultAppPickerFragment
|
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
D | DefaultAppPickerFragment.java | 65 fragment.show(activity.getSupportFragmentManager(), ConfirmationDialogFragment.TAG); in onRadioButtonClicked() 93 protected ConfirmationDialogFragment newConfirmationDialogFragment(String selectedKey, in newConfirmationDialogFragment() 95 final ConfirmationDialogFragment fragment = new ConfirmationDialogFragment(); in newConfirmationDialogFragment() 104 public static class ConfirmationDialogFragment extends InstrumentedDialogFragment class in DefaultAppPickerFragment
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/ |
D | ShortcutServicePickerFragment.java | 138 ConfirmationDialogFragment.newInstance(this, selectedKey) in onRadioButtonClicked() 140 ConfirmationDialogFragment.TAG); in onRadioButtonClicked() 150 public static class ConfirmationDialogFragment extends InstrumentedDialogFragment class in ShortcutServicePickerFragment 156 public static ConfirmationDialogFragment newInstance(ShortcutServicePickerFragment parent, in newInstance() 158 final ConfirmationDialogFragment fragment = new ConfirmationDialogFragment(); in newInstance()
|