Searched refs:mTestFragment (Results 1 – 4 of 4) sorted by relevance
99 private TestFragment mTestFragment; field in DashboardFragmentTest127 mTestFragment = new TestFragment(mAppContext); in setUp()131 mTestFragment.onAttach(mAppContext); in setUp()139 mTestFragment.addPreferenceController(controller); in testPreferenceControllerGetterSetter_shouldAddAndGetProperly()141 final TestPreferenceController retrievedController = mTestFragment.use in testPreferenceControllerGetterSetter_shouldAddAndGetProperly()150 mTestFragment.addPreferenceController(controller1); in testPreferenceControllerSetter_shouldAddAndNotReplace()152 mTestFragment.addPreferenceController(controller2); in testPreferenceControllerSetter_shouldAddAndNotReplace()154 final TestPreferenceController retrievedController = mTestFragment.use in testPreferenceControllerSetter_shouldAddAndNotReplace()165 mTestFragment.addPreferenceController(controller1); in useAll_returnsAllControllersOfType()166 mTestFragment.addPreferenceController(controller2); in useAll_returnsAllControllersOfType()[all …]
57 private TestFragment mTestFragment; field in AudioStreamsDashboardFragmentTest62 mTestFragment = spy(new TestFragment()); in setUp()63 doReturn(mContext).when(mTestFragment).getContext(); in setUp()65 doReturn(mController).when(mTestFragment).use(AudioStreamsProgressCategoryController.class); in setUp()70 assertThat(mTestFragment.getPreferenceScreenResId()) in getPreferenceScreenResId_returnsCorrectXml()76 assertThat(mTestFragment.getLogTag()).isEqualTo("AudioStreamsDashboardFrag"); in getLogTag_returnsCorrectTag()81 assertThat(mTestFragment.getHelpResource()).isEqualTo(R.string.help_url_audio_sharing); in getHelpResource_returnsCorrectResource()86 mTestFragment.onAttach(mContext); in onActivityResult_invalidRequestCode_doNothing()88 mTestFragment.onActivityResult(0, 0, null); in onActivityResult_invalidRequestCode_doNothing()94 mTestFragment.onAttach(mContext); in onActivityResult_invalidRequestResult_doNothing()[all …]
59 private TestFragment mTestFragment; field in LockscreenDashboardFragmentTest69 mTestFragment = spy(new TestFragment()); in setUp()70 doReturn(mContext).when(mTestFragment).getContext(); in setUp()76 mTestFragment.getPreferenceScreenResId()); in containsNotificationSettingsForPrimaryUserAndWorkProfile()87 doReturn(controller).when(mTestFragment).use( in onAttach_alwaysOn_shouldInvokeSetters()90 mTestFragment.onAttach(mContext); in onAttach_alwaysOn_shouldInvokeSetters()98 doReturn(controller).when(mTestFragment).use( in onAttach_notifications_shouldInvokeSetters()101 mTestFragment.onAttach(mContext); in onAttach_notifications_shouldInvokeSetters()109 doReturn(controller).when(mTestFragment).use(DoubleTapScreenPreferenceController.class); in onAttach_doubleTap_shouldInvokeSetters()111 mTestFragment.onAttach(mContext); in onAttach_doubleTap_shouldInvokeSetters()[all …]
44 private Fragment mTestFragment; field in ErrorDialogTest52 mTestFragment = new Fragment(); in setUpTestActivity()53 mTestActivity.launchFragment(mTestFragment); in setUpTestActivity()58 ErrorDialog dialog = ErrorDialog.show(mTestFragment, R.string.delete_user_error_title); in testOkDismissesDialog()72 ErrorDialog dialog = ErrorDialog.show(mTestFragment, testTitleId); in testErrorDialogSetsTitle()