Home
last modified time | relevance | path

Searched refs:directory (Results 1 – 25 of 175) sorted by relevance

1234567

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DRenameDocumentUiTest.java43 bots.directory.selectDocument(fileName1, 1); in testRenameEnabled_SingleSelection()
53 bots.directory.selectDocument(fileNameNoRename, 1); in testNoRenameSupport_SingleSelection()
64 bots.directory.selectDocument(fileName1, 1); in testOneHasRenameSupport_MultipleSelection()
65 bots.directory.selectDocument(fileNameNoRename, 2); in testOneHasRenameSupport_MultipleSelection()
76 bots.directory.selectDocument(fileName1, 1); in testRenameDisabled_MultipleSelection()
77 bots.directory.selectDocument(fileName2, 2); in testRenameDisabled_MultipleSelection()
87 bots.directory.selectDocument(fileName1, 1); in testRenameFile_OkButton()
97 bots.directory.waitForDocument(newName); in testRenameFile_OkButton()
98 bots.directory.assertDocumentsAbsent(fileName1); in testRenameFile_OkButton()
99 bots.directory.assertDocumentsCount(4); in testRenameFile_OkButton()
[all …]
DDirectoryMessagesUiTest.java48 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 …]
DFileManagementUiTest.java78 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 …]
DPickerPreviewAllTypeUiTest.java54 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode()
55 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_gridMode()
60 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_listMode()
61 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_listMode()
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()
69 assertTrue(bots.directory.hasDocumentPreview(fileName2)); in testPreviewVisible_allType_girdMode()
74 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_allType_listMode()
75 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_allType_listMode()
[all …]
DSortDocumentUiTest.java95 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 …]
DCancelFromNotificationUiTest.java153 bots.directory.findDocument(TARGET_FILE); in testCopyDocument_Cancel()
156 bots.directory.selectDocument(TARGET_FILE, 1); in testCopyDocument_Cancel()
165 bots.directory.waitForDocument(TARGET_FILE); in testCopyDocument_Cancel()
171 bots.directory.findDocument(TARGET_FILE); in testCopyDocument_CancelFromNotification()
174 bots.directory.selectDocument(TARGET_FILE, 1); in testCopyDocument_CancelFromNotification()
194 assertFalse(bots.directory.hasDocuments(TARGET_FILE)); in testCopyDocument_CancelFromNotification()
198 assertTrue(bots.directory.hasDocuments(TARGET_FILE)); in testCopyDocument_CancelFromNotification()
205 bots.directory.findDocument(TARGET_FILE); in testMoveDocument_Cancel()
208 bots.directory.selectDocument(TARGET_FILE, 1); in testMoveDocument_Cancel()
217 bots.directory.waitForDocument(TARGET_FILE); in testMoveDocument_Cancel()
[all …]
DArchiveUiTest.java31 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()
DInternalStorageUiTest.java64 bots.directory.selectDocument(fileName); 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()
92 if (bots.directory.hasDocuments(newFileName)) { in deleteTestFiles()
93 bots.directory.selectDocument(newFileName); in deleteTestFiles()
DFilesActivityUiTest.java76 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()
90 bots.directory.assertDocumentsPresent(childDir1); in testNavigate_byBreadcrumb()
96 bots.directory.waitForDocument(dirName1); in testNavigate_byBreadcrumb()
103 bots.directory.selectDocument("file0.log", 1); in testNavigate_inFixedLayout_whileHasSelection()
116 bots.directory.selectDocument("file0.log"); in testNavigationToInspector()
DContextMenuUiTest.java81 bots.directory.rightClickDocument("file1.png"); in testContextMenu_onFile()
91 bots.directory.rightClickDocument("Dir1"); 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()
108 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); in testContextMenu_onEmptyArea()
109 Rect dirBounds = bots.directory.findDocument(dirName1).getBounds(); in testContextMenu_onEmptyArea()
113 bots.directory.rightClickDocument(new Point(dirListBounds.right - 1, dirBounds.centerY())); in testContextMenu_onEmptyArea()
DBandSelectionUiTest.java42 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()
DPickerPreviewTextUiTest.java54 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_listMode()
55 assertFalse(bots.directory.hasDocumentPreview(dirName1)); in testPreviewInvisible_directory_listMode()
60 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_enabled_gridMode()
61 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_enabled_gridMode()
66 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_enabled_listMode()
67 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_enabled_listMode()
DFileCopyUiTest.java239 if (bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments()
247 if (!bots.directory.hasDocuments(TARGET_FOLDER)) { in createDocuments()
271 if (!bots.directory.hasDocuments(targetFolder)) { in deleteDocuments()
275 bots.directory.selectDocument(targetFolder, 1); in deleteDocuments()
282 bots.directory.findDocument(targetFolder).waitUntilGone(WAIT_TIME_SECONDS); in deleteDocuments()
283 return !bots.directory.hasDocuments(targetFolder); in deleteDocuments()
391 bots.directory.selectDocument(TARGET_FOLDER, 1); in copyFiles()
414 bots.directory.assertDocumentsPresent(TARGET_FOLDER); in assertFilesCopied()
434 bots.directory.assertDocumentsPresent(TARGET_FOLDER); in testCopyDocuments_InternalStorage()
451 bots.directory.assertDocumentsPresent(TARGET_FOLDER); in ignored_testCopyDocuments_FromSdCard()
[all …]
DActivityTest.java181 bots.directory.waitForDocument(fileName1); in assertDefaultContentOfTestDir0()
182 bots.directory.waitForDocument(fileName2); in assertDefaultContentOfTestDir0()
183 bots.directory.waitForDocument(dirName1); in assertDefaultContentOfTestDir0()
184 bots.directory.waitForDocument(fileNameNoRename); in assertDefaultContentOfTestDir0()
185 bots.directory.assertDocumentsCount(4); in assertDefaultContentOfTestDir0()
189 bots.directory.waitForDocument(fileName3); in assertDefaultContentOfTestDir1()
190 bots.directory.waitForDocument(fileName4); in assertDefaultContentOfTestDir1()
191 bots.directory.assertDocumentsCount(2); in assertDefaultContentOfTestDir1()
DGestureSelectionUiTest.java41 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()
DKeyboardNavigationUiTest.java51 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()
DSearchViewUiTest.java44 bots.directory.waitForDocument(fileName1); in setUp()
128 bots.directory.waitForDocument(dirName1); in testSearchView_ClearsTextOnBack()
150 bots.directory.waitForHolderMessage(); in testSearchView_ClearsAutoSearchOnBack()
173 bots.directory.assertDocumentsCountOnList(true, 2); in testSearch_ResultsFound()
174 bots.directory.assertDocumentsPresent(fileName1, fileName2); in testSearch_ResultsFound()
184 bots.directory.assertPlaceholderMessageText(String.format(msg, "TEST_ROOT_0")); in testSearch_NoResults()
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemBase.java142 private void deleteIfEmptyCameraSubDir(File directory) { in deleteIfEmptyCameraSubDir() argument
144 if (!directory.exists() || !directory.isDirectory() in deleteIfEmptyCameraSubDir()
145 || directory.list() == null || directory.list().length != 0) { in deleteIfEmptyCameraSubDir()
151 String fileParentPathStr = directory.getParentFile().getAbsolutePath(); in deleteIfEmptyCameraSubDir()
157 if(!directory.delete()) { in deleteIfEmptyCameraSubDir()
158 Log.d(TAG, "Failed to delete: " + directory); in deleteIfEmptyCameraSubDir()
/packages/apps/Camera2/src/com/android/camera/util/
DFileUtil.java34 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/services/Car/service/src/com/android/car/telemetry/util/
DIoUtils.java128 public static boolean deleteSilently(@NonNull File directory, @NonNull String fileName) { in deleteSilently() argument
131 directory.getAbsolutePath(), fileName)); in deleteSilently()
134 + directory.getAbsolutePath(), e); in deleteSilently()
143 public static void deleteAllSilently(@NonNull File directory) { in deleteAllSilently() argument
144 File[] files = directory.listFiles(); in deleteAllSilently()
146 Slogf.i(CarLog.TAG_TELEMETRY, "Skip deleting the empty dir %s", directory.getName()); in deleteAllSilently()
152 + " in directory " + directory.getAbsolutePath()); in deleteAllSilently()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionaryGetter.java77 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/Contacts/src/com/android/contacts/list/
DPhoneNumberListAdapter.java201 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/modules/Connectivity/service-t/src/com/android/server/ethernet/
DEthernetConfigStore.java61 final File directory = new File(newFilePath); in writeLegacyIpConfigToApexPath() local
62 if (!directory.exists()) { in writeLegacyIpConfigToApexPath()
63 directory.mkdirs(); in writeLegacyIpConfigToApexPath()
119 final File directory = new File(APEX_IP_CONFIG_FILE_PATH); in write() local
120 if (!directory.exists()) { in write()
121 directory.mkdirs(); in write()
/packages/services/Car/tools/scripts/
Dremove-apirequirements.py40 def delete_text_from_files(directory): argument
41 if not os.path.isdir(directory):
44 for file_name in os.listdir(directory):
45 file_path = os.path.join(directory, file_name)
/packages/apps/Dialer/java/com/android/dialer/phonelookup/
Dphone_lookup_info.proto23 // 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.

1234567