Home
last modified time | relevance | path

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

12

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DSearchViewUiTest.java40 bots.roots.closeDrawer(); in setUp()
43 bots.directory.waitForDocument(fileName1); in setUp()
58 bots.search.assertInputExists(false); in testSearchIconVisible()
59 bots.search.assertIconVisible(true); in testSearchIconVisible()
64 bots.roots.openRoot(ROOT_1_ID); // root 1 doesn't support search in testSearchIconHidden()
66 bots.search.assertIconVisible(false); in testSearchIconHidden()
67 bots.search.assertInputExists(false); in testSearchIconHidden()
71 bots.search.clickIcon(); in testSearchView_ExpandsOnClick()
74 bots.search.assertInputExists(true); in testSearchView_ExpandsOnClick()
75 bots.search.assertInputFocused(true); 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()
52 bots.directory.selectDocument(fileNameNoRename, 1); in testNoRenameSupport_SingleSelection()
53 bots.main.openOverflowMenu(); in testNoRenameSupport_SingleSelection()
54 bots.main.assertMenuEnabled(R.string.menu_rename, false); in testNoRenameSupport_SingleSelection()
63 bots.directory.selectDocument(fileName1, 1); in testOneHasRenameSupport_MultipleSelection()
64 bots.directory.selectDocument(fileNameNoRename, 2); in testOneHasRenameSupport_MultipleSelection()
65 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 …]
DFilesActivityUiTest.java59 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 …]
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 …]
DCancelFromNotificationUiTest.java97 bots.notifications.setNotificationAccess(getActivity(), true); in setUp()
122 bots.notifications.setNotificationAccess(getActivity(), false); in tearDown()
151 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_Cancel()
153 bots.directory.findDocument(TARGET_FILE); in testCopyDocument_Cancel()
156 bots.directory.selectDocument(TARGET_FILE, 1); in testCopyDocument_Cancel()
159 bots.main.clickToolbarOverflowItem(context.getResources().getString(R.string.menu_copy)); in testCopyDocument_Cancel()
162 bots.main.clickDialogCancelButton(); in testCopyDocument_Cancel()
165 bots.directory.waitForDocument(TARGET_FILE); in testCopyDocument_Cancel()
170 bots.roots.openRoot(ROOT_0_ID); in testCopyDocument_CancelFromNotification()
171 bots.directory.findDocument(TARGET_FILE); in testCopyDocument_CancelFromNotification()
[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 …]
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 …]
DPickerPreviewAllTypeUiTest.java53 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 …]
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 …]
DInternalStorageUiTest.java50 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 …]
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 …]
DContextMenuUiTest.java44 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 …]
DFileCopyUiTest.java149 bots.notifications.setNotificationAccess(getActivity(), true); in setUp()
224 bots.notifications.setNotificationAccess(getActivity(), false); in tearDown()
239 if (bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments()
244 bots.roots.openRoot(label); in createDocuments()
247 if (!bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments()
270 bots.roots.openRoot(label); in deleteDocuments()
271 if (!bots.directory.hasDocuments(targetFolder)) { in deleteDocuments()
275 bots.directory.selectDocument(targetFolder, 1); in deleteDocuments()
278 bots.main.clickToolbarItem(R.id.action_menu_delete); in deleteDocuments()
279 bots.main.clickDialogOkButton(); in deleteDocuments()
[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()
DPickerPreviewTextUiTest.java53 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()
DSidebarUiTest.java45 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()
DActivityTest.java44 import com.android.documentsui.bots.Bots;
71 public Bots bots; field in ActivityTest
128 bots = new Bots(device, automation, context, TIMEOUT); in setUp()
151 bots.roots.closeDrawer(); in setUp()
193 bots.directory.waitForDocument(fileName1); in assertDefaultContentOfTestDir0()
194 bots.directory.waitForDocument(fileName2); in assertDefaultContentOfTestDir0()
195 bots.directory.waitForDocument(dirName1); in assertDefaultContentOfTestDir0()
196 bots.directory.waitForDocument(fileNameNoRename); in assertDefaultContentOfTestDir0()
197 bots.directory.assertDocumentsCount(4); in assertDefaultContentOfTestDir0()
201 bots.directory.waitForDocument(fileName3); in assertDefaultContentOfTestDir1()
[all …]
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.java98 bots.notifications.setNotificationAccess(getActivity(), true); in setUp()
121 bots.notifications.setNotificationAccess(getActivity(), false); in tearDown()
164 bots.roots.openRoot(ROOT_0_ID); in testDeleteAllDocument()
165 bots.main.clickToolbarOverflowItem( in testDeleteAllDocument()
169 bots.main.clickToolbarItem(R.id.action_menu_delete); in testDeleteAllDocument()
170 bots.main.clickDialogOkButton(); in testDeleteAllDocument()
181 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()
DFilesActivityDefaultsUiTest.java51 bots.roots.openRoot(rootDir0.title); in testNavigate_FromEmptyDirectory()
54 bots.directory.assertPlaceholderMessageText(msg); in testNavigate_FromEmptyDirectory()
66 bots.roots.assertRootsPresent( in testDefaultRoots()
DInspectorUiTest.java56 bots.inspector.assertTitle("test.txt"); in testDisplayFileName()
63 bots.inspector.assertRowEquals( in testFolderDetails()
67 bots.inspector.assertRowEquals( in testFolderDetails()
DDocumentsUiTestBase.java29 import com.android.documentsui.bots.Bots;
41 protected Bots bots; field in DocumentsUiTestBase
60 bots = new Bots(device, instrumentation.getUiAutomation(), targetContext, BOTS_TIMEOUT); in setUp()
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/
DFilesJankPerfTest.java34 import com.android.documentsui.bots.DirectoryListBot;
35 import com.android.documentsui.bots.SidebarBot;

12