Home
last modified time | relevance | path

Searched refs:bots (Results 1 – 25 of 48) sorted by relevance

12

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DSearchViewUiTest.java41 bots.roots.closeDrawer(); in setUp()
44 bots.directory.waitForDocument(fileName1); in setUp()
49 bots.search.assertInputExists(false); in testSearchIconVisible()
50 bots.search.assertFragmentInputExists(false); in testSearchIconVisible()
51 bots.search.assertIconVisible(true); in testSearchIconVisible()
56 bots.roots.openRoot(ROOT_1_ID); // root 1 doesn't support search in testSearchIconHidden()
58 bots.search.assertIconVisible(false); in testSearchIconHidden()
59 bots.search.assertInputExists(false); in testSearchIconHidden()
60 bots.search.assertFragmentInputExists(false); in testSearchIconHidden()
64 bots.search.clickIcon(); in testSearchView_ExpandsOnClick()
[all …]
DRenameDocumentUiTest.java38 bots.roots.closeDrawer(); in setUp()
42 bots.directory.selectDocument(fileName1, 1); in testRenameEnabled_SingleSelection()
43 bots.main.openOverflowMenu(); in testRenameEnabled_SingleSelection()
44 bots.main.assertMenuEnabled(R.string.menu_rename, true); in testRenameEnabled_SingleSelection()
51 bots.directory.selectDocument(fileNameNoRename, 1); in testNoRenameSupport_SingleSelection()
52 bots.main.openOverflowMenu(); in testNoRenameSupport_SingleSelection()
53 bots.main.assertMenuEnabled(R.string.menu_rename, false); in testNoRenameSupport_SingleSelection()
60 bots.directory.selectDocument(fileName1, 1); in testOneHasRenameSupport_MultipleSelection()
61 bots.directory.selectDocument(fileNameNoRename, 2); in testOneHasRenameSupport_MultipleSelection()
62 bots.main.openOverflowMenu(); in testOneHasRenameSupport_MultipleSelection()
[all …]
DSortDocumentUiTest.java66 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 …]
DFileManagementUiTest.java67 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 …]
DFilesActivityUiTest.java59 bots.roots.openRoot("Recent"); in testClickRecent()
60 bots.main.assertSearchBarShow(); in testClickRecent()
64 bots.roots.openRoot("Images"); in testRootClick_SetsWindowTitle()
65 bots.main.assertWindowTitle("Images"); in testRootClick_SetsWindowTitle()
69 bots.directory.assertDocumentsPresent("file0.log", "file1.png", "file2.csv"); in testFilesListed()
75 bots.directory.waitForDocument("Ham & Cheese.sandwich"); in testFilesList_LiveUpdate()
76 bots.directory.assertDocumentsPresent( in testFilesList_LiveUpdate()
81 bots.directory.openDocument(dirName1); in testNavigate_inFixedLayout_byBreadcrumb()
82 bots.directory.waitForDocument(childDir1); // wait for known content in testNavigate_inFixedLayout_byBreadcrumb()
83 bots.directory.assertDocumentsPresent(childDir1); in testNavigate_inFixedLayout_byBreadcrumb()
[all …]
DCancelFromNotificationUiTest.java93 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 …]
DPickerPreviewAllTypeUiTest.java28 import com.android.documentsui.bots.UiBot;
67 bots.main.switchToGridMode(); in testPreviewInvisible_noQuickViewer_gridMode()
68 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewInvisible_noQuickViewer_gridMode()
69 assertFalse(bots.directory.hasDocumentPreview(fileName1)); in testPreviewInvisible_noQuickViewer_gridMode()
77 bots.main.switchToListMode(); in testPreviewInvisible_noQuickViewer_listMode()
78 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewInvisible_noQuickViewer_listMode()
79 assertFalse(bots.directory.hasDocumentPreview(fileName1)); in testPreviewInvisible_noQuickViewer_listMode()
87 bots.main.switchToGridMode(); in testPreviewInvisible_directory_gridMode()
88 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode()
89 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_gridMode()
[all …]
DKeyboardNavigationUiTest.java48 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 …]
DDirectoryMessagesUiTest.java39 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 …]
DPickerPreviewTextUiTest.java28 import com.android.documentsui.bots.UiBot;
67 bots.main.switchToGridMode(); in testPreviewInvisible_disabled_gridMode()
68 assertFalse(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewInvisible_disabled_gridMode()
69 assertFalse(bots.directory.hasDocumentPreview(fileName2)); in testPreviewInvisible_disabled_gridMode()
77 bots.main.switchToListMode(); in testPreviewInvisible_disabled_listMode()
78 assertFalse(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewInvisible_disabled_listMode()
79 assertFalse(bots.directory.hasDocumentPreview(fileName2)); in testPreviewInvisible_disabled_listMode()
87 bots.main.switchToGridMode(); in testPreviewInvisible_directory_gridMode()
88 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode()
89 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_gridMode()
[all …]
DFileCopyUiTest.java130 bots.main.clickToolbarOverflowItem( in setUp()
135 bots.notifications.setNotificationAccess(getActivity(), true); in setUp()
176 bots.notifications.setNotificationAccess(getActivity(), false); in tearDown()
191 if (bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments()
196 bots.roots.openRoot(label); in createDocuments()
199 if (!bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments()
222 bots.roots.openRoot(label); in deleteDocuments()
223 if (!bots.directory.hasDocuments(TARGET_FOLDER)) { in deleteDocuments()
227 bots.directory.selectDocument(TARGET_FOLDER, 1); in deleteDocuments()
230 bots.main.clickToolbarItem(R.id.action_menu_delete); in deleteDocuments()
[all …]
DInternalStorageUiTest.java54 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 …]
DGestureSelectionUiTest.java34 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 …]
DContextMenuUiTest.java44 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 …]
DBandSelectionUiTest.java37 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 …]
DActivityTest.java39 import com.android.documentsui.bots.Bots;
40 import com.android.documentsui.bots.UiBot;
64 public Bots bots; field in ActivityTest
116 bots = new Bots(device, automation, context, TIMEOUT); in setUp()
134 bots.roots.closeDrawer(); in setUp()
176 bots.directory.waitForDocument(fileName1); in assertDefaultContentOfTestDir0()
177 bots.directory.waitForDocument(fileName2); in assertDefaultContentOfTestDir0()
178 bots.directory.waitForDocument(dirName1); in assertDefaultContentOfTestDir0()
179 bots.directory.waitForDocument(fileNameNoRename); in assertDefaultContentOfTestDir0()
180 bots.directory.assertDocumentsCount(4); in assertDefaultContentOfTestDir0()
[all …]
DArchiveUiTest.java30 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()
DFilesActivityDefaultsUiTest.java58 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()
DSidebarUiTest.java45 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()
DFingerSelectionUiTest.java37 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()
DFileDeleteUiTest.java94 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()
DIntegratedDownloadsUiTest.java50 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()
DInspectorUiTest.java24 import com.android.documentsui.bots.UiBot;
59 bots.inspector.assertTitle("test.txt"); in testDisplayFileName()
66 bots.inspector.assertRowEquals( in testFolderDetails()
70 bots.inspector.assertRowEquals( in testFolderDetails()
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/
DFilesJankPerfTest.java37 import com.android.documentsui.bots.SidebarBot;
39 import com.android.documentsui.bots.DirectoryListBot;
DFilesActivityPerfTest.java117 bots.roots.openRoot(STRESS_ROOT_1_ID); in testFilesListedPerformance()
126 bots.roots.openRoot(STRESS_ROOT_0_ID); in testFilesListedPerformance()

12