/sdk/anttasks/src/com/android/ant/ |
D | InputPath.java | 32 public InputPath(File file) { in InputPath() argument 33 this(file, null); in InputPath() 36 public InputPath(File file, Set<String> extensionsToCheck) { in InputPath() argument 37 if (file == null) { in InputPath() 40 mFile = file; in InputPath() 57 public boolean checksForModification(File file) { in checksForModification() argument 58 if (ignores(file)) { in checksForModification() 63 mTouchedExtensions.contains(getExtension(file)) == false) { in checksForModification() 77 public boolean ignores(File file) { in ignores() argument 79 return file.getName().startsWith("."); in ignores() [all …]
|
D | DependencyGraph.java | 227 File file = input.getFile(); in checkInputs() local 228 if (file.isDirectory()) { in checkInputs() 229 DependencyStatus status = checkInputFolder(file, input, oldestTarget); in checkInputs() 233 } else if (file.isFile()) { in checkInputs() 234 DependencyStatus status = checkInputFile(file, input, oldestTarget); in checkInputs() 268 for (File file : files) { in checkInputFolder() 270 if (file.isDirectory()) { in checkInputFolder() 271 DependencyStatus status = checkInputFolder(file, inputFolder, oldestTarget); in checkInputFolder() 275 } else if (file.isFile()) { in checkInputFolder() 276 DependencyStatus status = checkInputFile(file, inputFolder, oldestTarget); in checkInputFolder() [all …]
|
D | SingleDependencyTask.java | 38 InputPath createPath(File file, Set<String> extensionsToCheck); in createPath() argument 43 public InputPath createPath(File file, Set<String> extensionsToCheck) { 44 return new InputPath(file, extensionsToCheck); 136 File file = input.getFile(); in generateDependencyFile() local 137 if (file.isDirectory()) { in generateDependencyFile() 138 writeContent(ps, file, input); in generateDependencyFile() 140 ps.print(file.getAbsolutePath()); in generateDependencyFile() 151 private void writeContent(PrintStream ps, File file, InputPath input) { in writeContent() argument 152 if (input.ignores(file)) { in writeContent() 156 File[] files = file.listFiles(); in writeContent()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/ |
D | SourceChangeHandler.java | 48 public boolean handleGeneratedFile(IFile file, int kind) { in handleGeneratedFile() argument 50 IFile sourceFile = mProcessor.isOutput(file); in handleGeneratedFile() 60 public void handleSourceFile(IFile file, int kind) { in handleSourceFile() argument 62 if (mProcessor.getExtension().equals(file.getFileExtension())) { in handleSourceFile() 64 mRemoved.add(file); in handleSourceFile() 66 mToCompile.add(file); in handleSourceFile() 72 mToCompile.addAll(mProcessor.isDependency(file)); in handleSourceFile() 75 public void handleResourceFile(IFile file, int kind) { in handleResourceFile() argument 76 if (filterResourceFolder(file.getParent())) { in handleResourceFile() 77 handleGeneratedFile(file, kind); in handleResourceFile() [all …]
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/io/ |
D | IFileOp.java | 58 public abstract void setExecutablePermission(File file) throws IOException; in setExecutablePermission() argument 65 public abstract void setReadOnly(File file); in setReadOnly() argument 89 public abstract boolean exists(File file); in exists() argument 92 public abstract boolean isFile(File file); in isFile() argument 95 public abstract boolean isDirectory(File file); in isDirectory() argument 98 public abstract long length(File file); in length() argument 104 public abstract boolean delete(File file); in delete() argument 107 public abstract boolean mkdirs(File file); in mkdirs() argument 110 public abstract File[] listFiles(File file); in listFiles() argument 116 public abstract OutputStream newFileOutputStream(File file) throws FileNotFoundException; in newFileOutputStream() argument [all …]
|
D | FileOp.java | 160 public void setExecutablePermission(File file) throws IOException { in setExecutablePermission() argument 164 sFileSetExecutable.invoke(file, sFileSetExecutableParams); in setExecutablePermission() 176 "chmod", "+x", file.getAbsolutePath() //$NON-NLS-1$ //$NON-NLS-2$ in setExecutablePermission() 184 public void setReadOnly(File file) { in setReadOnly() argument 185 file.setReadOnly(); in setReadOnly() 294 public boolean isFile(File file) { in isFile() argument 295 return file.isFile(); in isFile() 300 public boolean isDirectory(File file) { in isDirectory() argument 301 return file.isDirectory(); in isDirectory() 306 public boolean exists(File file) { in exists() argument [all …]
|
/sdk/sdk_common/src/com/android/ide/common/resources/ |
D | ResourceFolder.java | 71 public ResourceFile processFile(IAbstractFile file, ResourceDeltaKind kind, in processFile() argument 74 ResourceFile resFile = getFile(file, context); in processFile() 80 resFile = createResourceFile(file); in processFile() 97 private ResourceFile createResourceFile(IAbstractFile file) { in createResourceFile() argument 110 resFile = new SingleResourceFile(file, this); in createResourceFile() 112 resFile = new IdGeneratingResourceFile(file, this, ResourceType.LAYOUT); in createResourceFile() 114 resFile = new IdGeneratingResourceFile(file, this, ResourceType.MENU); in createResourceFile() 116 resFile = new MultiResourceFile(file, this); in createResourceFile() 126 public void addFile(ResourceFile file) { in addFile() argument 182 mFiles.add(file); in addFile() [all …]
|
D | ResourceItem.java | 126 protected void add(ResourceFile file) { in add() argument 127 mFiles.add(file); in add() 134 protected void removeFile(ResourceFile file) { in removeFile() argument 135 mFiles.remove(file); in removeFile() 179 for (ResourceFile file : mFiles) { in hasAlternates() 180 if (file.getFolder().getConfiguration().isDefault() == false) { in hasAlternates() 195 for (ResourceFile file : mFiles) { in hasDefault() 196 if (file.getFolder().getConfiguration().isDefault()) { in hasDefault() 213 for (ResourceFile file : mFiles) { in getAlternateCount() 214 if (file.getFolder().getConfiguration().isDefault() == false) { in getAlternateCount()
|
D | SingleResourceFile.java | 48 public SingleResourceFile(IAbstractFile file, ResourceFolder folder) { in SingleResourceFile() argument 49 super(file, folder); in SingleResourceFile() 64 file.getOsLocation(), isFramework()); in SingleResourceFile() 69 file.getOsLocation(), in SingleResourceFile() 157 IAbstractFile file = getFile(); in validateAttributes() local 158 return parser.parse(file.getOsLocation(), file.getContents()); in validateAttributes()
|
/sdk/draw9patch/src/com/android/draw9patch/ui/ |
D | MainFrame.java | 56 File file = new File(path); in MainFrame() local 57 BufferedImage img = GraphicsUtilities.loadCompatibleImage(file.toURI().toURL()); in MainFrame() 58 showImageEditor(img, file.getAbsolutePath()); in MainFrame() 106 public SwingWorker<?, ?> open(File file) { in open() argument 107 if (file == null) { in open() 117 return new OpenTask(file); in open() 135 File file = imageEditor.chooseSaveFile(); in save() local 136 return file != null ? new SaveTask(file) : null; in save() 140 private final File file; field in MainFrame.SaveTask 142 SaveTask(File file) { in SaveTask() argument [all …]
|
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/io/ |
D | MockFileOp.java | 65 public String getAgnosticAbsPath(File file) { in getAgnosticAbsPath() argument 66 return getAgnosticAbsPath(file.getAbsolutePath()); in getAgnosticAbsPath() 82 public void recordExistingFile(File file) { in recordExistingFile() argument 83 mExistinfFiles.add(getAgnosticAbsPath(file)); in recordExistingFile() 176 public void setExecutablePermission(File file) throws IOException { in setExecutablePermission() argument 186 public void setReadOnly(File file) { in setReadOnly() argument 215 public boolean isFile(File file) { in isFile() argument 216 String path = getAgnosticAbsPath(file); in isFile() 222 public boolean isDirectory(File file) { in isDirectory() argument 223 String path = getAgnosticAbsPath(file); in isDirectory() [all …]
|
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/ |
D | PrivateKeyDetector.java | 58 private boolean isPrivateKeyFile(File file) { in isPrivateKeyFile() argument 59 if (!file.isFile() || in isPrivateKeyFile() 60 (!LintUtils.endsWith(file.getPath(), "pem") && //NON-NLS-1$ in isPrivateKeyFile() 61 !LintUtils.endsWith(file.getPath(), "key"))) { //NON-NLS-1$ in isPrivateKeyFile() 66 String firstLine = Files.readFirstLine(file, Charsets.US_ASCII); in isPrivateKeyFile() 81 for (File file : files) { in checkFolder() 82 if (file.isDirectory()) { in checkFolder() 83 checkFolder(context, file); in checkFolder() 85 if (isPrivateKeyFile(file)) { in checkFolder() 86 String fileName = file.getParentFile().getName() + File.separator in checkFolder() [all …]
|
D | IconDetector.java | 349 File file = entry.getKey(); in checkDuplicates() local 358 set.add(file); in checkDuplicates() 360 seenSizes.put(size, file); in checkDuplicates() 377 for (File file : candidates) { in checkDuplicates() 378 Dimension dimension = pixelSizes.get(file); in checkDuplicates() 385 set.add(file); in checkDuplicates() 387 noSize.add(file); in checkDuplicates() 420 for (File file : set) { in checkDuplicates() 421 byte[] bits = fileContents.get(file); in checkDuplicates() 424 bits = context.getClient().readBytes(file); in checkDuplicates() [all …]
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/build/ |
D | ApkBuilder.java | 500 public void addFile(File file, String archivePath) throws ApkCreationException, in addFile() argument 507 doAddFile(file, archivePath); in addFile() 513 throw new ApkCreationException(e, "Failed to add %s", file); in addFile() 619 for (File file : files) { in addSourceFolder() 620 processFileForResource(builder, file, null); in addSourceFolder() 724 FileEntry(File file, String path) { in FileEntry() argument 725 mFile = file; in FileEntry() 811 private void doAddFile(File file, String archivePath) throws DuplicateFileException, in doAddFile() argument 813 verbosePrintln("%1$s => %2$s", file, archivePath); in doAddFile() 817 throw new DuplicateFileException(archivePath, duplicate, file); in doAddFile() [all …]
|
/sdk/lint/libs/lint_api/src/com/android/tools/lint/client/api/ |
D | LintDriver.java | 199 public Project findProjectFor(@NonNull File file) { in findProjectFor() argument 204 String path = file.getPath(); in findProjectFor() 297 for (File file : subset) { in analyze() 298 String name = file.getName(); in analyze() 304 || file.getParent().equals(RES_FOLDER)) { in analyze() 530 @NonNull File file, in registerProjectFile() argument 533 fileToProject.put(file, mClient.getProject(projectDir, rootDir)); in registerProjectFile() 546 for (File file : files) { in computeProjects() 547 absolute.add(file.getAbsoluteFile()); in computeProjects() 558 for (File file : files) { in computeProjects() [all …]
|
/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/ |
D | XmlReporterTest.java | 39 File file = new File(getTargetDir(), "report"); in test() local 47 file.getParentFile().mkdirs(); in test() 48 XmlReporter reporter = new XmlReporter(client, file); in test() 58 warning1.file = new File("/foo/bar/Foo/AndroidManifest.xml"); in test() 61 warning1.location = Location.create(warning1.file, in test() 68 warning2.file = new File("/foo/bar/Foo/res/layout/main.xml"); in test() 72 warning2.location = Location.create(warning2.file, in test() 81 String report = Files.toString(file, Charsets.UTF_8); in test() 131 file.delete(); in test()
|
D | LintCliXmlParserTest.java | 67 File file = File.createTempFile("parsertest", ".xml"); in test() local 68 Writer fw = new BufferedWriter(new FileWriter(file)); in test() 73 Project project = Project.create(client, file.getParentFile(), file.getParentFile()); in test() 74 XmlContext context = new XmlContext(driver, project, null, file, null); in test() 129 file.delete(); in test() 141 File file = File.createTempFile("parsertest2", ".xml"); in testLineEndings() local 142 Writer fw = new BufferedWriter(new FileWriter(file)); in testLineEndings() 147 Project project = Project.create(client, file.getParentFile(), file.getParentFile()); in testLineEndings() 148 XmlContext context = new XmlContext(driver, project, null, file, null); in testLineEndings() 152 file.delete(); in testLineEndings()
|
/sdk/common/src/com/android/io/ |
D | StreamException.java | 33 public StreamException(Exception e, IAbstractFile file) { in StreamException() argument 34 this(e, file, Error.DEFAULT); in StreamException() 37 public StreamException(Exception e, IAbstractFile file, Error error) { in StreamException() argument 39 mFile = file; in StreamException()
|
/sdk/lint/cli/src/com/android/tools/lint/ |
D | Warning.java | 40 public File file; field in Warning 72 return file.getName().compareTo(other.file.getName()); in compareTo() 78 if (file != null && other.file != null) { in compareTo() 79 int fileDelta = file.getName().compareTo( in compareTo() 80 other.file.getName()); in compareTo()
|
/sdk/common/tests/src/com/android/utils/ |
D | PositionXmlParserTest.java | 63 File file = File.createTempFile("parsertest", ".xml"); in test() local 64 Writer fw = new BufferedWriter(new FileWriter(file)); in test() 67 Document document = parser.parse(new FileInputStream(file)); in test() 112 file.delete(); in test() 132 File file = File.createTempFile("parsertest", ".xml"); in testText() local 133 file.deleteOnExit(); in testText() 134 Writer fw = new BufferedWriter(new FileWriter(file)); in testText() 137 Document document = parser.parse(new FileInputStream(file)); in testText() 176 File file = File.createTempFile("parsertest2", ".xml"); in testLineEndings() local 177 Writer fw = new BufferedWriter(new FileWriter(file)); in testLineEndings() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | ExtractStyleRefactoringTest.java | 136 IFile file = getLayoutFile(getProject(), basename); in checkRefactoring() local 137 TestContext info = setupTestContext(file, basename); in checkRefactoring() 146 IDE.openEditor(page, file); in checkRefactoring() 151 parentStyle, expectedModifiedFileCount, file, refactoring); in checkRefactoring() 160 IFile file = getLayoutFile(getProject(), basename); in checkRefactoringByOffset() local 161 int beginOffset = getCaretOffset(file, beginCaretLocation); in checkRefactoringByOffset() 162 int endOffset = getCaretOffset(file, endCaretLocation); in checkRefactoringByOffset() 164 TestContext info = setupTestContext(file, basename); in checkRefactoringByOffset() 172 IDE.openEditor(page, file); in checkRefactoringByOffset() 175 ExtractStyleRefactoring refactoring = new ExtractStyleRefactoring(file, in checkRefactoringByOffset() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
D | TemplateTestWizard.java | 58 File file = mSelectionPage.getLocation(); in getNextPage() local 59 if (file != null && file.exists()) { in getNextPage() 62 mValues.setTemplateLocation(file); in getNextPage() 69 mValues.setTemplateLocation(file); in getNextPage()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
D | TraceFileReader.java | 42 public GLMessage getMessageAtOffset(RandomAccessFile file, long offset) throws IOException { in getMessageAtOffset() argument 47 file.seek(offset); in getMessageAtOffset() 50 len = file.readInt(); in getMessageAtOffset() 59 file.readFully(b); in getMessageAtOffset()
|
/sdk/lint/libs/lint_api/src/com/android/tools/lint/detector/api/ |
D | Location.java | 57 protected Location(@NonNull File file, @Nullable Position start, @Nullable Position end) { in Location() argument 59 mFile = file; in Location() 185 public static Location create(@NonNull File file) { in create() argument 186 return new Location(file, null /*start*/, null /*end*/); in create() 200 @NonNull File file, in create() 203 return new Location(file, start, end); in create() 218 @NonNull File file, in create() 227 return new Location(file, in create() 244 return new Location(file, start, end); in create() 252 return Location.create(file); in create() [all …]
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/build/ |
D | SymbolWriter.java | 52 File file = new File(mOutFolder); in write() local 54 file = new File(file, folder); in write() 56 file.mkdirs(); in write() 57 file = new File(file, SdkConstants.FN_RESOURCE_CLASS); in write() 61 writer = Files.newWriter(file, Charsets.UTF_8); in write()
|