/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/utils/ |
D | CachedFileContents.java | 58 private File file; field in CachedFileContents 88 public CachedFileContents(@Nonnull File file) { in CachedFileContents() argument 89 this.file = file; in CachedFileContents() 102 lastClosed = file.lastModified(); in closed() 103 size = file.length(); in closed() 117 if (!file.exists()) { in isValid() 121 if (valid && file.lastModified() != lastClosed) { in isValid() 125 if (valid && file.length() != size) { in isValid() 160 return Files.hash(file, Hashing.crc32()); in hashFile() 174 return file; in getFile()
|
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/ |
D | SourcePositionInfo.java | 25 public SourcePositionInfo(String file, int line, int column) { in SourcePositionInfo() argument 26 this.file = file; in SourcePositionInfo() 50 return new SourcePositionInfo(that.file, line, 0); in add() 55 return file + ':' + line; in toString() 60 int r = this.file.compareTo(that.file); in compareTo() 65 public final String file; field in SourcePositionInfo
|
/tools/apksig/src/main/java/com/android/apksig/util/ |
D | DataSources.java | 46 public static DataSource asDataSource(RandomAccessFile file) { in asDataSource() argument 47 if (file == null) { in asDataSource() 50 return new RandomAccessFileDataSource(file); in asDataSource() 57 public static DataSource asDataSource(RandomAccessFile file, long offset, long size) { in asDataSource() argument 58 if (file == null) { in asDataSource() 61 return new RandomAccessFileDataSource(file, offset, size); in asDataSource()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | ZipUtil2Test.java | 28 import java.nio.file.Files; 29 import java.nio.file.attribute.PosixFilePermission; 30 import java.nio.file.attribute.PosixFilePermissions; 47 for (File file : mTempFiles) { in tempFileCleanUp() 48 FileUtil.recursiveDelete(file); in tempFileCleanUp() 57 private void verifyFilePermission(File file, String permString) throws IOException { in verifyFilePermission() argument 58 Set<PosixFilePermission> actual = Files.getPosixFilePermissions(file.toPath()); in verifyFilePermission() 68 private void verifyFilePermission(File file) throws IOException { in verifyFilePermission() argument 69 verifyFilePermission(file, file.getName()); in verifyFilePermission() 96 for (File file : destDir.listFiles()) { in testExtractZip() [all …]
|
D | ZipUtilTest.java | 37 for (File file : mTempFiles) { in tearDown() 38 if (file != null && file.exists()) { in tearDown() 39 if (file.isDirectory()) { in tearDown() 40 FileUtil.recursiveDelete(file); in tearDown() 42 file.delete(); in tearDown() 147 File file = new File("/tmp/this-file-does-not-exist.zip"); in testZipFileDoesNotExist() local 148 assertFalse(ZipUtil.isZipFileValid(file, true)); in testZipFileDoesNotExist() 149 assertFalse(ZipUtil.isZipFileValid(file, false)); in testZipFileDoesNotExist()
|
/tools/acloud/internal/proto/ |
D | internal_config_pb2.py | 32 file=DESCRIPTOR, 41 options=None, file=DESCRIPTOR), 48 options=None, file=DESCRIPTOR), 69 file=DESCRIPTOR, 78 options=None, file=DESCRIPTOR), 85 options=None, file=DESCRIPTOR), 92 options=None, file=DESCRIPTOR), 99 options=None, file=DESCRIPTOR), 121 file=DESCRIPTOR, 130 options=None, file=DESCRIPTOR), [all …]
|
D | user_config_pb2.py | 32 file=DESCRIPTOR, 41 options=None, file=DESCRIPTOR), 48 options=None, file=DESCRIPTOR), 69 file=DESCRIPTOR, 78 options=None, file=DESCRIPTOR), 85 options=None, file=DESCRIPTOR), 92 options=None, file=DESCRIPTOR), 99 options=None, file=DESCRIPTOR), 106 options=None, file=DESCRIPTOR), 113 options=None, file=DESCRIPTOR), [all …]
|
D | internal_config.proto | 4 // you may not use this file except in compliance with the License. 50 // The file extension of disk image, e.g. ".tar.gz" 52 // The name of the raw image name that should apper in the tar gz file. 55 // The file extension of a raw linux image file, e.g. "img" 56 // If file is of this type, it will be compressed to avd-system.tar.gz 67 // Path of a file where Oauth2 credential data will be cached. 68 // For example, ".acloud_oauth2.dat". This file will be created under 70 // The file name by convention usually starts with a dot noting it is 71 // a hidden file.
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/ |
D | ZFileDataSource.java | 36 private final ZFile file; field in ZFileDataSource 55 public ZFileDataSource(@Nonnull ZFile file) { in ZFileDataSource() argument 56 this.file = file; in ZFileDataSource() 66 public ZFileDataSource(@Nonnull ZFile file, long offset, long size) { in ZFileDataSource() argument 69 this.file = file; in ZFileDataSource() 79 return file.directSize(); in size() 97 return new ZFileDataSource(file, this.offset + offset, size); in slice() 113 int readSize = file.directRead(chunkOffsetInFile, buf, 0, chunkSize); in feed() 135 file.directFullyRead(this.offset + offset, dest); in copyTo()
|
/tools/dexter/slicer/ |
D | common.cc | 28 void _checkFailed(const char* expr, int line, const char* file) { in _checkFailed() argument 29 printf("\nSLICER_CHECK failed [%s] at %s:%d\n\n", expr, file, line); in _checkFailed() 40 void _weakCheckFailed(const char* expr, int line, const char* file) { in _weakCheckFailed() argument 41 auto failure_id = std::make_pair(line, file); in _weakCheckFailed() 43 printf("\nSLICER_WEAK_CHECK failed [%s] at %s:%d\n\n", expr, file, line); in _weakCheckFailed()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiCompilationUnit.kt | 41 if (file is PsiJavaFile) { in getHeaderComments() 42 val pkg = file.packageStatement ?: return null in getHeaderComments() 43 return file.text.substring(0, pkg.startOffset) in getHeaderComments() 44 } else if (file is KtFile) { in getHeaderComments() 45 var curr: PsiElement? = file.firstChild in getHeaderComments() 69 if (file is PsiJavaFile) { in getImportStatements() 71 val importList = file.importList in getImportStatements() 84 for (psiClass in file.classes) { in getImportStatements() 89 } else if (file is KtFile) { in getImportStatements() 90 for (importDirective in file.importDirectives) { in getImportStatements() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | RandomAccessFileDataSink.java | 38 public RandomAccessFileDataSink(RandomAccessFile file) { in RandomAccessFileDataSink() argument 39 this(file, 0); in RandomAccessFileDataSink() 46 public RandomAccessFileDataSink(RandomAccessFile file, long startPosition) { in RandomAccessFileDataSink() argument 47 if (file == null) { in RandomAccessFileDataSink() 53 mFile = file; in RandomAccessFileDataSink() 54 mFileChannel = file.getChannel(); in RandomAccessFileDataSink()
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandFileParser.java | 69 CommandLine(File file, int lineNumber) { in CommandLine() argument 71 mFile = file; in CommandLine() 75 CommandLine(Collection<? extends String> c, File file, int lineNumber) { in CommandLine() argument 77 mFile = file; in CommandLine() 253 private void scanFile(File file) throws IOException, ConfigurationException { in scanFile() argument 254 if (mIncludedFiles.contains(file.getAbsolutePath())) { in scanFile() 256 CLog.v("Skipping repeated include of file %s.", file.toString()); in scanFile() 259 mIncludedFiles.add(file.getAbsolutePath()); in scanFile() 262 BufferedReader fileReader = createCommandFileReader(file); in scanFile() 273 lArgs = new CommandLine(Arrays.asList(args), file, in scanFile() [all …]
|
D | CommandFileWatcher.java | 54 public final File file; field in CommandFileWatcher.CommandFile 67 this.file = cmdFile; in CommandFile() 89 this.file = cmdFile; in CommandFile() 174 mListener.notifyFileChanged(cmd.file, cmd.extraArgs); in checkForUpdates() 180 if (checkedFiles.contains(cmd.file)) { in checkCommandFileForUpdate() 183 checkedFiles.add(cmd.file); in checkCommandFileForUpdate() 186 final long curModTime = cmd.file.lastModified(); in checkCommandFileForUpdate() 196 CLog.w("Found update in monitored cmdfile %s (%d -> %d)", cmd.file, cmd.modTime, in checkCommandFileForUpdate()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | ZipUtil.java | 211 for (File file : files) { in createZip() 212 addToZip(out, file, new LinkedList<String>()); in createZip() 230 public static void addToZip(ZipOutputStream out, File file, List<String> relativePathSegs) in addToZip() argument 232 relativePathSegs.add(file.getName()); in addToZip() 233 if (file.isDirectory()) { in addToZip() 239 if (file.isFile()) { in addToZip() 240 writeToStream(file, out); in addToZip() 243 if (file.isDirectory()) { in addToZip() 245 File[] subFiles = file.listFiles(); in addToZip() 248 file.getAbsolutePath())); in addToZip() [all …]
|
D | FakeTestsZipFolder.java | 68 File file = new File(mData, fileName); in createItems() local 71 if (!file.mkdirs()) { in createItems() 76 File p = file.getParentFile(); in createItems() 83 if (!file.createNewFile()) { in createItems()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandFileParserTest.java | 51 BufferedReader createCommandFileReader(File file) { in createCommandFileReader() argument 52 return new BufferedReader(new StringReader(mDataMap.get(file))); in createCommandFileReader() 67 BufferedReader createCommandFileReader(File file) { in setUp() 97 private final void assertParsedData(CommandFileParser parser, File file, in assertParsedData() argument 99 List<CommandLine> data = parser.parseFile(file); in assertParsedData() 379 BufferedReader createCommandFileReader(File file) { in testMacroParserInclude() 408 BufferedReader createCommandFileReader(File file) { in testMacroParserInclude_twice() 436 BufferedReader createCommandFileReader(File file) { in testMacroParserInclude_repeat() 464 BufferedReader createCommandFileReader(File file) { in testMacroParserInclude_parentDir() 465 if (mMockFile.equals(file)) { in testMacroParserInclude_parentDir() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | AdditionalFilesInstaller.java | 49 File file = buildFile.getFile(); in setUp() local 50 CLog.d("Examining build file %s", file.getName()); in setUp() 51 String remotePath = String.format("%s%s", DEST_PATH, file.getName()); in setUp() 52 CLog.d("Pushing %s to %s", file.getName(), remotePath); in setUp() 53 if (!device.pushFile(file, remotePath)) { in setUp() 55 file.getName(), remotePath), device.getDeviceDescriptor()); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | FileInputStreamSource.java | 36 public FileInputStreamSource(File file) { in FileInputStreamSource() argument 37 mFile = file; in FileInputStreamSource() 47 public FileInputStreamSource(File file, boolean deleteFileOnCancel) { in FileInputStreamSource() argument 48 mFile = file; in FileInputStreamSource()
|
D | LogFilesReporter.java | 117 for (IFileEntry file : outputDir.getChildren(false)) { in uploadFolderOnDeviceToLogs() 119 if (file.getName().endsWith(LogDataType.PNG.getFileExt())) { in uploadFolderOnDeviceToLogs() 121 } else if (file.getName().endsWith(LogDataType.XML.getFileExt())) { in uploadFolderOnDeviceToLogs() 124 CLog.v(String.format("Adding file %s", file.getFullPath())); in uploadFolderOnDeviceToLogs() 125 uploadFilePatterns.put(file.getFullPath(), logDataType); in uploadFolderOnDeviceToLogs()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | NoisyDryRunTest.java | 71 File file = new File(filename); in testCommandFile() local 72 checkFileWithTimeout(file); in testCommandFile() 73 return parser.parseFile(file); in testCommandFile() 90 void checkFileWithTimeout(File file) throws IOException { in checkFileWithTimeout() argument 92 while (!file.exists() && currentTimeMillis() < timeout) { in checkFileWithTimeout() 93 CLog.w("%s doesn't exist, wait and recheck.", file.getAbsoluteFile()); in checkFileWithTimeout() 96 if (!file.exists()) { in checkFileWithTimeout() 98 String.format("%s doesn't exist.", file.getAbsoluteFile())); in checkFileWithTimeout()
|
/tools/tradefederation/core/tests/res/config/suite/ |
D | suite.md | 4 individual test from a suite can be as simple as a test config file change. One 10 in the test config file. So one doesn't need to maintain a collection of test in 15 1. Create a suite configuration file 17 Suite configuration file is similar to a TradeFed test configuration file. It 20 file has option "test-suite-tag" set to that value will be included in that 23 A sample suite configuration file looks like this: 37 general-tests artifact. That is, include following in the mk file: 43 The test configuration file should also have option "test-suite-tag" set to the 78 --test-zip-file-filter .*device-tests.zip 81 "test-zip-file-filter" option tells TradeFed to download and extract all device
|
/tools/repohooks/ |
D | pre-upload.py | 109 print(error, file=sys.stderr) 121 print(warning, file=sys.stderr) 181 print('invalid config file: %s' % (e,), file=sys.stderr) 211 file=sys.stderr) 214 'attempting to upload again.\n', file=sys.stderr) 237 print('%s cannot be found.' % project_name, file=sys.stderr) 238 print('Please specify a valid project.', file=sys.stderr) 242 file=sys.stderr) 244 file=sys.stderr) 263 print('upstream remote cannot be found: %s' % (e,), file=sys.stderr) [all …]
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/ |
D | FileDisk.java | 57 public FileDisk(File file, boolean readOnly) throws FileNotFoundException { in FileDisk() argument 58 if (!file.exists()) throw new FileNotFoundException(); in FileDisk() 63 this.raf = new RandomAccessFile(file, modeString); in FileDisk() 90 public static FileDisk create(File file, long size) throws IOException { in create() argument 93 new RandomAccessFile(file, "rw"); //NOI18N in create()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | StoredEntry.java | 170 private ZFile file; field in StoredEntry 214 @Nonnull ZFile file, in StoredEntry() argument 218 this.file = file; in StoredEntry() 220 verifyLog = file.makeVerifyLog(); in StoredEntry() 400 file.delete(this, notify); in delete() 434 file.directFullyRead(cdh.getOffset(), localHeader); in readLocalHeader() 444 if (file.areTimestampsIgnored()) { in readLocalHeader() 471 file.directFullyRead(fileNameStart, fileNameData); in readLocalHeader() 485 file.directFullyRead(localExtraStart, localExtraRaw); in readLocalHeader() 505 file.directFullyRead(ddStart, ddData); in readDataDescriptorRecord() [all …]
|