Searched defs:file (Results 1 - 25 of 74) sorted by relevance

123

/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/
H A DCanWriteFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
70 * Checks to see if the file can be written to.
72 * @param file the File to check
73 * @return <code>true</code> if the file can be
76 public boolean accept(File file) { argument
77 return file.canWrite();
H A DDirectoryFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
64 * Checks to see if the file is a directory.
66 * @param file the File to check
67 * @return true if the file is a directory
69 public boolean accept(File file) { argument
70 return file.isDirectory();
H A DEmptyFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
69 * Checks to see if the file is empty.
71 * @param file the file or directory to check
72 * @return <code>true</code> if the file or directory
75 public boolean accept(File file) { argument
76 if (file.isDirectory()) {
77 File[] files = file
[all...]
H A DFileFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
41 /** Singleton instance of file filter */
51 * Checks to see if the file is a file.
53 * @param file the File to check
54 * @return true if the file is a file
56 public boolean accept(File file) { argument
[all...]
H A DHiddenFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
66 * Checks to see if the file is hidden.
68 * @param file the File to check
69 * @return <code>true</code> if the file is
72 public boolean accept(File file) { argument
73 return file.isHidden();
H A DIOFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
39 * @param file the File to check
40 * @return true if this file matches the test
42 public boolean accept(File file); argument
51 * @return true if this file matches the test
H A DAbstractFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
38 * @param file the File to check
39 * @return true if this file matches the test
41 public boolean accept(File file) { argument
42 return accept(file.getParentFile(), file.getName());
50 * @return true if this file matches the test
57 * Provide a String representaion of this file filte
[all...]
H A DAgeFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
54 * Constructs a new age file filter for files equal to or older than
64 * Constructs a new age file filter for files on any one side
77 * Constructs a new age file filter for files older than (at or before)
87 * Constructs a new age file filter for files on any one side
99 * Constructs a new age file filter for files older than (at or before)
102 * @param cutoffReference the file whose last modification
110 * Constructs a new age file filte
136 accept(File file) argument
[all...]
H A DCanReadFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
82 * Checks to see if the file can be read.
84 * @param file the File to check.
85 * @return <code>true</code> if the file can be
88 public boolean accept(File file) { argument
89 return file.canRead();
H A DDelegateFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
40 * Constructs a delegate file filter around an existing FilenameFilter.
53 * Constructs a delegate file filter around an existing FileFilter.
68 * @param file the file to check
71 public boolean accept(File file) { argument
73 return fileFilter.accept(file);
75 return super.accept(file);
[all...]
H A DFalseFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
23 * A file filter that always returns false.
54 * @param file the file to check
57 public boolean accept(File file) { argument
H A DNameFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
55 * Constructs a new case-sensitive name file filter for a single name.
65 * Construct a new name file filter specifying case-sensitivity.
80 * Constructs a new case-sensitive name file filter for an array of names.
93 * Constructs a new name file filter for an array of names specifying case-sensitivity.
111 * Constructs a new case-sensitive name file filter for a list of names.
122 * Constructs a new name file filter for a list of names specifying case-sensitivity.
141 * @param file th
145 accept(File file) argument
163 accept(File file, String name) argument
[all...]
H A DNotFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
36 * Constructs a new file filter that NOTs the result of another filters.
51 * @param file the File to check
54 public boolean accept(File file) { argument
55 return ! filter.accept(file);
61 * @param file the File directory
65 public boolean accept(File file, String name) { argument
66 return ! filter.accept(file, nam
[all...]
H A DPrefixFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
56 * Constructs a new Prefix file filter for a single prefix.
66 * Constructs a new Prefix file filter for a single prefix
83 * Constructs a new Prefix file filter for any of an array of prefixes.
96 * Constructs a new Prefix file filter for any of an array of prefixes
116 * Constructs a new Prefix file filter for a list of prefixes.
127 * Constructs a new Prefix file filter for a list of prefixes
147 * @param file th
151 accept(File file) argument
169 accept(File file, String name) argument
[all...]
H A DSizeFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
49 * Constructs a new size file filter for files equal to or
60 * Constructs a new size file filter for files based on a certain size
78 * Checks to see if the size of the file is favorable.
81 * file <b>IS NOT</b> selected.
83 * file <b>IS</b> selected.
85 * @param file the File to check
88 public boolean accept(File file) { argument
[all...]
H A DSuffixFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
57 * Constructs a new Suffix file filter for a single extension.
67 * Constructs a new Suffix file filter for a single extension
84 * Constructs a new Suffix file filter for an array of suffixs.
97 * Constructs a new Suffix file filter for an array of suffixs
117 * Constructs a new Suffix file filter for a list of suffixes.
128 * Constructs a new Suffix file filter for a list of suffixes
148 * @param file th
152 accept(File file) argument
170 accept(File file, String name) argument
[all...]
H A DTrueFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
23 * A file filter that always returns true.
54 * @param file the file to check
57 public boolean accept(File file) { argument
H A DWildcardFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
146 * @param dir the file directory
163 * @param file the file to check
167 public boolean accept(File file) { argument
168 String name = file.getName();
178 * Provide a String representaion of this file filter.
H A DAndFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
28 * file filters. This filter returns <code>true</code> if all filters in the
30 * Checking of the file filter list stops when the first filter returns
42 /** The list of file filters. */
70 * Constructs a new file filter that ANDs the result of two other filters.
118 public boolean accept(final File file) { argument
124 if (!fileFilter.accept(file)) {
135 public boolean accept(final File file, fina argument
[all...]
H A DOrFileFilter.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
28 * file filters. This filter returns <code>true</code> if any filters in the
30 * Checking of the file filter list stops when the first filter returns
42 /** The list of file filters. */
58 * @param fileFilters the file filters for this filter, copied, null ignored
70 * Constructs a new file filter that ORs the result of two other filters.
117 public boolean accept(final File file) { argument
120 if (fileFilter.accept(file)) {
131 accept(final File file, final String name) argument
[all...]
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DUtil.java5 * you may not use this file except in compliance with the License.
78 static byte[] readFile(File file) { argument
80 byte[] data = new byte[(int) file.length()];
81 FileInputStream fis = new FileInputStream(file);
86 Log.w(TAG, "cert file read error: " + e);
91 static boolean deleteFile(File file) { argument
92 if ((file != null) && !file.delete()) {
93 Log.w(TAG, "cannot delete cert: " + file);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadUtils.java5 * you may not use this file except in compliance with the License.
34 public static boolean requestDownload(JobContext jc, URL url, File file) { argument
37 fos = new FileOutputStream(file);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DFileCleaner.java3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
25 * This utility creates a background thread to handle file deletion.
26 * Each file to be deleted is registered with a handler object.
27 * When the handler object is garbage collected, the file is deleted.
48 * Track the specified file, using the provided marker, deleting the file
52 * @param file the file t
57 track(File file, Object marker) argument
72 track(File file, Object marker, FileDeleteStrategy deleteStrategy) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DAssetFileAddress.java5 * you may not use this file except in compliance with the License.
23 * As opposed to a normal file, an asset is usually represented as a contiguous byte array in
24 * the package file. Open it correctly thus requires the name of the package it is in, but
25 * also the offset in the file and the length of this data. This class encapsulates these three.
38 public static AssetFileAddress makeFromFile(final File file) { argument
39 if (!file.isFile()) return null;
40 return new AssetFileAddress(file.getAbsolutePath(), 0L, file.length());
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadDrmHelper.java5 * you may not use this file except in compliance with the License.
46 * Modifies the file extension for a DRM Forward Lock file NOTE: This
47 * function shouldn't be called if the file shouldn't be DRM converted
62 * Return the original MIME type of the given file, using the DRM framework
63 * if the file is protected content.
65 public static String getOriginalMimeType(Context context, File file, String currentMime) { argument
68 final String rawFile = file.toString();

Completed in 2984 milliseconds

123