/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/ |
D | TestEnvironment.java | 29 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/ |
D | ModelBackedDocumentsAdapterTest.java | 42 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()
|
D | DirectoryAddonsAdapterTest.java | 52 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/Car/Launcher/tests/src/com/android/car/carlauncher/ |
D | AppLauncherUtilsTest.java | 187 Context testContext = in getAutomotiveAppTypes() local 192 testContext.getPackageManager(), in getAutomotiveAppTypes() 193 testContext.getPackageName())); in getAutomotiveAppTypes() 199 Context testContext = in videoAppPredicate() local 202 new AppLauncherUtils.VideoAppPredicate(testContext.getPackageManager()); in videoAppPredicate() 204 assertTrue(predicate.test(constructServiceResolveInfo(testContext.getPackageName()))); in videoAppPredicate()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
D | DisclaimersParserImplTest.java | 83 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/ |
D | NetworkScoreTest.kt | 54 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/ |
D | ConnectivityResources.java | 63 public static void setResourcesContextForTest(@Nullable Context testContext) { in setResourcesContextForTest() argument 64 sTestResourcesContext = testContext; in setResourcesContextForTest()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/ |
D | TestUtils.java | 38 public TestUtils(Context targetContext, Context testContext, ExecutorService executor) { in TestUtils() argument 40 mTestContext = testContext; in TestUtils()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | MoreKeySpecStringReferenceTests.java | 47 final Context testContext = instrumentation.getContext(); in setUp() local 48 final Resources testRes = testContext.getResources(); in setUp()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | LauncherModelHelper.java | 104 public static final String TEST_PACKAGE = testContext().getPackageName(); 234 Resources resources = testContext().getResources(); in initializeData() 236 resourceName, "raw", testContext().getPackageName()); in initializeData() 569 private static Context testContext() { in testContext() method in LauncherModelHelper
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | FileCopyUiTest.java | 285 Context testContext = getInstrumentation().getContext(); in loadImages() local 286 Resources res = testContext.getResources(); in loadImages() 289 "uitest_images", "raw", testContext.getPackageName()); in loadImages()
|
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/ |
D | UnbundledChooserActivityTest.java | 1680 Context testContext = InstrumentationRegistry.getInstrumentation().getContext(); in testLaunchWithCustomAction() local 1691 testContext, in testLaunchWithCustomAction() 1708 testContext.registerReceiver(testReceiver, new IntentFilter(testAction)); in testLaunchWithCustomAction() 1714 testContext.unregisterReceiver(testReceiver); in testLaunchWithCustomAction() 1726 Context testContext = InstrumentationRegistry.getInstrumentation().getContext(); in testLaunchWithShareModification() local 1732 testContext, in testLaunchWithShareModification() 1747 testContext.registerReceiver(testReceiver, new IntentFilter(modifyShareAction)); in testLaunchWithShareModification() 1753 testContext.unregisterReceiver(testReceiver); in testLaunchWithShareModification()
|