/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
D | AddProfileHandler.java | 63 private final FragmentController mFragmentController; field in AddProfileHandler 83 mFragmentController = fragmentController; in AddProfileHandler() 104 (ConfirmationDialogFragment) mFragmentController.findDialogByTag( in onCreateInternal() 115 mFragmentController.showProgressBar(false); in onStopInternal() 135 mFragmentController.showProgressBar(mIsBusy); in updateState() 149 mFragmentController.showDialog( in onProfileAddedFailure() 188 mFragmentController.showDialog(dialogFragment, CONFIRM_CREATE_NEW_PROFILE_DIALOG_TAG); in showAddProfileDialog() 205 mFragmentController.showDialog(dialogFragment, MAX_PROFILES_LIMIT_REACHED_DIALOG_TAG); in runClickableWhileDisabled() 213 mFragmentController.showDialog( in showActionDisabledByAdminDialog()
|
D | RemoveProfileHandler.java | 54 private final FragmentController mFragmentController; field in RemoveProfileHandler 66 mFragmentController = fragmentController; in RemoveProfileHandler() 79 mFragmentController.launchFragment( in setUserInfo() 84 mFragmentController.goBack(); in setUserInfo() 87 mFragmentController.showDialog( in setUserInfo() 100 (ConfirmationDialogFragment) mFragmentController.findDialogByTag( in resetListeners() 176 mFragmentController.showDialog(dialogFragment, REMOVE_PROFILE_DIALOG_TAG); in showConfirmRemoveProfileDialog() 206 mFragmentController.showDialog( in showActionDisabledByAdminDialog()
|
D | DemoProfileDialogHandler.java | 39 private final FragmentController mFragmentController; field in DemoProfileDialogHandler 49 mFragmentController = fragmentController; in DemoProfileDialogHandler() 69 (ConfirmationDialogFragment) mFragmentController.findDialogByTag( in onCreateInternal() 84 mFragmentController.showDialog(dialogFragment, CONFIRM_EXIT_RETAIL_MODE_DIALOG_TAG); in showExitRetailDialog()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | RestartSystemPreferenceControllerTest.java | 67 private FragmentController mFragmentController; field in RestartSystemPreferenceControllerTest 98 "key", mFragmentController, mCarUxRestrictions); in handlePreferenceClicked_showsDialog() 107 verify(mFragmentController).showDialog(any(ConfirmationDialogFragment.class), in handlePreferenceClicked_showsDialog() 114 "key", mFragmentController, mCarUxRestrictions); in restartSystemConfirmationListener_continueToReboot() 126 "key", mFragmentController, mCarUxRestrictions, in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice() 138 "key", mFragmentController, mCarUxRestrictions, in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice_zoneWrite() 152 "key", mFragmentController, mCarUxRestrictions, in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice_zoneRead() 166 "key", mFragmentController, mCarUxRestrictions, in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice_zoneHidden()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/ |
D | ChooseNewAdminPreferenceControllerTest.java | 72 private FragmentController mFragmentController; field in ChooseNewAdminPreferenceControllerTest 97 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp() 112 when(mFragmentController.findDialogByTag( in testOnCreate_hasPreviousDialog_dialogListenerSet() 122 mContext, /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in testCheckInitialized_noAdminInfoSet_throwsError() 131 verify(mFragmentController).showDialog(any(), eq(ConfirmationDialogFragment.TAG)); in testUserClicked_opensDialog() 156 verify(mFragmentController, never()).showDialog(any(), any()); in testAssignNewAdminAndRemoveOldAdmin_success_noErrorDialog() 166 verify(mFragmentController).showDialog(any(), any()); in testAssignNewAdminAndRemoveOldAdmin_failure_errorDialog()
|
D | ProfilesListPreferenceControllerTest.java | 70 private FragmentController mFragmentController; field in ProfilesListPreferenceControllerTest 88 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp() 120 verify(mFragmentController).launchFragment(any(ProfileDetailsFragment.class)); in testPreferencePerformClick_currentAdminUser_openNewFragment() 128 verify(mFragmentController).launchFragment(any(ProfileDetailsPermissionsFragment.class)); in testPreferencePerformClick_otherNonAdminUser_openNewFragment() 136 verify(mFragmentController, never()).launchFragment(any()); in testPreferencePerformClick_guestUser_noAction()
|
D | ProfilesEntryPreferenceControllerTest.java | 55 private FragmentController mFragmentController; field in ProfilesEntryPreferenceControllerTest 65 PREFERENCE_KEY, mFragmentController, mCarUxRestrictions); in setUp() 79 verify(mFragmentController).launchFragment(any(ProfileDetailsFragment.class)); in handlePreferenceClicked_launchesProfileDetailsFragment() 87 verify(mFragmentController).launchFragment(fragmentArgumentCaptor.capture()); in handlePreferenceClicked_fragmentHasKeyArgument()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/ |
D | EnterprisePrivacySettingsPreferenceControllerTest.java | 43 mPreferenceKey, mFragmentController, mUxRestrictions); in setController() 53 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noFeature() 66 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noFeature_zoneWrite() 80 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noFeature_zoneRead() 94 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noFeature_zoneHidden()
|
D | DeviceAdminAddSupportPreferenceControllerTest.java | 38 mPreferenceKey, mFragmentController, mUxRestrictions); in setController() 46 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin() 56 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneWrite() 67 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneRead() 78 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneHidden()
|
D | DeviceAdminAddPoliciesPreferenceControllerTest.java | 54 mPreferenceKey, mFragmentController, mUxRestrictions); in setController() 68 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin() 78 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneWrite() 89 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneRead() 100 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneHidden()
|
D | DeviceAdminAddHeaderPreferenceControllerTest.java | 48 mPreferenceKey, mFragmentController, mUxRestrictions); in setController() 83 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin() 93 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneWrite() 104 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneRead() 115 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneHidden()
|
D | DeviceAdminAddExplanationPreferenceControllerTest.java | 38 mPreferenceKey, mFragmentController, mUxRestrictions); in setController() 46 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin() 57 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneWrite() 69 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneRead() 81 mFragmentController, mUxRestrictions); in testGetAvailabilityStatus_noAdmin_zoneHidden()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/security/ |
D | ChooseLockTypePreferenceControllerTest.java | 81 private FragmentController mFragmentController; field in ChooseLockTypePreferenceControllerTest 97 "key", mFragmentController, mCarUxRestrictions, mUserManager, in setUp() 111 verify(mFragmentController).startActivityForResult(intentArgumentCaptor.capture(), in preferenceClicked_screenLockActivityLaunched() 125 verify(mFragmentController, never()).launchFragment(any()); in activityResult_resultNotOk_fragmentNotLaunched() 135 verify(mFragmentController).launchFragment(any(ChooseLockTypeFragment.class)); in activityResult_resultOk_fragmentLaunched() 146 verify(mFragmentController).launchFragment(fragmentArgumentCaptor.capture()); in activityResult_resultOk_currentScreenLockSet() 161 verify(mFragmentController).launchFragment(fragmentArgumentCaptor.capture()); in activityResult_resultOk_passwordQualitySet()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | ApplicationActionButtonsPreferenceControllerTest.java | 104 private FragmentController mFragmentController; field in ApplicationActionButtonsPreferenceControllerTest 129 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp() 550 verify(mFragmentController).showDialog(any(ConfirmationDialogFragment.class), in forceStopClicked_showsDialog() 565 verify(mFragmentController).showDialog(any(ActionDisabledByAdminDialogFragment.class), in forceStopClicked_showsDisabledByDeviceAdminDialog() 580 verify(mFragmentController).showDialog(any(ConfirmationDialogFragment.class), in forceStopClicked_notDisabledByDeviceAdminDialog_forDifferentUserRestrictionType() 607 verify(mFragmentController).showDialog(any(ConfirmationDialogFragment.class), in disableClicked_showsDialog() 636 verify(mFragmentController).showDialog(any(ActionDisabledByAdminDialogFragment.class), in disableClicked_showsDisabledByDeviceAdminDialog() 666 verify(mFragmentController).showDialog(any(ActionDisabledByAdminDialogFragment.class), in enableClicked_showsDisabledByDeviceAdminDialog() 685 verify(mFragmentController).startActivityForResult(intentArgumentCaptor.capture(), in uninstallClicked_packageHasActiveAdmins_startsDeviceAdminAddActivity() 708 verify(mFragmentController).startActivityForResult(intentArgumentCaptor.capture(), in uninstallClicked_startsUninstallActivity() [all …]
|
D | ApplicationsSettingsPreferenceControllerTest.java | 66 private FragmentController mFragmentController; field in ApplicationsSettingsPreferenceControllerTest 82 "key", mFragmentController, mCarUxRestrictions); in setUp() 133 verify(mFragmentController).launchFragment(any(ApplicationDetailsFragment.class)); in preferenceClick_launchesDetailFragment()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/ |
D | AddAccountPreferenceControllerTest.java | 79 private FragmentController mFragmentController; field in AddAccountPreferenceControllerTest 100 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp() 385 verify(mFragmentController).launchFragment(any(ChooseAccountFragment.class)); in clickAddAccountButton_shouldOpenChooseAccountFragment() 420 verify(mFragmentController).launchFragment(any(ChooseAccountFragment.class)); in clickAddAccountButton_shouldOpenChooseAccountFragmentWhenOneTypeAndManaged() 435 verify(mFragmentController).launchFragment(any(ChooseAccountFragment.class)); in clickAddAccountButton_shouldOpenChooseAccountFragmentWhenTwoTypes() 474 verify(mFragmentController).launchFragment(any(ChooseAccountFragment.class)); in processActivityResult_newUserDisclaimer_resultOk_chooseAccountActivity() 478 verify(mFragmentController).showDialog(any(ActionDisabledByAdminDialogFragment.class), in assertShowingDisabledByAdminDialog() 483 verify(mFragmentController).startActivityForResult(any(Intent.class), in assertShowingNewUserDisclaimerActivity()
|
D | AccountDetailsPreferenceControllerTest.java | 71 private FragmentController mFragmentController; field in AccountDetailsPreferenceControllerTest 87 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp() 155 verify(mFragmentController).showDialog(any(ConfirmationDialogFragment.class), in onRemoveAccountButtonClicked_canModifyUsers_shouldShowConfirmRemoveAccountDialog() 173 verify(mFragmentController).showDialog(any(ActionDisabledByAdminDialogFragment.class), in assertShowingDisabledByAdminDialog()
|
D | ChooseAccountPreferenceControllerTest.java | 83 private FragmentController mFragmentController; field in ChooseAccountPreferenceControllerTest 106 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp() 169 verify(mFragmentController).startActivityForResult(captor.capture(), in onPreferenceClick_shouldStartActivity() 187 verify(mFragmentController).goBack(); in onAccountAdded_shouldGoBack()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/language/ |
D | LanguageBasePreferenceControllerTest.java | 73 private FragmentController mFragmentController; field in LanguageBasePreferenceControllerTest 96 /* preferenceKey= */ "key", mFragmentController, carUxRestrictions) { in setUp() 168 verify(mFragmentController, never()).goBack(); in testOnPreferenceClick_hasMultipleChildLocales_neverCallsGoBack() 205 verify(mFragmentController).goBack(); in testOnPreferenceClick_hasSingleChildLocale_callsGoBack() 228 verify(mFragmentController, never()).goBack(); in testOnPreferenceClick_noChildLocale_neverCallsGoBack() 254 verify(mFragmentController).goBack(); in testOnPreferenceClick_hasParentLocale_callsGoBack()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/location/ |
D | AdasLocationSwitchPreferenceControllerTest.java | 87 private FragmentController mFragmentController; field in AdasLocationSwitchPreferenceControllerTest 164 verify(mFragmentController) in unclickable_onPreferenceClicked_noChange_showToggleDisabledDialog() 180 verify(mFragmentController) in unclickable_powerPolicyOff_onPreferenceClicked_showToggleDisabledDialog() 334 verify(mFragmentController, never()) in onPreferenceClicked_adasDisabled_shouldEnable_notShowDialog() 362 verify(mFragmentController) in onPreferenceClicked_adasEnabled_shouldStayEnable_showDialog() 391 verify(mFragmentController).showDialog(dialogCaptor.capture(), in confirmDialog_turnOffDriverAssistance() 481 verify(mFragmentController).showDialog(dialogCaptor.capture(), in cancelDialog_DriverAssistanceStaysOn() 503 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in initializePreference()
|
D | LocationStateListenerBasePreferenceControllerTest.java | 64 private FragmentController mFragmentController; field in LocationStateListenerBasePreferenceControllerTest 85 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions) { in onAdasIntentReceived_refreshUi() 129 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions) { in onLocationIntentReceived_refreshUi() 172 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions) { in onPowerPolicyChange_refreshUi()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/ |
D | MobileNetworkListPreferenceControllerTest.java | 66 private FragmentController mFragmentController; field in MobileNetworkListPreferenceControllerTest 86 "key", mFragmentController, mCarUxRestrictions); in setUp() 116 verify(mFragmentController).launchFragment(captor.capture()); in onPreferenceClicked_launchesFragment()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/ |
D | WifiDetailsActionButtonsPreferenceControllerTest.java | 58 private FragmentController mFragmentController; field in WifiDetailsActionButtonsPreferenceControllerTest 81 when(mFragmentController.getSettingsLifecycle()).thenReturn(mMockLifecycle); in setUp() 83 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/ |
D | WifiEntryListPreferenceControllerTest.java | 82 private FragmentController mFragmentController; field in WifiEntryListPreferenceControllerTest 109 when(mFragmentController.getSettingsLifecycle()).thenReturn(mMockLifecycle); in setUp() 111 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp() 199 verify(mFragmentController).showDialog(any(WifiPasswordDialog.class), any()); in performClick_shouldEditBeforeConnect_launchDialog() 213 verify(mFragmentController).launchFragment(any(WifiDetailsFragment.class)); in performClick_activeWifiEntry_showDetailsFragment() 227 verify(mFragmentController, times(0)).launchFragment(any(WifiDetailsFragment.class)); in performClick_secondaryActiveWifiEntry_doesNotShowDetailsFragment()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/preferences/ |
D | WifiWakeupTogglePreferenceControllerTest.java | 70 private FragmentController mFragmentController; field in WifiWakeupTogglePreferenceControllerTest 90 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp() 113 verify(mFragmentController).launchFragment(any(LocationSettingsFragment.class)); in handlePreferenceClicked_locationDisabled_launchFragment() 140 verify(mFragmentController).showDialog(any(ConfirmationDialogFragment.class), in handlePreferenceClicked_wifiScanningDisabled_showsDialog()
|