Home
last modified time | relevance | path

Searched refs:mInstrumentation (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/cts/tests/app/src/android/app/cts/
DInstrumentationTest.java83 private Instrumentation mInstrumentation; field in InstrumentationTest
95 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
96 mContext = mInstrumentation.getTargetContext(); in setUp()
100 mActivity = (InstrumentationTestActivity) mInstrumentation.startActivitySync(mIntent); in setUp()
106 mInstrumentation = null; in tearDown()
118 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in testDefaultProcessInstrumentation()
127 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in testAltProcessInstrumentation()
136 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in testWildcardProcessInstrumentation()
146 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in testMultiProcessInstrumentation()
159 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in testEnforceStartFromShell()
[all …]
DActivityManagerFgsDelegateTest.java88 private Instrumentation mInstrumentation; field in ActivityManagerFgsDelegateTest
98 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
99 mContext = mInstrumentation.getContext(); in setUp()
101 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
102 CtsAppTestUtils.turnScreenOn(mInstrumentation, mContext); in setUp()
106 UiDevice.getInstance(mInstrumentation).pressHome(); in setUp()
130 mInstrumentation.getUiAutomation().performGlobalAction( in cleanupResiduals()
136 CtsAppTestUtils.executeShellCmd(mInstrumentation, in prepareProcess()
144 CtsAppTestUtils.executeShellCmd(mInstrumentation, in prepareProcess()
160 mInstrumentation, DUMP_COMMAND).split("\n"); in testFgsDelegate()
[all …]
DTabActivityTest.java32 private Instrumentation mInstrumentation; field in TabActivityTest
39 mInstrumentation = super.getInstrumentation(); in setUp()
63 mInstrumentation.waitForIdleSync(); in testTabActivity()
68 mActivity = (MockTabActivity) mInstrumentation.startActivitySync(intent); in testTabActivity()
87 final Context context = mInstrumentation.getTargetContext(); in testChildTitleCallback()
94 mChildActivity = mInstrumentation.newActivity(MockTabActivity.class, mInstrumentation in testChildTitleCallback()
DActivityManagerNotifyMediaFGSTypeTest.java82 private Instrumentation mInstrumentation; field in ActivityManagerNotifyMediaFGSTypeTest
89 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
90 mContext = mInstrumentation.getContext(); in setUp()
91 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
95 CtsAppTestUtils.turnScreenOn(mInstrumentation, mContext); in setUp()
108 mInstrumentation in setUp()
132 mInstrumentation.getUiAutomation().performGlobalAction( in cleanUp()
139 WatchUidRunner uid1Watcher = new WatchUidRunner(mInstrumentation, app1Info.uid, in setupMediaForegroundService()
173 WatchUidRunner uid1Watcher = new WatchUidRunner(mInstrumentation, app1Info.uid, in cleanUpMediaForegroundService()
190 new WatchUidRunner(mInstrumentation, app1Info.uid, WAITFOR_MSEC); in setupMediaService()
[all …]
DLauncherActivityTest.java47 private Instrumentation mInstrumentation; field in LauncherActivityTest
52 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
61 mInstrumentation.runOnMainSync(() -> { in testLaunchActivity()
78 mInstrumentation.waitForIdleSync(); in testLaunchActivity()
92 mInstrumentation.sendKeyDownUpSync(keys[i]); in sendKeys()
99 mInstrumentation.waitForIdleSync(); in sendKeys()
DAlertDialog_BuilderTest.java113 mInstrumentation.waitForIdleSync(); in testSetIconWithParamInt()
124 mInstrumentation.waitForIdleSync(); in testSetIconWithParamDrawable()
135 mInstrumentation.waitForIdleSync(); in testSetIconAttribute()
148 mInstrumentation.waitForIdleSync(); in testSetPositiveButtonWithParamInt()
168 mInstrumentation.waitForIdleSync(); in testSetPositiveButtonWithParamCharSequence()
187 mInstrumentation.waitForIdleSync(); in testSetNegativeButtonWithParamCharSequence()
206 mInstrumentation.waitForIdleSync(); in testSetNegativeButtonWithParamInt()
225 mInstrumentation.waitForIdleSync(); in testSetNeutralButtonWithParamInt()
244 mInstrumentation.waitForIdleSync(); in testSetNeutralButtonWithParamCharSequence()
260 mInstrumentation.waitForIdleSync(); in testCancelable()
[all …]
DActivityManagerFgsBgStartTest.java150 private Instrumentation mInstrumentation; field in ActivityManagerFgsBgStartTest
167 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
168 mContext = mInstrumentation.getContext(); in setUp()
169 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
172 CtsAppTestUtils.makeUidIdle(mInstrumentation, PACKAGE_NAMES[i]); in setUp()
180 CtsAppTestUtils.turnScreenOn(mInstrumentation, mContext); in setUp()
185 UiDevice.getInstance(mInstrumentation).pressHome(); in setUp()
192 CtsAppTestUtils.makeUidIdle(mInstrumentation, PACKAGE_NAMES[i]); in tearDown()
214 mInstrumentation.getUiAutomation().performGlobalAction( in cleanupResiduals()
242 WatchUidRunner uid1Watcher = new WatchUidRunner(mInstrumentation, app1Info.uid, in testFgsLocationStartFromBG()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DContentPaneFocusTest.java51 private Instrumentation mInstrumentation; field in ContentPaneFocusTest
66 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
75 mInstrumentation.waitForIdleSync(); in testAccessActionBar()
77 mInstrumentation.waitForIdleSync(); in testAccessActionBar()
96 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testAccessActionBar()
97 mInstrumentation.waitForIdleSync(); in testAccessActionBar()
104 mInstrumentation.waitForIdleSync(); in testAccessActionBar()
110 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testAccessActionBar()
111 mInstrumentation.waitForIdleSync(); in testAccessActionBar()
123 mInstrumentation.waitForIdleSync(); in testNoFocusablesInContent()
[all …]
DMenuItemTest.java49 private Instrumentation mInstrumentation; field in MenuItemTest
67 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
95 mInstrumentation.runOnMainSync(() -> { in testAccessIconTint()
99 mInstrumentation.waitForIdleSync(); in testAccessIconTint()
104 mInstrumentation.runOnMainSync(() -> firstItem.setIcon(R.drawable.icon_yellow)); in testAccessIconTint()
105 mInstrumentation.waitForIdleSync(); in testAccessIconTint()
111 mInstrumentation.runOnMainSync(() -> { in testAccessIconTint()
115 mInstrumentation.waitForIdleSync(); in testAccessIconTint()
/cts/tests/tests/text/src/android/text/method/cts/
DKeyListenerTestCase.java54 protected Instrumentation mInstrumentation; field in KeyListenerTestCase
71 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
72 mContext = mInstrumentation.getTargetContext(); in setup()
116 mInstrumentation.runOnMainSync(() -> mTextView.setKeyListener(keyListener)); in setKeyListenerSync()
117 mInstrumentation.waitForIdleSync(); in setKeyListenerSync()
134 mCtsKeyEventUtil.sendKeys(mInstrumentation, targetView, keys); in sendKeys()
138 mCtsKeyEventUtil.sendKeys(mInstrumentation, targetView, keysSequence); in sendKeys()
142 mCtsKeyEventUtil.sendKey(mInstrumentation, targetView, event); in sendKey()
146 mCtsKeyEventUtil.sendKeyDownUp(mInstrumentation, targetView, key); in sendKeyDownUp()
151 mCtsKeyEventUtil.sendKeyWhileHoldingModifier(mInstrumentation, targetView, keyCodeToSend, in sendKeyWhileHoldingModifier()
[all …]
DTouchTest.java63 private Instrumentation mInstrumentation; field in TouchTest
78 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
97 mInstrumentation.waitForIdleSync(); in testScrollTo()
102 mInstrumentation.waitForIdleSync(); in testScrollTo()
109 mInstrumentation.waitForIdleSync(); in testScrollTo()
115 mInstrumentation.waitForIdleSync(); in testScrollTo()
120 mInstrumentation.waitForIdleSync(); in testScrollTo()
149 mInstrumentation.waitForIdleSync(); in testOnTouchEvent()
164 mInstrumentation.waitForIdleSync(); in testOnTouchEvent()
175 mInstrumentation.waitForIdleSync(); in testOnTouchEvent()
[all …]
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DPermissionHelper.java22 private final Instrumentation mInstrumentation; field in PermissionHelper
28 mInstrumentation = instrumentation; in PermissionHelper()
29 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(permissions); in PermissionHelper()
34 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in close()
/cts/hostsidetests/biometrics/app/src/android/server/biometrics/cts/app/
DBiometricsAtomsHostSideTests.java71 private Instrumentation mInstrumentation; field in BiometricsAtomsHostSideTests
80 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
81 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(TEST_BIOMETRIC); in setup()
82 mDevice = UiDevice.getInstance(mInstrumentation); in setup()
84 mUserId = mInstrumentation.getContext().getUserId(); in setup()
85 mBiometricManager = mInstrumentation.getContext().getSystemService(BiometricManager.class); in setup()
125 mInstrumentation.waitForIdleSync(); in teardown()
132 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in teardown()
145 mInstrumentation.waitForIdleSync(); in testEnroll()
152 mInstrumentation.waitForIdleSync(); in testEnroll()
[all …]
/cts/hostsidetests/appsecurity/test-apps/rro/OverlayTarget/src/com/android/cts/overlay/target/
DOverlayTargetTest.java52 private Instrumentation mInstrumentation; field in OverlayTargetTest
60 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
86 mInstrumentation.waitForIdleSync(); in overlayEnabled_activityInBackground_toForeground()
99 final Intent intent = new Intent(mInstrumentation.getTargetContext(), in overlayEnabled_activityInBackground_toForeground()
110 final Intent intent = new Intent(mInstrumentation.getTargetContext(), in launchOverlayTargetActivity()
116 mInstrumentation.waitForIdleSync(); in launchOverlayTargetActivity()
121 intent.setClass(mInstrumentation.getTargetContext(), SimpleActivity.class); in launchSimpleActivity()
123 mInstrumentation.startActivitySync(intent); in launchSimpleActivity()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsServiceConnector.java300 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in setDeviceImsService()
315 String result = TelephonyUtils.executeShellCommand(mInstrumentation, command); in setCarrierImsService()
325 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in setDeviceImsService()
336 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in setCarrierImsService()
346 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in clearCarrierImsServiceOverride()
355 RoleManager roleManager = mInstrumentation.getContext() in setDefaultSmsApp()
381 RoleManager roleManager = mInstrumentation.getContext() in getDefaultSmsApp()
416 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in getMmTelCarrierService()
425 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in getRcsCarrierService()
434 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in getMmTelDeviceService()
[all …]
/cts/tests/app/src/android/app/cts/fgs/bootcompleted/
DBootCompletedFgsStartTest.java69 private Instrumentation mInstrumentation; field in BootCompletedFgsStartTest
98 CtsAppTestUtils.executeShellCmd(mInstrumentation, "am compat " + action in enableFgsRestriction()
103 CtsAppTestUtils.executeShellCmd(mInstrumentation, in startFgsBootCompleted()
109 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
110 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
177 mInstrumentation.getUiAutomation().grantRuntimePermission(TARGET_APP_CURRENT, in fgsTypeLocationAllowedStartTest()
179 mInstrumentation.getUiAutomation().grantRuntimePermission(TARGET_APP_CURRENT, in fgsTypeLocationAllowedStartTest()
186 mInstrumentation.getUiAutomation().revokeRuntimePermission(TARGET_APP_CURRENT, in fgsTypeLocationAllowedStartTest()
188 mInstrumentation.getUiAutomation().revokeRuntimePermission(TARGET_APP_CURRENT, in fgsTypeLocationAllowedStartTest()
196 mInstrumentation.getUiAutomation().revokeRuntimePermission(TARGET_APP_CURRENT, in fgsTypeLocationAllowedStartTest_noPermission()
[all …]
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DServiceProcessController.java43 final Instrumentation mInstrumentation; field in ServiceProcessController
68 mInstrumentation = instrumentation; in ServiceProcessController()
113 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in denyBackgroundOp()
123 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in allowBackgroundOp()
130 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in denyAnyInBackgroundOp()
136 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in allowAnyInBackgroundOp()
141 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in makeUidIdle()
146 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in removeFromWhitelist()
151 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in addToWhitelist()
157 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in tempWhitelist()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/util/
DListUtil.java29 private final Instrumentation mInstrumentation; field in ListUtil
37 mInstrumentation = instrumentation; in ListUtil()
56 mInstrumentation.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN); in arrowDownToSelectedPosition()
67 mInstrumentation.sendCharacterSync(KeyEvent.KEYCODE_DPAD_UP); in arrowUpToSelectedPosition()
/cts/tests/tests/os/src/android/os/image/cts/
DDynamicSystemClientTest.java46 private Instrumentation mInstrumentation; field in DynamicSystemClientTest
51 return mInstrumentation.getContext().getPackageManager(); in getPackageManager()
60 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
61 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(); in setUp()
66 DynamicSystemClient dSClient = new DynamicSystemClient(mInstrumentation.getTargetContext()); in testDynamicSystemClient()
102 DynamicSystemClient dSClient = new DynamicSystemClient(mInstrumentation.getTargetContext()); in testDynamicSystemClient_withoutOnStatusChangedListener()
135 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in tearDown()
/cts/tests/tests/tv/src/android/media/tv/interactive/cts/
DTvInteractiveAppViewTest.java56 private Instrumentation mInstrumentation; field in TvInteractiveAppViewTest
90 mInstrumentation.runOnMainSync(new Runnable() { in runTestOnUiThread()
110 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
113 mInstrumentation.getTargetContext(), TvInteractiveAppViewStubActivity.class); in setUp()
151 mInstrumentation.waitForIdleSync(); in tearDown()
172 mInstrumentation.waitForIdleSync(); in testStartInteractiveApp()
216 mInstrumentation.waitForIdleSync(); in testSetZOrderMediaOverlay()
218 mInstrumentation.waitForIdleSync(); in testSetZOrderMediaOverlay()
227 mInstrumentation.waitForIdleSync(); in testSetZOrderOnTop()
229 mInstrumentation.waitForIdleSync(); in testSetZOrderOnTop()
/cts/tests/tests/preference/src/android/preference/cts/
DTestUtils.java49 private final Instrumentation mInstrumentation; field in TestUtils
57 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in TestUtils()
58 mContext = mInstrumentation.getTargetContext(); in TestUtils()
60 mDevice = UiDevice.getInstance(mInstrumentation); in TestUtils()
61 mAutomation = mInstrumentation.getUiAutomation(); in TestUtils()
138 int resourceId = mInstrumentation.getTargetContext().getResources() in getStatusBarHeight()
141 mStatusBarHeight = mInstrumentation.getTargetContext().getResources() in getStatusBarHeight()
155 int resourceId = mInstrumentation.getTargetContext().getResources() in getNavigationBarHeight()
158 mNavigationBarHeight = mInstrumentation.getTargetContext().getResources() in getNavigationBarHeight()
/cts/tests/tests/tv/src/android/media/tv/ad/cts/
DTvAdViewTest.java65 private Instrumentation mInstrumentation; field in TvAdViewTest
74 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
76 intent.setClass(mInstrumentation.getTargetContext(), TvAdStubActivity.class); in setUp()
145 mInstrumentation.runOnMainSync(new Runnable() { in runTestOnUiThread()
165 mInstrumentation.waitForIdleSync(); in testSetZOrderMediaOverlay()
167 mInstrumentation.waitForIdleSync(); in testSetZOrderMediaOverlay()
176 mInstrumentation.waitForIdleSync(); in testSetZOrderOnTop()
178 mInstrumentation.waitForIdleSync(); in testSetZOrderOnTop()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlViewHostTests.java181 private Instrumentation mInstrumentation; field in SurfaceControlViewHostTests
252 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
253 mCtsTouchUtils = new CtsTouchUtils(mInstrumentation.getTargetContext()); in setUp()
256 mTouchScreen = new UinputTouchScreen(mInstrumentation, mActivity.getDisplay()); in setUp()
257 mInstrumentation.waitForIdleSync(); in setUp()
262 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity( in setUp()
272 mInstrumentation.getContext().unbindService(connection); in tearDown()
275 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in tearDown()
483 mInstrumentation.waitForIdleSync(); in testEmbeddedViewReceivesInput()
486 mCtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mSurfaceView); in testEmbeddedViewReceivesInput()
[all …]
/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/
DFingerprintManagerTest.java127 @NonNull private Instrumentation mInstrumentation; field in FingerprintManagerTest
135 mInstrumentation = getInstrumentation(); in setUp()
136 mDevice = UiDevice.getInstance(mInstrumentation); in setUp()
137 mFingerprintManager = mInstrumentation.getContext() in setUp()
139 mBiometricManager = mInstrumentation.getContext() in setUp()
146 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(); in setUp()
166 mInstrumentation.waitForIdleSync(); in cleanup()
169 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in cleanup()
215 mInstrumentation.waitForIdleSync(); in testEnrollForSensor()
219 mInstrumentation.waitForIdleSync(); in testEnrollForSensor()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTimePickerTest.java70 private Instrumentation mInstrumentation; field in TimePickerTest
88 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
89 mCtsTouchUtils = new CtsTouchUtils(mInstrumentation.getTargetContext()); in setup()
90 mCtsKeyEventUtil = new CtsKeyEventUtil(mInstrumentation.getTargetContext()); in setup()
387 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeClock()
396 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeClock()
416 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeSpinner()
428 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeSpinner()
446 mCtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, in testKeyboardInputModeClockAmPm()
477 mCtsKeyEventUtil.sendKeyWhileHoldingModifier(mInstrumentation, mTimePicker, in testKeyboardInputModeClockAmPm()
[all …]

12345678910>>...14