Home
last modified time | relevance | path

Searched refs:sDevice (Results 1 – 25 of 26) sorted by relevance

12

/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/
DAppCloningBaseHostTest.java59 String output = sDevice.executeShellCommand( in createAndStartCloneUser()
78 CommandResult out = sDevice.executeShellV2Command("am start-user -w " + userId); in startUserAndWait()
83 CommandResult out = sDevice.executeShellV2Command( in waitForBroadcastIdle()
93 sDevice.executeShellCommand("pm remove-user " + userId); in removeUser()
100 sDevice.executeShellCommand("sm set-force-adoptable on"); in createSDCardVirtualDisk()
101 sDevice.executeShellCommand("sm set-virtual-disk true"); in createSDCardVirtualDisk()
113 sDevice.executeShellCommand("sm set-virtual-disk false"); in removeVirtualDisk()
145 assumeTrue("device doesn't have " + feature, sDevice.hasFeature(feature)); in assumeHasDeviceFeature()
149 return sDevice.getMaxNumberOfUsersSupported() > 2 in supportsMoreThanTwoUsers()
150 && sDevice.getMaxNumberOfRunningUsersSupported() > 2; in supportsMoreThanTwoUsers()
[all …]
DBaseHostTestCase.java43 protected static ITestDevice sDevice = null; field in BaseHostTestCase
47 sDevice = device; in setDevice()
51 return sDevice.executeShellCommand(String.format(cmd, args)); in executeShellCommand()
55 return sDevice.executeShellV2Command(String.format(cmd, args)); in executeShellV2Command()
59 return sDevice.isPackageInstalled(packageName, userId); in isPackageInstalled()
64 String result = sDevice in isHeadlessSystemUserMode()
70 return sDevice.getMaxNumberOfUsersSupported() > 1; in supportsMultipleUsers()
74 DeviceSdkLevel deviceSdkLevel = new DeviceSdkLevel(sDevice); in isAtLeastS()
79 DeviceSdkLevel deviceSdkLevel = new DeviceSdkLevel(sDevice); in isAtLeastT()
152 mCurrentUserId = sDevice.getCurrentUser(); in setCurrentUserId()
[all …]
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DPhotoPickerTest.java125 clickAndWait(sDevice, item); in testSingleSelect()
142 UiObject albumsTab = sDevice.findObject(new UiSelector().text( in testSingleSelectForFavoritesAlbum()
144 clickAndWait(sDevice, albumsTab); in testSingleSelectForFavoritesAlbum()
146 clickAndWait(sDevice, album); in testSingleSelectForFavoritesAlbum()
149 clickAndWait(sDevice, item); in testSingleSelectForFavoritesAlbum()
166 UiObject albumsTab = sDevice.findObject(new UiSelector().text( in testLaunchPreviewMultipleForVideoAlbum()
168 clickAndWait(sDevice, albumsTab); in testLaunchPreviewMultipleForVideoAlbum()
170 clickAndWait(sDevice, album); in testLaunchPreviewMultipleForVideoAlbum()
178 clickAndWait(sDevice, itemList.get(i)); in testLaunchPreviewMultipleForVideoAlbum()
181 clickAndWait(sDevice, findViewSelectedButton()); in testLaunchPreviewMultipleForVideoAlbum()
[all …]
DPhotoPickerBaseTest.java47 protected static final UiDevice sDevice = UiDevice.getInstance(sInstrumentation); field in PhotoPickerBaseTest
64 sDevice.executeShellCommand(setSyncDelayCommand); in setUp()
71 sDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in setUp()
72 sDevice.executeShellCommand("wm dismiss-keyguard"); in setUp()
78 sDevice.waitForIdle(); in setUp()
91 PhotoPickerCloudUtils.setCloudProvider(sDevice, authority); in setCloudProvider()
95 return PhotoPickerCloudUtils.getCurrentCloudProvider(sDevice); in getCurrentCloudProvider()
DActionGetContentOnlyTest.java97 sDevice.waitForIdle(); in testMimeTypeFilter()
113 sDevice.waitForIdle(); in testExtraMimeTypeFilter()
137 findAndClickBrowse(sDevice); in testBrowse_singleSelect()
163 findAndClickBrowse(sDevice); in testBrowse_multiSelect()
228 sDevice.waitForIdle(); in testPickerAccentColorWithGetContent()
243 UiObject mediaButton = sDevice.findObject(new UiSelector().text(photoPickerAppName)); in findAndClickMediaIcon()
251 mediaButton = sDevice.findObject(new UiSelector().text(photoPickerAppName)); in findAndClickMediaIcon()
257 sDevice.waitForIdle(); in findAndClickMediaIcon()
259 clickAndWait(sDevice, mediaButton); in findAndClickMediaIcon()
286 clickAndWait(sDevice, selectButton); in findAndClickSelect()
[all …]
DPhotoPickerSettingsTest.java95 sDeviceStatePreserver = new DeviceStatePreserver(sDevice); in setUp()
128 sDevice.waitForIdle(); in testSettingsLaunchFromOverflowMenu()
132 final UiObject settingsMenuItem = PhotoPickerUiUtils.findSettingsOverflowMenuItem(sDevice); in testSettingsLaunchFromOverflowMenu()
133 PhotoPickerUiUtils.clickAndWait(sDevice, settingsMenuItem); in testSettingsLaunchFromOverflowMenu()
156 PERSONAL_TAB_TITLE_ENGLISH, TAB_LAYOUT_RESOURCE_ID, sDevice)) in testSettingsLaunchedInPersonalProfile_WorkEnabled()
172 WORK_TAB_TITLE_ENGLISH, TAB_LAYOUT_RESOURCE_ID, sDevice)).isTrue(); in testSettingsLaunchedInWorkProfile()
178 TAB_CONTAINER_RESOURCE_ID, sDevice).waitForExists(SHORT_TIMEOUT)) in verifySettingsTabContainerIsVisible()
211 sDevice.waitForIdle(); in launchSettingsActivityWithRetry()
DActionPickImagesOnlyTest.java91 sDevice.pressBack(); in testPhotoPickerIntentDelegation()
128 clickAndWait(sDevice, itemList.get(i)); in testMultiSelect_returnsNotMoreThanMax()
131 UiObject snackbarTextView = sDevice.findObject(new UiSelector().text( in testMultiSelect_returnsNotMoreThanMax()
139 clickAndWait(sDevice, findAddButton()); in testMultiSelect_returnsNotMoreThanMax()
158 clickAndWait(sDevice, itemList.get(0)); in testDoesNotRespectExtraAllowMultiple()
196 MediaStore.EXTRA_PICK_IMAGES_LAUNCH_TAB), sDevice); in testExtraPickerLaunchTabOptions() local
197 sDevice.pressBack(); in testExtraPickerLaunchTabOptions()
222 sDevice.pressBack(); in testExtraPickerAccentColorValidColor()
235 sDevice.pressBack(); in testExtraPickerAccentColorInvalidColorInput()
DRemoteVideoPreviewTest.java99 sDeviceStatePreserver = new DeviceStatePreserver(sDevice); in setUpBeforeClass()
161 sDevice.pressBack(); in testBasicVideoPreview()
377 clickAndWait(sDevice, findPreviewErrorAlertDialogRetryButton()); in verifyAlertDialogRetry()
425 sDevice.waitForIdle(); in launchPreviewMultiple()
430 sDevice.waitForIdle(); in launchPreviewMultiple()
442 final int width = sDevice.getDisplayWidth(); in swipeLeftAndWait()
443 final int height = sDevice.getDisplayHeight(); in swipeLeftAndWait()
444 sDevice.swipe(width / 2, height / 2, width / 4, height / 2, 10); in swipeLeftAndWait()
445 sDevice.waitForIdle(); in swipeLeftAndWait()
452 final int width = sDevice.getDisplayWidth(); in swipeRightAndWait()
[all …]
DPhotoPickerCrossProfileTest.java106 sDevice.waitForIdle(); in testWorkApp_canAccessPersonalProfileContents()
114 sDevice.waitForIdle(); in testWorkApp_canAccessPersonalProfileContents()
119 sDevice.waitForIdle(); in testWorkApp_canAccessPersonalProfileContents()
160 sDevice.waitForIdle(); in assertBlockedByAdmin()
DPhotoPickerCloudUtils.java273 public static void setCloudProvider(@Nullable UiDevice sDevice, in setCloudProvider() argument
281 sDevice.executeShellCommand( in setCloudProvider()
287 sDevice.executeShellCommand( in setCloudProvider()
299 public static String getCurrentCloudProvider(UiDevice sDevice) throws IOException { in getCurrentCloudProvider() argument
301 sDevice.executeShellCommand( in getCurrentCloudProvider()
DActionUserSelectImagesForAppTest.java75 sDeviceStatePreserver = new DeviceStatePreserver(sDevice); in setUpClass()
178 final ClipData clipData = fetchPickerMedia(mActivity, sDevice, 1); in testNoCloudContent()
184 selectAndAddPickerMedia(sDevice, 1); in testNoCloudContent()
DCloudPhotoPickerTest.java93 sDeviceStatePreserver = new DeviceStatePreserver(sDevice); in setUpBeforeClass()
404 return PhotoPickerCloudUtils.fetchPickerMedia(mActivity, sDevice, maxCount); in launchPickerAndFetchMedia()
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DPublicVolumeHostTest.java28 private static ITestDevice sDevice; field in PublicVolumeHostTest
41 if (sDevice == null) { in setupDevice()
42 sDevice = getDevice(); in setupDevice()
65 if (sDevice != null) { in deletePublicVolumes()
66 sDevice.executeShellCommand("sm set-virtual-disk false"); in deletePublicVolumes()
DPublicVolumeCoreHostTest.java28 private static ITestDevice sDevice = null; field in PublicVolumeCoreHostTest
43 if (sDevice == null) { in setupDevice()
44 sDevice = getDevice(); in setupDevice()
67 if (sDevice != null) { in deletePublicVolumes()
68 sDevice.executeShellCommand("sm set-virtual-disk false"); in deletePublicVolumes()
DPublicVolumeLegacyHostTest.java31 private static ITestDevice sDevice = null; field in PublicVolumeLegacyHostTest
44 if (sDevice == null) { in setupDevice()
45 sDevice = getDevice(); in setupDevice()
68 if (sDevice != null) { in deletePublicVolumes()
69 sDevice.executeShellCommand("sm set-virtual-disk false"); in deletePublicVolumes()
DAppCloningMediaProviderHostTest.java48 protected static ITestDevice sDevice = null; field in AppCloningMediaProviderHostTest
73 sDevice = testInfo.getDevice(); in beforeClassWithDevice()
74 assertThat(sDevice).isNotNull(); in beforeClassWithDevice()
76 assumeTrue("Device doesn't support multiple users", supportsMultipleUsers(sDevice)); in beforeClassWithDevice()
78 isHeadlessSystemUserMode(sDevice)); in beforeClassWithDevice()
79 assumeTrue(isAtLeastS(sDevice)); in beforeClassWithDevice()
80 assumeFalse("Device uses sdcardfs", usesSdcardFs(sDevice)); in beforeClassWithDevice()
83 String output = sDevice.executeShellCommand( in beforeClassWithDevice()
90 CommandResult out = sDevice.executeShellV2Command("am start-user -w " + sCloneUserId); in beforeClassWithDevice()
97 eventually(() -> sDevice.doesFileExist(sCloneUserStoragePath, mCloneUserIdInt), in beforeClassWithDevice()
[all …]
/cts/hostsidetests/appsearch/src/android/appsearch/cts/
DEnterpriseContactsMultiUserTest.java59 private static ITestDevice sDevice; field in EnterpriseContactsMultiUserTest
73 sDevice = device; in setUpClass()
171 assumeTrue(sDevice.getApiLevel() >= 34); in testMainUser_hasEnterpriseAccess_withManagedPermission_onUAbove()
185 assumeTrue(sDevice.getApiLevel() <= 33); in testMainUser_doesNotHaveEnterpriseAccess_withManagedPermission_onTBelow()
201 assertThat(sDevice.stopUser(sEnterpriseUserId, /*waitFlag=*/ true, /*forceFlag=*/ in testMainUser_doesNotHaveEnterpriseAccessIfEnterpriseProfileIsStopped()
207 sDevice.startUser(sEnterpriseUserId, /*waitFlag=*/ true); in testMainUser_doesNotHaveEnterpriseAccessIfEnterpriseProfileIsStopped()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/media/
DAppCloningHostTest.java101 String output = sDevice.executeShellCommand( in createAndStartManagedProfileUser()
123 eventually(() -> sDevice.doesFileExist(sCloneUserStoragePath, mCloneUserIdInt), in testCreateCloneUserFile()
130 eventually(() -> sDevice.pushFile(tmpFile, filePathOnClone), in testCreateCloneUserFile()
134 eventually(() -> sDevice.doesFileExist(filePathOnClone, mCloneUserIdInt), in testCreateCloneUserFile()
138 sDevice.deleteFile(filePathOnClone); in testCreateCloneUserFile()
277 assumeTrue(isAtLeastU(sDevice)); in testDeletionOfPrimaryApp_deleteAppWithParentPropertyTrue_deletesCloneApp()
307 assumeTrue(isAtLeastV(sDevice)); in testDeletionOfAppInNotParentProfile_notDeletesCloneApp()
358 assumeTrue(isAtLeastU(sDevice)); in testMediaCreationWithContentOwnerSpecifiedAsCloneUser()
392 assumeTrue(isAtLeastV(sDevice)); in testMediaCreationWithContentOwnerSpecifiedAsParentUser()
422 assumeTrue(isAtLeastU(sDevice)); in testCrashingMediaProviderDoesNotAffectVolumeMounts()
/cts/tests/tests/media/projection/src/android/media/projection/cts/
DMediaProjectionCompatChangeTest.java72 private static UiDevice sDevice; field in MediaProjectionCompatChangeTest
91 sDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
162 sDevice.waitForIdle(); in testMediaProjectionPermissionDialog()
165 boolean foundSpinnerString = sDevice.hasObject( in testMediaProjectionPermissionDialog()
172 UiObject2 cancelButton = sDevice.findObject(By.res(CANCEL_RESOURCE_ID)); in testMediaProjectionPermissionDialog()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/media/storage/
DAppCloningStorageHostTest.java61 assumeTrue(isAtLeastU(sDevice)); in testVerifyStatsExternalForClonedUser()
66 eventually(() -> sDevice.doesFileExist( in testVerifyStatsExternalForClonedUser()
DAppCloningPublicVolumeTest.java70 assumeTrue(isAtLeastU(sDevice)); in testCrossUserMediaAccessInPublicSdCard()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewMouseInteractionTest.java77 private static final UiDevice sDevice = field in TextViewMouseInteractionTest
85 sDevice.wakeUp(); in setUp()
137 assertThat(sDevice.hasObject(By.text(CUSTOM_FLOATING_TOOLBAR_LABEL))).isTrue(); in testFloatingToolbarByTouch()
156 assertThat(sDevice.hasObject(By.text(CUSTOM_FLOATING_TOOLBAR_LABEL))).isFalse(); in testFloatingToolbarByMouse()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DDeviceUtils.java56 UiDevice sDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in wakeUp() local
57 sDevice.wakeUp(); in wakeUp()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/device/
DDevice.java38 private static final UiDevice sDevice = field in Device
131 return sDevice.isScreenOn(); in isScreenOn()
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextViewIntegrationTest.java85 private static final UiDevice sDevice = field in TextViewIntegrationTest
94 sDevice.wakeUp(); in setup()
212 sDevice.findObject(By.res("android", "floating_popup_container")); in smartSelection_toolbarContainerNoContentDescription()
267 () -> sDevice.findObject(selector)); in waitForObject()

12