/packages/apps/Email/src/org/apache/commons/io/ |
D | FileUtils.java | 128 public static FileInputStream openInputStream(File file) throws IOException { in openInputStream() argument 129 if (file.exists()) { in openInputStream() 130 if (file.isDirectory()) { in openInputStream() 131 throw new IOException("File '" + file + "' exists but is a directory"); in openInputStream() 133 if (file.canRead() == false) { in openInputStream() 134 throw new IOException("File '" + file + "' cannot be read"); in openInputStream() 137 throw new FileNotFoundException("File '" + file + "' does not exist"); in openInputStream() 139 return new FileInputStream(file); in openInputStream() 163 public static FileOutputStream openOutputStream(File file) throws IOException { in openOutputStream() argument 164 if (file.exists()) { in openOutputStream() [all …]
|
D | DirectoryWalker.java | 393 …protected final void checkIfCancelled(File file, int depth, Collection results) throws IOException… in checkIfCancelled() argument 394 if (handleIsCancelled(file, depth, results)) { in checkIfCancelled() 395 throw new CancelException(file, depth); in checkIfCancelled() 435 File file, int depth, Collection results) throws IOException { in handleIsCancelled() argument 517 protected void handleFile(File file, int depth, Collection results) throws IOException { in handleFile() argument 572 private File file; field in DirectoryWalker.CancelException 583 public CancelException(File file, int depth) { in CancelException() argument 584 this("Operation Cancelled", file, depth); in CancelException() 596 public CancelException(String message, File file, int depth) { in CancelException() argument 598 this.file = file; in CancelException() [all …]
|
D | FileCleaner.java | 57 public static void track(File file, Object marker) { in track() argument 58 theInstance.track(file, marker); in track() 72 public static void track(File file, Object marker, FileDeleteStrategy deleteStrategy) { in track() argument 73 theInstance.track(file, marker, deleteStrategy); in track()
|
D | FileCleaningTracker.java | 71 public void track(File file, Object marker) { in track() argument 72 track(file, marker, (FileDeleteStrategy) null); in track() 85 public void track(File file, Object marker, FileDeleteStrategy deleteStrategy) { in track() argument 86 if (file == null) { in track() 89 addTracker(file.getPath(), marker, deleteStrategy); in track()
|
/packages/apps/Email/src/org/apache/commons/io/output/ |
D | LockableFileWriter.java | 107 public LockableFileWriter(File file) throws IOException { in LockableFileWriter() argument 108 this(file, false, null); in LockableFileWriter() 119 public LockableFileWriter(File file, boolean append) throws IOException { in LockableFileWriter() argument 120 this(file, append, null); in LockableFileWriter() 132 public LockableFileWriter(File file, boolean append, String lockDir) throws IOException { in LockableFileWriter() argument 133 this(file, null, append, lockDir); in LockableFileWriter() 144 public LockableFileWriter(File file, String encoding) throws IOException { in LockableFileWriter() argument 145 this(file, encoding, false, null); in LockableFileWriter() 158 public LockableFileWriter(File file, String encoding, boolean append, in LockableFileWriter() argument 162 file = file.getAbsoluteFile(); in LockableFileWriter() [all …]
|
D | FileWriterWithEncoding.java | 140 public FileWriterWithEncoding(File file, String encoding) throws IOException { in FileWriterWithEncoding() argument 141 this(file, encoding, false); in FileWriterWithEncoding() 153 public FileWriterWithEncoding(File file, String encoding, boolean append) throws IOException { in FileWriterWithEncoding() argument 155 this.out = initWriter(file, encoding, append); in FileWriterWithEncoding() 166 public FileWriterWithEncoding(File file, Charset encoding) throws IOException { in FileWriterWithEncoding() argument 167 this(file, encoding, false); in FileWriterWithEncoding() 179 public FileWriterWithEncoding(File file, Charset encoding, boolean append) throws IOException { in FileWriterWithEncoding() argument 181 this.out = initWriter(file, encoding, append); in FileWriterWithEncoding() 192 public FileWriterWithEncoding(File file, CharsetEncoder encoding) throws IOException { in FileWriterWithEncoding() argument 193 this(file, encoding, false); in FileWriterWithEncoding() [all …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | CallTime.java | 198 File file = PhoneApp.getInstance().getDir ("phoneTrace", Context.MODE_PRIVATE); in startTrace() local 199 if (file.exists() == false) { in startTrace() 200 file.mkdirs(); in startTrace() 202 String baseName = file.getPath() + File.separator + "callstate"; in startTrace() 206 file = new File(dataFile); in startTrace() 207 if (file.exists() == true) { in startTrace() 208 file.delete(); in startTrace() 211 file = new File(keyFile); in startTrace() 212 if (file.exists() == true) { in startTrace() 213 file.delete(); in startTrace()
|
/packages/apps/Email/src/org/apache/james/mime4j/util/ |
D | SimpleTempStorage.java | 186 private File file = null; field in SimpleTempStorage.SimpleTempFile 188 private SimpleTempFile(File file) { in SimpleTempFile() argument 189 this.file = file; in SimpleTempFile() 190 this.file.deleteOnExit(); in SimpleTempFile() 197 return new BufferedInputStream(new FileInputStream(file)); in getInputStream() 204 return new BufferedOutputStream(new FileOutputStream(file)); in getOutputStream() 211 return file.getAbsolutePath(); in getAbsolutePath() 232 return file.length(); in length()
|
/packages/apps/Email/src/org/apache/commons/io/filefilter/ |
D | EmptyFileFilter.java | 75 public boolean accept(File file) { in accept() argument 76 if (file.isDirectory()) { in accept() 77 File[] files = file.listFiles(); in accept() 80 return (file.length() == 0); in accept()
|
D | NotFileFilter.java | 54 public boolean accept(File file) { in accept() argument 55 return ! filter.accept(file); in accept() 65 public boolean accept(File file, String name) { in accept() argument 66 return ! filter.accept(file, name); in accept()
|
D | AbstractFileFilter.java | 41 public boolean accept(File file) { in accept() argument 42 return accept(file.getParentFile(), file.getName()); in accept()
|
D | OrFileFilter.java | 116 public boolean accept(final File file) { in accept() argument 119 if (fileFilter.accept(file)) { in accept() 129 public boolean accept(final File file, final String name) { in accept() argument 132 if (fileFilter.accept(file, name)) { in accept()
|
D | AndFileFilter.java | 116 public boolean accept(final File file) { in accept() argument 122 if (!fileFilter.accept(file)) { in accept() 132 public boolean accept(final File file, final String name) { in accept() argument 138 if (!fileFilter.accept(file, name)) { in accept()
|
D | DelegateFileFilter.java | 71 public boolean accept(File file) { in accept() argument 73 return fileFilter.accept(file); in accept() 75 return super.accept(file); in accept()
|
D | WildcardFilter.java | 126 public boolean accept(File file) { in accept() argument 127 if (file.isDirectory()) { in accept() 132 if (FilenameUtils.wildcardMatch(file.getName(), wildcards[i])) { in accept()
|
D | FileFileFilter.java | 56 public boolean accept(File file) { in accept() argument 57 return file.isFile(); in accept()
|
D | DirectoryFileFilter.java | 69 public boolean accept(File file) { in accept() argument 70 return file.isDirectory(); in accept()
|
D | HiddenFileFilter.java | 72 public boolean accept(File file) { in accept() argument 73 return file.isHidden(); in accept()
|
D | CanWriteFileFilter.java | 76 public boolean accept(File file) { in accept() argument 77 return file.canWrite(); in accept()
|
D | CanReadFileFilter.java | 88 public boolean accept(File file) { in accept() argument 89 return file.canRead(); in accept()
|
D | SuffixFileFilter.java | 151 public boolean accept(File file) { in accept() argument 152 String name = file.getName(); in accept() 168 public boolean accept(File file, String name) { in accept() argument
|
D | PrefixFileFilter.java | 150 public boolean accept(File file) { in accept() argument 151 String name = file.getName(); in accept() 167 public boolean accept(File file, String name) { in accept() argument
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
D | MessageViewTests.java | 108 File file = null; in testAttachmentWritePermissions() local 114 file = MessageView.createUniqueFile(Environment.getExternalStorageDirectory(), in testAttachmentWritePermissions() 116 OutputStream out = new FileOutputStream(file); in testAttachmentWritePermissions() 121 if (file != null) { in testAttachmentWritePermissions() 122 if (file.exists()) { in testAttachmentWritePermissions() 123 file.delete(); in testAttachmentWritePermissions()
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertInstaller.java | 456 File file = new File(Environment.getExternalStorageDirectory(), in onPreferenceClick() local 458 if (file.isDirectory()) { in onPreferenceClick() 459 Log.w(TAG, "impossible to pick a directory! " + file); in onPreferenceClick() 462 installFromSdCard(file); in onPreferenceClick() 503 public boolean accept(File file) { in accept() argument 504 if (!file.isDirectory()) { in accept() 505 return file.getPath().endsWith(".p12"); in accept() 533 private void installFromSdCard(File file) { in installFromSdCard() argument 534 Log.d(TAG, "install cert from " + file); in installFromSdCard() 536 mCertFile = file; in installFromSdCard() [all …]
|
/packages/apps/Email/tests/src/com/android/exchange/ |
D | EasSyncServiceTests.java | 69 File file = new File(directory, fileNames[i]); in testCreateUniqueFile() local 70 if (file.exists()) { in testCreateUniqueFile() 71 file.delete(); in testCreateUniqueFile()
|