/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | RenameDocumentUiTest.java | 80 bots.directory.selectDocument(fileName1, 1); in testRenameFile_OkButton() 90 bots.directory.waitForDocument(newName); in testRenameFile_OkButton() 91 bots.directory.assertDocumentsAbsent(fileName1); in testRenameFile_OkButton() 92 bots.directory.assertDocumentsCount(4); in testRenameFile_OkButton() 96 bots.directory.selectDocument(fileName1, 1); in testRenameFile_Enter() 106 bots.directory.waitForDocument(newName); in testRenameFile_Enter() 107 bots.directory.assertDocumentsAbsent(fileName1); in testRenameFile_Enter() 108 bots.directory.assertDocumentsCount(4); in testRenameFile_Enter() 112 bots.directory.selectDocument(fileName1, 1); in testRenameWithoutChangeIsNoOp() 119 bots.directory.waitForDocument(fileName1); in testRenameWithoutChangeIsNoOp() [all …]
|
D | DirectoryMessagesUiTest.java | 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() 65 bots.directory.clickMessageButton(); in testInfoMessage_dismissable() 66 bots.directory.assertHasMessage(false); in testInfoMessage_dismissable() [all …]
|
D | PickerPreviewAllTypeUiTest.java | 63 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewInvisible_noQuickViewer_gridMode() 64 assertFalse(bots.directory.hasDocumentPreview(fileName1)); in testPreviewInvisible_noQuickViewer_gridMode() 73 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewInvisible_noQuickViewer_listMode() 74 assertFalse(bots.directory.hasDocumentPreview(fileName1)); in testPreviewInvisible_noQuickViewer_listMode() 83 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode() 84 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_gridMode() 93 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_listMode() 94 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_listMode() 103 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_allType_girdMode() 104 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_allType_girdMode() [all …]
|
D | FileManagementUiTest.java | 78 bots.directory.waitForDocument("Kung Fu Panda"); in testCreateDirectory() 82 bots.directory.selectDocument("file1.png", 1); in testDeleteDocument() 89 bots.directory.assertDocumentsAbsent("file1.png"); in testDeleteDocument() 94 bots.directory.selectDocument("file1.png", 1); in testKeyboard_CutDocument() 103 bots.directory.waitForDocument("file1.png"); in testKeyboard_CutDocument() 104 bots.directory.assertDocumentsPresent("file1.png"); in testKeyboard_CutDocument() 107 bots.directory.assertDocumentsAbsent("file1.png"); in testKeyboard_CutDocument() 112 bots.directory.selectDocument("file1.png", 1); in testKeyboard_CopyDocument() 121 bots.directory.waitForDocument("file1.png"); in testKeyboard_CopyDocument() 124 bots.directory.waitForDocument("file1.png"); in testKeyboard_CopyDocument() [all …]
|
D | PickerPreviewTextUiTest.java | 63 assertFalse(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewInvisible_disabled_gridMode() 64 assertFalse(bots.directory.hasDocumentPreview(fileName2)); in testPreviewInvisible_disabled_gridMode() 73 assertFalse(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewInvisible_disabled_listMode() 74 assertFalse(bots.directory.hasDocumentPreview(fileName2)); in testPreviewInvisible_disabled_listMode() 83 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode() 84 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_gridMode() 93 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_listMode() 94 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_listMode() 103 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_enabled_gridMode() 104 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_enabled_gridMode() [all …]
|
D | SortDocumentUiTest.java | 95 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_NAME_ASC); in testDefaultSortByNameAscending() 105 bots.directory.assertOrder(DIRS_IN_NAME_DESC, FILES_IN_NAME_DESC); in testSortByName_Descending_listMode() 115 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_SIZE_ASC); in testSortBySize_Ascending_listMode() 125 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_SIZE_DESC); in testSortBySize_Descending_listMode() 135 bots.directory.assertOrder(DIRS, FILES); in testSortByModified_Ascending_listMode() 145 bots.directory.assertOrder(DIRS_IN_MODIFIED_DESC, FILES_IN_MODIFIED_DESC); in testSortByModified_Descending_listMode() 155 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_TYPE_ASC); in testSortByType_Ascending_listMode() 165 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_TYPE_DESC); in testSortByType_Descending_listMode() 175 bots.directory.assertOrder(DIRS_IN_NAME_DESC, FILES_IN_NAME_DESC); in testSortByName_Descending_gridMode() 185 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_SIZE_ASC); in testSortBySize_Ascending_gridMode() [all …]
|
D | CancelFromNotificationUiTest.java | 149 bots.directory.findDocument(TARGET_FILE); in testCopyDocument_Cancel() 152 bots.directory.selectDocument(TARGET_FILE, 1); in testCopyDocument_Cancel() 161 bots.directory.waitForDocument(TARGET_FILE); in testCopyDocument_Cancel() 167 bots.directory.findDocument(TARGET_FILE); in testCopyDocument_CancelFromNotification() 170 bots.directory.selectDocument(TARGET_FILE, 1); in testCopyDocument_CancelFromNotification() 190 assertFalse(bots.directory.hasDocuments(TARGET_FILE)); in testCopyDocument_CancelFromNotification() 194 assertTrue(bots.directory.hasDocuments(TARGET_FILE)); in testCopyDocument_CancelFromNotification() 201 bots.directory.findDocument(TARGET_FILE); in testMoveDocument_Cancel() 204 bots.directory.selectDocument(TARGET_FILE, 1); in testMoveDocument_Cancel() 213 bots.directory.waitForDocument(TARGET_FILE); in testMoveDocument_Cancel() [all …]
|
D | FilesActivityUiTest.java | 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_inFixedLayout_byBreadcrumb() 89 bots.directory.waitForDocument(childDir1); // wait for known content in testNavigate_inFixedLayout_byBreadcrumb() 90 bots.directory.assertDocumentsPresent(childDir1); in testNavigate_inFixedLayout_byBreadcrumb() 97 bots.directory.waitForDocument(dirName1); in testNavigate_inFixedLayout_byBreadcrumb() 104 bots.directory.selectDocument("file0.log", 1); in testNavigate_inFixedLayout_whileHasSelection() 117 bots.directory.selectDocument("file0.log"); in testNavigationToInspector()
|
D | ArchiveUiTest.java | 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() 40 bots.directory.openDocument("broken.zip"); in testArchive_invalid() 43 bots.directory.assertPlaceholderMessageText(msg); in testArchive_invalid()
|
D | InternalStorageUiTest.java | 72 bots.directory.selectDocument(fileName); 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() 96 bots.directory.selectDocument(fileName); in deleteTestFiles() 100 if (bots.directory.hasDocuments(newFileName)) { in deleteTestFiles() 101 bots.directory.selectDocument(newFileName); in deleteTestFiles()
|
D | ContextMenuUiTest.java | 82 bots.directory.rightClickDocument("file1.png"); in testContextMenu_onFile() 93 bots.directory.rightClickDocument("Dir1"); 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() 111 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); in testContextMenu_onEmptyArea() 112 Rect dirBounds = bots.directory.findDocument(dirName1).getBounds(); in testContextMenu_onEmptyArea() 116 bots.directory.rightClickDocument(new Point(dirListBounds.right - 1, dirBounds.centerY())); in testContextMenu_onEmptyArea()
|
D | BandSelectionUiTest.java | 42 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); in testBandSelection_allFiles() 43 Rect startDir = bots.directory.findDocument(dirName1).getBounds(); in testBandSelection_allFiles() 48 bots.directory.assertSelection(4); in testBandSelection_allFiles() 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() 62 bots.directory.assertSelection(3); in testBandSelection_someFiles()
|
D | FileCopyUiTest.java | 200 if (bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments() 208 if (!bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments() 232 if (!bots.directory.hasDocuments(TARGET_FOLDER)) { in deleteDocuments() 236 bots.directory.selectDocument(TARGET_FOLDER, 1); in deleteDocuments() 243 bots.directory.findDocument(TARGET_FOLDER).waitUntilGone(WAIT_TIME_SECONDS); in deleteDocuments() 244 return !bots.directory.hasDocuments(TARGET_FOLDER); in deleteDocuments() 348 bots.directory.selectDocument(TARGET_FOLDER, 1); in copyFiles() 371 bots.directory.assertDocumentsPresent(TARGET_FOLDER); in assertFilesCopied() 391 bots.directory.assertDocumentsPresent(TARGET_FOLDER); in testCopyDocuments_InternalStorage() 405 bots.directory.assertDocumentsPresent(TARGET_FOLDER); in testCopyDocuments_FromSdCard() [all …]
|
D | ActivityTest.java | 175 bots.directory.waitForDocument(fileName1); in assertDefaultContentOfTestDir0() 176 bots.directory.waitForDocument(fileName2); in assertDefaultContentOfTestDir0() 177 bots.directory.waitForDocument(dirName1); in assertDefaultContentOfTestDir0() 178 bots.directory.waitForDocument(fileNameNoRename); in assertDefaultContentOfTestDir0() 179 bots.directory.assertDocumentsCount(4); in assertDefaultContentOfTestDir0() 183 bots.directory.waitForDocument(fileName3); in assertDefaultContentOfTestDir1() 184 bots.directory.waitForDocument(fileName4); in assertDefaultContentOfTestDir1() 185 bots.directory.assertDocumentsCount(2); in assertDefaultContentOfTestDir1()
|
D | SearchViewUiTest.java | 44 bots.directory.waitForDocument(fileName1); in setUp() 115 bots.directory.waitForDocument(dirName1); in testSearchView_ClearsTextOnBack() 139 bots.directory.waitForHolderMessage(); in testSearchView_ClearsAutoSearchOnBack() 163 bots.directory.assertDocumentsCountOnList(true, 2); in testSearch_ResultsFound() 164 bots.directory.assertDocumentsPresent(fileName1, fileName2); in testSearch_ResultsFound() 174 bots.directory.assertPlaceholderMessageText(String.format(msg, "TEST_ROOT_0")); in testSearch_NoResults()
|
D | GestureSelectionUiTest.java | 41 bots.directory.assertSelection(2); in testGridGestureSelect_twoFiles() 48 bots.directory.assertSelection(3); in testGridGestureSelect_multipleFiles() 56 bots.directory.assertSelection(2); in testListGestureSelect_twoFiles() 64 bots.directory.assertSelection(3); in testListGestureSelect_multipleFiles()
|
D | KeyboardNavigationUiTest.java | 51 bots.directory.assertHasFocus(); in testKeyboard_tab() 59 bots.directory.assertHasFocus(); in testKeyboard_arrowsDirList() 63 bots.directory.assertHasFocus(); in testKeyboard_arrowsDirList() 75 bots.directory.assertFirstDocumentHasFocus(); in testKeyboard_tabFocuses()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | PhoneNumberListAdapter.java | 201 final DirectoryPartition directory = getExtendedDirectoryFromId(directoryId); in configureLoader() local 202 final String contentUri = directory.getContentUri(); in configureLoader() 205 + directory); in configureLoader() 210 String.valueOf(getDirectoryResultLimit(directory))); in configureLoader() 462 final DirectoryPartition directory = (DirectoryPartition) getPartition(partition); in bindView() local 463 bindPhoneNumber(view, cursor, directory.isDisplayNumber(), position); in bindView() 523 final DirectoryPartition directory = (DirectoryPartition) getPartition(partition); in bindWorkProfileIcon() local 524 final long directoryId = directory.getDirectoryId(); in bindWorkProfileIcon() 624 final DirectoryPartition directory = mExtendedDirectories.get(i); in changeDirectories() local 626 addPartition(insertIndex, directory); in changeDirectories() [all …]
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | FilmstripItemBase.java | 142 private void deleteIfEmptyCameraSubDir(File directory) { in deleteIfEmptyCameraSubDir() argument 144 if (!directory.exists() || !directory.isDirectory() || directory.list().length != 0) { in deleteIfEmptyCameraSubDir() 150 String fileParentPathStr = directory.getParentFile().getAbsolutePath(); in deleteIfEmptyCameraSubDir() 156 if(!directory.delete()) { in deleteIfEmptyCameraSubDir() 157 Log.d(TAG, "Failed to delete: " + directory); in deleteIfEmptyCameraSubDir()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryGetter.java | 77 final File directory = new File(DictionaryInfoUtils.getWordListTempDirectory(context)); in getTempFileName() local 78 if (!directory.exists()) { in getTempFileName() 79 if (!directory.mkdirs()) { in getTempFileName() 86 return File.createTempFile("xxx" + safeId, null, directory).getAbsolutePath(); in getTempFileName() 170 for (File directory : directoryList) { in getCachedWordLists() 171 if (!directory.isDirectory()) continue; in getCachedWordLists() 173 DictionaryInfoUtils.getWordListIdFromFileName(directory.getName()); in getCachedWordLists() 176 final File[] wordLists = directory.listFiles(); in getCachedWordLists()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | FileUtil.java | 34 public static boolean deleteDirectoryRecursively(File directory) { in deleteDirectoryRecursively() argument 35 if (!directory.exists() || !directory.isDirectory()) { in deleteDirectoryRecursively() 39 for (File entry : directory.listFiles()) { in deleteDirectoryRecursively() 47 return directory.delete(); in deleteDirectoryRecursively()
|
/packages/apps/Car/libs/ |
D | resource_generator.py | 88 directory = resource_dir + os.path.sep + dir_prefix 90 directory = directory + qualifier_separator + modifier 92 if not os.path.exists(directory): 94 print("Creating directory %s" % directory) 95 os.mkdir(directory) 97 filename = directory + os.path.sep + resource_type + file_extension
|
/packages/apps/Dialer/java/com/android/dialer/phonelookup/ |
D | phone_lookup_info.proto | 23 // For a contact in the default directory: 29 // For a contact in the default directory: 35 // For a contact in the default directory: 41 // For a contact in the default directory: 47 // For a contact in the default directory: 55 // For a contact in the default directory: 61 // For a contact in the default directory: 69 // For a contact in the default directory: 91 // Information about a contact in the default directory, retrieved via CP2.
|
/packages/apps/TimeZoneData/ |
D | README | 1 This directory contains code associated with the "Time Zone Data" app, which is a mechanism 5 The code/files beneath this directory are maintained by Android developers and intended to be 8 See the oem_template directory for files / directory structures that OEMs are expected to copy
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/directories/ |
D | DirectoryContactsCursorLoader.java | 70 Directory directory = directories.get(i); in loadInBackground() local 72 if (!ContactsContract.Directory.isRemoteDirectoryId(directory.getId()) in loadInBackground() 73 && !ContactsContract.Directory.isEnterpriseDirectoryId(directory.getId())) { in loadInBackground() 79 if (DirectoryUtils.isInvisibleDirectoryId(directory.getId())) { in loadInBackground() 88 getContentFilterUri(query, directory.getId()), in loadInBackground()
|