Home
last modified time | relevance | path

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

12345678910>>...13

/cts/tests/app/src/android/app/cts/
DInstrumentationTest.java82 private Instrumentation mInstrumentation; field in InstrumentationTest
91 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
92 mContext = mInstrumentation.getTargetContext(); in setUp()
95 mActivity = (InstrumentationTestActivity) mInstrumentation.startActivitySync(mIntent); in setUp()
101 mInstrumentation = null; in tearDown()
112 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in testDefaultProcessInstrumentation()
120 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in testAltProcessInstrumentation()
128 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in testWildcardProcessInstrumentation()
137 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in testMultiProcessInstrumentation()
149 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in testEnforceStartFromShell()
[all …]
DActivityManagerFgsBgStartTest.java141 private Instrumentation mInstrumentation; field in ActivityManagerFgsBgStartTest
152 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
153 mContext = mInstrumentation.getContext(); in setUp()
154 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
156 CtsAppTestUtils.makeUidIdle(mInstrumentation, PACKAGE_NAMES[i]); in setUp()
163 CtsAppTestUtils.turnScreenOn(mInstrumentation, mContext); in setUp()
168 UiDevice.getInstance(mInstrumentation).pressHome(); in setUp()
174 CtsAppTestUtils.makeUidIdle(mInstrumentation, PACKAGE_NAMES[i]); in tearDown()
196 mInstrumentation.getUiAutomation().performGlobalAction( in cleanupResiduals()
224 WatchUidRunner uid1Watcher = new WatchUidRunner(mInstrumentation, app1Info.uid, in testFgsLocationStartFromBG()
[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()
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 …]
DActivityManagerFgsDelegateTest.java90 private Instrumentation mInstrumentation; field in ActivityManagerFgsDelegateTest
100 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
101 mContext = mInstrumentation.getContext(); in setUp()
103 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
104 CtsAppTestUtils.turnScreenOn(mInstrumentation, mContext); in setUp()
108 UiDevice.getInstance(mInstrumentation).pressHome(); in setUp()
132 mInstrumentation.getUiAutomation().performGlobalAction( in cleanupResiduals()
138 CtsAppTestUtils.executeShellCmd(mInstrumentation, in prepareProcess()
146 CtsAppTestUtils.executeShellCmd(mInstrumentation, in prepareProcess()
162 mInstrumentation, DUMP_COMMAND).split("\n"); in testFgsDelegate()
[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/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsServiceConnector.java299 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in setDeviceImsService()
311 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in setCarrierImsService()
323 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in setDeviceImsService()
334 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in setCarrierImsService()
344 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in clearCarrierImsServiceOverride()
353 RoleManager roleManager = mInstrumentation.getContext() in setDefaultSmsApp()
379 RoleManager roleManager = mInstrumentation.getContext() in getDefaultSmsApp()
415 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in getMmTelCarrierService()
424 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in getRcsCarrierService()
433 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in getMmTelDeviceService()
[all …]
/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/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, ALLOW_FGS_START_CMD + pkg + extra); in startFgsBootCompleted()
108 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
109 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
176 mInstrumentation.getUiAutomation().grantRuntimePermission(TARGET_APP_CURRENT, in fgsTypeLocationAllowedStartTest()
178 mInstrumentation.getUiAutomation().grantRuntimePermission(TARGET_APP_CURRENT, in fgsTypeLocationAllowedStartTest()
185 mInstrumentation.getUiAutomation().revokeRuntimePermission(TARGET_APP_CURRENT, in fgsTypeLocationAllowedStartTest()
187 mInstrumentation.getUiAutomation().revokeRuntimePermission(TARGET_APP_CURRENT, in fgsTypeLocationAllowedStartTest()
195 mInstrumentation.getUiAutomation().revokeRuntimePermission(TARGET_APP_CURRENT, in fgsTypeLocationAllowedStartTest_noPermission()
[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/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/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/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/framework/base/biometrics/src/android/server/biometrics/fingerprint/
DFingerprintManagerTest.java118 @NonNull private Instrumentation mInstrumentation; field in FingerprintManagerTest
126 mInstrumentation = getInstrumentation(); in setUp()
127 mDevice = UiDevice.getInstance(mInstrumentation); in setUp()
128 mFingerprintManager = mInstrumentation.getContext() in setUp()
130 mBiometricManager = mInstrumentation.getContext() in setUp()
137 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(); in setUp()
157 mInstrumentation.waitForIdleSync(); in cleanup()
160 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in cleanup()
206 mInstrumentation.waitForIdleSync(); in testEnrollForSensor()
210 mInstrumentation.waitForIdleSync(); in testEnrollForSensor()
[all …]
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlViewHostTests.java171 private Instrumentation mInstrumentation; field in SurfaceControlViewHostTests
240 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
241 mCtsTouchUtils = new CtsTouchUtils(mInstrumentation.getTargetContext()); in setUp()
243 mTouchScreen = new UinputTouchScreen(mInstrumentation, mActivity.getDisplay()); in setUp()
244 mInstrumentation.waitForIdleSync(); in setUp()
249 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity( in setUp()
259 mInstrumentation.getContext().unbindService(connection); in tearDown()
262 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in tearDown()
464 mInstrumentation.waitForIdleSync(); in testEmbeddedViewReceivesInput()
467 mCtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mSurfaceView); in testEmbeddedViewReceivesInput()
[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 …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DKeyboardVisibilityControlTest.java178 private Instrumentation mInstrumentation; field in KeyboardVisibilityControlTest
183 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
184 mCtsTouchUtils = new CtsTouchUtils(mInstrumentation.getTargetContext()); in setup()
247 final InputMethodManager imm = mInstrumentation in testBasicShowHideSoftInput()
251 mInstrumentation.getContext(), in testBasicShowHideSoftInput()
252 mInstrumentation.getUiAutomation(), in testBasicShowHideSoftInput()
298 final Instrumentation instrumentation = mInstrumentation; in verifyHideImeBackPressed()
440 final InputMethodManager imm = mInstrumentation in testShowHideSoftInputShouldBeIgnoredOnNonFocusedView()
444 mInstrumentation.getContext(), in testShowHideSoftInputShouldBeIgnoredOnNonFocusedView()
445 mInstrumentation.getUiAutomation(), in testShowHideSoftInputShouldBeIgnoredOnNonFocusedView()
[all …]
/cts/tests/tests/toast/src/android/widget/toast/cts/
DBaseToastTest.java40 protected Instrumentation mInstrumentation; field in BaseToastTest
46 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
47 mUiAutomation = mInstrumentation.getUiAutomation(); in setUp()
57 mInstrumentation.runOnMainSync( in showToastsViaToastApis()
75 mInstrumentation.runOnMainSync(() -> { in showToastsViaAddingWindow()
/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/
DMockModemServiceConnector.java72 private Instrumentation mInstrumentation; field in MockModemServiceConnector
80 mInstrumentation = instrumentation; in MockModemServiceConnector()
94 mInstrumentation in setupLocalMockModemService()
97 new Intent(mInstrumentation.getContext(), MockModemService.class), in setupLocalMockModemService()
125 mInstrumentation, constructSetModemServiceOverrideCommand()); in setModemService()
133 mInstrumentation, constructGetModemServiceCommand()); in getModemService()
141 mInstrumentation, constructClearModemServiceOverrideCommand()); in clearModemServiceOverride()
250 mInstrumentation.getContext().unbindService(mMockModemServiceConn); in disconnectMockModemService()
/cts/tests/framework/base/windowmanager/src/android/server/wm/backnavigation/
DBackNavigationLegacyTest.java40 private Instrumentation mInstrumentation; field in BackNavigationLegacyTest
44 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
54 mInstrumentation.waitForIdleSync(); in receiveOnBackPressed()
55 mInstrumentation.getUiAutomation().syncInputTransactions(); in receiveOnBackPressed()

12345678910>>...13