Home
last modified time | relevance | path

Searched refs:targetContext (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/security/src/android/security/cts/
DCVE_2020_0294.java50 Context targetContext = instrumentation.getTargetContext(); in testPocCVE_2020_0294() local
57 spuriousIntent.setPackage(targetContext.getPackageName()); in testPocCVE_2020_0294()
63 pi.send(targetContext, 0, spuriousIntent, null, null); in testPocCVE_2020_0294()
DFlagSlipperyTest.kt159 val view = View(instrumentation.targetContext) in addWindow()
223 val surfaceView = SurfaceView(instrumentation.targetContext) in addEmbeddedHostWindow()
250 val embeddedView = View(instrumentation.targetContext) in addEmbeddedView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/
DCameraTestInstrumentation.java46 public void initialize(Context targetContext, MetricListener listener) { in initialize() argument
47 mTargetContext = targetContext; in initialize()
/cts/tests/app/src/android/app/cts/
DApplicationTest.java51 final Context targetContext = instrumentation.getTargetContext(); in testApplication() local
53 final Intent intent = new Intent(targetContext, MockApplicationActivity.class); in testApplication()
DActivityCallbacksTest.java79 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in tearDown() local
80 Application application = (Application) targetContext.getApplicationContext(); in tearDown()
87 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testActivityCallbackOrder() local
88 Application application = (Application) targetContext.getApplicationContext(); in testActivityCallbackOrder()
DActivityManagerTest.java428 final Context targetContext = mInstrumentation.getTargetContext();
429 final String targetPackage = targetContext.getPackageName();
430 final ActivityManager am = targetContext.getSystemService(ActivityManager.class);
/cts/tests/tests/theme/src/android/theme/cts/
DThemeRebaseTest.java48 Context targetContext = InstrumentationRegistry.getTargetContext(); in before() local
51 mContext = targetContext.createConfigurationContext(config); in before()
/cts/hostsidetests/packagemanager/domainverification/apps/declaring/src/com/android/cts/packagemanager/verify/domain/declaringapp/
DDomainVerificationDeclaringAppTests.kt29 private val context = instrumentation.targetContext
/cts/hostsidetests/packagemanager/domainverification/apps/calling/src/com/android/cts/packagemanager/verify/domain/callingapp/
DDomainVerificationCallingAppTests.kt29 private val context = instrumentation.targetContext
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/
DBaseDynamicMimeTest.java41 protected static Context targetContext() { in targetContext() method in BaseDynamicMimeTest
/cts/tests/tests/permission/src/android/permission/cts/
DRevokePermissionTest.kt141 val context = InstrumentationRegistry.getInstrumentation().targetContext in testRevoke()
177 val context = InstrumentationRegistry.getInstrumentation().targetContext in assertPackageNotInstalled()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DInstallSourceInfoTest.kt37 private val context = InstrumentationRegistry.getInstrumentation().targetContext
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/
DAppOpsUtils.kt175 InstrumentationRegistry.getInstrumentation().targetContext in getOpEntry()
/cts/tests/tests/appop2/src/android/app/appops2/cts/
DAppOpsLoggingTest.kt50 private val context = InstrumentationRegistry.getInstrumentation().targetContext in <lambda>()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAttributionTest.kt48 private val context = instrumentation.targetContext
DForegroundModeAndActiveTest.kt63 private val context = instrumentation.targetContext in <lambda>()
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/preferred/
DPreferredActivitiesTest.java385 targetContext().startActivity(sendIntent, null); in sendIntent()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java400 final Context targetContext = target.getContext(); in checkViewTag() local
401 final CharSequence expectedValue = targetContext.getString(valueResId); in checkViewTag()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DEdgeEffectTests.java80 final Context targetContext = InstrumentationRegistry.getTargetContext(); in setUp() local
81 mThemeContext = new ContextThemeWrapper(targetContext, in setUp()
/cts/tests/tests/os/src/android/os/cts/
DCompanionDeviceManagerTest.kt84 private val context = instrumentation.targetContext