/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | MediaProjectionHelper.java | 224 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/ |
D | SensitiveContentMediaProjectionHelper.java | 224 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/ |
D | CVE_2020_0294.java | 52 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()
|
D | PermissionBackupCertificateCheckTest.kt | 65 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()
|
D | ActivityManagerTest.java | 219 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/ |
D | TouchModeTest.kt | 77 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>()
|
D | InputInjectionTest.kt | 73 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>()
|
D | VirtualDisplayActivityScenarioRule.kt | 93 .setClass(instrumentation.targetContext, type) in invoke() 136 return instrumentation.targetContext.packageManager in supportsMultiDisplay() 142 instrumentation.targetContext.getSystemService(DisplayManager::class.java) in createDisplay()
|
D | PointerIconTest.kt | 100 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/ |
D | RequestNotificationsTest.kt | 51 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/ |
D | SettingsIntentsTest.java | 70 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in settingActivity_launchSatelliteSettingIntent() local 77 targetContext.startActivity(intent); in settingActivity_launchSatelliteSettingIntent()
|
D | SettingsMultiPaneDeepLinkTest.java | 62 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()
|
D | SettingsIntentsInWorkProfileTest.java | 90 Context targetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in startActivity() local 98 targetContext.startActivity(intent); in startActivity()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/ |
D | CameraTestInstrumentation.java | 46 public void initialize(Context targetContext, MetricListener listener) { in initialize() argument 47 mTargetContext = targetContext; in initialize()
|
/cts/tests/app/src/android/app/cts/ |
D | ApplicationTest.java | 51 final Context targetContext = instrumentation.getTargetContext(); in testApplication() local 53 final Intent intent = new Intent(targetContext, MockApplicationActivity.class); in testApplication()
|
D | ActivityCallbacksTest.java | 79 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/ |
D | ThemeRebaseTest.java | 48 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/ |
D | DomainVerificationDeclaringAppTests.kt | 29 private val context = instrumentation.targetContext
|
/cts/hostsidetests/packagemanager/domainverification/apps/calling/src/com/android/cts/packagemanager/verify/domain/callingapp/ |
D | DomainVerificationCallingAppTests.kt | 29 private val context = instrumentation.targetContext
|
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/ |
D | BaseDynamicMimeTest.java | 41 protected static Context targetContext() { in targetContext() method in BaseDynamicMimeTest
|
/cts/libs/input/src/com/android/cts/input/ |
D | DefaultPointerSpeedRule.kt | 33 .targetContext
|
/cts/tests/tests/notification/NotificationExtenders/src/android/app/notification/extenders/cts/current/ |
D | WearableExtenderApiCurrentTest.kt | 39 mContext = InstrumentationRegistry.getInstrumentation().targetContext in setUp()
|
/cts/tests/tests/notification/NotificationExtenders/src/android/app/notification/extenders/cts/api34/ |
D | WearableExtenderApi34Test.kt | 38 mContext = InstrumentationRegistry.getInstrumentation().targetContext in setUp()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | SystemPaletteTest.kt | 72 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/ |
D | RuntimeMessageCollectionTest.kt | 37 private val context = instrumentation.targetContext
|