Home
last modified time | relevance | path

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

123

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DHiltExt.kt27 import com.android.healthconnect.controller.tests.TestActivity in <lambda>()
33 ): ActivityScenario<TestActivity> {
37 ApplicationProvider.getApplicationContext(), TestActivity::class.java))
42 return ActivityScenario.launch<TestActivity>(startActivityIntent).onActivity { activity -> in activity()
61 ): ActivityScenario<TestActivity> {
65 ApplicationProvider.getApplicationContext(), TestActivity::class.java))
70 return ActivityScenario.launch<TestActivity>(startActivityIntent).onActivity { activity -> in activity()
85 ): ActivityScenario<TestActivity> { in launchFragment()
89 ApplicationProvider.getApplicationContext(), TestActivity::class.java)) in launchFragment()
93 return ActivityScenario.launch<TestActivity>(startActivityIntent).onActivity { activity -> in launchFragment()
/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/Settings/tests/robotests/src/com/android/settings/core/
DCategoryMixinTest.java47 private ActivityController<TestActivity> mActivityController;
51 mActivityController = Robolectric.buildActivity(TestActivity.class); in setUp()
58 final TestActivity activity = mActivityController.get(); in resumeActivity_shouldRegisterReceiver()
66 final TestActivity activity = mActivityController.get(); in pauseActivity_shouldUnregisterReceiver()
82 static class TestActivity extends AppCompatActivity implements CategoryMixin.CategoryHandler { class in CategoryMixinTest
/packages/services/Car/tests/carservice_unit_test/src/android/car/app/
DCarTaskViewControllerHostLifecycleFactoryTest.java33 private TestActivity mActivity;
36 public ActivityScenarioRule<TestActivity> activityRule = new ActivityScenarioRule<>(
37 TestActivity.class);
104 public static class TestActivity extends Activity { class in CarTaskViewControllerHostLifecycleFactoryTest
/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/
DCarLauncherViewModelFactoryTest.java37 import com.android.car.carlauncher.CarLauncherViewModelTest.TestActivity;
49 public final ActivityScenarioRule<TestActivity> mActivityRule =
50 new ActivityScenarioRule<>(TestActivity.class);
58 private TestActivity mActivity;
DCarLauncherViewModelTest.java49 public final ActivityScenarioRule<TestActivity> mActivityRule =
50 new ActivityScenarioRule<>(TestActivity.class);
56 private TestActivity mActivity;
117 public static class TestActivity extends Activity { class in CarLauncherViewModelTest
/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/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentMemtagPreferenceControllerTest.java63 public ActivityTestRule<TestActivity> mActivityTestRule =
64 new ActivityTestRule<>(TestActivity.class);
69 private TestActivity mActivity;
83 .add(TestActivity.CONTAINER_VIEW_ID, mMemtagPage) in setUp()
162 private static final class TestActivity extends FragmentActivity { class in DevelopmentMemtagPreferenceControllerTest
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacySettingsTest.java64 private TestActivity mActivity;
74 ActivityController<TestActivity> controller = Robolectric.buildActivity( in setUp()
75 TestActivity.class).create(); in setUp()
81 .add(TestActivity.CONTAINER_VIEW_ID, mSettings) in setUp()
200 private static final class TestActivity extends AppCompatActivity { class in EnterprisePrivacySettingsTest
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/tests/src/com/android/car/portraitlauncher/homeactivities/test/
DApplicationPanelTapTest.java37 public ActivityScenarioRule<TestActivity> mActivityRule = new ActivityScenarioRule<>(
38 TestActivity.class);
39 private ActivityScenario<TestActivity> mScenario;
DTestActivity.java31 public class TestActivity extends Activity { class
32 private static final String TAG = TestActivity.class.getSimpleName();
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DNotificationAccessConfirmationActivityTest.java67 private ActivityScenario<TestActivity> mActivityScenario;
68 private TestActivity mActivity;
96 Intent intent = new Intent(mContext, TestActivity.class); in componentNameEmpty_finishes()
163 Intent intent = new Intent(mContext, TestActivity.class) in launchActivityWithValidIntent()
176 public static final class TestActivity extends NotificationAccessConfirmationActivity { class in NotificationAccessConfirmationActivityTest
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DSdkSandboxControllerTest.java62 public final ActivityScenarioRule<TestActivity> activityScenarioRule =
63 new ActivityScenarioRule<>(TestActivity.class);
67 private ActivityScenario<TestActivity> mScenario;
110 Intent intent = new Intent(context, TestActivity.class); in testSdkDetectsAppForegroundState()
DSdkSandboxValidationOverTTests.java45 public final ActivityScenarioRule<TestActivity> activityRule =
46 new ActivityScenarioRule<>(TestActivity.class);
/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/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/disablede2e/
DSdkSandboxManagerDisabledTest.java42 public final ActivityScenarioRule<TestActivity> mRule =
43 new ActivityScenarioRule<>(TestActivity.class);
45 private ActivityScenario<TestActivity> mScenario;
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DMemtagPreferenceControllerTest.java59 public ActivityScenarioRule<TestActivity> mActivityScenario =
60 new ActivityScenarioRule<>(TestActivity.class);
65 private TestActivity mActivity;
78 .add(TestActivity.CONTAINER_VIEW_ID, mMemtagPage) in setUp()
/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/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/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/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DTestActivity.kt30 class TestActivity : Activity() { class
61 ComponentName(getApplicationContext(), TestActivity::class.java.name + "Priority") in setAliasEnabledState()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDocumentsAccessTest.java46 private TestActivity mActivity;
67 mActivity = TestActivity.create(mEnv); in setUp()
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/app/src/com/android/sdksandbox/cts/app/
DCtsSdkSandboxMediaTestApp.java48 public final ActivityScenarioRule<TestActivity> activityScenarioRule =
49 new ActivityScenarioRule<>(TestActivity.class);

123