Searched refs:directory (Results 1 - 25 of 54) sorted by relevance

123

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
H A DRenameDocumentUiTest.java41 bots.directory.selectDocument(fileName1, 1);
50 bots.directory.selectDocument(fileNameNoRename, 1);
59 bots.directory.selectDocument(fileName1, 1);
60 bots.directory.selectDocument(fileNameNoRename, 2);
69 bots.directory.selectDocument(fileName1, 1);
70 bots.directory.selectDocument(fileName2, 2);
79 bots.directory.selectDocument(fileName1, 1);
89 bots.directory.waitForDocument(newName);
90 bots.directory.assertDocumentsAbsent(fileName1);
91 bots.directory
[all...]
H A DArchiveUiTest.java31 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");
40 bots.directory.openDocument("broken.zip");
43 bots.directory.assertPlaceholderMessageText(msg);
H A DGestureSelectionUiTest.java41 bots.directory.assertSelection(2);
48 bots.directory.assertSelection(3);
56 bots.directory.assertSelection(2);
64 bots.directory.assertSelection(3);
H A DFilesActivityUiTest.java71 bots.directory.openDocument("throw a authentication exception");
72 bots.directory.assertHeaderMessageText(
73 "To view this directory, sign in to DocumentsUI Tests");
79 bots.directory.assertDocumentsPresent("file0.log", "file1.png", "file2.csv");
85 bots.directory.waitForDocument("Ham & Cheese.sandwich");
86 bots.directory.assertDocumentsPresent(
91 bots.directory.openDocument(dirName1);
92 bots.directory.waitForDocument(childDir1); // wait for known content
93 bots.directory.assertDocumentsPresent(childDir1);
100 bots.directory
[all...]
H A DBandSelectionUiTest.java41 Rect dirListBounds = bots.directory.findDocumentsList().getBounds();
46 bots.directory.assertSelection(4);
51 Rect dirListBounds = bots.directory.findDocumentsList().getBounds();
52 Rect startDoc = bots.directory.findDocument(fileName2).getBounds();
59 bots.directory.assertSelection(3);
H A DFileManagementUiTest.java76 bots.directory.waitForDocument("Kung Fu Panda");
80 bots.directory.selectDocument("file1.png");
87 bots.directory.assertDocumentsAbsent("file1.png");
91 bots.directory.selectDocument("file1.png");
100 bots.directory.waitForDocument("file1.png");
101 bots.directory.assertDocumentsPresent("file1.png");
104 bots.directory.assertDocumentsAbsent("file1.png");
108 bots.directory.selectDocument("file1.png");
117 bots.directory.waitForDocument("file1.png");
120 bots.directory
[all...]
H A DContextMenuUiTest.java81 bots.directory.rightClickDocument("file1.png");
92 bots.directory.rightClickDocument("Dir1");
100 bots.directory.selectDocument("file1.png", 1);
101 bots.directory.selectDocument("Dir1", 2);
102 bots.directory.rightClickDocument("Dir1");
110 Rect dirListBounds = bots.directory.findDocumentsList().getBounds();
111 bots.directory.rightClickDocument(
H A DSortDocumentUiTest.java94 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_NAME_ASC);
104 bots.directory.assertOrder(DIRS_IN_NAME_DESC, FILES_IN_NAME_DESC);
114 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_SIZE_ASC);
124 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_SIZE_DESC);
134 bots.directory.assertOrder(DIRS, FILES);
144 bots.directory.assertOrder(DIRS_IN_MODIFIED_DESC, FILES_IN_MODIFIED_DESC);
154 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_TYPE_ASC);
164 bots.directory.assertOrder(DIRS_IN_NAME_ASC, FILES_IN_TYPE_DESC);
174 bots.directory.assertOrder(DIRS_IN_NAME_DESC, FILES_IN_NAME_DESC);
184 bots.directory
[all...]
H A DActivityTest.java172 bots.directory.waitForDocument(fileName1);
173 bots.directory.waitForDocument(fileName2);
174 bots.directory.waitForDocument(dirName1);
175 bots.directory.waitForDocument(fileNameNoRename);
176 bots.directory.assertDocumentsCount(4);
180 bots.directory.waitForDocument(fileName3);
181 bots.directory.waitForDocument(fileName4);
182 bots.directory.assertDocumentsCount(2);
H A DSidebarUiTest.java43 bots.directory.openDocument(dirName1);
52 bots.directory.selectDocument(fileName1, 1);
H A DKeyboardNavigationUiTest.java44 // Tests that pressing tab switches focus between the roots and directory listings.
50 bots.directory.assertHasFocus();
58 bots.directory.assertHasFocus();
62 bots.directory.assertHasFocus();
74 bots.directory.assertFirstDocumentHasFocus();
H A DIntegratedDownloadsUiTest.java50 bots.directory.assertDocumentsPresent("Queued");
61 UiObject doc = bots.directory.findDocument("Unsuccessful");
H A DSearchViewUiTest.java43 bots.directory.waitForDocument(fileName1);
84 // Wait for a file in the default directory to be listed.
85 bots.directory.waitForDocument(dirName1);
105 bots.directory.assertDocumentsCountOnList(true, 2);
106 bots.directory.assertDocumentsPresent(fileName1, fileName2);
116 bots.directory.assertPlaceholderMessageText(String.format(msg, "TEST_ROOT_0"));
/packages/apps/Camera2/src/com/android/camera/util/
H A DFileUtil.java28 * Deletes the given directory and all it's contents, including
31 * @param directory The directory to delete.
34 public static boolean deleteDirectoryRecursively(File directory) { argument
35 if (!directory.exists() || !directory.isDirectory()) {
39 for (File entry : directory.listFiles()) {
47 return directory.delete();
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
H A 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, "fil
[all...]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DDirectoryWalker.java29 * Abstract class that walks through a directory hierarchy and provides
65 * protected boolean handleDirectory(File directory, int depth, Collection results) {
67 * if (".svn".equals(directory.getName())) {
68 * directory.delete();
119 * // Combine the directory and file filters using an OR condition
226 * protected boolean handleDirectory(File directory, int depth, Collection results) throws IOException {
227 * // cancel if hidden directory
228 * if (directory.isHidden()) {
258 * The limit on the directory depth to walk.
287 * Construct an instance with a directory an
350 walk(File directory, int depth, Collection results) argument
488 handleDirectory(File directory, int depth, Collection results) argument
503 handleDirectoryStart(File directory, int depth, Collection results) argument
531 handleRestricted(File directory, int depth, Collection results) argument
545 handleDirectoryEnd(File directory, int depth, Collection results) argument
[all...]
H A DFileUtils.java54 * <li>make a directory including parent directories
121 * An exception is thrown if the file object exists but is a directory.
127 * @throws IOException if the file object is a directory
134 throw new IOException("File '" + file + "' exists but is a directory");
148 * creating the parent directory if it does not exist.
153 * The parent directory will be created if it does not exist.
155 * An exception is thrown if the file object exists but is a directory.
157 * An exception is thrown if the parent directory cannot be created.
161 * @throws IOException if the file object is a directory
163 * @throws IOException if a parent directory need
254 innerListFiles(Collection<File> files, File directory, IOFileFilter filter) argument
293 listFiles( File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) argument
340 iterateFiles( File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) argument
372 listFiles( File directory, String[] extensions, boolean recursive) argument
397 iterateFiles( File directory, String[] extensions, boolean recursive) argument
976 deleteDirectory(File directory) argument
1028 cleanDirectory(File directory) argument
1422 deleteDirectoryOnExit(File directory) argument
1438 cleanDirectoryOnExit(File directory) argument
1478 forceMkdir(File directory) argument
1505 sizeOfDirectory(File directory) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
H A DDeferredFileOutputStream.java82 * The directory to use for temporary files.
84 private File directory; field in class:DeferredFileOutputStream
119 * @param directory Temporary file directory.
123 public DeferredFileOutputStream(int threshold, String prefix, String suffix, File directory) argument
131 this.directory = directory;
163 outputFile = File.createTempFile(prefix, suffix, directory);
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/codeinspection/
H A DClassScanner.java71 private void loadClassFromDirectory(File directory, String packageName, List<Class<?>> classes) argument
73 if (directory.exists() && directory.isDirectory()) {
74 final String[] files = directory.list();
88 final File tmpDirectory = new File(directory, file);
/packages/apps/Camera2/src/com/android/camera/data/
H A DFilmstripItemBase.java142 private void deleteIfEmptyCameraSubDir(File directory) { argument
143 // Make sure 'directory' refers to a valid existing empty directory.
144 if (!directory.exists() || !directory.isDirectory() || directory.list().length != 0) {
148 // Check if this is a 'Camera' sub-directory.
150 String fileParentPathStr = directory.getParentFile().getAbsolutePath();
153 // Delete the directory if it's an empty sub-directory o
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/
H A DLocalPreferences.java79 * Methods below are used to keep track of denied user requests on scoped directory access so
91 String packageName, @Nullable String uuid, String directory) {
92 final String key = getScopedAccessDenialsKey(packageName, uuid, directory);
97 @Nullable String uuid, String directory, @PermissionStatus int status) {
98 final String key = getScopedAccessDenialsKey(packageName, uuid, directory);
120 String directory) {
123 ? userId + "|" + packageName + "||" + directory
124 : userId + "|" + packageName + "|" + uuid + "|" + directory;
90 getScopedAccessPermissionStatus(Context context, String packageName, @Nullable String uuid, String directory) argument
96 setScopedAccessPermissionStatus(Context context, String packageName, @Nullable String uuid, String directory, @PermissionStatus int status) argument
119 getScopedAccessDenialsKey(String packageName, String uuid, String directory) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DBinaryDictionaryGetter.java72 * Generates a unique temporary file name in the app cache directory.
77 final File directory = new File(DictionaryInfoUtils.getWordListTempDirectory(context));
78 if (!directory.exists()) {
79 if (!directory.mkdirs()) {
80 Log.e(TAG, "Could not create the temporary directory");
86 return File.createTempFile("xxx" + safeId, null, directory).getAbsolutePath();
170 for (File directory : directoryList) {
171 if (!directory.isDirectory()) continue;
173 DictionaryInfoUtils.getWordListIdFromFileName(directory.getName());
176 final File[] wordLists = directory
[all...]
/packages/apps/Car/libs/
H A 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
173 # Take a map of resources and a directory and update the xml files within it with the new
264 raise ValueError("%s is not a valid resource directory"
[all...]
/packages/apps/Messaging/src/com/android/messaging/util/
H A DFileUtil.java38 private static synchronized File getNewFile(File directory, String extension, argument
45 File testFile = new File(directory, newName);
59 * @param directory directory that the file should be saved to
64 public static File getNewFile(File directory, String contentType) throws IOException { argument
71 return getNewFile(directory, fileExtension, fileNameFormat);
96 * Move all files and folders under a directory into the target.
101 LogUtil.e(LogUtil.BUGLE_TAG, "Can't move directory content since the source " +
102 "directory is a parent of the target");
139 * Checks, whether the child directory i
[all...]
/packages/apps/Contacts/src/com/android/contacts/list/
H A DPhoneNumberListAdapter.java201 final DirectoryPartition directory = getExtendedDirectoryFromId(directoryId);
202 final String contentUri = directory.getContentUri();
204 throw new IllegalStateException("Extended directory must have a content URL: "
205 + directory);
210 String.valueOf(getDirectoryResultLimit(directory)));
462 final DirectoryPartition directory = (DirectoryPartition) getPartition(partition);
463 bindPhoneNumber(view, cursor, directory.isDisplayNumber(), position);
523 final DirectoryPartition directory = (DirectoryPartition) getPartition(partition);
524 final long directoryId = directory.getDirectoryId();
526 // Work directory mus
[all...]

Completed in 498 milliseconds

123