/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | SearchViewUiTest.java | 41 bots.roots.closeDrawer(); in setUp() 44 bots.directory.waitForDocument(fileName1); in setUp() 59 bots.search.assertInputExists(false); in testSearchIconVisible() 60 bots.search.assertFragmentInputExists(false); in testSearchIconVisible() 61 bots.search.assertIconVisible(true); in testSearchIconVisible() 66 bots.roots.openRoot(ROOT_1_ID); // root 1 doesn't support search in testSearchIconHidden() 68 bots.search.assertIconVisible(false); in testSearchIconHidden() 69 bots.search.assertInputExists(false); in testSearchIconHidden() 70 bots.search.assertFragmentInputExists(false); in testSearchIconHidden() 74 bots.search.clickIcon(); in testSearchView_ExpandsOnClick() [all …]
|
D | RenameDocumentUiTest.java | 38 bots.roots.closeDrawer(); in setUp() 80 bots.directory.selectDocument(fileName1, 1); in testRenameFile_OkButton() 85 bots.main.setDialogText(newName); in testRenameFile_OkButton() 88 bots.main.clickDialogOkButton(); in testRenameFile_OkButton() 90 bots.directory.waitForDocument(newName); in testRenameFile_OkButton() 91 bots.directory.assertDocumentsAbsent(fileName1); in testRenameFile_OkButton() 92 bots.directory.assertDocumentsCount(4); in testRenameFile_OkButton() 96 bots.directory.selectDocument(fileName1, 1); in testRenameFile_Enter() 101 bots.main.setDialogText(newName); in testRenameFile_Enter() 104 bots.keyboard.pressEnter(); in testRenameFile_Enter() [all …]
|
D | SortDocumentUiTest.java | 66 bots.roots.closeDrawer(); in setUp() 95 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_NAME_ASC); in testDefaultSortByNameAscending() 101 bots.main.switchToListMode(); in testSortByName_Descending_listMode() 103 bots.sort.sortBy( in testSortByName_Descending_listMode() 105 bots.directory.assertOrder(DIRS_IN_NAME_DESC, FILES_IN_NAME_DESC); in testSortByName_Descending_listMode() 111 bots.main.switchToListMode(); in testSortBySize_Ascending_listMode() 113 bots.sort.sortBy( in testSortBySize_Ascending_listMode() 115 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_SIZE_ASC); in testSortBySize_Ascending_listMode() 121 bots.main.switchToListMode(); in testSortBySize_Descending_listMode() 123 bots.sort.sortBy( in testSortBySize_Descending_listMode() [all …]
|
D | FileManagementUiTest.java | 67 bots.main.openOverflowMenu(); in testCreateDirectory() 70 bots.main.clickToolbarOverflowItem("New folder"); in testCreateDirectory() 73 bots.main.setDialogText("Kung Fu Panda"); in testCreateDirectory() 76 bots.keyboard.pressEnter(); in testCreateDirectory() 78 bots.directory.waitForDocument("Kung Fu Panda"); in testCreateDirectory() 82 bots.directory.selectDocument("file1.png", 1); in testDeleteDocument() 84 bots.main.clickToolbarItem(R.id.action_menu_delete); in testDeleteDocument() 86 bots.main.clickDialogOkButton(); in testDeleteDocument() 89 bots.directory.assertDocumentsAbsent("file1.png"); in testDeleteDocument() 94 bots.directory.selectDocument("file1.png", 1); in testKeyboard_CutDocument() [all …]
|
D | FilesActivityUiTest.java | 59 bots.roots.openRoot("Recent"); in testClickRecent() 64 bots.main.assertSearchBarShow(); in testClickRecent() 66 bots.main.assertWindowTitle("Recent"); in testClickRecent() 71 bots.roots.openRoot("Images"); in testRootClick_SetsWindowTitle() 72 bots.main.assertWindowTitle("Images"); in testRootClick_SetsWindowTitle() 76 bots.directory.assertDocumentsPresent("file0.log", "file1.png", "file2.csv"); in testFilesListed() 82 bots.directory.waitForDocument("Ham & Cheese.sandwich"); in testFilesList_LiveUpdate() 83 bots.directory.assertDocumentsPresent( in testFilesList_LiveUpdate() 88 bots.directory.openDocument(dirName1); in testNavigate_inFixedLayout_byBreadcrumb() 89 bots.directory.waitForDocument(childDir1); // wait for known content in testNavigate_inFixedLayout_byBreadcrumb() [all …]
|
D | CancelFromNotificationUiTest.java | 93 bots.notifications.setNotificationAccess(getActivity(), true); in setUp() 118 bots.notifications.setNotificationAccess(getActivity(), false); in tearDown() 147 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_Cancel() 149 bots.directory.findDocument(TARGET_FILE); in testCopyDocument_Cancel() 152 bots.directory.selectDocument(TARGET_FILE, 1); in testCopyDocument_Cancel() 155 bots.main.clickToolbarOverflowItem(context.getResources().getString(R.string.menu_copy)); in testCopyDocument_Cancel() 158 bots.main.clickDialogCancelButton(); in testCopyDocument_Cancel() 161 bots.directory.waitForDocument(TARGET_FILE); in testCopyDocument_Cancel() 166 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_CancelFromNotification() 167 bots.directory.findDocument(TARGET_FILE); in testCopyDocument_CancelFromNotification() [all …]
|
D | KeyboardNavigationUiTest.java | 48 bots.keyboard.pressKey(KeyEvent.KEYCODE_TAB); in testKeyboard_tab() 49 bots.roots.assertHasFocus(); in testKeyboard_tab() 50 bots.keyboard.pressKey(KeyEvent.KEYCODE_TAB); in testKeyboard_tab() 51 bots.directory.assertHasFocus(); in testKeyboard_tab() 58 bots.keyboard.pressKey(KeyEvent.KEYCODE_DPAD_LEFT); in testKeyboard_arrowsDirList() 59 bots.directory.assertHasFocus(); in testKeyboard_arrowsDirList() 62 bots.keyboard.pressKey(KeyEvent.KEYCODE_DPAD_RIGHT); 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() [all …]
|
D | PickerPreviewAllTypeUiTest.java | 62 bots.main.switchToGridMode(); in testPreviewInvisible_noQuickViewer_gridMode() 63 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewInvisible_noQuickViewer_gridMode() 64 assertFalse(bots.directory.hasDocumentPreview(fileName1)); in testPreviewInvisible_noQuickViewer_gridMode() 72 bots.main.switchToListMode(); in testPreviewInvisible_noQuickViewer_listMode() 73 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewInvisible_noQuickViewer_listMode() 74 assertFalse(bots.directory.hasDocumentPreview(fileName1)); in testPreviewInvisible_noQuickViewer_listMode() 82 bots.main.switchToGridMode(); in testPreviewInvisible_directory_gridMode() 83 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode() 84 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_gridMode() 92 bots.main.switchToListMode(); in testPreviewInvisible_directory_listMode() [all …]
|
D | DirectoryMessagesUiTest.java | 39 bots.roots.openRoot("Demo Root"); in setUp() 40 bots.main.switchToListMode(); in setUp() 48 bots.directory.openDocument(DemoProvider.DIR_AUTH); in testAuthenticationMessage_visible() 49 bots.directory.assertHasMessage( in testAuthenticationMessage_visible() 51 bots.directory.assertHasMessageButtonText("SIGN IN"); in testAuthenticationMessage_visible() 56 bots.directory.openDocument(DemoProvider.DIR_INFO); in testInfoMessage_visible() 57 bots.directory.assertHasMessage(DemoProvider.MSG_INFO); in testInfoMessage_visible() 58 bots.directory.assertHasMessageButtonText("OK"); in testInfoMessage_visible() 63 bots.directory.openDocument(DemoProvider.DIR_INFO); in testInfoMessage_dismissable() 64 bots.directory.assertHasMessage(true); in testInfoMessage_dismissable() [all …]
|
D | PickerPreviewTextUiTest.java | 62 bots.main.switchToGridMode(); in testPreviewInvisible_disabled_gridMode() 63 assertFalse(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewInvisible_disabled_gridMode() 64 assertFalse(bots.directory.hasDocumentPreview(fileName2)); in testPreviewInvisible_disabled_gridMode() 72 bots.main.switchToListMode(); in testPreviewInvisible_disabled_listMode() 73 assertFalse(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewInvisible_disabled_listMode() 74 assertFalse(bots.directory.hasDocumentPreview(fileName2)); in testPreviewInvisible_disabled_listMode() 82 bots.main.switchToGridMode(); in testPreviewInvisible_directory_gridMode() 83 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode() 84 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_gridMode() 92 bots.main.switchToListMode(); in testPreviewInvisible_directory_listMode() [all …]
|
D | FileCopyUiTest.java | 138 bots.main.clickToolbarOverflowItem( in setUp() 143 bots.notifications.setNotificationAccess(getActivity(), true); in setUp() 185 bots.notifications.setNotificationAccess(getActivity(), false); in tearDown() 200 if (bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments() 205 bots.roots.openRoot(label); in createDocuments() 208 if (!bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments() 231 bots.roots.openRoot(label); in deleteDocuments() 232 if (!bots.directory.hasDocuments(TARGET_FOLDER)) { in deleteDocuments() 236 bots.directory.selectDocument(TARGET_FOLDER, 1); in deleteDocuments() 239 bots.main.clickToolbarItem(R.id.action_menu_delete); in deleteDocuments() [all …]
|
D | InternalStorageUiTest.java | 54 bots.main.clickToolbarOverflowItem( in setUp() 58 bots.roots.openRoot(rootPrimary.title); in setUp() 72 bots.directory.selectDocument(fileName); in testRenameFile() 75 bots.main.clickRename(); in testRenameFile() 77 bots.main.setDialogText(newFileName); in testRenameFile() 80 bots.keyboard.pressEnter(); in testRenameFile() 82 bots.directory.assertDocumentsAbsent(fileName); in testRenameFile() 83 bots.directory.assertDocumentsPresent(newFileName); in testRenameFile() 85 assertNull(bots.directory.getSnackbar(context.getString(R.string.rename_error))); in testRenameFile() 95 if (bots.directory.hasDocuments(fileName)) { in deleteTestFiles() [all …]
|
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() 54 bots.gesture.gestureSelectFiles(fileName1, fileName2); in testListGestureSelect_twoFiles() 56 bots.directory.assertSelection(2); in testListGestureSelect_twoFiles() [all …]
|
D | ContextMenuUiTest.java | 44 bots.roots.closeDrawer(); in setUp() 82 bots.directory.rightClickDocument("file1.png"); in testContextMenu_onFile() 83 bots.menu.assertPresentMenuItems(menuItems); in testContextMenu_onFile() 93 bots.directory.rightClickDocument("Dir1"); in testContextMenu_onDir() 94 bots.menu.assertPresentMenuItems(menuItems); in testContextMenu_onDir() 101 bots.directory.selectDocument("file1.png", 1); in testContextMenu_onMixedFileDir() 102 bots.directory.selectDocument("Dir1", 2); in testContextMenu_onMixedFileDir() 103 bots.directory.rightClickDocument("Dir1"); in testContextMenu_onMixedFileDir() 104 bots.menu.assertPresentMenuItems(menuItems); in testContextMenu_onMixedFileDir() 111 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); in testContextMenu_onEmptyArea() [all …]
|
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() 54 Rect startDoc = bots.directory.findDocument(fileNameNoRename).getBounds(); in testBandSelection_someFiles() 55 Rect endDoc = bots.directory.findDocument(fileName1).getBounds(); in testBandSelection_someFiles() [all …]
|
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()
|
D | ActivityTest.java | 39 import com.android.documentsui.bots.Bots; 64 public Bots bots; field in ActivityTest 116 bots = new Bots(device, automation, context, TIMEOUT); in setUp() 134 bots.roots.closeDrawer(); in setUp() 175 bots.directory.waitForDocument(fileName1); in assertDefaultContentOfTestDir0() 176 bots.directory.waitForDocument(fileName2); in assertDefaultContentOfTestDir0() 177 bots.directory.waitForDocument(dirName1); in assertDefaultContentOfTestDir0() 178 bots.directory.waitForDocument(fileNameNoRename); in assertDefaultContentOfTestDir0() 179 bots.directory.assertDocumentsCount(4); in assertDefaultContentOfTestDir0() 183 bots.directory.waitForDocument(fileName3); in assertDefaultContentOfTestDir1() [all …]
|
D | FilesActivityDefaultsUiTest.java | 58 bots.main.assertWindowTitle("Documents"); in testDefaultDirectory() 60 bots.main.assertWindowTitle("Downloads"); in testDefaultDirectory() 66 bots.main.assertSearchBarShow(); in testDefaultDirectory() 68 bots.main.assertWindowTitle("Recent"); in testDefaultDirectory() 77 bots.roots.openRoot(rootDir0.title); in testNavigate_FromEmptyDirectory() 80 bots.directory.assertPlaceholderMessageText(msg); in testNavigate_FromEmptyDirectory() 92 bots.roots.assertRootsPresent( in testDefaultRoots() 102 bots.roots.assertRootsPresent("Documents"); in testDefaultRoots() 104 bots.roots.assertRootsAbsent("Documents"); in testDefaultRoots()
|
D | SidebarUiTest.java | 45 bots.directory.openDocument(dirName1); in testRootTapped_GoToRootFromChildDir() 46 bots.breadcrumb.assertTitle(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()
|
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()
|
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()
|
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()
|
D | InspectorUiTest.java | 58 bots.inspector.assertTitle("test.txt"); in testDisplayFileName() 65 bots.inspector.assertRowEquals( in testFolderDetails() 69 bots.inspector.assertRowEquals( in testFolderDetails()
|
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/ |
D | FilesJankPerfTest.java | 37 import com.android.documentsui.bots.SidebarBot; 39 import com.android.documentsui.bots.DirectoryListBot;
|
D | FilesActivityPerfTest.java | 117 bots.roots.openRoot(STRESS_ROOT_1_ID); in testFilesListedPerformance() 126 bots.roots.openRoot(STRESS_ROOT_0_ID); in testFilesListedPerformance()
|