Searched refs:file (Results 1 - 25 of 320) sorted by relevance

1234567891011>>

/sdk/anttasks/src/com/android/ant/
H A DInputPath.java5 * you may not use this file except in compliance with the License.
32 public InputPath(File file) { argument
33 this(file, null);
36 public InputPath(File file, Set<String> extensionsToCheck) { argument
37 if (file == null) {
40 mFile = file;
54 * @param file the file to check
55 * @return true if the file must be checked for modification.
57 public boolean checksForModification(File file) { argument
77 ignores(File file) argument
88 getExtension(File file) argument
[all...]
H A DSingleDependencyTask.java5 * you may not use this file except in compliance with the License.
29 * A base class for ant tasks that use a single dependency file to control (re)execution.
38 InputPath createPath(File file, Set<String> extensionsToCheck); argument
43 public InputPath createPath(File file, Set<String> extensionsToCheck) {
44 return new InputPath(file, extensionsToCheck);
73 * Set up the dependency graph by passing it the location of the ".d" file, and the new input
75 * @param dependencyFile path to the dependency file to use
128 // write the output file.
136 File file = input.getFile();
137 if (file
151 writeContent(PrintStream ps, File file, InputPath input) argument
[all...]
H A DDependencyGraph.java5 * you may not use this file except in compliance with the License.
33 * a single dependency file. A dependency graph always has a dependency file associated with it
44 // Files that we know about from the dependency file
65 // If no dependency file has been set up, then we'll just return true
66 // if we have a dependency file, we'll check to see what's been changed
92 System.out.println("Found new input file");
97 System.out.println("Found modified input file");
110 System.out.println("Found deleted input file");
115 System.out.println("Found modified input file");
286 checkInputFile(File file, InputPath inputFolder, long oldestTarget) argument
432 readFile(File file) argument
[all...]
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/io/
H A DIFileOp.java5 * you may not use this file except in compliance with the License.
32 * This makes it possible to override/mock/stub some file operations in unit tests.
37 * Helper to delete a file or a directory.
40 * It's ok for the file or folder to not exist at all.
46 * Sets the executable Unix permission (+x) on a file or folder.
55 * @param file The file to set permissions on.
58 public abstract void setExecutablePermission(File file) throws IOException; argument
61 * Sets the file or directory as read-only.
63 * @param file Th
65 setReadOnly(File file) argument
89 exists(File file) argument
92 isFile(File file) argument
95 isDirectory(File file) argument
98 length(File file) argument
104 delete(File file) argument
107 mkdirs(File file) argument
110 listFiles(File file) argument
116 newFileOutputStream(File file) argument
125 loadProperties(@onNull File file) argument
135 saveProperties( @onNull File file, @NonNull Properties props, @NonNull String comments) argument
[all...]
H A DFileOp.java5 * you may not use this file except in compliance with the License.
37 * This makes it possible to override/mock/stub some file operations in unit tests.
66 * Appends the given {@code segments} to the {@code base} file.
68 * @param base A base file, non-null.
69 * @param segments Individual folder or filename segments to append to the base file.
70 * @return A new file representing the concatenation of the base path with all the segments.
80 * Appends the given {@code segments} to the {@code base} file.
82 * @param base A base file path, non-empty and non-null.
84 * @return A new file representing the concatenation of the base path with all the segments.
91 * Helper to delete a file o
160 setExecutablePermission(File file) argument
184 setReadOnly(File file) argument
294 isFile(File file) argument
300 isDirectory(File file) argument
306 exists(File file) argument
312 length(File file) argument
321 delete(File file) argument
327 mkdirs(File file) argument
333 listFiles(File file) argument
345 newFileOutputStream(File file) argument
350 loadProperties(@onNull File file) argument
368 saveProperties(@onNull File file, @NonNull Properties props, @NonNull String comments) argument
[all...]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/
H A DSourceChangeHandler.java5 * you may not use this file except in compliance with the License.
48 public boolean handleGeneratedFile(IFile file, int kind) { argument
50 IFile sourceFile = mProcessor.isOutput(file);
60 public void handleSourceFile(IFile file, int kind) { argument
61 // first the file itself if this is a match for the processor's extension
62 if (mProcessor.getExtension().equals(file.getFileExtension())) {
64 mRemoved.add(file);
66 mToCompile.add(file);
71 // added/changed/removed file.
72 mToCompile.addAll(mProcessor.isDependency(file));
75 handleResourceFile(IFile file, int kind) argument
90 addFileToCompile(IFile file) argument
98 addRemovedFile(IFile file) argument
[all...]
/sdk/common/src/com/android/io/
H A DStreamException.java5 * you may not use this file except in compliance with the License.
33 public StreamException(Exception e, IAbstractFile file) { argument
34 this(e, file, Error.DEFAULT);
37 public StreamException(Exception e, IAbstractFile file, Error error) { argument
39 mFile = file;
H A DFolderWrapper.java5 * you may not use this file except in compliance with the License.
65 * Creates a new File instance by converting the given <code>file:</code> URI into an
67 * @param uri An absolute, hierarchical URI with a scheme equal to "file", a non-empty path
78 * @param file the file to match
80 public FolderWrapper(File file) { argument
81 super(file.getAbsolutePath());
151 for (File file : files) {
152 if (filter.accept(this, file.getName())) {
153 list.add(file
[all...]
/sdk/draw9patch/src/com/android/draw9patch/ui/
H A DMainFrame.java5 * you may not use this file except in compliance with the License.
56 File file = new File(path);
57 BufferedImage img = GraphicsUtilities.loadCompatibleImage(file.toURI().toURL());
58 showImageEditor(img, file.getAbsolutePath());
106 public SwingWorker<?, ?> open(File file) { argument
107 if (file == null) {
117 return new OpenTask(file);
135 File file = imageEditor.chooseSaveFile();
136 return file != null ? new SaveTask(file)
140 private final File file; field in class:MainFrame.SaveTask
142 SaveTask(File file) argument
157 private final File file; field in class:MainFrame.OpenTask
159 OpenTask(File file) argument
[all...]
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/
H A DPrivateKeyDetector.java5 * you may not use this file except in compliance with the License.
58 private boolean isPrivateKeyFile(File file) { argument
59 if (!file.isFile() ||
60 (!LintUtils.endsWith(file.getPath(), "pem") && //NON-NLS-1$
61 !LintUtils.endsWith(file.getPath(), "key"))) { //NON-NLS-1$
66 String firstLine = Files.readFirstLine(file, Charsets.US_ASCII);
81 for (File file : files) {
82 if (file.isDirectory()) {
83 checkFolder(context, file);
85 if (isPrivateKeyFile(file)) {
113 appliesTo(@onNull Context context, @NonNull File file) argument
[all...]
/sdk/sdk_common/src/com/android/ide/common/resources/
H A DResourceFolder.java5 * you may not use this file except in compliance with the License.
63 * Processes a file and adds it to its parent folder resource.
65 * @param file the underlying resource file.
66 * @param kind the file change kind.
71 public ResourceFile processFile(IAbstractFile file, ResourceDeltaKind kind, argument
73 // look for this file if it's already been created
74 ResourceFile resFile = getFile(file, context);
80 resFile = createResourceFile(file);
97 private ResourceFile createResourceFile(IAbstractFile file) { argument
126 addFile(ResourceFile file) argument
186 removeFile(ResourceFile file, ScanningContext context) argument
272 getFile(IAbstractFile file, ScanningContext context) argument
[all...]
H A DResourceItem.java5 * you may not use this file except in compliance with the License.
92 * Returns whether the ID resource has been declared inline inside another resource XML file.
123 * Adds a new source file.
124 * @param file the source file.
126 protected void add(ResourceFile file) { argument
127 mFiles.add(file);
131 * Removes a file from the list of source files.
132 * @param file the file t
134 removeFile(ResourceFile file) argument
[all...]
H A DSingleResourceFile.java5 * you may not use this file except in compliance with the License.
32 * Represents a resource file describing a single resource.
34 * This is typically an XML file inside res/anim, res/layout, or res/menu or an image file
48 public SingleResourceFile(IAbstractFile file, ResourceFolder folder) { argument
49 super(file, folder);
52 // This is easy since this is a single Resource file.
64 file.getOsLocation(), isFramework());
69 file.getOsLocation(),
80 // add this file t
[all...]
/sdk/monkeyrunner/scripts/
H A Dmr_pydoc.py5 # you may not use this file except in compliance with the License.
38 file = open(BASEDIR + 'monkeyrunner_api.html', 'w')
39 file.write(page)
40 file.close()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
H A DTraceFileReader.java5 * you may not use this file except in compliance with the License.
35 * Obtain the next protobuf message in this file.
36 * @param file file to read from
39 * @throws IOException in case of file I/O errors
42 public GLMessage getMessageAtOffset(RandomAccessFile file, long offset) throws IOException { argument
47 file.seek(offset);
50 len = file.readInt();
59 file.readFully(b);
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/build/
H A DIArchiveBuilder.java5 * you may not use this file except in compliance with the License.
24 * Adds a file to the archive at a given path
25 * @param file the file to add
26 * @param archivePath the path of the file inside the APK archive.
29 * @throws DuplicateFileException if a file conflicts with another already added to the APK
32 void addFile(File file, String archivePath) throws ApkCreationException, argument
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactoring/changes/
H A DAndroidLayoutFileChanges.java5 * you may not use this file except in compliance with the License.
37 * @param file the layout file
39 public AndroidLayoutFileChanges(IFile file) { argument
40 this.mFile = file;
44 * Return the layout file
46 * @return the file
/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/data/bytecode/
H A DTestFieldGetter.class.data ... test.pkg.TestFieldGetter other java.io.File file public static void test2 (test.pkg.TestFieldGetter ...
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/io/
H A DMockFileOp.java5 * you may not use this file except in compliance with the License.
43 * This version does not perform any file operation. Instead it records a textual
44 * representation of all the file operations performed.
65 public String getAgnosticAbsPath(File file) { argument
66 return getAgnosticAbsPath(file.getAbsolutePath());
79 * Records a new absolute file path.
82 public void recordExistingFile(File file) { argument
83 mExistinfFiles.add(getAgnosticAbsPath(file));
87 * Records a new absolute file path.
90 * The syntax should always look "unix-like", e.g. "/dir/file"
176 setExecutablePermission(File file) argument
186 setReadOnly(File file) argument
215 isFile(File file) argument
222 isDirectory(File file) argument
250 exists(File file) argument
256 length(File file) argument
261 delete(File file) argument
291 mkdirs(File file) argument
304 listFiles(File file) argument
371 loadProperties(@onNull File file) argument
395 saveProperties(@onNull File file, @NonNull Properties props, @NonNull String comments) argument
421 newFileOutputStream(File file) argument
435 StringOutputStream(File file) argument
[all...]
/sdk/lint/cli/src/com/android/tools/lint/
H A DWarning.java5 * you may not use this file except in compliance with the License.
40 public File file; field in class:Warning
59 // then by file, then by line
72 return file.getName().compareTo(other.file.getName());
78 if (file != null && other.file != null) {
79 int fileDelta = file.getName().compareTo(
80 other.file.getName());
/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/
H A DXmlReporterTest.java5 * you may not use this file except in compliance with the License.
39 File file = new File(getTargetDir(), "report");
47 file.getParentFile().mkdirs();
48 XmlReporter reporter = new XmlReporter(client, file);
58 warning1.file = new File("/foo/bar/Foo/AndroidManifest.xml");
61 warning1.location = Location.create(warning1.file,
68 warning2.file = new File("/foo/bar/Foo/res/layout/main.xml");
72 warning2.location = Location.create(warning2.file,
81 String report = Files.toString(file, Charsets.UTF_8);
98 " file
[all...]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
H A DTemplateTestWizard.java5 * you may not use this file except in compliance with the License.
58 File file = mSelectionPage.getLocation();
59 if (file != null && file.exists()) {
62 mValues.setTemplateLocation(file);
69 mValues.setTemplateLocation(file);
/sdk/lint/libs/lint_api/src/com/android/tools/lint/detector/api/
H A DResourceXmlDetector.java5 * you may not use this file except in compliance with the License.
36 public boolean appliesTo(@NonNull Context context, @NonNull File file) { argument
37 return LintUtils.isXmlFile(file);
43 * are analyzing a string value file we don't need to look up detectors
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/
H A DCyclicDependencyValidator.java5 * you may not use this file except in compliance with the License.
46 * dependencies when offering layouts to be included within a given file, etc.
48 * @param file the target file that candidate layouts should not directly or
54 public static IInputValidator create(@Nullable IFile file) { argument
55 if (file == null) {
59 IProject project = file.getProject();
62 includeFinder.getInvalidIncludes(file);
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/build/
H A DSymbolWriter.java5 * you may not use this file except in compliance with the License.
52 File file = new File(mOutFolder);
54 file = new File(file, folder);
56 file.mkdirs();
57 file = new File(file, SdkConstants.FN_RESOURCE_CLASS);
61 writer = Files.newWriter(file, Charsets.UTF_8);

Completed in 1324 milliseconds

1234567891011>>