Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DIntentGenerationTests.java83 private Context mTargetContext = getInstrumentation().getTargetContext(); field in IntentGenerationTests
89 mLaunchRunner.runAndWrite(mTargetContext, "forResult", CASES.forResultCases()); in generate()
90 mLaunchRunner.runAndWrite(mTargetContext, "newTask", CASES.newTaskCases()); in generate()
91 mLaunchRunner.runAndWrite(mTargetContext, "newDocumentCases", CASES.newDocumentCases()); in generate()
92 mLaunchRunner.runAndWrite(mTargetContext, "resetTaskIfNeeded", CASES.resetTaskIfNeeded()); in generate()
93 mLaunchRunner.runAndWrite(mTargetContext, "clearCases", CASES.clearCases()); in generate()
113 mLaunchRunner.verify(mTargetContext, testCase); in verifySingle()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityManagerTest.java88 private Context mTargetContext; field in AccessibilityManagerTest
96 mTargetContext = sInstrumentation.getTargetContext(); in setUp()
97 mHandler = new Handler(mTargetContext.getMainLooper()); in setUp()
151 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList()
155 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList()
177 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList()
181 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList()
202 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceListForType()
229 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceListForTypes()
233 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceListForTypes()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityLifecycleFreeformTests.java76 mTargetContext.startActivity(firstIntent, bundle); in testLaunchInFreeform()
98 mTargetContext.startActivity(firstIntent, bundle); in testMultiLaunchInFreeform()
102 mTargetContext.startActivity(secondIntent, bundle); in testMultiLaunchInFreeform()
106 mTargetContext.startActivity(thirdIntent, bundle); in testMultiLaunchInFreeform()
134 mTargetContext.startActivity(firstIntent, bundle); in testLaunchOccludingInFreeform()
140 mTargetContext.startActivity(thirdIntent, bundle); in testLaunchOccludingInFreeform()
191 mTargetContext.startActivity(firstIntent, bundle); in testLaunchTranslucentInFreeform()
198 mTargetContext.startActivity(thirdIntent, bundle); in testLaunchTranslucentInFreeform()
255 mTargetContext.startActivity(intent, bundle); in testPreQTopProcessResumedActivityInFreeform()
262 mTargetContext.startActivity(intent, bundle); in testPreQTopProcessResumedActivityInFreeform()
DActivityLifecycleTopResumedStateTests.java351 mTargetContext.startActivity(switchToFirstIntent); in testTopPositionSwitchBetweenVisibleActivities()
364 mTargetContext.startActivity(switchToSecondIntent); in testTopPositionSwitchBetweenVisibleActivities()
385 mTargetContext.startActivity(newIntent); in testTopPositionNewIntent()
408 mTargetContext.startActivity(newIntent); in testTopPositionNewIntentForStopped()
442 mTargetContext.startActivity(newIntent); in testTopPositionNewIntentForPaused()
752 mTargetContext.startActivity(defaultDisplayIntent, launchOptions.toBundle()); in testTopPositionSwitchAcrossDisplays()
769 mTargetContext.startActivity(newDisplayIntent, launchOptions.toBundle()); in testTopPositionSwitchAcrossDisplays()
802 mTargetContext.startActivity(defaultDisplayIntent, launchOptions.toBundle()); in testTopPositionSwitchAcrossDisplaysOnTap()
817 mTargetContext.startActivity(newDisplayIntent, launchOptions.toBundle()); in testTopPositionSwitchAcrossDisplaysOnTap()
884 mTargetContext.startActivity(defaultDisplaySlowIntent, launchOptions.toBundle()); in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess()
[all …]
DActivityLifecycleClientTestBase.java120 protected Context mTargetContext; field in ActivityLifecycleClientTestBase
128 mTargetContext = getInstrumentation().getTargetContext(); in setUp()
139 final Intent intent = new Intent(mTargetContext, activityClass); in launchActivity()
DActivityLifecycleTests.java617 mTargetContext.startActivity(intent); in testLocalRecreate()
652 mTargetContext.startActivity(intent); in testOnNewIntent()
686 mTargetContext.startActivity(intent); in testOnNewIntentFromHidden()
723 mTargetContext.startActivity(intent); in testOnNewIntentFromPaused()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplaySecurityTests.java194 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCanAccessSystemOwnedDisplay()
197 assertTrue(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCanAccessSystemOwnedDisplay()
214 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCanAccessPublicVirtualDisplayWithInternalPermission()
219 assertTrue(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCanAccessPublicVirtualDisplayWithInternalPermission()
236 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCanAccessPrivateVirtualDisplayWithInternalPermission()
241 assertTrue(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCanAccessPrivateVirtualDisplayWithInternalPermission()
259 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCantAccessPublicVirtualDisplayNoEmbeddingPermission()
262 assertFalse(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCantAccessPublicVirtualDisplayNoEmbeddingPermission()
279 (ActivityManager) mTargetContext.getSystemService(Context.ACTIVITY_SERVICE); in testCantAccessPublicVirtualDisplayActivityEmbeddingNotAllowed()
284 assertFalse(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCantAccessPublicVirtualDisplayActivityEmbeddingNotAllowed()
[all …]
DMultiDisplayTestBase.java92 protected Context mTargetContext; field in MultiDisplayTestBase
98 mTargetContext = getInstrumentation().getTargetContext(); in setUp()
DMultiDisplaySystemDecorationTests.java559 mTargetContext.getSystemService(WindowManager.class) in testCrossDisplayBasicImeOperations()
/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/app/src/android/app/cts/
DAppTaskTests.java70 private Context mTargetContext; field in AppTaskTests
88 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
160 intent.setComponent(new ComponentName(mTargetContext, MockListActivity.class)); in testStartActivityInTask_NoNewTask()
161 task.startActivity(mTargetContext, intent, null); in testStartActivityInTask_NoNewTask()
181 intent.setComponent(new ComponentName(mTargetContext, MockActivity.class)); in testStartActivityInTask_NewTask()
183 task.startActivity(mTargetContext, intent, null); in testStartActivityInTask_NewTask()
210 ActivityManager am = (ActivityManager) mTargetContext.getSystemService(ACTIVITY_SERVICE); in getAppTasks()
/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.getTargetContext(); in TestHelper()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsBehaviorTests.java183 private Context mTargetContext; field in WindowInsetsBehaviorTests
192 final PackageManager pm = mTargetContext.getPackageManager(); in hasSystemGestureFeature()
228 mTargetContext.startActivity(intent); in launchToSettingsSystemGesture()
277 mTargetContext = getInstrumentation().getTargetContext(); in setUp()
282 final DisplayManager dm = mTargetContext.getSystemService(DisplayManager.class); in setUp()
787 Resources res = mTargetContext.getResources(); in assumeGestureNavigationMode()