/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
Matchers.java | 17 package com.android.documentsui.bots;
|
MenuBot.java | 17 package com.android.documentsui.bots; 32 public class MenuBot extends Bots.BaseBot {
|
KeyboardBot.java | 17 package com.android.documentsui.bots; 31 public class KeyboardBot extends Bots.BaseBot {
|
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. 57 public class BreadBot extends Bots.BaseBot {
|
InspectorBot.java | 16 package com.android.documentsui.bots; 37 public class InspectorBot extends Bots.BaseBot {
|
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. 46 public class SearchBot extends Bots.BaseBot {
|
SidebarBot.java | 17 package com.android.documentsui.bots; 45 public class SidebarBot extends Bots.BaseBot {
|
SortHeaderBot.java | 17 package com.android.documentsui.bots; 50 * Support for working directly with Roots and Directory view can be found in the respective bots. 52 public class SortHeaderBot extends Bots.BaseBot {
|
Bots.java | 17 package com.android.documentsui.bots; 32 * Handy collection of bots for working with Files app. 34 public final class Bots { 49 public Bots(UiDevice device, UiAutomation automation, Context context, int timeout) {
|
GestureBot.java | 17 package com.android.documentsui.bots; 38 public class GestureBot extends Bots.BaseBot {
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
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.directory.assertSelection(2) [all...] |
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.main.inFixedLayout()) [all...] |
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.main.openOverflowMenu() [all...] |
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.directory.assertSelection(3) [all...] |
DirectoryMessagesUiTest.java | 33 bots.roots.openRoot("Demo Root"); 34 bots.main.switchToListMode(); 42 bots.directory.openDocument(DemoProvider.DIR_AUTH); 43 bots.directory.assertHasMessage( 45 bots.directory.assertHasMessageButtonText("SIGN IN"); 49 bots.directory.openDocument(DemoProvider.DIR_INFO); 50 bots.directory.assertHasMessage(DemoProvider.MSG_INFO); 51 bots.directory.assertHasMessageButtonText("DISMISS"); 55 bots.directory.openDocument(DemoProvider.DIR_INFO); 56 bots.directory.assertHasMessage(true) [all...] |
FilesActivityUiTest.java | 57 bots.roots.openRoot("Recent"); 58 bots.main.assertWindowTitle("Recent"); 62 bots.roots.openRoot("Images"); 63 bots.main.assertWindowTitle("Images"); 67 bots.directory.assertDocumentsPresent("file0.log", "file1.png", "file2.csv"); 73 bots.directory.waitForDocument("Ham & Cheese.sandwich"); 74 bots.directory.assertDocumentsPresent( 79 bots.directory.openDocument(dirName1); 80 bots.directory.waitForDocument(childDir1); // wait for known content 81 bots.directory.assertDocumentsPresent(childDir1) [all...] |
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.directory.selectDocument("file1.png") [all...] |
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.search.assertInputFocused(true) [all...] |
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.directory.findDocumentsList().getBounds() [all...] |
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);
|
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.sortHeader.sortBy [all...] |
CancelFromNotificationUiTest.java | 167 bots.main.findMenuLabelWithName(ACCESS_APP_NAME).click(); 170 bots.main.findMenuLabelWithName(ALLOW).click(); 171 bots.keyboard.pressKey(KeyEvent.KEYCODE_BACK); 180 bots.main.findMenuLabelWithName(ACCESS_APP_NAME).click(); 183 bots.main.findMenuLabelWithName(TURN_OFF).click(); 184 bots.keyboard.pressKey(KeyEvent.KEYCODE_BACK); 203 bots.roots.openRoot(ROOT_0_ID); 205 bots.directory.findDocument(TARGET_FILE); 208 bots.directory.selectDocument(TARGET_FILE); 211 bots.main.clickToolbarOverflowItem(COPY) [all...] |
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) [all...] |
FileCopyUiTest.java | 181 bots.main.findMenuLabelWithName(ACCESS_APP_NAME).click(); 184 bots.main.findMenuLabelWithName(ALLOW).click(); 185 bots.keyboard.pressKey(KeyEvent.KEYCODE_BACK); 194 bots.main.findMenuLabelWithName(ACCESS_APP_NAME).click(); 197 bots.main.findMenuLabelWithName(TURN_OFF).click(); 198 bots.keyboard.pressKey(KeyEvent.KEYCODE_BACK); 217 bots.roots.openRoot(ROOT_0_ID); 218 bots.main.clickToolbarOverflowItem(SELECT_ALL); 221 bots.main.clickToolbarOverflowItem(COPY); 224 bots.roots.openRoot(ROOT_1_ID) [all...] |
FileDeleteUiTest.java | 181 bots.main.findMenuLabelWithName(ACCESS_APP_NAME).click(); 184 bots.main.findMenuLabelWithName(ALLOW).click(); 185 bots.keyboard.pressKey(KeyEvent.KEYCODE_BACK); 194 bots.main.findMenuLabelWithName(ACCESS_APP_NAME).click(); 197 bots.main.findMenuLabelWithName(TURN_OFF).click(); 198 bots.keyboard.pressKey(KeyEvent.KEYCODE_BACK); 217 bots.roots.openRoot(ROOT_0_ID); 218 bots.main.clickToolbarOverflowItem(SELECT_ALL); 221 bots.main.clickToolbarItem(R.id.action_menu_delete); 222 bots.main.clickDialogOkButton() [all...] |