/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | NetworkPasswordPreferenceControllerTest.java | 55 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/ |
D | EditUserNameEntryPreferenceControllerTest.java | 59 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 …]
|
D | UserDetailsBasePreferenceControllerTest.java | 66 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()
|
D | MakeAdminPreferenceControllerTest.java | 57 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()
|
D | PermissionsPreferenceControllerTest.java | 58 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/ |
D | ExtraSettingsPreferenceControllerTest.java | 58 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/ |
D | TimeZonePickerScreenPreferenceControllerTest.java | 55 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()
|
D | TimePickerPreferenceControllerTest.java | 43 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()
|
D | DatePickerPreferenceControllerTest.java | 43 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()
|
D | TimeZonePickerPreferenceControllerTest.java | 43 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()
|
D | AutoDatetimeTogglePreferenceControllerTest.java | 45 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()
|
D | AutoTimeZoneTogglePreferenceControllerTest.java | 45 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/ |
D | RingtonePreferenceControllerTest.java | 64 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()
|
D | VolumeSettingsPreferenceControllerTest.java | 63 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/ |
D | ApplicationPreferenceControllerTest.java | 46 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()
|
D | VersionPreferenceControllerTest.java | 44 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()
|
D | PermissionsPreferenceControllerTest.java | 49 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()
|
D | NotificationsPreferenceControllerTest.java | 51 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()
|
D | ApplicationsSettingsPreferenceControllerTest.java | 55 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/ |
D | NoLockPreferenceControllerTest.java | 55 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()
|
D | TrustedDeviceEntryPreferenceControllerTest.java | 56 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()
|
D | LockTypeBasePreferenceControllerTest.java | 85 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/ |
D | BuildNumberPreferenceControllerTest.java | 56 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/ |
D | StorageSizeBasePreferenceControllerTest.java | 48 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/ |
D | CellularFallbackTogglePreferenceControllerTest.java | 41 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()
|