Home
last modified time | relevance | path

Searched refs:mActivityTestRule (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DDialogUiTest.java70 public ActivityTestRule<FilesActivity> mActivityTestRule = new ActivityTestRule<>( field in DialogUiTest
76 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setup()
88 mActivityTestRule.runOnUiThread(() -> CreateDirectoryFragment.show(mFragmentManager)); in testCreateDialogShows()
99 mActivityTestRule.runOnUiThread(() -> CreateDirectoryFragment.show(mFragmentManager)); in testCreateDialogShowsDismiss()
107 mActivityTestRule.runOnUiThread(() -> mCreateDirectoryFragment.getDialog().dismiss()); in testCreateDialogShowsDismiss()
116 mActivityTestRule.runOnUiThread(() -> CreateDirectoryFragment.show(mFragmentManager)); in testCreateDialogShows_textInputEditText_shouldNotTruncateOnPortrait()
132 mActivityTestRule.finishActivity(); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargeDensity()
133 mActivityTestRule.launchActivity(mFileActivityIntent); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargeDensity()
134 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargeDensity()
136 mActivityTestRule.runOnUiThread(() -> CreateDirectoryFragment.show(mFragmentManager)); in testCreateDialog_textInputEditText_shouldNotTruncateOnLargeDensity()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DDualPaneBaseCarSettingsActivityTest.java46 public ActivityTestRule<DualPaneTestActivity> mActivityTestRule = field in DualPaneBaseCarSettingsActivityTest
51 return mActivityTestRule; in getActivityTestRule()
59 mActivityTestRule.runOnUiThread(() -> in onPreferenceStartFragment_launchesFragment()
85 mActivityTestRule.runOnUiThread(() -> { in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions()
117 mActivityTestRule.runOnUiThread(() -> { in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions()
136 mActivityTestRule.runOnUiThread(() -> { in onBackStackChanged_toolbarUpdated()
145 mActivityTestRule.runOnUiThread(() -> { in onBackStackChanged_toolbarUpdated()
153 mActivityTestRule.runOnUiThread(() -> mActivity.goBack()); in onBackStackChanged_toolbarUpdated()
190 mActivityTestRule.runOnUiThread(() -> in onTopLevelPreferenceTapped_focusUpdated()
198 mActivityTestRule.runOnUiThread(() -> { in onFragmentLaunched_maintainContentFocus()
[all …]
DTopLevelMenuFragmentTest.java47 public ActivityTestRule<DualPaneTestActivity> mActivityTestRule = field in TopLevelMenuFragmentTest
53 mActivity = mActivityTestRule.getActivity(); in setUp()
54 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
61 mActivityTestRule.runOnUiThread(() -> in onPreferenceTapped_launchesFragment()
69 mActivityTestRule.runOnUiThread(() -> in onPreferenceTapped_preferenceHighlightUpdated()
77 mActivityTestRule.runOnUiThread(() -> { in onSamePreferenceTapped_noDuplicateEntry()
88 mActivityTestRule.runOnUiThread(() -> { in onDifferentPreferenceTapped_clearsBackStack()
99 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
DConfirmationDialogFragmentTest.java61 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = new ActivityTestRule<>( field in ConfirmationDialogFragmentTest
74 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setup()
147 mActivityTestRule.runOnUiThread(() -> in clickPositiveButton_callsCallbackWithArgs()
163 mActivityTestRule.runOnUiThread(() -> in clickNegativeButton_callsCallbackWithArgs()
178 mActivityTestRule.runOnUiThread(() -> dialog.dismiss()); in dismissDialog_callsCallbackWithArgs()
187 mActivityTestRule.runOnUiThread( in launchDialogFragment()
DSinglePaneBaseCarSettingsActivityTest.java43 public ActivityTestRule<SinglePaneTestActivity> mActivityTestRule = field in SinglePaneBaseCarSettingsActivityTest
48 return mActivityTestRule; in getActivityTestRule()
58 mActivityTestRule.runOnUiThread(() -> in onPreferenceStartFragment_launchesActivity()
75 mActivityTestRule.runOnUiThread(() -> { in onUxRestrictionsChanged_fragmentHasUpdatedUxRestrictions()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothPairingSelectionFragmentTest.java65 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in BluetoothPairingSelectionFragmentTest
71 mActivity = mActivityTestRule.getActivity(); in setUp()
72 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
110 mActivityTestRule.runOnUiThread(() -> { in onStop_clearsBluetoothManagerForegroundActivity()
120 mActivityTestRule.runOnUiThread(() -> { in onStop_unregistersEventListener()
134 mActivityTestRule.runOnUiThread(() -> { in onStop_hidesProgressBar()
146 mActivityTestRule.runOnUiThread(() -> { in onDeviceBondStateChanged_deviceBonded_goesBack()
157 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
DBluetoothDevicePickerFragmentTest.java62 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in BluetoothDevicePickerFragmentTest
68 mActivity = mActivityTestRule.getActivity(); in setUp()
69 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
102 mActivityTestRule.runOnUiThread(() -> { in onStop_clearsBluetoothManagerForegroundActivity()
115 mActivityTestRule.runOnUiThread(() -> { in onStop_hidesProgressBar()
125 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiPasswordDialogTest.java64 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in WifiPasswordDialogTest
70 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setup()
95 mActivityTestRule.runOnUiThread(() -> cb.performClick()); in onCheckboxChanged_editTextInputTypeSet()
99 mActivityTestRule.runOnUiThread(() -> cb.performClick()); in onCheckboxChanged_editTextInputTypeSet()
109 mActivityTestRule.runOnUiThread(() -> confirmButton.performClick()); in onConfirm_listenerTriggered()
115 mActivityTestRule.runOnUiThread( in setUpDialog()
DAddWifiFragmentTest.java69 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in AddWifiFragmentTest
75 mActivity = mActivityTestRule.getActivity(); in setUp()
76 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
172 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/password/
DSetupChooseLockPasswordAppTest.java63 public ActivityTestRule<SetupChooseLockPassword> mActivityTestRule = field in SetupChooseLockPasswordAppTest
76 SetupChooseLockPassword activity = mActivityTestRule.launchActivity(null); in testSkipDialogIsShown()
89 SetupChooseLockPassword activity = mActivityTestRule.launchActivity(null); in clearIsNotShown_when_activityLaunchedInitially()
97 SetupChooseLockPassword activity = mActivityTestRule.launchActivity(null); in clearIsNotShown_when_nothingEntered()
108 SetupChooseLockPassword activity = mActivityTestRule.launchActivity(null); in clearIsShown_when_somethingEnteredToConfirm()
112 mActivityTestRule.launchActivity(null); in clearIsShown_when_somethingEnteredToConfirm()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/
DAccountDetailsFragmentTest.java65 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in AccountDetailsFragmentTest
71 mActivity = mActivityTestRule.getActivity(); in setUp()
72 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
108 mActivityTestRule.runOnUiThread(() -> mFragment.onAccountsUpdate(null)); in onAccountsUpdate_accountDoesNotExist_shouldGoBack()
115 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/
DMobileNetworkFragmentTest.java59 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in MobileNetworkFragmentTest
65 mActivity = mActivityTestRule.getActivity(); in setUp()
66 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
98 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
113 mActivityTestRule.runOnUiThread(() -> { in setUpFragmentWithSubId()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/security/
DConfirmLockPinPasswordFragmentTest.java46 public ActivityTestRule<TestSettingsScreenLockActivity> mActivityTestRule = field in ConfirmLockPinPasswordFragmentTest
52 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
62 mActivityTestRule.runOnUiThread(() -> { in testEnterKeyIsEnabledWhenCheckFails()
73 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
DChooseLockPatternFragmentTest.java47 public ActivityTestRule<SinglePaneTestActivity> mActivityTestRule = field in ChooseLockPatternFragmentTest
53 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
86 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
DChooseLockPinPasswordFragmentTest.java47 public ActivityTestRule<SinglePaneTestActivity> mActivityTestRule = field in ChooseLockPinPasswordFragmentTest
53 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
86 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/audio/
DAudioFragmentTest.java75 public ActivityTestRule<CarLauncher> mActivityTestRule = field in AudioFragmentTest
80 AudioFragment fragment = (AudioFragment) mActivityTestRule.getActivity() in updateContentAndHeaderView_audioContentNoControls_showsMediaPlaybackControlsBar()
82 mActivityTestRule.getActivity().runOnUiThread(fragment::hideCard); in updateContentAndHeaderView_audioContentNoControls_showsMediaPlaybackControlsBar()
115 AudioFragment fragment = (AudioFragment) mActivityTestRule.getActivity() in updateContentAndHeaderView_audioContentWithControls_showsControlBar()
117 mActivityTestRule.getActivity().runOnUiThread(fragment::hideCard); in updateContentAndHeaderView_audioContentWithControls_showsControlBar()
142 AudioFragment fragment = (AudioFragment) mActivityTestRule.getActivity() in updateContentView_descriptiveText_hidesPlaybackControlsBar()
161 AudioFragment fragment = (AudioFragment) mActivityTestRule.getActivity() in updateContentView_textBlock_hidesPlaybackControlsBar()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datetime/
DTimePickerFragmentTest.java52 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in TimePickerFragmentTest
58 mActivity = mActivityTestRule.getActivity(); in setUp()
59 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
93 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DResetNetworkFragmentTest.java60 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in ResetNetworkFragmentTest
66 mActivity = mActivityTestRule.getActivity(); in setUp()
67 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
94 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
DResetNetworkConfirmFragmentTest.java83 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in ResetNetworkConfirmFragmentTest
104 mActivity = mActivityTestRule.getActivity(); in setUp()
105 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
175 mActivityTestRule.runOnUiThread(() -> mResetButton.performClick()); in testResetButtonClick_euiccResetEnabled_euiccReset()
189 mActivityTestRule.runOnUiThread(() -> mResetButton.performClick()); in testResetButtonClick_euiccResetDisabled_euiccNotReset()
267 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
DResetAppPrefFragmentTest.java76 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in ResetAppPrefFragmentTest
105 mActivity = mActivityTestRule.getActivity(); in setUp()
176 mActivityTestRule.runOnUiThread(() -> mResetButton.performClick()); in triggerResetButtonAndWaitForTask()
185 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
DFactoryResetConfirmFragmentTest.java71 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in FactoryResetConfirmFragmentTest
85 mActivity = mActivityTestRule.getActivity(); in setUp()
225 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
239 mActivityTestRule.runOnUiThread(() -> mResetButton.performClick()); in triggerFactoryResetConfirmButton()
DSinglePaneFactoryResetFragmentTest.java35 public ActivityTestRule<SinglePaneTestActivity> mActivityTestRule = field in SinglePaneFactoryResetFragmentTest
40 return mActivityTestRule; in getActivityTestRule()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DEditProfileNameFragmentTest.java55 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in EditProfileNameFragmentTest
61 mActivity = mActivityTestRule.getActivity(); in setUp()
62 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
118 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()
/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/
DHomeCardFragmentTest.java63 public ActivityTestRule<CarLauncher> mActivityTestRule = new ActivityTestRule<CarLauncher>( field in HomeCardFragmentTest
68 HomeCardFragment fragment = (HomeCardFragment) mActivityTestRule.getActivity() in updateContentView_descriptiveTextWithFooter_displaysTapForMoreView()
89 HomeCardFragment fragment = (HomeCardFragment) mActivityTestRule.getActivity() in updateContentView_descriptiveTextWithNoFooter_hidesTapForMoreView()
110 HomeCardFragment fragment = (HomeCardFragment) mActivityTestRule.getActivity() in updateContentView_textBlockWithFooter_displaysTapForMoreView()
127 HomeCardFragment fragment = (HomeCardFragment) mActivityTestRule.getActivity() in updateContentView_textBlockNoFooter_hidesTapForMoreView()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DAppDataUsageFragmentTest.java70 public ActivityTestRule<BaseCarSettingsTestActivity> mActivityTestRule = field in AppDataUsageFragmentTest
76 mActivity = mActivityTestRule.getActivity(); in setUp()
77 mFragmentManager = mActivityTestRule.getActivity().getSupportFragmentManager(); in setUp()
139 mActivityTestRule.runOnUiThread(() -> { in setUpFragment()

12