/aosp12/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
H A D | SearchViewUiTest.java | 41 bots.roots.closeDrawer(); in setUp() 72 bots.search.clickIcon(); in testSearchView_ExpandsOnClick() 83 bots.search.clickIcon(); in testSearchView_ShouldHideOptionMenuOnExpanding() 96 bots.search.clickIcon(); in testSearchView_CollapsesOnBack() 104 bots.search.clickIcon(); in testSearchFragment_DismissedOnCloseAfterCancel() 121 bots.search.clickIcon(); in testSearchView_ClearsTextOnBack() 135 bots.search.clickIcon(); in testSearchView_ClearsSearchOnBack() 147 bots.search.clickIcon(); in testSearchView_ClearsAutoSearchOnBack() 160 bots.search.clickIcon(); in testSearchView_StateAfterSearch() 169 bots.search.clickIcon(); in testSearch_ResultsFound() [all …]
|
H A D | RenameDocumentUiTest.java | 39 bots.roots.closeDrawer(); in setUp() 44 bots.main.openOverflowMenu(); in testRenameEnabled_SingleSelection() 54 bots.main.openOverflowMenu(); in testNoRenameSupport_SingleSelection() 66 bots.main.openOverflowMenu(); in testOneHasRenameSupport_MultipleSelection() 78 bots.main.openOverflowMenu(); in testRenameDisabled_MultipleSelection() 92 bots.main.setDialogText(newName); in testRenameFile_OkButton() 95 bots.main.clickDialogOkButton(); in testRenameFile_OkButton() 111 bots.keyboard.pressEnter(); in testRenameFile_Enter() 124 bots.keyboard.pressEnter(); in testRenameWithoutChangeIsNoOp() 155 bots.keyboard.pressEnter(); in testRenameDir() [all …]
|
H A D | SortDocumentUiTest.java | 103 bots.sort.sortBy( in testSortByName_Descending_listMode() 113 bots.sort.sortBy( in testSortBySize_Ascending_listMode() 123 bots.sort.sortBy( in testSortBySize_Descending_listMode() 133 bots.sort.sortBy( in testSortByModified_Ascending_listMode() 143 bots.sort.sortBy( in testSortByModified_Descending_listMode() 153 bots.sort.sortBy( in testSortByType_Ascending_listMode() 163 bots.sort.sortBy( in testSortByType_Descending_listMode() 173 bots.sort.sortBy( in testSortByName_Descending_gridMode() 183 bots.sort.sortBy( in testSortBySize_Ascending_gridMode() 193 bots.sort.sortBy( in testSortBySize_Descending_gridMode() [all …]
|
H A D | FilesActivityUiTest.java | 59 bots.roots.openRoot("Recent"); in testClickRecent() 71 bots.roots.openRoot("Images"); in testRootClick_SetsWindowTitle() 100 if (bots.main.inFixedLayout()) { in testNavigate_inFixedLayout_whileHasSelection() 127 bots.roots.openRoot("Images"); in testRootChange_UpdatesSortHeader() 128 bots.main.switchToGridMode(); in testRootChange_UpdatesSortHeader() 129 bots.roots.openRoot("Videos"); in testRootChange_UpdatesSortHeader() 130 bots.main.switchToListMode(); in testRootChange_UpdatesSortHeader() 134 bots.roots.openRoot("Images"); in testRootChange_UpdatesSortHeader() 135 bots.sort.assertHeaderHide(); in testRootChange_UpdatesSortHeader() 136 if (bots.main.inFixedLayout()) { in testRootChange_UpdatesSortHeader() [all …]
|
H A D | FileManagementUiTest.java | 67 bots.main.openOverflowMenu(); in testCreateDirectory() 76 bots.keyboard.pressEnter(); in testCreateDirectory() 86 bots.main.clickDialogOkButton(); in testDeleteDocument() 100 bots.roots.openRoot(ROOT_1_ID); in testKeyboard_CutDocument() 106 bots.roots.openRoot(ROOT_0_ID); in testKeyboard_CutDocument() 118 bots.roots.openRoot(ROOT_1_ID); in testKeyboard_CopyDocument() 123 bots.roots.openRoot(ROOT_0_ID); in testKeyboard_CopyDocument() 156 bots.roots.openRoot(ROOT_0_ID); in testCopyLargeAmountOfFiles() 158 bots.sort.sortBy( in testCopyLargeAmountOfFiles() 161 bots.keyboard.pressKey( in testCopyLargeAmountOfFiles() [all …]
|
H A D | DirectoryMessagesUiTest.java | 39 bots.roots.openRoot("Demo Root"); in setUp() 40 bots.main.switchToListMode(); in setUp() 49 bots.directory.assertHasMessage( in testAuthenticationMessage_visible() 58 bots.directory.assertHasMessageButtonText("OK"); in testInfoMessage_visible() 64 bots.directory.assertHasMessage(true); in testInfoMessage_dismissable() 65 bots.directory.clickMessageButton(); in testInfoMessage_dismissable() 66 bots.directory.assertHasMessage(false); in testInfoMessage_dismissable() 73 bots.directory.assertHasMessageButtonText("OK"); in testErrorMessage_visible() 79 bots.directory.assertHasMessage(true); in testErrorMessage_dismissable() 80 bots.directory.clickMessageButton(); in testErrorMessage_dismissable() [all …]
|
H A D | KeyboardNavigationUiTest.java | 48 bots.keyboard.pressKey(KeyEvent.KEYCODE_TAB); in testKeyboard_tab() 49 bots.roots.assertHasFocus(); in testKeyboard_tab() 51 bots.directory.assertHasFocus(); in testKeyboard_tab() 59 bots.directory.assertHasFocus(); in testKeyboard_arrowsDirList() 63 bots.directory.assertHasFocus(); in testKeyboard_arrowsDirList() 69 bots.roots.closeDrawer(); in testKeyboard_tabFocuses() 70 if (bots.main.inFixedLayout()) { in testKeyboard_tabFocuses() 78 bots.keyboard.pressKey(KeyEvent.KEYCODE_F); in testKeyboard_tabFocuses() 85 bots.roots.openDrawer(); in testKeyboard_arrowsRootsList() 90 bots.roots.assertHasFocus(); in testKeyboard_arrowsRootsList() [all …]
|
H A D | CancelFromNotificationUiTest.java | 149 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_Cancel() 168 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_CancelFromNotification() 178 bots.roots.openRoot(ROOT_1_ID); in testCopyDocument_CancelFromNotification() 179 bots.main.clickDialogOkButton(); in testCopyDocument_CancelFromNotification() 190 bots.roots.openRoot(ROOT_1_ID); in testCopyDocument_CancelFromNotification() 194 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_CancelFromNotification() 201 bots.roots.openRoot(ROOT_0_ID); in testMoveDocument_Cancel() 223 bots.roots.openRoot(ROOT_0_ID); in ignored_testMoveDocument_CancelFromNotification() 233 bots.roots.openRoot(ROOT_1_ID); in ignored_testMoveDocument_CancelFromNotification() 245 bots.roots.openRoot(ROOT_1_ID); in ignored_testMoveDocument_CancelFromNotification() [all …]
|
H A D | PickerPreviewAllTypeUiTest.java | 53 bots.main.switchToGridMode(); in testPreviewInvisible_directory_gridMode() 54 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode() 55 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_gridMode() 59 bots.main.switchToListMode(); in testPreviewInvisible_directory_listMode() 61 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_listMode() 65 bots.main.switchToGridMode(); in testPreviewVisible_allType_girdMode() 67 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_allType_girdMode() 69 assertTrue(bots.directory.hasDocumentPreview(fileName2)); in testPreviewVisible_allType_girdMode() 73 bots.main.switchToListMode(); in testPreviewVisible_allType_listMode() 75 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_allType_listMode() [all …]
|
H A D | GestureSelectionUiTest.java | 34 bots.roots.closeDrawer(); in setUp() 38 bots.main.switchToGridMode(); in testGridGestureSelect_twoFiles() 39 bots.gesture.gestureSelectFiles(fileName1, fileName2); in testGridGestureSelect_twoFiles() 41 bots.directory.assertSelection(2); in testGridGestureSelect_twoFiles() 45 bots.main.switchToGridMode(); in testGridGestureSelect_multipleFiles() 46 bots.gesture.gestureSelectFiles(fileName2, dirName1); in testGridGestureSelect_multipleFiles() 48 bots.directory.assertSelection(3); in testGridGestureSelect_multipleFiles() 53 bots.main.switchToListMode(); in testListGestureSelect_twoFiles() 56 bots.directory.assertSelection(2); in testListGestureSelect_twoFiles() 61 bots.main.switchToListMode(); in testListGestureSelect_multipleFiles() [all …]
|
H A D | InternalStorageUiTest.java | 50 bots.roots.openRoot(rootPrimary.title); in setUp() 64 bots.directory.selectDocument(fileName); in testRenameFile() 67 bots.main.clickRename(); in testRenameFile() 69 bots.main.setDialogText(newFileName); in testRenameFile() 72 bots.keyboard.pressEnter(); in testRenameFile() 74 bots.directory.assertDocumentsAbsent(fileName); in testRenameFile() 87 if (bots.directory.hasDocuments(fileName)) { in deleteTestFiles() 88 bots.directory.selectDocument(fileName); in deleteTestFiles() 92 if (bots.directory.hasDocuments(newFileName)) { in deleteTestFiles() 98 bots.main.clickDelete(); in deleteTestFiles() [all …]
|
H A D | BandSelectionUiTest.java | 37 bots.roots.closeDrawer(); in setUp() 41 bots.main.switchToGridMode(); in testBandSelection_allFiles() 42 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); in testBandSelection_allFiles() 43 Rect startDir = bots.directory.findDocument(dirName1).getBounds(); in testBandSelection_allFiles() 46 bots.gesture.bandSelection(start, end); in testBandSelection_allFiles() 48 bots.directory.assertSelection(4); in testBandSelection_allFiles() 52 bots.main.switchToGridMode(); in testBandSelection_someFiles() 53 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); in testBandSelection_someFiles() 55 Rect endDoc = bots.directory.findDocument(fileName1).getBounds(); in testBandSelection_someFiles() 60 bots.gesture.bandSelection(start, end); in testBandSelection_someFiles() [all …]
|
H A D | ContextMenuUiTest.java | 44 bots.roots.closeDrawer(); in setUp() 81 bots.directory.rightClickDocument("file1.png"); in testContextMenu_onFile() 82 bots.menu.assertPresentMenuItems(menuItems); in testContextMenu_onFile() 91 bots.directory.rightClickDocument("Dir1"); in testContextMenu_onDir() 92 bots.menu.assertPresentMenuItems(menuItems); in testContextMenu_onDir() 99 bots.directory.selectDocument("file1.png", 1); in testContextMenu_onMixedFileDir() 100 bots.directory.selectDocument("Dir1", 2); in testContextMenu_onMixedFileDir() 101 bots.directory.rightClickDocument("Dir1"); in testContextMenu_onMixedFileDir() 102 bots.menu.assertPresentMenuItems(menuItems); in testContextMenu_onMixedFileDir() 111 bots.main.switchToGridMode(); in testContextMenu_onEmptyArea() [all …]
|
H A D | FileCopyUiTest.java | 236 bots.roots.openRoot(label); in createDocuments() 262 bots.roots.openRoot(label); in deleteDocuments() 271 bots.main.clickDialogOkButton(); in deleteDocuments() 382 bots.roots.openRoot(sourceRoot); in copyFiles() 387 bots.roots.openRoot(targetRoot); in copyFiles() 388 bots.main.clickDialogOkButton(); in copyFiles() 404 bots.roots.openRoot(rootLabel); in assertFilesCopied() 442 bots.roots.openRoot(mSdCardLabel); in ignored_testCopyDocuments_FromSdCard() 459 bots.roots.openRoot(mDeviceLabel); in ignored_testCopyDocuments_ToSdCard() 510 bots.roots.openRoot(mDeviceLabel); in testRecursiveCopyDocuments_InternalStorageToDownloadsProvider() [all …]
|
H A D | ArchiveUiTest.java | 30 bots.roots.openRoot("ResourcesProvider"); in testArchive_valid() 31 bots.directory.openDocument("archive.zip"); in testArchive_valid() 32 bots.directory.waitForDocument("file1.txt"); in testArchive_valid() 33 bots.directory.assertDocumentsPresent("dir1", "dir2", "file1.txt"); in testArchive_valid() 34 bots.directory.openDocument("dir1"); in testArchive_valid() 35 bots.directory.waitForDocument("cherries.txt"); in testArchive_valid() 39 bots.roots.openRoot("ResourcesProvider"); in testArchive_invalid() 40 bots.directory.openDocument("broken.zip"); in testArchive_invalid() 43 bots.directory.assertPlaceholderMessageText(msg); in testArchive_invalid()
|
H A D | PickerPreviewTextUiTest.java | 53 bots.main.switchToListMode(); in testPreviewInvisible_directory_listMode() 54 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_listMode() 55 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_listMode() 59 bots.main.switchToGridMode(); in testPreviewVisible_enabled_gridMode() 60 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_enabled_gridMode() 61 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_enabled_gridMode() 65 bots.main.switchToListMode(); in testPreviewVisible_enabled_listMode() 66 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_enabled_listMode() 67 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_enabled_listMode()
|
H A D | SidebarUiTest.java | 45 bots.directory.openDocument(dirName1); in testRootTapped_GoToRootFromChildDir() 46 bots.main.assertWindowTitle(dirName1); in testRootTapped_GoToRootFromChildDir() 47 bots.roots.openRoot(ROOT_0_ID); in testRootTapped_GoToRootFromChildDir() 48 bots.main.assertWindowTitle(ROOT_0_ID); in testRootTapped_GoToRootFromChildDir() 54 bots.directory.selectDocument(fileName1, 1); in testRootChanged_ClearSelection() 55 bots.main.assertInActionMode(true); in testRootChanged_ClearSelection() 57 bots.roots.openRoot(ROOT_1_ID); in testRootChanged_ClearSelection() 58 bots.main.assertInActionMode(false); in testRootChanged_ClearSelection()
|
H A D | ActivityTest.java | 41 import com.android.documentsui.bots.Bots; 66 public Bots bots; field in ActivityTest 140 bots.roots.closeDrawer(); in setUp() 181 bots.directory.waitForDocument(fileName1); in assertDefaultContentOfTestDir0() 182 bots.directory.waitForDocument(fileName2); in assertDefaultContentOfTestDir0() 183 bots.directory.waitForDocument(dirName1); in assertDefaultContentOfTestDir0() 184 bots.directory.waitForDocument(fileNameNoRename); in assertDefaultContentOfTestDir0() 185 bots.directory.assertDocumentsCount(4); in assertDefaultContentOfTestDir0() 189 bots.directory.waitForDocument(fileName3); in assertDefaultContentOfTestDir1() 190 bots.directory.waitForDocument(fileName4); in assertDefaultContentOfTestDir1() [all …]
|
H A D | FingerSelectionUiTest.java | 37 bots.roots.closeDrawer(); in setUp() 41 bots.main.switchToGridMode(); in testFingerSelection_outOfRange() 42 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); in testFingerSelection_outOfRange() 43 Rect firstDoc = bots.directory.findDocument(fileName1).getBounds(); in testFingerSelection_outOfRange() 48 bots.gesture.fingerSelection(start, end); in testFingerSelection_outOfRange() 50 bots.directory.assertSelection(3); in testFingerSelection_outOfRange()
|
H A D | IntegratedDownloadsUiTest.java | 50 bots.roots.openRoot("Downloads"); in testDownload_Queued() 51 bots.directory.assertDocumentsPresent("Queued"); in testDownload_Queued() 61 bots.roots.openRoot("Downloads"); in testDownload_RetryUnsuccessful() 62 UiObject doc = bots.directory.findDocument("Unsuccessful"); in testDownload_RetryUnsuccessful() 70 assertTrue(bots.main.findDownloadRetryDialog().exists()); in testDownload_RetryUnsuccessful()
|
H A D | FileDeleteUiTest.java | 96 bots.notifications.setNotificationAccess(getActivity(), true); in setUp() 119 bots.notifications.setNotificationAccess(getActivity(), false); in tearDown() 162 bots.roots.openRoot(ROOT_0_ID); in testDeleteAllDocument() 163 bots.main.clickToolbarOverflowItem( in testDeleteAllDocument() 167 bots.main.clickToolbarItem(R.id.action_menu_delete); in testDeleteAllDocument() 168 bots.main.clickDialogOkButton(); in testDeleteAllDocument() 179 bots.roots.openRoot(ROOT_0_ID); in testDeleteAllDocument()
|
H A D | FilesActivityDefaultsUiTest.java | 52 bots.roots.openRoot(rootDir0.title); in testNavigate_FromEmptyDirectory() 55 bots.directory.assertPlaceholderMessageText(msg); in testNavigate_FromEmptyDirectory() 67 bots.roots.assertRootsPresent( in testDefaultRoots()
|
H A D | InspectorUiTest.java | 56 bots.inspector.assertTitle("test.txt"); in testDisplayFileName() 63 bots.inspector.assertRowEquals( in testFolderDetails() 67 bots.inspector.assertRowEquals( in testFolderDetails()
|
/aosp12/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/ |
H A D | FilesJankPerfTest.java | 37 import com.android.documentsui.bots.SidebarBot; 39 import com.android.documentsui.bots.DirectoryListBot;
|
H A D | FilesActivityPerfTest.java | 117 bots.roots.openRoot(STRESS_ROOT_1_ID); in testFilesListedPerformance() 126 bots.roots.openRoot(STRESS_ROOT_0_ID); in testFilesListedPerformance()
|