Home
last modified time | relevance | path

Searched refs:testContext (Results 1 – 10 of 10) sorted by relevance

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
DTestEnvironment.java29 private final Context testContext; field in TestEnvironment
33 public TestEnvironment(Context testContext, TestEnv env, ActionHandler actionHandler) { in TestEnvironment() argument
34 this.testContext = testContext; in TestEnvironment()
80 return testContext; in getContext()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/dirlist/
DModelBackedDocumentsAdapterTest.java42 final Context testContext = TestContext.createStorageTestContext(getContext(), AUTHORITY); in setUp() local
46 DocumentsAdapter.Environment env = new TestEnvironment(testContext, mEnv, mActionHandler); in setUp()
50 new IconHelper(testContext, State.MODE_GRID, /* maybeShowBadge= */ false), in setUp()
DDirectoryAddonsAdapterTest.java52 final Context testContext = TestContext.createStorageTestContext(getContext(), AUTHORITY); in setUp() local
53 DocumentsAdapter.Environment env = new TestEnvironment(testContext, mEnv, mActionHandler); in setUp()
59 new IconHelper(testContext, State.MODE_GRID, /* maybeShowBadge= */ false), in setUp()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DDisclaimersParserTest.java83 Context testContext = InstrumentationRegistry.getContext(); in setUpClass() local
88 DISCLAIMER_URI_1 = TestUtils.resourceToUri(testContext, R.raw.test_disclaimer1); in setUpClass()
91 DISCLAIMER_URI_2 = TestUtils.resourceToUri(testContext, R.raw.test_disclaimer2); in setUpClass()
94 DISCLAIMER_URI_3 = TestUtils.resourceToUri(testContext, R.raw.test_disclaimer3); in setUpClass()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkScoreTest.kt54 private val testContext: Context in <lambda>() constant
66 private val mCm = testContext.getSystemService(ConnectivityManager::class.java) in <lambda>()
130 val context = testContext in <lambda>()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityResources.java63 public static void setResourcesContextForTest(@Nullable Context testContext) { in setResourcesContextForTest() argument
64 sTestResourcesContext = testContext; in setResourcesContextForTest()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DTestUtils.java38 public TestUtils(Context targetContext, Context testContext, ExecutorService executor) { in TestUtils() argument
40 mTestContext = testContext; in TestUtils()
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/appstyledview/
DAppStyledViewSampleActivity.java63 Context testContext = createConfigurationContext(config); in onCreate() local
65 Context contextThemeWrapper = new ContextThemeWrapper(testContext, in onCreate()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DMoreKeySpecStringReferenceTests.java47 final Context testContext = instrumentation.getContext(); in setUp() local
48 final Resources testRes = testContext.getResources(); in setUp()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFileCopyUiTest.java283 Context testContext = getInstrumentation().getContext(); in loadImages() local
284 Resources res = testContext.getResources(); in loadImages()
287 "uitest_images", "raw", testContext.getPackageName()); in loadImages()