Home
last modified time | relevance | path

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

123

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DMediaProjectionHelper.java224 Context targetContext = instrumentation.getTargetContext(); in authorizeMediaProjection() local
226 Intent intent = new Intent(targetContext, MediaProjectionActivity.class).addFlags( in authorizeMediaProjection()
239 Intent serviceIntent = new Intent(targetContext, MediaProjectionService.class); in authorizeMediaProjection()
240 targetContext.bindService(serviceIntent, new ServiceConnection() { in authorizeMediaProjection()
251 targetContext.startForegroundService(serviceIntent); in authorizeMediaProjection()
272 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in startMediaProjection() local
273 MediaProjectionManager mediaProjectionManager = targetContext.getSystemService( in startMediaProjection()
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/
DSensitiveContentMediaProjectionHelper.java224 Context targetContext = instrumentation.getTargetContext(); in authorizeMediaProjection() local
226 Intent intent = new Intent(targetContext, MediaProjectionActivity.class).addFlags( in authorizeMediaProjection()
239 Intent serviceIntent = new Intent(targetContext, MediaProjectionService.class); in authorizeMediaProjection()
240 targetContext.bindService(serviceIntent, new ServiceConnection() { in authorizeMediaProjection()
251 targetContext.startForegroundService(serviceIntent); in authorizeMediaProjection()
272 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in startMediaProjection() local
273 MediaProjectionManager mediaProjectionManager = targetContext.getSystemService( in startMediaProjection()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2020_0294.java52 Context targetContext = instrumentation.getTargetContext(); in testPocCVE_2020_0294() local
59 spuriousIntent.setPackage(targetContext.getPackageName()); in testPocCVE_2020_0294()
65 pi.send(targetContext, 0, spuriousIntent, null, null); in testPocCVE_2020_0294()
DPermissionBackupCertificateCheckTest.kt65 private val targetContext = InstrumentationRegistry.getTargetContext() constant in android.security.cts.PermissionBackupCertificateCheckTest
726 targetContext.packageManager.updatePermissionFlags( in setFlag()
727 permission, app, flag, flag, targetContext.user) in setFlag()
733 targetContext.packageManager.updatePermissionFlags( in clearFlag()
734 permission, app, flag, 0, targetContext.user) in clearFlag()
741 targetContext.packageManager.getPermissionFlags(permission, app, targetContext.user) in isFlagSet()
749 return targetContext.packageManager.checkPermission(permission, app) in checkPermission()
755 targetContext in getAppOp()
759 targetContext.packageManager.getPackageUid(app, 0), in getAppOp()
DActivityManagerTest.java219 Context targetContext = getInstrumentation().getTargetContext();
222 final Intent baseIntent = new Intent(targetContext, BaseActivity.class);
242 final Intent intent = new Intent(targetContext, ActivityOptionsActivity.class);
258 Context targetContext = getInstrumentation().getTargetContext(); in testActivityManager_rejectRemoteTransition() local
259 final Intent baseIntent = new Intent(targetContext, WaitEnterAnimActivity.class); in testActivityManager_rejectRemoteTransition()
/cts/tests/input/src/android/input/cts/
DTouchModeTest.kt77 private lateinit var targetContext: Context in <lambda>() variable in android.input.cts.TouchModeTest
89 targetContext = instrumentation.targetContext in <lambda>()
90 displayManager = targetContext.getSystemService(DisplayManager::class.java) in <lambda>()
180 val context = instrumentation.targetContext in <lambda>()
203 targetContext.resources.getBoolean(targetContext.resources.getIdentifier( in <lambda>()
230 targetContext.resources.getBoolean(targetContext.resources.getIdentifier( in <lambda>()
DInputInjectionTest.kt73 private lateinit var targetContext: Context in <lambda>() variable in android.input.cts.InputInjectionTest
80 targetContext = instrumentation.targetContext in <lambda>()
104 targetContext.startActivity(Intent().apply { in <lambda>()
201 targetContext.startActivity(Intent().apply { in <lambda>()
DVirtualDisplayActivityScenarioRule.kt93 .setClass(instrumentation.targetContext, type) in invoke()
136 return instrumentation.targetContext.packageManager in supportsMultiDisplay()
142 instrumentation.targetContext.getSystemService(DisplayManager::class.java) in createDisplay()
DPointerIconTest.kt100 val context = InstrumentationRegistry.getInstrumentation().targetContext in setUp()
142 PointerIcon.load(InstrumentationRegistry.getInstrumentation().targetContext.resources, in testLoadBitmapIcon()
160 InstrumentationRegistry.getInstrumentation().targetContext.resources, in testLoadVectorIconNoShadow()
182 PointerIcon.load(InstrumentationRegistry.getInstrumentation().targetContext.resources, in testLoadVectorIcon()
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DRequestNotificationsTest.kt51 ComponentName(instrumentation.targetContext, NotificationListener::class.java)) in test_requestNotifications()
57 ComponentName(instrumentation.targetContext, NotificationListener::class.java)) in test_requestNotifications()
/cts/tests/tests/settings/src/android/settings/cts/
DSettingsIntentsTest.java70 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in settingActivity_launchSatelliteSettingIntent() local
77 targetContext.startActivity(intent); in settingActivity_launchSatelliteSettingIntent()
DSettingsMultiPaneDeepLinkTest.java62 Context targetContext = InstrumentationRegistry.getInstrumentation() in setUp() local
65 FeatureFlagUtils.isEnabled(targetContext, "settings_support_large_screen"); in setUp()
68 boolean isSplitSupported = SplitController.getInstance(targetContext) in setUp()
DSettingsIntentsInWorkProfileTest.java90 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in startActivity() local
98 targetContext.startActivity(intent); in startActivity()
/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()
/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/libs/input/src/com/android/cts/input/
DDefaultPointerSpeedRule.kt33 .targetContext
/cts/tests/tests/notification/NotificationExtenders/src/android/app/notification/extenders/cts/current/
DWearableExtenderApiCurrentTest.kt39 mContext = InstrumentationRegistry.getInstrumentation().targetContext in setUp()
/cts/tests/tests/notification/NotificationExtenders/src/android/app/notification/extenders/cts/api34/
DWearableExtenderApi34Test.kt38 mContext = InstrumentationRegistry.getInstrumentation().targetContext in setUp()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSystemPaletteTest.kt72 val context = getInstrumentation().targetContext in <lambda>()
95 val context = getInstrumentation().targetContext in <lambda>()
126 val context = getInstrumentation().targetContext in <lambda>()
184 val context = getInstrumentation().targetContext in <lambda>()
524 context: Context = getInstrumentation().targetContext in <lambda>()
789 .targetContext in <lambda>()
808 val context: Context = getInstrumentation().targetContext in <lambda>()
/cts/tests/tests/appop/src/android/app/appops/cts/
DRuntimeMessageCollectionTest.kt37 private val context = instrumentation.targetContext

123