/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
H A D | RenameDocumentUiTest.java | 37 bots.roots.closeDrawer(); 41 bots.directory.selectDocument(fileName1, 1); 42 bots.main.openOverflowMenu(); 43 bots.main.assertMenuEnabled(R.string.menu_rename, true); 50 bots.directory.selectDocument(fileNameNoRename, 1); 51 bots.main.openOverflowMenu(); 52 bots.main.assertMenuEnabled(R.string.menu_rename, false); 59 bots.directory.selectDocument(fileName1, 1); 60 bots.directory.selectDocument(fileNameNoRename, 2); 61 bots [all...] |
H A D | GestureSelectionUiTest.java | 34 bots.roots.closeDrawer(); 38 bots.main.switchToGridMode(); 39 bots.gesture.gestureSelectFiles(fileName1, fileName2); 41 bots.directory.assertSelection(2); 45 bots.main.switchToGridMode(); 46 bots.gesture.gestureSelectFiles(fileName2, dirName1); 48 bots.directory.assertSelection(3); 53 bots.main.switchToListMode(); 54 bots.gesture.gestureSelectFiles(fileName1, fileName2); 56 bots [all...] |
H A D | FilesActivityUiTest.java | 57 bots.roots.openRoot("Recent"); 58 bots.main.assertWindowTitle("Recent"); 62 bots.roots.openRoot("Images"); 63 bots.main.assertWindowTitle("Images"); 69 bots.roots.openRoot("Demo Root"); 70 bots.main.switchToListMode(); 71 bots.directory.openDocument("throw a authentication exception"); 72 bots.directory.assertHeaderMessageText( 79 bots.directory.assertDocumentsPresent("file0.log", "file1.png", "file2.csv"); 85 bots [all...] |
H A D | SearchViewUiTest.java | 40 bots.roots.closeDrawer(); 43 bots.directory.waitForDocument(fileName1); 48 bots.search.assertInputExists(false); 49 bots.search.assertIconVisible(true); 53 bots.roots.openRoot(ROOT_1_ID); // root 1 doesn't support search 55 bots.search.assertIconVisible(false); 56 bots.search.assertInputExists(false); 60 bots.search.clickIcon(); 63 bots.search.assertInputExists(true); 64 bots [all...] |
H A D | KeyboardNavigationUiTest.java | 47 bots.keyboard.pressKey(KeyEvent.KEYCODE_TAB); 48 bots.roots.assertHasFocus(); 49 bots.keyboard.pressKey(KeyEvent.KEYCODE_TAB); 50 bots.directory.assertHasFocus(); 57 bots.keyboard.pressKey(KeyEvent.KEYCODE_DPAD_LEFT); 58 bots.directory.assertHasFocus(); 61 bots.keyboard.pressKey(KeyEvent.KEYCODE_DPAD_RIGHT); 62 bots.directory.assertHasFocus(); 68 bots.roots.closeDrawer(); 69 if (bots [all...] |
H A D | ArchiveUiTest.java | 30 bots.roots.openRoot("ResourcesProvider"); 31 bots.directory.openDocument("archive.zip"); 32 bots.directory.waitForDocument("file1.txt"); 33 bots.directory.assertDocumentsPresent("dir1", "dir2", "file1.txt"); 34 bots.directory.openDocument("dir1"); 35 bots.directory.waitForDocument("cherries.txt"); 39 bots.roots.openRoot("ResourcesProvider"); 40 bots.directory.openDocument("broken.zip"); 43 bots.directory.assertPlaceholderMessageText(msg);
|
H A D | SidebarUiTest.java | 43 bots.directory.openDocument(dirName1); 44 bots.breadcrumb.assertTitle(dirName1); 45 bots.roots.openRoot(ROOT_0_ID); 46 bots.main.assertWindowTitle(ROOT_0_ID); 52 bots.directory.selectDocument(fileName1, 1); 53 bots.main.assertInActionMode(true); 55 bots.roots.openRoot(ROOT_1_ID); 56 bots.main.assertInActionMode(false);
|
H A D | SortDocumentUiTest.java | 65 bots.roots.closeDrawer(); 94 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_NAME_ASC); 100 bots.main.switchToListMode(); 102 bots.sortHeader.sortBy( 104 bots.directory.assertOrder(DIRS_IN_NAME_DESC, FILES_IN_NAME_DESC); 110 bots.main.switchToListMode(); 112 bots.sortHeader.sortBy( 114 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_SIZE_ASC); 120 bots.main.switchToListMode(); 122 bots [all...] |
H A D | BandSelectionUiTest.java | 36 bots.roots.closeDrawer(); 40 bots.main.switchToGridMode(); 41 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); 44 bots.gesture.bandSelection(start, end); 46 bots.directory.assertSelection(4); 50 bots.main.switchToGridMode(); 51 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); 52 Rect startDoc = bots.directory.findDocument(fileName2).getBounds(); 57 bots.gesture.bandSelection(start, end); 59 bots [all...] |
H A D | FileManagementUiTest.java | 65 bots.main.openOverflowMenu(); 68 bots.main.clickToolbarOverflowItem("New folder"); 71 bots.main.setDialogText("Kung Fu Panda"); 74 bots.keyboard.pressEnter(); 76 bots.directory.waitForDocument("Kung Fu Panda"); 80 bots.directory.selectDocument("file1.png"); 82 bots.main.clickToolbarItem(R.id.action_menu_delete); 84 bots.main.clickDialogOkButton(); 87 bots.directory.assertDocumentsAbsent("file1.png"); 91 bots [all...] |
H A D | FilesActivityDefaultsUiTest.java | 52 bots.main.assertWindowTitle("Documents"); 54 bots.main.assertWindowTitle("Downloads"); 61 bots.roots.openRoot(rootDir0.title); 64 bots.directory.assertPlaceholderMessageText(msg); 75 bots.roots.assertRootsPresent( 85 bots.roots.assertRootsPresent("Documents"); 87 bots.roots.assertRootsAbsent("Documents");
|
H A D | ContextMenuUiTest.java | 43 bots.roots.closeDrawer(); 81 bots.directory.rightClickDocument("file1.png"); 82 bots.menu.assertPresentMenuItems(menuItems); 92 bots.directory.rightClickDocument("Dir1"); 93 bots.menu.assertPresentMenuItems(menuItems); 100 bots.directory.selectDocument("file1.png", 1); 101 bots.directory.selectDocument("Dir1", 2); 102 bots.directory.rightClickDocument("Dir1"); 103 bots.menu.assertPresentMenuItems(menuItems); 110 Rect dirListBounds = bots [all...] |
H A D | ActivityTest.java | 37 import com.android.documentsui.bots.Bots; 38 import com.android.documentsui.bots.UiBot; 61 public Bots bots; field in class:ActivityTest 112 bots = new Bots(device, automation, context, TIMEOUT); 130 bots.roots.closeDrawer(); 172 bots.directory.waitForDocument(fileName1); 173 bots.directory.waitForDocument(fileName2); 174 bots.directory.waitForDocument(dirName1); 175 bots.directory.waitForDocument(fileNameNoRename); 176 bots [all...] |
H A D | IntegratedDownloadsUiTest.java | 49 bots.roots.openRoot("Downloads"); 50 bots.directory.assertDocumentsPresent("Queued"); 60 bots.roots.openRoot("Downloads"); 61 UiObject doc = bots.directory.findDocument("Unsuccessful"); 69 assertTrue(bots.main.findDownloadRetryDialog().exists());
|
H A D | InspectorUiTest.java | 22 import com.android.documentsui.bots.UiBot; 56 bots.inspector.assertTitle("test.txt"); 63 bots.inspector.assertRowPresent(getActivity().getString(R.string.sort_dimension_file_type),
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
H A D | Matchers.java | 17 package com.android.documentsui.bots;
|
H A D | MenuBot.java | 17 package com.android.documentsui.bots;
|
H A D | KeyboardBot.java | 17 package com.android.documentsui.bots;
|
H A D | InspectorBot.java | 16 package com.android.documentsui.bots;
|
H A D | Bots.java | 17 package com.android.documentsui.bots; 32 * Handy collection of bots for working with Files app.
|
H A D | SearchBot.java | 17 package com.android.documentsui.bots; 44 * Support for working directly with Roots and Directory view can be found in the respective bots.
|
H A D | BreadBot.java | 17 package com.android.documentsui.bots; 55 * Support for working directly with Roots and Directory view can be found in the respective bots.
|
H A D | SidebarBot.java | 17 package com.android.documentsui.bots;
|
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/ |
H A D | FilesActivityPerfTest.java | 117 bots.roots.openRoot(STRESS_ROOT_1_ID); 126 bots.roots.openRoot(STRESS_ROOT_0_ID);
|
H A D | FilesJankPerfTest.java | 37 import com.android.documentsui.bots.SidebarBot; 39 import com.android.documentsui.bots.DirectoryListBot;
|