Home
last modified time | relevance | path

Searched refs:mPreferenceControllerHelper (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DNetworkPasswordPreferenceControllerTest.java55 mPreferenceControllerHelper; field in NetworkPasswordPreferenceControllerTest
63 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
65 mController = mPreferenceControllerHelper.getController(); in setUp()
76 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStart_registersNameChangeListener()
84 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStart_registersSecurityChangeListener()
92 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStop_unregistersNameChangeListener()
93 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_STOP); in onStop_unregistersNameChangeListener()
101 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in onStop_unregistersSecurityChangeListener()
102 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_STOP); in onStop_unregistersSecurityChangeListener()
110 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in receiveNameChangeIntent_emptyName_dialogNameRemoved()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DEditUserNameEntryPreferenceControllerTest.java59 mPreferenceControllerHelper; field in EditUserNameEntryPreferenceControllerTest
70 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
72 mController = mPreferenceControllerHelper.getController(); in setUp()
76 mPreferenceControllerHelper.setPreference(mButtonPreference); in setUp()
89 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testOnButtonClick_isCurrentUser_launchesEditUsernameFragment()
91 verify(mPreferenceControllerHelper.getMockFragmentController()).launchFragment( in testOnButtonClick_isCurrentUser_launchesEditUsernameFragment()
100 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testOnButtonClick_isNotCurrentUser_doesNothing()
102 verify(mPreferenceControllerHelper.getMockFragmentController(), never()).launchFragment( in testOnButtonClick_isNotCurrentUser_doesNothing()
111 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testRefreshUi_elementHasTitle()
120 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testRefreshUi_userNotSetup_setsSummary()
[all …]
DUserDetailsBasePreferenceControllerTest.java66 mPreferenceControllerHelper; field in UserDetailsBasePreferenceControllerTest
77 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(context, in setUp()
79 mController = mPreferenceControllerHelper.getController(); in setUp()
90 assertThrows(() -> mPreferenceControllerHelper.setPreference(mPreference)); in testCheckInitialized_missingUserInfo()
96 mPreferenceControllerHelper.setPreference(mPreference); in testOnCreate_registerListener()
97 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testOnCreate_registerListener()
105 mPreferenceControllerHelper.setPreference(mPreference); in testOnDestroy_unregisterListener()
106 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testOnDestroy_unregisterListener()
111 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_DESTROY); in testOnDestroy_unregisterListener()
DMakeAdminPreferenceControllerTest.java57 mPreferenceControllerHelper; field in MakeAdminPreferenceControllerTest
70 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(context, in setUp()
72 mController = mPreferenceControllerHelper.getController(); in setUp()
76 mPreferenceControllerHelper.setPreference(mButtonPreference); in setUp()
87 when(mPreferenceControllerHelper.getMockFragmentController().findDialogByTag( in testOnCreate_hasPreviousDialog_dialogListenerSet()
89 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testOnCreate_hasPreviousDialog_dialogListenerSet()
96 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testOnButtonClick_showsDialog()
98 verify(mPreferenceControllerHelper.getMockFragmentController()).showDialog( in testOnButtonClick_showsDialog()
116 verify(mPreferenceControllerHelper.getMockFragmentController()).goBack(); in testListener_goBack()
DPermissionsPreferenceControllerTest.java58 mPreferenceControllerHelper; field in PermissionsPreferenceControllerTest
67 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(context, in setUp()
69 mController = mPreferenceControllerHelper.getController(); in setUp()
72 mPreferenceControllerHelper.setPreference(mPreferenceGroup); in setUp()
74 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DExtraSettingsPreferenceControllerTest.java58 mPreferenceControllerHelper; field in ExtraSettingsPreferenceControllerTest
75 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
77 mController = mPreferenceControllerHelper.getController(); in setUp()
103 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testRefreshUi_initialized_noPreferenceAdded()
116 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testRefreshUi_noPreferenceAdded_shouldNotBeVisible()
128 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testRefreshUi_initialized_preferenceAdded()
140 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testRefreshUi_preferenceAdded_shouldBeVisible()
152 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testRefreshUi_refreshedTwice_shouldOnlyAddPreferenceOnce()
165 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testRefreshUi_refreshedTwice_stillBeVisible()
177 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in onUxRestrictionsChanged_unrestrictedAndDO_intentsIntoActivityNoMetadata_disabled()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datetime/
DTimeZonePickerScreenPreferenceControllerTest.java55 mPreferenceControllerHelper; field in TimeZonePickerScreenPreferenceControllerTest
65 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(context, in setUp()
67 mController = mPreferenceControllerHelper.getController(); in setUp()
85 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testOnCreate_hasElements()
94 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testOnPreferenceClick_setTimeZoneCalled()
107 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testOnPreferenceClick_fragmentControllerGoBack()
110 verify(mPreferenceControllerHelper.getMockFragmentController()).goBack(); in testOnPreferenceClick_fragmentControllerGoBack()
118 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testOnPreferenceClick_broadcastFired()
144 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testTimeZonesComparator()
DTimePickerPreferenceControllerTest.java43 mPreferenceControllerHelper; field in TimePickerPreferenceControllerTest
50 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
52 mController = mPreferenceControllerHelper.getController(); in setUp()
53 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in setUp()
72 mPreferenceControllerHelper.markState(Lifecycle.State.STARTED); in testRefreshUi_fromBroadcastReceiver_disabled()
80 mPreferenceControllerHelper.markState(Lifecycle.State.STARTED); in testRefreshUi_fromBroadcastReceiver_enabled()
DDatePickerPreferenceControllerTest.java43 mPreferenceControllerHelper; field in DatePickerPreferenceControllerTest
50 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
52 mController = mPreferenceControllerHelper.getController(); in setUp()
53 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in setUp()
72 mPreferenceControllerHelper.markState(Lifecycle.State.STARTED); in testRefreshUi_fromBroadcastReceiver_disabled()
80 mPreferenceControllerHelper.markState(Lifecycle.State.STARTED); in testRefreshUi_fromBroadcastReceiver_enabled()
DTimeZonePickerPreferenceControllerTest.java43 mPreferenceControllerHelper; field in TimeZonePickerPreferenceControllerTest
50 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
52 mController = mPreferenceControllerHelper.getController(); in setUp()
53 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in setUp()
72 mPreferenceControllerHelper.markState(Lifecycle.State.STARTED); in testRefreshUi_fromBroadcastReceiver_disabled()
80 mPreferenceControllerHelper.markState(Lifecycle.State.STARTED); in testRefreshUi_fromBroadcastReceiver_enabled()
DAutoDatetimeTogglePreferenceControllerTest.java45 mPreferenceControllerHelper; field in AutoDatetimeTogglePreferenceControllerTest
52 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
54 mController = mPreferenceControllerHelper.getController(); in setUp()
55 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in setUp()
DAutoTimeZoneTogglePreferenceControllerTest.java45 mPreferenceControllerHelper; field in AutoTimeZoneTogglePreferenceControllerTest
52 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
54 mController = mPreferenceControllerHelper.getController(); in setUp()
55 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/sound/
DRingtonePreferenceControllerTest.java64 mPreferenceControllerHelper; field in RingtonePreferenceControllerTest
76 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
78 mController = mPreferenceControllerHelper.getController(); in setUp()
79 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in setUp()
103 verify(mPreferenceControllerHelper.getMockFragmentController()).startActivityForResult( in testHandlePreferenceClicked_listenerTriggered()
112 verify(mPreferenceControllerHelper.getMockFragmentController()).startActivityForResult( in testHandlePreferenceClicked_captureIntent_checkDefaultUri()
122 verify(mPreferenceControllerHelper.getMockFragmentController()).startActivityForResult( in testHandlePreferenceClicked_captureIntent_checkDialogTitle()
133 verify(mPreferenceControllerHelper.getMockFragmentController()).startActivityForResult( in testHandlePreferenceClicked_captureIntent_checkRingtoneType()
144 verify(mPreferenceControllerHelper.getMockFragmentController()).startActivityForResult( in testHandlePreferenceClicked_captureIntent_checkShowSilent()
DVolumeSettingsPreferenceControllerTest.java63 mPreferenceControllerHelper; field in VolumeSettingsPreferenceControllerTest
94 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(context, in setUp()
96 mController = mPreferenceControllerHelper.getController(); in setUp()
119 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testRefreshUi_serviceStarted()
126 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testRefreshUi_serviceStarted_multipleCalls()
136 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testRefreshUi_createdPreferenceHasMinMax()
146 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testOnPreferenceChange_ringtonePlays()
155 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in testOnPreferenceChange_audioManagerSet()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationPreferenceControllerTest.java46 mPreferenceControllerHelper; field in ApplicationPreferenceControllerTest
60 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(context, in setUp()
62 mController = mPreferenceControllerHelper.getController(); in setUp()
69 () -> mPreferenceControllerHelper.setPreference(mPreference)); in testCheckInitialized_noAppState_throwException()
76 () -> mPreferenceControllerHelper.setPreference(mPreference)); in testCheckInitialized_noAppEntry_throwException()
83 mPreferenceControllerHelper.setPreference(mPreference); in testRefreshUi_hasResolveInfo_setTitle()
84 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testRefreshUi_hasResolveInfo_setTitle()
DVersionPreferenceControllerTest.java44 private PreferenceControllerTestHelper<VersionPreferenceController> mPreferenceControllerHelper; field in VersionPreferenceControllerTest
52 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
54 mController = mPreferenceControllerHelper.getController(); in setUp()
64 () -> mPreferenceControllerHelper.setPreference(mPreference)); in testCheckInitialized_noPackageInfo_throwException()
70 mPreferenceControllerHelper.setPreference(mPreference); in testRefreshUi_hasPackageInfo_setTitle()
71 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testRefreshUi_hasPackageInfo_setTitle()
DPermissionsPreferenceControllerTest.java49 mPreferenceControllerHelper; field in PermissionsPreferenceControllerTest
56 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
58 mController = mPreferenceControllerHelper.getController(); in setUp()
65 () -> mPreferenceControllerHelper.setPreference(mPreference)); in testCheckInitialized_noResolveInfo_throwException()
72 mPreferenceControllerHelper.setPreference(mPreference); in testHandlePreferenceClicked_navigateToNextActivity()
73 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testHandlePreferenceClicked_navigateToNextActivity()
DNotificationsPreferenceControllerTest.java51 mPreferenceControllerHelper; field in NotificationsPreferenceControllerTest
65 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
67 mController = mPreferenceControllerHelper.getController(); in setUp()
84 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in onCreate_notificationEnabled_isChecked()
93 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in onCreate_notificationDisabled_isNotChecked()
DApplicationsSettingsPreferenceControllerTest.java55 mPreferenceControllerHelper; field in ApplicationsSettingsPreferenceControllerTest
62 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
64 mController = mPreferenceControllerHelper.getController(); in setUp()
65 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in setUp()
113 verify(mPreferenceControllerHelper.getMockFragmentController()).launchFragment( in preferenceClick_launchesDetailFragment()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
DNoLockPreferenceControllerTest.java55 private PreferenceControllerTestHelper<NoLockPreferenceController> mPreferenceControllerHelper; field in NoLockPreferenceControllerTest
67 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
69 mController = mPreferenceControllerHelper.getController(); in setUp()
70 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in setUp()
90 verify(mPreferenceControllerHelper.getMockFragmentController()) in testHandlePreferenceClicked_ifNotSelectedAsLock_goesToNextFragment()
100 verify(mPreferenceControllerHelper.getMockFragmentController()).goBack(); in testHandlePreferenceClicked_ifSelectedAsLock_goesBack()
122 verify(mPreferenceControllerHelper.getMockFragmentController()).goBack(); in testConfirmRemoveScreenLockListener_goesBack()
DTrustedDeviceEntryPreferenceControllerTest.java56 mPreferenceControllerHelper; field in TrustedDeviceEntryPreferenceControllerTest
70 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
72 mController = mPreferenceControllerHelper.getController(); in setUp()
74 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_START); in setUp()
80 verify(mPreferenceControllerHelper.getMockFragmentController()).launchFragment( in testHandlePreferenceClicked_listenerTriggered()
DLockTypeBasePreferenceControllerTest.java85 mPreferenceControllerHelper; field in LockTypeBasePreferenceControllerTest
97 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
99 mController = mPreferenceControllerHelper.getController(); in setUp()
100 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in setUp()
116 verify(mPreferenceControllerHelper.getMockFragmentController()).launchFragment( in testHandlePreferenceClicked_goesToNextFragment()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DBuildNumberPreferenceControllerTest.java56 mPreferenceControllerHelper; field in BuildNumberPreferenceControllerTest
68 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
70 mController = mPreferenceControllerHelper.getController(); in setUp()
88 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_RESUME); in setUp()
174 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_PAUSE); in testHandlePreferenceClicked_devSettingsEnabled_click_showAlreadyDevToast()
175 mPreferenceControllerHelper.sendLifecycleEvent(Lifecycle.Event.ON_RESUME); in testHandlePreferenceClicked_devSettingsEnabled_click_showAlreadyDevToast()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageSizeBasePreferenceControllerTest.java48 mPreferenceControllerHelper; field in StorageSizeBasePreferenceControllerTest
72 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(context, in setUp()
74 mController = mPreferenceControllerHelper.getController(); in setUp()
88 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in setAppsStorageStatsManager_shouldRegisterController()
111 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in onDataLoaded_appStorageStatsSet_shouldUpdateDetailText()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/preferences/
DCellularFallbackTogglePreferenceControllerTest.java41 mPreferenceControllerHelper; field in CellularFallbackTogglePreferenceControllerTest
49 mPreferenceControllerHelper = new PreferenceControllerTestHelper<>(mContext, in setUp()
51 mController = mPreferenceControllerHelper.getController(); in setUp()
52 mPreferenceControllerHelper.markState(Lifecycle.State.CREATED); in setUp()

12