Home
last modified time | relevance | path

Searched refs:mUiDevice (Results 1 – 25 of 51) sorted by relevance

123

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSecondaryLockscreenTest.java58 private UiDevice mUiDevice; field in SecondaryLockscreenTest
64 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
73 mUiDevice.executeShellCommand("settings put global device_policy_constants " in setUp()
75 mUiDevice.executeShellCommand("locksettings set-disabled false"); in setUp()
76 mUiDevice.executeShellCommand("locksettings set-pin 1234"); in setUp()
90 mUiDevice.executeShellCommand("settings delete global device_policy_constants"); in tearDown()
91 mUiDevice.executeShellCommand("locksettings clear --old 1234"); in tearDown()
92 mUiDevice.executeShellCommand("locksettings set-disabled true"); in tearDown()
100 mUiDevice.wait(Until.hasObject(By.text(SimpleKeyguardService.TITLE_LABEL)), in testSetSecondaryLockscreenEnabled()
115 mUiDevice.wait(Until.hasObject(By.text(SimpleKeyguardService.TITLE_LABEL)), in testHomeButton()
[all …]
DLockTaskHostDrivenTest.java48 private UiDevice mUiDevice; field in LockTaskHostDrivenTest
55 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
67 mUiDevice.waitForIdle(); in testStartLockTask_noAsserts()
78 mUiDevice.pressHome(); in testCleanupLockTask_noAsserts()
100 mUiDevice.pressHome(); in testLockTaskIsActiveAndCantBeInterrupted()
101 mUiDevice.waitForIdle(); in testLockTaskIsActiveAndCantBeInterrupted()
104 mUiDevice.pressRecentApps(); in testLockTaskIsActiveAndCantBeInterrupted()
105 mUiDevice.waitForIdle(); in testLockTaskIsActiveAndCantBeInterrupted()
108 mUiDevice.pressBack(); in testLockTaskIsActiveAndCantBeInterrupted()
109 mUiDevice.waitForIdle(); in testLockTaskIsActiveAndCantBeInterrupted()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39622/src/android/security/cts/CVE_2021_39622/
DDeviceTest.java41 private UiDevice mUiDevice; field in DeviceTest
46 mUiDevice.wait(Until.hasObject(micIcon), TIMEOUT_MS); in checkVulnerability()
47 mUiDevice.findObject(micIcon).click(); in checkVulnerability()
52 assertFalse(mUiDevice.wait(Until.hasObject(vulText), TIMEOUT_MS)); in checkVulnerability()
59 mUiDevice = UiDevice.getInstance(instrumentation); in testPocCVE_2021_39622()
84 mUiDevice.wait(Until.hasObject(okButton), TIMEOUT_MS); in testPocCVE_2021_39622()
85 mUiDevice.findObject(okButton).click(); in testPocCVE_2021_39622()
95 mUiDevice.pressBack(); in testPocCVE_2021_39622()
101 mUiDevice.pressHome(); in testPocCVE_2021_39622()
/cts/tests/tests/packageinstaller/tapjacking/src/android/packageinstaller/tapjacking/cts/
DTapjackingTest.java63 private UiDevice mUiDevice; field in TapjackingTest
70 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
71 if (!mUiDevice.isScreenOn()) { in setUp()
72 mUiDevice.wakeUp(); in setUp()
74 mUiDevice.executeShellCommand(WM_DISMISS_KEYGUARD_COMMAND); in setUp()
95 return mUiDevice.wait(Until.findObject(selector), WAIT_FOR_UI_TIMEOUT); in waitForView()
99 return mUiDevice.wait(Until.findObject(getBySelector(id)), WAIT_FOR_UI_TIMEOUT); in waitForButton()
125 assertFalse("Tap on install button succeeded", mUiDevice.wait( in testTapsDroppedWhenObscured()
129 mUiDevice.pressBack(); in testTapsDroppedWhenObscured()
150 assertFalse("Tap on install button succeeded", mUiDevice.wait( in testTapsWhenNotObscured()
[all …]
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallTest.java94 private UiDevice mUiDevice; field in UninstallTest
109 mUiDevice = UiDevice.getInstance(mInstrumentation); in setup()
110 if (!mUiDevice.isScreenOn()) { in setup()
111 mUiDevice.wakeUp(); in setup()
113 mUiDevice.executeShellCommand("wm dismiss-keyguard"); in setup()
133 mUiDevice.dumpWindowHierarchy(outputStream); in dumpWindowHierarchy()
149 mUiDevice.waitForIdle(); in startUninstall()
151 mUiDevice.wakeUp(); in startUninstall()
153 mUiDevice.pressMenu(); in startUninstall()
155 mUiDevice.pressBack(); in startUninstall()
[all …]
DUninstallPinnedTest.java67 private UiDevice mUiDevice; field in UninstallPinnedTest
78 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setup()
80 if (!mUiDevice.isScreenOn()) { in setup()
81 mUiDevice.wakeUp(); in setup()
83 mUiDevice.executeShellCommand("wm dismiss-keyguard"); in setup()
98 mUiDevice.waitForIdle(); in testAppCantUninstallItself()
104 mUiDevice.waitForIdle(); in testAppCantUninstallItself()
136 mUiDevice.executeShellCommand("pm uninstall " + TEST_PKG_NAME); in testCantUninstallWithShell()
146 mUiDevice.executeShellCommand("pm uninstall " + TEST_PKG_NAME); in unpinAndUninstall()
DArchiveTest.java113 private UiDevice mUiDevice; field in ArchiveTest
135 mUiDevice = UiDevice.getInstance(instrumentation); in setup()
136 if (!mUiDevice.isScreenOn()) { in setup()
137 mUiDevice.wakeUp(); in setup()
139 mUiDevice.executeShellCommand("wm dismiss-keyguard"); in setup()
169 mUiDevice.dumpWindowHierarchy(outputStream); in dumpWindowHierarchy()
185 var result = mUiDevice.wait(condition, OneSecond); in waitFor()
220 mUiDevice.waitForIdle(); in requestArchive_confirmationDialog()
229 UiObject2 clickableView = mUiDevice.findObject(By.res(SYSTEM_PACKAGE_NAME, "button1")); in requestArchive_confirmationDialog()
280 mUiDevice.waitForIdle(); in unarchiveApp_weakPermissions()
[all …]
/cts/tests/tests/batterysaving/src/android/os/cts/deviceidle/
DDeviceIdleTest.java52 private UiDevice mUiDevice; field in DeviceIdleTest
56 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
73 final String output = mUiDevice.executeShellCommand("cmd deviceidle enabled light").trim(); in testLightIdleMode()
144 return mUiDevice.executeShellCommand("cmd deviceidle get " + level).trim(); in getIdleState()
148 mUiDevice.executeShellCommand("cmd deviceidle step " + level); in stepIdleState()
156 mUiDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in setScreenState()
157 mUiDevice.executeShellCommand("wm dismiss-keyguard"); in setScreenState()
159 mUiDevice.executeShellCommand("input keyevent KEYCODE_SLEEP"); in setScreenState()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DDialogTests.java68 private UiDevice mUiDevice; field in DialogTests
73 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
80 if (!mUiDevice.isScreenOn()) { in turnScreenOn()
81 mUiDevice.wakeUp(); in turnScreenOn()
100 verifyDialogAndPressUnsuspend(mContext, mUiDevice); in testInterceptorActivity_unsuspend()
171 mUiDevice.wait(Until.findObject(By.text(expectedTitle)), UI_TIMEOUT_MS)); in testInterceptorActivity_moreDetails()
173 mUiDevice.findObject(By.text(expectedMessage))); in testInterceptorActivity_moreDetails()
177 final UiObject2 moreDetailsButton = mUiDevice.findObject( in testInterceptorActivity_moreDetails()
214 mUiDevice.wait(Until.findObject(By.text(expectedTitle)), UI_TIMEOUT_MS)); in testInterceptorActivity_strings()
216 mUiDevice.findObject(By.text(expectedMessage))); in testInterceptorActivity_strings()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21256/src/android/security/cts/CVE_2023_21256/
DDeviceTest.java50 private UiDevice mUiDevice; field in DeviceTest
59 mUiDevice = UiDevice.getInstance(instrumentation); in testSettingsHomePageActivityFromWorkProfile()
100 assumeTrue(mUiDevice.wait(Until.hasObject(By.text(settingsText)), timeoutMs)); in testSettingsHomePageActivityFromWorkProfile()
101 mUiDevice.findObject(By.text(settingsText)).click(); in testSettingsHomePageActivityFromWorkProfile()
110 .matcher(mUiDevice.executeShellCommand(dumpsysActivityCmd)) in testSettingsHomePageActivityFromWorkProfile()
121 .matcher(mUiDevice.executeShellCommand(dumpsysActivityCmd)) in testSettingsHomePageActivityFromWorkProfile()
128 mUiDevice.pressHome(); in testSettingsHomePageActivityFromWorkProfile()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DIdleConstraintTest.java40 private UiDevice mUiDevice; field in IdleConstraintTest
48 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
51 mInitialDisplayTimeout = mUiDevice.executeShellCommand( in setUp()
53 mUiDevice.executeShellCommand("settings put system screen_off_timeout 300000"); in setUp()
65 mUiDevice.executeShellCommand( in tearDown()
87 mUiDevice.executeShellCommand("cmd jobscheduler trigger-dock-state " in toggleFakeDeviceDockState()
97 triggerIdleMaintenance(mUiDevice); in triggerIdleMaintenance()
329 mUiDevice.executeShellCommand("cmd jobscheduler run -s" in runSatisfiedJob()
DExpeditedJobTest.java53 private UiDevice mUiDevice; field in ExpeditedJobTest
61 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
64 setTestPackageStandbyBucket(mUiDevice, JobThrottlingTest.Bucket.ACTIVE); in setUp()
82 setScreenState(mUiDevice, false); in testJobUidState_noRequiredNetwork()
99 setScreenState(mUiDevice, false); in testJobUidState_withRequiredNetwork()
125 setScreenState(mUiDevice, true); in testTopEJUnlimited()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DExtractViewTest.java75 private UiDevice mUiDevice; field in ExtractViewTest
80 mUiDevice = UiDevice.getInstance(mInstrumentation); in setUp()
101 assertThat(mUiDevice.wait(Until.findObject(EXTRACT_EDIT_TEXT_SELECTOR), TIMEOUT)) in testOnCreateExtractTextView()
130 assertThat(mUiDevice.wait( in testOnCreateExtractTextViewWithCustomView()
133 assertThat(mUiDevice.wait(Until.findObject(EXTRACT_EDIT_TEXT_SELECTOR), TIMEOUT)) in testOnCreateExtractTextViewWithCustomView()
135 assertThat(mUiDevice.wait(Until.findObject(EXTRACT_ACCESSORIES_SELECTOR), TIMEOUT)) in testOnCreateExtractTextViewWithCustomView()
137 assertThat(mUiDevice.wait(Until.findObject(EXTRACT_ACTION_SELECTOR), TIMEOUT)) in testOnCreateExtractTextViewWithCustomView()
170 assertThat(mUiDevice.wait(Until.findObject(By.text(label)), TIMEOUT)).isNotNull(); in testSetExtractView()
171 assertThat(mUiDevice.wait(Until.findObject(EXTRACT_EDIT_TEXT_SELECTOR), TIMEOUT)) in testSetExtractView()
173 assertThat(mUiDevice.wait(Until.findObject(EXTRACT_ACCESSORIES_SELECTOR), TIMEOUT)) in testSetExtractView()
[all …]
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DDeviceStatePreserver.java43 private UiDevice mUiDevice; field in DeviceStatePreserver
59 mUiDevice = device; in DeviceStatePreserver()
85 sPreviouslySetCloudProvider = getCurrentCloudProvider(mUiDevice); in saveCurrentCloudProviderState()
114 setCloudProvider(mUiDevice, sPreviouslySetCloudProvider); in restoreCloudProviderState()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DTaskRootActivity.java33 private UiDevice mUiDevice; field in TaskRootActivity
38 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in onCreate()
48 mUiDevice.wait(Until.hasObject(By.clazz(TEST_APP_PKG, TEST_APP_CLASS)), TIMEOUT); in onResume()
/cts/tests/tests/libthermalndk/src/android/thermal/cts/
DNativeThermalTest.java45 private UiDevice mUiDevice; field in NativeThermalTest
57 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
62 mUiDevice.executeShellCommand("cmd thermalservice reset"); in tearDown()
69 mUiDevice.executeShellCommand("cmd thermalservice override-status " + level); in setOverrideStatus()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DDisplayWakeReportedTests.java52 private UiDevice mUiDevice; field in DisplayWakeReportedTests
60 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
61 mUiDevice.executeShellCommand("input keyevent SLEEP"); in setUp()
75 mUiDevice.executeShellCommand("input keyevent WAKEUP"); in testWakeWithWakeKey()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DTestHelper.java59 private final UiDevice mUiDevice; field in TestHelper
94 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in TestHelper()
104 return mUiDevice.executeShellCommand(command).trim(); in shell()
123 mUiDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), TIMEOUT); in launchActivity()
132 return mUiDevice.findObject(By.res(resourceName)); in findUiObject()
/cts/tests/framework/base/windowmanager/src/android/server/wm/backnavigation/
DOnBackInvokedCallbackGestureTest.java53 private UiDevice mUiDevice; field in OnBackInvokedCallbackGestureTest
83 mUiDevice = UiDevice.getInstance(mInstrumentation); in setup()
103 int midHeight = mUiDevice.getDisplayHeight() / 2; in invokesCallback_invoked()
104 int midWidth = mUiDevice.getDisplayWidth() / 2; in invokesCallback_invoked()
137 int midHeight = mUiDevice.getDisplayHeight() / 2; in invokesCallback_cancelled()
138 int midWidth = mUiDevice.getDisplayWidth() / 2; in invokesCallback_cancelled()
199 int midHeight = mUiDevice.getDisplayHeight() / 2; in ignoresKeyCodeBackDuringDispatch()
200 int midWidth = mUiDevice.getDisplayWidth() / 2; in ignoresKeyCodeBackDuringDispatch()
/cts/tests/tests/telecom/src/android/telecom/cts/
DDefaultDialerOperationsTest.java49 private UiDevice mUiDevice; field in DefaultDialerOperationsTest
60 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
301 mUiDevice.pressHome(); in verifySamePackageForIntentHandlingAndUI()
302 mUiDevice.waitForIdle(); in verifySamePackageForIntentHandlingAndUI()
307 mUiDevice.wait( in verifySamePackageForIntentHandlingAndUI()
310 mUiDevice.waitForIdle(); in verifySamePackageForIntentHandlingAndUI()
312 mUiDevice.pressHome(); in verifySamePackageForIntentHandlingAndUI()
313 mUiDevice.waitForIdle(); in verifySamePackageForIntentHandlingAndUI()
/cts/tests/tests/gameframerate/src/
DGameFrameRateTest.java71 private UiDevice mUiDevice; field in GameFrameRateTest
84 mUiDevice = UiDevice.getInstance( in setUp()
86 mUiDevice.wakeUp(); in setUp()
87 mUiDevice.executeShellCommand("wm dismiss-keyguard"); in setUp()
88 mUiDevice.executeShellCommand("device_config put game_overlay" in setUp()
111 mUiDevice.executeShellCommand("device_config delete game_overlay " + TEST_PKG); in tearDown()
182 activity.new GameModeTest(mUiDevice), in testGameModeFrameRateOverride()
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/
DRecognitionServiceMicIndicatorTest.java93 private UiDevice mUiDevice; field in RecognitionServiceMicIndicatorTest
111 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setup()
145 mUiDevice.pressHome(); in teardown()
162 mUiDevice.waitForIdle(); in setCurrentRecognizer()
173 mUiDevice.waitForIdle(); in setIndicatorsEnabledState()
253 mUiDevice.openQuickSettings(); in assertPrivacyChipAndIndicatorsPresent()
259 mUiDevice.findObject(By.res(PRIVACY_CHIP_PACKAGE_NAME, chipId)); in assertPrivacyChipAndIndicatorsPresent()
283 List<UiObject2> labels = mUiDevice.findObjects(selector); in assertPrivacyChipAndIndicatorsPresent()
334 mUiDevice.findObject(By.res(PRIVACY_CHIP_PACKAGE_NAME, chipId)); in waitForNoIndicator()
DAbstractRecognitionServiceTest.java104 private UiDevice mUiDevice; field in AbstractRecognitionServiceTest
119 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setup()
131 mUiDevice.waitForIdle(); in testStartListening()
135 mUiDevice.waitForIdle(); in testStartListening()
153 mUiDevice.waitForIdle(); in testCanCheckForSupport()
158 mUiDevice.waitForIdle(); in testCanCheckForSupport()
208 mUiDevice.waitForIdle(); in testCanCheckForSupport()
214 mUiDevice.waitForIdle(); in testCanTriggerModelDownload()
219 mUiDevice.waitForIdle(); in testCanTriggerModelDownload()
229 mUiDevice.waitForIdle(); in testCanTriggerModelDownload()
[all …]
/cts/tests/tests/packageinstaller/contentprovider/src/android/packageinstaller/contentprovider/cts/
DContentProviderAppVisibilityTestsBase.kt42 private val mUiDevice: UiDevice = UiDevice.getInstance(mInstrumentation) constant in android.packageinstaller.contentprovider.cts.ContentProviderAppVisibilityTestsBase
93 mUiDevice.wait(Until.findObject(By.text(INSTALL_FAIL_DIALOG_TEXT)), DEFAULT_TIMEOUT) in runTest()
94 mDialog = mUiDevice.findObject(By.text(INSTALL_FAIL_DIALOG_TEXT)) in runTest()
95 mButton = mUiDevice.findObject(By.text("OK")) in runTest()
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/steps/home/
DTriggerQRCodeURIActionStepAutomation.java32 private static final UiDevice mUiDevice = UiDevice.getInstance(InstrumentationRegistry field in TriggerQRCodeURIActionStepAutomation
41 UiObject2 tapToSetUpButton = mUiDevice.wait(Until.findObject(By.text(BUTTON_TEXT) in automate()

123