Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DIntentGenerationTests.java94 private Context mTargetContext = getInstrumentation().getTargetContext(); field in IntentGenerationTests
100 mLaunchRunner.runAndWrite(mTargetContext, "forResult", CASES.forResultCases()); in generate()
101 mLaunchRunner.runAndWrite(mTargetContext, "newTask", CASES.newTaskCases()); in generate()
102 mLaunchRunner.runAndWrite(mTargetContext, "newDocumentCases", CASES.newDocumentCases()); in generate()
103 mLaunchRunner.runAndWrite(mTargetContext, "resetTaskIfNeeded", CASES.resetTaskIfNeeded()); in generate()
104 mLaunchRunner.runAndWrite(mTargetContext, "clearCases", CASES.clearCases()); in generate()
126 mLaunchRunner.verify(mTargetContext, testCase); in verifySingle()
/cts/tests/app/src/android/app/cts/
DAttributionTagsTest.java51 private Context mTargetContext; field in AttributionTagsTest
57 mTargetContext = InstrumentationRegistry.getTargetContext(); in setUp()
64 final Intent intent = new Intent(mTargetContext, LocalActivity.class); in testActivity()
78 intent.setComponent(new ComponentName(mTargetContext.getPackageName(), in testActivityAlias()
92 final Intent intent = new Intent(mTargetContext, LocalService.class); in testService()
104 final Intent intent = new Intent(mTargetContext, LocalProvider.class); in testProvider()
116 final Intent intent = new Intent(mTargetContext, LocalReceiver.class); in testReceiver()
DActivityManagerTest.java138 private Context mTargetContext; field in ActivityManagerTest
150 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
236 mTargetContext.startActivity(intent);
250 mTargetContext.startActivity(intent);
377 mTargetContext.stopService(intent);
562 mTargetContext.startActivity(intent);
606 mTargetContext.startActivity(intent, options.toBundle());
657 mTargetContext.startActivity(intent);
693 mTargetContext.startActivity(intent, options.toBundle()); in testTimeTrackingAPI_SwitchAwayTriggers()
741 mTargetContext.startActivity(intent, options.toBundle()); in testTimeTrackingAPI_ChainedActivityExit()
[all …]
DAppTaskTests.java72 private Context mTargetContext; field in AppTaskTests
90 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
142 intent.setComponent(new ComponentName(mTargetContext, MockActivity.class)); in testMoveToFront()
171 intent.setComponent(new ComponentName(mTargetContext, MockListActivity.class)); in testStartActivityInTask_NoNewTask()
172 task.startActivity(mTargetContext, intent, null); in testStartActivityInTask_NoNewTask()
192 intent.setComponent(new ComponentName(mTargetContext, MockActivity.class)); in testStartActivityInTask_NewTask()
194 task.startActivity(mTargetContext, intent, null); in testStartActivityInTask_NewTask()
221 ActivityManager am = (ActivityManager) mTargetContext.getSystemService(ACTIVITY_SERVICE); in getAppTasks()
DActivityManagerProcessStateTest.java137 private Context mTargetContext; field in ActivityManagerProcessStateTest
156 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
269 mTargetContext.startActivity(intent); in startActivityAndWaitForShow()
979 mTargetContext.startActivity(activityIntent); in testBackgroundCheckActivityService()
1239 mTargetContext.startActivity(activityIntent); in testBgRestrictedForegroundService()
1256 mTargetContext.startActivity(homeIntent); in testBgRestrictedForegroundService()
1262 mTargetContext.startActivity(activityIntent); in testBgRestrictedForegroundService()
1333 mTargetContext.startActivity(activityIntent); in testCantSaveStateLaunchAndBackground()
1350 mTargetContext.startActivity(homeIntent); in testCantSaveStateLaunchAndBackground()
1371 mTargetContext.startActivity(activityIntent); in testCantSaveStateLaunchAndBackground()
[all …]
DActivityManagerFgsBgStartTest.java111 private Context mTargetContext; field in ActivityManagerFgsBgStartTest
119 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
993 runWithShellPermissionIdentity(() -> mTargetContext.bindService(intent, connection2, in testFgsBindingFlag()
1008 runWithShellPermissionIdentity(() -> mTargetContext.unbindService(connection2)); in testFgsBindingFlag()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/
DCameraTestInstrumentation.java40 private Context mTargetContext; field in CameraTestInstrumentation
47 mTargetContext = targetContext; in initialize()
52 mTargetContext = null; in release()
58 return mTargetContext; in getTargetContext()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityManagerTest.java108 private Context mTargetContext; field in AccessibilityManagerTest
116 mTargetContext = sInstrumentation.getTargetContext(); in setUp()
117 mHandler = new Handler(mTargetContext.getMainLooper()); in setUp()
166 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList()
170 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList()
192 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList()
196 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList()
217 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceListForType()
244 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceListForTypes()
248 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceListForTypes()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayPrivateDisplayTests.java112 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCantAccessPrivateDisplay()
116 assertFalse(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCantAccessPrivateDisplay()
129 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCanAccessPrivateDisplayWithInternalPermission()
135 assertTrue(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCanAccessPrivateDisplayWithInternalPermission()
DMultiDisplaySecurityTests.java180 return mTargetContext.getSystemService(ActivityManager.class) in isActivityStartAllowedOnDisplay()
181 .isActivityStartAllowedOnDisplay(mTargetContext, displayId, intent); in isActivityStartAllowedOnDisplay()
616 final WindowManager wm = mTargetContext.getSystemService(WindowManager.class); in testSettingFlagWithoutInternalSystemPermission()
659 final WindowManager wm = mTargetContext.getSystemService(WindowManager.class); in testGettingFlagWithoutInternalSystemPermission()
685 final WindowManager wm = mTargetContext.getSystemService(WindowManager.class); in testSettingFlagToUntrustedDisplay()
731 final WindowManager wm = mTargetContext.getSystemService(WindowManager.class); in testGettingFlagFromUntrustedDisplay()
753 final WindowManager wm = mTargetContext.getSystemService(WindowManager.class); in testSettingFlagToTrustedDisplay()
DWindowMetricsActivityTests.java200 launchActivity(new ComponentName(mTargetContext, MetricsActivity.class), in testMetricsMatchesLayoutOnFreeformActivity()
236 launchActivity(new ComponentName(mTargetContext, MetricsActivity.class), in testMetricsMatchesDisplayAreaOnFreeformActivity()
DMultiDisplaySystemDecorationTests.java548 mTargetContext.getSystemService(WindowManager.class) in testCrossDisplayBasicImeOperations()
667 mTargetContext.getSystemService(WindowManager.class) in testDisplayPolicyImeHideImeNoSystemDecorations()
DMultiDisplayTestBase.java101 protected Context mTargetContext; field in MultiDisplayTestBase
122 mTargetContext = getInstrumentation().getTargetContext(); in setUp()
DWindowInsetsControllerTests.java357 final View nonControlTarget = new View(mTargetContext); in testSystemUiVisibilityCallbackCausedByInsets()
/cts/tests/tests/widget/src/android/widget/cts/
DScrollerTest.java45 private Context mTargetContext; field in ScrollerTest
49 mTargetContext = InstrumentationRegistry.getTargetContext(); in setup()
50 mScroller = new Scroller(mTargetContext); in setup()
55 new Scroller(mTargetContext); in testConstructor()
57 new Scroller(mTargetContext, new LinearInterpolator()); in testConstructor()
81 mScroller = new Scroller(mTargetContext); in testGetDuration()
321 mScroller = new Scroller(mTargetContext, new LinearInterpolator());
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DTestHelper.java58 private final Context mTargetContext; field in TestHelper
93 mTargetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in TestHelper()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsBehaviorTests.java190 private Context mTargetContext; field in WindowInsetsBehaviorTests
199 final PackageManager pm = mTargetContext.getPackageManager(); in hasSystemGestureFeature()
235 mTargetContext.startActivity(intent); in launchToSettingsSystemGesture()
284 mTargetContext = getInstrumentation().getTargetContext(); in setUp()
289 final DisplayManager dm = mTargetContext.getSystemService(DisplayManager.class); in setUp()
800 Resources res = mTargetContext.getResources(); in assumeGestureNavigationMode()
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityLifecycleFreeformTests.java256 mTargetContext.startActivity(intent, bundle); in testPreQTopProcessResumedActivityInFreeform()
263 mTargetContext.startActivity(intent, bundle); in testPreQTopProcessResumedActivityInFreeform()
DActivityLifecycleClientTestBase.java108 protected Context mTargetContext; field in ActivityLifecycleClientTestBase
116 mTargetContext = getInstrumentation().getTargetContext(); in setUp()
154 final Intent intent = new Intent(mTargetContext, mActivityClass); in launch()
172 mTargetContext.startActivity(intent, optionsBundle); in launch()
DActivityLifecycleTopResumedStateTests.java869 new ComponentName(mTargetContext, secondActivityClass); in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess()
887 mTargetContext.startActivity(defaultDisplaySlowIntent, launchOptions.toBundle()); in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess()
938 new ComponentName(mTargetContext, secondActivityClass); in testTopPositionSwitchAcrossDisplaysOnTapTimeoutDifferentProcess()
956 mTargetContext.startActivity(defaultDisplaySlowIntent, launchOptions.toBundle()); in testTopPositionSwitchAcrossDisplaysOnTapTimeoutDifferentProcess()