Home
last modified time | relevance | path

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

1234

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DRenameDocumentUiTest.java41 bots.directory.selectDocument(fileName1, 1); in testRenameEnabled_SingleSelection()
50 bots.directory.selectDocument(fileNameNoRename, 1); in testNoRenameSupport_SingleSelection()
59 bots.directory.selectDocument(fileName1, 1); in testOneHasRenameSupport_MultipleSelection()
60 bots.directory.selectDocument(fileNameNoRename, 2); in testOneHasRenameSupport_MultipleSelection()
69 bots.directory.selectDocument(fileName1, 1); in testRenameDisabled_MultipleSelection()
70 bots.directory.selectDocument(fileName2, 2); in testRenameDisabled_MultipleSelection()
79 bots.directory.selectDocument(fileName1, 1); in testRenameFile_OkButton()
89 bots.directory.waitForDocument(newName); in testRenameFile_OkButton()
90 bots.directory.assertDocumentsAbsent(fileName1); in testRenameFile_OkButton()
91 bots.directory.assertDocumentsCount(4); in testRenameFile_OkButton()
[all …]
DFileManagementUiTest.java76 bots.directory.waitForDocument("Kung Fu Panda"); in testCreateDirectory()
80 bots.directory.selectDocument("file1.png"); in testDeleteDocument()
87 bots.directory.assertDocumentsAbsent("file1.png"); in testDeleteDocument()
91 bots.directory.selectDocument("file1.png"); in testKeyboard_CutDocument()
100 bots.directory.waitForDocument("file1.png"); in testKeyboard_CutDocument()
101 bots.directory.assertDocumentsPresent("file1.png"); in testKeyboard_CutDocument()
104 bots.directory.assertDocumentsAbsent("file1.png"); in testKeyboard_CutDocument()
108 bots.directory.selectDocument("file1.png"); in testKeyboard_CopyDocument()
117 bots.directory.waitForDocument("file1.png"); in testKeyboard_CopyDocument()
120 bots.directory.waitForDocument("file1.png"); in testKeyboard_CopyDocument()
[all …]
DSortDocumentUiTest.java94 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_NAME_ASC); in testDefaultSortByNameAscending()
104 bots.directory.assertOrder(DIRS_IN_NAME_DESC, FILES_IN_NAME_DESC); in testSortByName_Descending_listMode()
114 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_SIZE_ASC); in testSortBySize_Ascending_listMode()
124 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_SIZE_DESC); in testSortBySize_Descending_listMode()
134 bots.directory.assertOrder(DIRS, FILES); in testSortByModified_Ascending_listMode()
144 bots.directory.assertOrder(DIRS_IN_MODIFIED_DESC, FILES_IN_MODIFIED_DESC); in testSortByModified_Descending_listMode()
154 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_TYPE_ASC); in testSortByType_Ascending_listMode()
164 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_TYPE_DESC); in testSortByType_Descending_listMode()
174 bots.directory.assertOrder(DIRS_IN_NAME_DESC, FILES_IN_NAME_DESC); in testSortByName_Descending_gridMode()
184 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_SIZE_ASC); in testSortBySize_Ascending_gridMode()
[all …]
DFilesActivityUiTest.java71 bots.directory.openDocument("throw a authentication exception"); in testProtectedFolder_showsAuthenticationUi()
72 bots.directory.assertHeaderMessageText( in testProtectedFolder_showsAuthenticationUi()
79 bots.directory.assertDocumentsPresent("file0.log", "file1.png", "file2.csv"); in testFilesListed()
85 bots.directory.waitForDocument("Ham & Cheese.sandwich"); in testFilesList_LiveUpdate()
86 bots.directory.assertDocumentsPresent( in testFilesList_LiveUpdate()
91 bots.directory.openDocument(dirName1); in testNavigate_inFixedLayout_byBreadcrumb()
92 bots.directory.waitForDocument(childDir1); // wait for known content in testNavigate_inFixedLayout_byBreadcrumb()
93 bots.directory.assertDocumentsPresent(childDir1); in testNavigate_inFixedLayout_byBreadcrumb()
100 bots.directory.waitForDocument(dirName1); in testNavigate_inFixedLayout_byBreadcrumb()
107 bots.directory.selectDocument("file0.log", 1); in testNavigate_inFixedLayout_whileHasSelection()
[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()
DActivityTest.java172 bots.directory.waitForDocument(fileName1); in assertDefaultContentOfTestDir0()
173 bots.directory.waitForDocument(fileName2); in assertDefaultContentOfTestDir0()
174 bots.directory.waitForDocument(dirName1); in assertDefaultContentOfTestDir0()
175 bots.directory.waitForDocument(fileNameNoRename); in assertDefaultContentOfTestDir0()
176 bots.directory.assertDocumentsCount(4); in assertDefaultContentOfTestDir0()
180 bots.directory.waitForDocument(fileName3); in assertDefaultContentOfTestDir1()
181 bots.directory.waitForDocument(fileName4); in assertDefaultContentOfTestDir1()
182 bots.directory.assertDocumentsCount(2); in assertDefaultContentOfTestDir1()
DContextMenuUiTest.java81 bots.directory.rightClickDocument("file1.png"); in testContextMenu_onFile()
92 bots.directory.rightClickDocument("Dir1"); in testContextMenu_onDir()
100 bots.directory.selectDocument("file1.png", 1); in testContextMenu_onMixedFileDir()
101 bots.directory.selectDocument("Dir1", 2); in testContextMenu_onMixedFileDir()
102 bots.directory.rightClickDocument("Dir1"); in testContextMenu_onMixedFileDir()
110 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); in testContextMenu_onEmptyArea()
111 bots.directory.rightClickDocument( in testContextMenu_onEmptyArea()
DBandSelectionUiTest.java41 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); in testBandSelection_allFiles()
46 bots.directory.assertSelection(4); in testBandSelection_allFiles()
51 Rect dirListBounds = bots.directory.findDocumentsList().getBounds(); in testBandSelection_someFiles()
52 Rect startDoc = bots.directory.findDocument(fileName2).getBounds(); in testBandSelection_someFiles()
59 bots.directory.assertSelection(3); in testBandSelection_someFiles()
DSearchViewUiTest.java43 bots.directory.waitForDocument(fileName1); in setUp()
85 bots.directory.waitForDocument(dirName1); in testSearchView_ClearsTextOnBack()
105 bots.directory.assertDocumentsCountOnList(true, 2); in testSearch_ResultsFound()
106 bots.directory.assertDocumentsPresent(fileName1, fileName2); in testSearch_ResultsFound()
116 bots.directory.assertPlaceholderMessageText(String.format(msg, "TEST_ROOT_0")); in testSearch_NoResults()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DFileUtils.java254 private static void innerListFiles(Collection<File> files, File directory, in innerListFiles() argument
256 File[] found = directory.listFiles((FileFilter) filter); in innerListFiles()
294 File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) { in listFiles() argument
295 if (!directory.isDirectory()) { in listFiles()
318 innerListFiles(files, directory, in listFiles()
341 File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) { in iterateFiles() argument
342 return listFiles(directory, fileFilter, dirFilter).iterator(); in iterateFiles()
373 File directory, String[] extensions, boolean recursive) { in listFiles() argument
381 return listFiles(directory, filter, in listFiles()
398 File directory, String[] extensions, boolean recursive) { in iterateFiles() argument
[all …]
DDirectoryWalker.java350 private void walk(File directory, int depth, Collection results) throws IOException { in walk() argument
351 checkIfCancelled(directory, depth, results); in walk()
352 if (handleDirectory(directory, depth, results)) { in walk()
353 handleDirectoryStart(directory, depth, results); in walk()
356 checkIfCancelled(directory, depth, results); in walk()
357 … File[] childFiles = (filter == null ? directory.listFiles() : directory.listFiles(filter)); in walk()
359 handleRestricted(directory, childDepth, results); in walk()
373 handleDirectoryEnd(directory, depth, results); in walk()
375 checkIfCancelled(directory, depth, results); in walk()
488 …protected boolean handleDirectory(File directory, int depth, Collection results) throws IOExceptio… in handleDirectory() argument
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityTest.java105 final File directory =
109 Utility.createUniqueFileInternal(getCountdownFileCreator(), directory, "file");
114 Utility.createUniqueFileInternal(getTrueFileCreator(), directory, "file");
119 Utility.createUniqueFileInternal(getCountdownFileCreator(), directory, "file.ext");
124 Utility.createUniqueFileInternal(getTrueFileCreator(), directory, "file.ext");
131 final File directory =
135 Utility.createUniqueFileInternal(getTrueFileCreator(), directory, "file%s");
139 Utility.createUniqueFileInternal(getTrueFileCreator(), directory, "file%s.ext");
145 final File directory =
149 Utility.createUniqueFileInternal(getTrueFileCreator(), directory, "file");
[all …]
/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/apps/Dialer/java/com/android/contacts/common/list/
DPhoneNumberListAdapter.java103 final DirectoryPartition directory = getExtendedDirectoryFromId(directoryId); in configureLoader() local
104 final String contentUri = directory.getContentUri(); in configureLoader()
106 throw new IllegalStateException("Extended directory must have a content URL: " + directory); in configureLoader()
111 ContactsContract.LIMIT_PARAM_KEY, String.valueOf(getDirectoryResultLimit(directory))); in configureLoader()
354 final DirectoryPartition directory = (DirectoryPartition) getPartition(partition); in bindView() local
358 bindPhoneNumber(view, cursor, directory.isDisplayNumber(), position); in bindView()
442 final DirectoryPartition directory = (DirectoryPartition) getPartition(partition); in bindWorkProfileIcon() local
443 final long directoryId = directory.getDirectoryId(); in bindWorkProfileIcon()
528 final DirectoryPartition directory = mExtendedDirectories.get(i); in changeDirectories() local
530 addPartition(insertIndex, directory); in changeDirectories()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DOpenExternalDirectoryActivity.java180 final String root, directory; in showFragment() local
183 directory = "."; in showFragment()
186 directory = file.getName(); in showFragment()
188 if (TextUtils.isEmpty(directory) || !isStandardDirectory(directory)) { in showFragment()
190 Log.d(TAG, "Directory '" + directory + "' is not standard (full path: '" in showFragment()
210 file = isRoot ? internalRoot : new File(internalRoot, directory); in showFragment()
233 logValidScopedAccessRequest(activity, directory, in showFragment()
421 final String directory = mFile.getName(); in onCreateDialog() local
422 final String directoryName = mIsRoot ? DIRECTORY_ROOT : directory; in onCreateDialog()
438 logValidScopedAccessRequest(mActivity, directory, in onCreateDialog()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/
DLocalPreferences.java91 String packageName, @Nullable String uuid, String directory) { in getScopedAccessPermissionStatus() argument
92 final String key = getScopedAccessDenialsKey(packageName, uuid, directory); in getScopedAccessPermissionStatus()
97 @Nullable String uuid, String directory, @PermissionStatus int status) { in setScopedAccessPermissionStatus() argument
98 final String key = getScopedAccessDenialsKey(packageName, uuid, directory); in setScopedAccessPermissionStatus()
120 String directory) { in getScopedAccessDenialsKey() argument
123 ? userId + "|" + packageName + "||" + directory in getScopedAccessDenialsKey()
124 : userId + "|" + packageName + "|" + uuid + "|" + directory; in getScopedAccessDenialsKey()
/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/Camera2/src/com/android/camera/data/
DFilmstripItemBase.java142 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/apps/Car/libs/
Dresource_generator.py88 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/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/apps/UnifiedEmail/src/org/apache/commons/io/output/
DDeferredFileOutputStream.java84 private File directory; field in DeferredFileOutputStream
123 public DeferredFileOutputStream(int threshold, String prefix, String suffix, File directory) in DeferredFileOutputStream() argument
131 this.directory = directory; in DeferredFileOutputStream()
163 outputFile = File.createTempFile(prefix, suffix, directory); in thresholdReached()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/codeinspection/
DClassScanner.java71 private void loadClassFromDirectory(File directory, String packageName, List<Class<?>> classes) in loadClassFromDirectory() argument
73 if (directory.exists() && directory.isDirectory()) { in loadClassFromDirectory()
74 final String[] files = directory.list(); in loadClassFromDirectory()
88 final File tmpDirectory = new File(directory, file); in loadClassFromDirectory()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DDictionaryInfoUtils.java247 final File directory = new File(absoluteDirectoryName);
248 if (!directory.exists()) {
249 if (!directory.mkdirs()) {
279 final File directory = new File(stagingDirectory);
280 if (!directory.exists()) {
281 if (!directory.mkdirs()) {
500 for (final File directory : directoryList) {
501 final String localeString = getWordListIdFromFileName(directory.getName());
/packages/apps/Test/connectivity/sl4n/rapidjson/
Dreadme.md73 2. Create directory called `build` in rapidjson source directory.
74 3. Change to `build` directory and run `cmake ..` command to configure your build. Windows users ca…
75 … Windows, build the solution found in the build directory. On Linux, run `make` from the build dir…
78 directory. The generated documentation will be available in `doc/html`
79 directory of the build tree. To run tests after finished build please run `make
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java201 Location location, String directory, String filename, in addImage() argument
206 String filePath = directory + "/" + filename; in addImage()
208 File dir = new File(directory); in addImage()
210 File file = new File(directory, filename); in addImage()
443 File directory = new File(directoryName); in checkFsWritable() local
444 if (!directory.isDirectory()) { in checkFsWritable()
445 if (!directory.mkdirs()) { in checkFsWritable()

1234