/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.assertIconVisible(true); in testSearchIconVisible() 65 bots.roots.openRoot(ROOT_1_ID); // root 1 doesn't support search in testSearchIconHidden() 67 bots.search.assertIconVisible(false); in testSearchIconHidden() 68 bots.search.assertInputExists(false); in testSearchIconHidden() 72 bots.search.clickIcon(); in testSearchView_ExpandsOnClick() 75 bots.search.assertInputExists(true); in testSearchView_ExpandsOnClick() 76 bots.search.assertInputFocused(true); in testSearchView_ExpandsOnClick() [all …]
|
D | RenameDocumentUiTest.java | 39 bots.roots.closeDrawer(); in setUp() 43 bots.directory.selectDocument(fileName1, 1); in testRenameEnabled_SingleSelection() 44 bots.main.openOverflowMenu(); in testRenameEnabled_SingleSelection() 45 bots.main.assertMenuEnabled(R.string.menu_rename, true); in testRenameEnabled_SingleSelection() 53 bots.directory.selectDocument(fileNameNoRename, 1); in testNoRenameSupport_SingleSelection() 54 bots.main.openOverflowMenu(); in testNoRenameSupport_SingleSelection() 55 bots.main.assertMenuEnabled(R.string.menu_rename, false); in testNoRenameSupport_SingleSelection() 64 bots.directory.selectDocument(fileName1, 1); in testOneHasRenameSupport_MultipleSelection() 65 bots.directory.selectDocument(fileNameNoRename, 2); in testOneHasRenameSupport_MultipleSelection() 66 bots.main.openOverflowMenu(); in testOneHasRenameSupport_MultipleSelection() [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_byBreadcrumb() 89 bots.directory.waitForDocument(childDir1); // wait for known content in testNavigate_byBreadcrumb() [all …]
|
D | CancelFromNotificationUiTest.java | 95 bots.notifications.setNotificationAccess(getActivity(), true); in setUp() 120 bots.notifications.setNotificationAccess(getActivity(), false); in tearDown() 149 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_Cancel() 151 bots.directory.findDocument(TARGET_FILE); in testCopyDocument_Cancel() 154 bots.directory.selectDocument(TARGET_FILE, 1); in testCopyDocument_Cancel() 157 bots.main.clickToolbarOverflowItem(context.getResources().getString(R.string.menu_copy)); in testCopyDocument_Cancel() 160 bots.main.clickDialogCancelButton(); in testCopyDocument_Cancel() 163 bots.directory.waitForDocument(TARGET_FILE); in testCopyDocument_Cancel() 168 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_CancelFromNotification() 169 bots.directory.findDocument(TARGET_FILE); in testCopyDocument_CancelFromNotification() [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 | 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 | FileCopyUiTest.java | 141 bots.notifications.setNotificationAccess(getActivity(), true); in setUp() 216 bots.notifications.setNotificationAccess(getActivity(), false); in tearDown() 231 if (bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments() 236 bots.roots.openRoot(label); in createDocuments() 239 if (!bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments() 262 bots.roots.openRoot(label); in deleteDocuments() 263 if (!bots.directory.hasDocuments(targetFolder)) { in deleteDocuments() 267 bots.directory.selectDocument(targetFolder, 1); in deleteDocuments() 270 bots.main.clickToolbarItem(R.id.action_menu_delete); in deleteDocuments() 271 bots.main.clickDialogOkButton(); in deleteDocuments() [all …]
|
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() 60 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_listMode() 61 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_listMode() 65 bots.main.switchToGridMode(); in testPreviewVisible_allType_girdMode() 66 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_allType_girdMode() 67 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_allType_girdMode() 68 assertTrue(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewVisible_allType_girdMode() [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 | 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() 75 bots.directory.assertDocumentsPresent(newFileName); in testRenameFile() 77 assertNull(bots.directory.getSnackbar(context.getString(R.string.rename_error))); in testRenameFile() 87 if (bots.directory.hasDocuments(fileName)) { in deleteTestFiles() 88 bots.directory.selectDocument(fileName); in deleteTestFiles() [all …]
|
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() 108 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 | 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()
|
D | ActivityTest.java | 41 import com.android.documentsui.bots.Bots; 66 public Bots bots; field in ActivityTest 120 bots = new Bots(device, automation, context, TIMEOUT); in setUp() 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() [all …]
|
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()
|
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 | 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()
|
D | InspectorUiTest.java | 56 bots.inspector.assertTitle("test.txt"); in testDisplayFileName() 63 bots.inspector.assertRowEquals( in testFolderDetails() 67 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()
|