/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | IntentGenerationTests.java | 94 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/ |
D | AttributionTagsTest.java | 51 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()
|
D | ActivityManagerTest.java | 138 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 …]
|
D | AppTaskTests.java | 72 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()
|
D | ActivityManagerProcessStateTest.java | 137 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 …]
|
D | ActivityManagerFgsBgStartTest.java | 111 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/ |
D | CameraTestInstrumentation.java | 40 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/ |
D | AccessibilityManagerTest.java | 108 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/ |
D | MultiDisplayPrivateDisplayTests.java | 112 (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()
|
D | MultiDisplaySecurityTests.java | 180 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()
|
D | WindowMetricsActivityTests.java | 200 launchActivity(new ComponentName(mTargetContext, MetricsActivity.class), in testMetricsMatchesLayoutOnFreeformActivity() 236 launchActivity(new ComponentName(mTargetContext, MetricsActivity.class), in testMetricsMatchesDisplayAreaOnFreeformActivity()
|
D | MultiDisplaySystemDecorationTests.java | 548 mTargetContext.getSystemService(WindowManager.class) in testCrossDisplayBasicImeOperations() 667 mTargetContext.getSystemService(WindowManager.class) in testDisplayPolicyImeHideImeNoSystemDecorations()
|
D | MultiDisplayTestBase.java | 101 protected Context mTargetContext; field in MultiDisplayTestBase 122 mTargetContext = getInstrumentation().getTargetContext(); in setUp()
|
D | WindowInsetsControllerTests.java | 357 final View nonControlTarget = new View(mTargetContext); in testSystemUiVisibilityCallbackCausedByInsets()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ScrollerTest.java | 45 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/ |
D | TestHelper.java | 58 private final Context mTargetContext; field in TestHelper 93 mTargetContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in TestHelper()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | WindowInsetsBehaviorTests.java | 190 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/ |
D | ActivityLifecycleFreeformTests.java | 256 mTargetContext.startActivity(intent, bundle); in testPreQTopProcessResumedActivityInFreeform() 263 mTargetContext.startActivity(intent, bundle); in testPreQTopProcessResumedActivityInFreeform()
|
D | ActivityLifecycleClientTestBase.java | 108 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()
|
D | ActivityLifecycleTopResumedStateTests.java | 869 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()
|