Home
last modified time | relevance | path

Searched refs:TestActivity (Results 1 – 25 of 44) sorted by relevance

12

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DTestActivity.java24 public abstract class TestActivity extends AbstractBase { class
26 public static TestActivity create(TestEnv env) { in create()
27 TestActivity activity = Mockito.mock(TestActivity.class, Mockito.CALLS_REAL_METHODS); in create()
35 abstract class AbstractBase extends com.android.documentsui.TestActivity
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DTestActivity.java28 public abstract class TestActivity extends AbstractBase { class
33 public static TestActivity create(TestEnv env) { in create()
34 TestActivity activity = Mockito.mock(TestActivity.class, Mockito.CALLS_REAL_METHODS); in create()
60 abstract class AbstractBase extends com.android.documentsui.TestActivity
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DCarUiSmoothScrollerTest.java25 import com.android.car.ui.TestActivity;
37 public ActivityScenarioRule<TestActivity> mActivityRule =
38 new ActivityScenarioRule<>(TestActivity.class);
40 private ActivityScenario<TestActivity> mScenario;
42 private TestActivity mActivity;
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DCategoryMixinTest.java48 private ActivityController<TestActivity> mActivityController;
52 mActivityController = Robolectric.buildActivity(TestActivity.class); in setUp()
59 final TestActivity activity = mActivityController.get(); in resumeActivity_shouldRegisterReceiver()
67 final TestActivity activity = mActivityController.get(); in pauseActivity_shouldUnregisterReceiver()
83 static class TestActivity extends AppCompatActivity implements CategoryMixin.CategoryHandler { class in CategoryMixinTest
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/search/
DWidgetsSearchBarControllerTest.java30 import com.android.launcher3.testing.TestActivity;
51 private ActivityController<TestActivity> mActivityController;
62 mActivityController = Robolectric.buildActivity(TestActivity.class); in setUp()
63 TestActivity testActivity = mActivityController.setup().get(); in setUp()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/
DViewTest.java26 public abstract class ViewTest<T extends View> extends BugleActivityUnitTestCase<TestActivity> {
28 super(TestActivity.class); in ViewTest()
41 TestActivity.class); in setUp()
DFragmentTestCase.java29 extends BugleActivityInstrumentationTestCase<TestActivity> {
35 super(TestActivity.class); in FragmentTestCase()
/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/livedata/
DHeartBeatLiveDataTest.java29 import com.android.car.dialer.testing.TestActivity;
52 ActivityScenario<TestActivity> activityScenario = ActivityScenario.launch( in active_onLifecycleStart()
53 TestActivity.class); in active_onLifecycleStart()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestActionHandler.java24 import com.android.documentsui.TestActivity;
31 public class TestActionHandler extends AbstractActionHandler<TestActivity> {
47 TestActivity.create(env), in TestActionHandler()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/widget/
DCarUiTextViewTest.java37 import com.android.car.ui.TestActivity;
65 public ActivityScenarioRule<TestActivity> mActivityRule =
66 new ActivityScenarioRule<>(TestActivity.class);
68 private TestActivity mActivity;
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/
DWidgetsListHeaderViewHolderBinderTest.java42 import com.android.launcher3.testing.TestActivity;
74 private ActivityController<TestActivity> mActivityController;
75 private TestActivity mTestActivity;
94 mActivityController = Robolectric.buildActivity(TestActivity.class); in setUp()
DWidgetsListSearchHeaderViewHolderBinderTest.java42 import com.android.launcher3.testing.TestActivity;
74 private ActivityController<TestActivity> mActivityController;
75 private TestActivity mTestActivity;
94 mActivityController = Robolectric.buildActivity(TestActivity.class); in setUp()
DWidgetsListTableViewHolderBinderTest.java46 import com.android.launcher3.testing.TestActivity;
79 private ActivityController<TestActivity> mActivityController;
80 private TestActivity mTestActivity;
101 mActivityController = Robolectric.buildActivity(TestActivity.class); in setUp()
/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/activecall/
DIncomingCallFragmentTest.java37 import com.android.car.dialer.testing.TestActivity;
80 ActivityScenario<TestActivity> activityScenario = ActivityScenario.launch( in startFragment()
81 TestActivity.class); in startFragment()
DRingingCallControllerBarFragmentTest.java41 import com.android.car.dialer.testing.TestActivity;
59 ActivityScenario<TestActivity> activityScenario = ActivityScenario.launch( in setUp()
60 TestActivity.class); in setUp()
DOngoingCallFragmentTest.java39 import com.android.car.dialer.testing.TestActivity;
60 private ActivityScenario<TestActivity> mActivityScenario;
101 mActivityScenario = ActivityScenario.launch(TestActivity.class); in startFragment()
DOnGoingCallControllerBarFragmentTest.java52 import com.android.car.dialer.testing.TestActivity;
202 ActivityScenario<TestActivity> activityScenario = ActivityScenario.launch( in addFragment()
203 TestActivity.class); in addFragment()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DTestActivity.java61 public abstract class TestActivity extends AbstractBase { class
86 public static TestActivity create(TestEnv env) { in create()
87 TestActivity activity = Mockito.mock(TestActivity.class, Mockito.CALLS_REAL_METHODS); in create()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDragHostTest.java32 import com.android.documentsui.files.TestActivity;
53 private TestActivity mActivity;
66 mActivity = TestActivity.create(mEnv); in setUp()
/packages/apps/TV/tests/robotests/src/com/android/tv/ui/
DChannelBannerViewTest.java52 private TestActivity testActivity;
58 testActivity = Robolectric.buildActivity(TestActivity.class).create().get(); in setUp()
114 public static class TestActivity extends Activity implements HasSingletons<MySingletons> { class in ChannelBannerViewTest
/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/favorite/
DFavoriteFragmentTest.java40 import com.android.car.dialer.testing.TestActivity;
68 ActivityScenario<TestActivity> mActivityScenario;
81 mActivityScenario = ActivityScenario.launch(TestActivity.class); in startActivity()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/appstyledview/
DAppStyledDialogControllerTest.java37 import com.android.car.ui.TestActivity;
59 public ActivityTestRule<TestActivity> mActivityRule =
60 new ActivityTestRule<>(TestActivity.class);
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/uxr/
DDrawableStateViewTest.java30 import com.android.car.ui.TestActivity;
72 public final ActivityScenarioRule<TestActivity> mScenarioRule =
73 new ActivityScenarioRule<>(TestActivity.class);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDocumentsAccessTest.java39 private TestActivity mActivity;
47 mActivity = TestActivity.create(mEnv); in setUp()
/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/contact/
DContactDetailsFragmentTest.java58 import com.android.car.dialer.testing.TestActivity;
144 ActivityScenario<TestActivity> activityScenario = ActivityScenario.launch( in setUpFragment()
145 TestActivity.class); in setUpFragment()

12