Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java38 import java.nio.file.FileAlreadyExistsException;
39 import java.nio.file.FileSystemException;
40 import java.nio.file.FileVisitOption;
41 import java.nio.file.Files;
42 import java.nio.file.Paths;
43 import java.nio.file.attribute.PosixFilePermission;
127 public static boolean mkdirsRWX(File file) { in mkdirsRWX() argument
128 File parent = file.getParentFile(); in mkdirsRWX()
140 if (file.isDirectory() || file.mkdir()) { in mkdirsRWX()
142 boolean setPerms = chmodGroupRWX(file); in mkdirsRWX()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt16 @file:JvmName("Driver") in <lambda>()
366 file = previousApiFile, in processFlags()
396 source.listFiles()?.forEach { file -> in processFlags() method
397 RewriteAnnotations().copyAnnotations(codebase, file, File(it, file.name)) in processFlags()
403 val writeStubsFile: (File) -> Unit = { file -> in processFlags() method
414 file.writeText(contents) in processFlags()
464 source.listFiles()?.forEach { file -> in processNonCodebaseFlags() method
465 rewrite.modifyAnnotationSources(null, file, File(privateAnnotationsTarget, file.name)) in processNonCodebaseFlags()
480 file = convert.fromApiFile, in processNonCodebaseFlags()
494 file = baseFile, in processNonCodebaseFlags()
[all …]
DOptions.kt965 builder.file = stringToExistingFile(nextArg) in <lambda>()
1027 val file = stringToExistingFile(nextArg) in <lambda>() constant in com.android.tools.metalava.Options
1028 if (file.isFile) { in <lambda>()
1030 migrateNullsFrom = file in <lambda>()
1037 val file = stringToExistingFile(getValue(args, ++index)) in <lambda>() constant in com.android.tools.metalava.Options
1038 … mutableCompatibilityChecks.add(CheckRequest(file, ApiType.PUBLIC_API, ReleaseType.DEV)) in <lambda>()
1058 val file = stringToExistingFile(nextArg) in <lambda>() constant
1059 if (file.isFile) { in <lambda>()
1061 … mutableCompatibilityChecks.add(CheckRequest(file, ApiType.PUBLIC_API, ReleaseType.DEV)) in <lambda>()
1068 val file = stringToExistingFile(getValue(args, ++index)) in <lambda>() constant in com.android.tools.metalava.Options
[all …]
DFileReadSandbox.kt138 fun <T : File?> allowAccess(file: T): T { in <lambda>()
139 if (file == null) { in <lambda>()
140 return file in <lambda>()
142 val path = file.absolutePath in <lambda>()
144 if (file.isDirectory) { in <lambda>()
151 return file in <lambda>()
156 var parent = file.parentFile in <lambda>()
171 return file in <lambda>()
174 fun isAccessAllowed(file: File): Boolean { in <lambda>()
175 if (!file.exists()) { in <lambda>()
[all …]
DRewriteAnnotations.kt36 import java.nio.file.attribute.FileTime in <lambda>()
103 for (file in files) { in <lambda>() method
105 if (file.isDirectory) { in <lambda>()
106 val android = File(file, "android${File.separator}annotation/") in <lambda>()
109 val androidx = File(file, "androidx${File.separator}annotation/") in <lambda>()
117 rewriteAnnotations(file) in <lambda>()
143 private fun rewriteAnnotations(file: File) { in <lambda>()
145 file.isDirectory -> file.listFiles()?.forEach { rewriteAnnotations(it) } in <lambda>()
146 file.path.endsWith(DOT_CLASS) -> rewriteClassFile(file) in <lambda>()
147 file.path.endsWith(DOT_JAR) -> rewriteJar(file) in <lambda>()
[all …]
DBaseline.kt48 val file: File?, in <lambda>() constant in com.android.tools.metalava.Baseline
56 var silentUpdate: Boolean = updateFile != null && updateFile.path == file?.path, in <lambda>()
64 if (file?.isFile == true && (!silentUpdate || merge)) { in <lambda>()
83 fun mark(file: File, message: String, issue: Issues.Issue): Boolean { in <lambda>()
84 val elementId = getBaselineKey(file) in <lambda>()
176 val file = VfsUtilCore.virtualToIoFile(virtualFile) in <lambda>() constant
177 return getBaselineKey(file) in <lambda>()
183 private fun getBaselineKey(file: File): String { in <lambda>()
184 val path = file.path in <lambda>()
200 val file = this.file ?: return in <lambda>() constant
[all …]
/tools/asuite/atest/tools/tradefederation/core/proto/
Dtest_record_pb2.py35 file=DESCRIPTOR,
70 file=DESCRIPTOR,
133 file=DESCRIPTOR,
142 serialized_options=None, file=DESCRIPTOR),
149 serialized_options=None, file=DESCRIPTOR),
170 file=DESCRIPTOR,
179 serialized_options=None, file=DESCRIPTOR),
186 serialized_options=None, file=DESCRIPTOR),
207 file=DESCRIPTOR,
216 serialized_options=None, file=DESCRIPTOR),
[all …]
Dmetric_measurement_pb2.py31 file=DESCRIPTOR,
62 file=DESCRIPTOR,
94 file=DESCRIPTOR,
103 serialized_options=None, file=DESCRIPTOR),
110 serialized_options=None, file=DESCRIPTOR),
117 serialized_options=None, file=DESCRIPTOR),
124 serialized_options=None, file=DESCRIPTOR),
131 serialized_options=None, file=DESCRIPTOR),
138 serialized_options=None, file=DESCRIPTOR),
163 file=DESCRIPTOR,
[all …]
/tools/tradefederation/core/util-apps/ContentProvider/main/java/android/tradefed/contentprovider/
DManagedFileContentProvider.java95 File file = getFileForUri(uri); in query() local
96 if ("/".equals(file.getAbsolutePath())) { in query()
106 if (!file.exists()) { in query()
111 if (!file.isDirectory()) { in query()
114 cursor.addRow(getRow(COLUMNS, file, /* metadata= */ null)); in query()
119 File[] files = file.listFiles(); in query()
138 File file = getFileForUri(uri); in insert() local
139 if (!file.exists()) { in insert()
158 File file = getFileForUri(uri); in delete() local
159 int num = recursiveDelete(file); in delete()
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/
DDriverTest.kt190 val file = File(path) in <lambda>() constant
191 val name = file.name in <lambda>()
196 paths.add(file.path) in <lambda>()
508 sources.forEach { file -> in <lambda>() method
513 signatureFile.writeText(file.trimIndent()) in <lambda>()
597 val file = File(project, "prev-api-lint.txt") in <lambda>() constant
598 file.writeText(apiLint.trimIndent()) in <lambda>()
599 arrayOf(ARG_API_LINT, file.path) in <lambda>()
610 val file = File(project, "current-api.txt") in <lambda>() constant
611 file.writeText(checkCompatibilityApi.trimIndent()) in <lambda>()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandFileParser.java69 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 …]
/tools/test/connectivity/acts/framework/acts/test_utils/power/loggers/protos/
Dpower_metric_pb2.py32 file=DESCRIPTOR,
41 serialized_options=None, file=DESCRIPTOR),
48 serialized_options=None, file=DESCRIPTOR),
55 serialized_options=None, file=DESCRIPTOR),
62 serialized_options=None, file=DESCRIPTOR),
69 serialized_options=None, file=DESCRIPTOR),
76 serialized_options=None, file=DESCRIPTOR),
83 serialized_options=None, file=DESCRIPTOR),
90 serialized_options=None, file=DESCRIPTOR),
97 serialized_options=None, file=DESCRIPTOR),
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandFileParserTest.java51 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/device/
DLocalAndroidVirtualDevice.java181 private File extractArchive(File file) throws IOException { in extractArchive() argument
182 if (file.isDirectory()) { in extractArchive()
183 return file; in extractArchive()
185 if (TarUtil.isGzip(file)) { in extractArchive()
186 file = TarUtil.extractTarGzipToTemp(file, file.getName()); in extractArchive()
187 mTempDirs.add(file); in extractArchive()
188 } else if (ZipUtil.isZipFileValid(file, false)) { in extractArchive()
189 file = ZipUtil.extractZipToTemp(file, file.getName()); in extractArchive()
190 mTempDirs.add(file); in extractArchive()
192 CLog.w("Cannot extract %s.", file); in extractArchive()
[all …]
/tools/apksig/src/apksigner/java/com/android/apksigner/
Dhelp_rotate.txt9 --in Input SigningCertificateLineage. This file contains a binary representation of
38 KeyStore (see --ks), or (2) private key file in PKCS #8 format and certificate
39 file in X.509 format (see --key and --cert).
52 KeyStore initialized from the specified file. NONE means
53 no file is needed by KeyStore, which is the case for some
65 file:<file> password provided in the named
66 file, as a single line
72 When the same file (including standard input) is used for
74 the file one line at a time. Passwords are read in the
84 file:<file> password provided in the named
[all …]
Dhelp_lineage.txt10 --in Input SigningCertificateLineage. This file contains a binary representation of
37 (2) private key file in PKCS #8 format and certificate file in X.509 format
49 KeyStore initialized from the specified file. NONE means
50 no file is needed by KeyStore, which is the case for some
62 file:<file> password provided in the named
63 file, as a single line
69 When the same file (including standard input) is used for
71 the file one line at a time. Passwords are read in the
81 file:<file> password provided in the named
82 file, as a single line
[all …]
Dhelp_sign.txt12 --in Input APK file to sign. This is an alternative to
14 options. Unless --out is specified, this file will be
18 APK is signed in-place, overwriting the input file.
92 KeyStore key alias or basename of key file is used.
96 KeyStore (see --ks), or (2) private key file in PKCS #8 format and certificate
97 file in X.509 format (see --key and --cert).
100 KeyStore initialized from the specified file. NONE means
101 no file is needed by KeyStore, which is the case for some
113 file:<file> password provided in the named
114 file, as a single line
[all …]
/tools/repohooks/tools/
Dcheckpatch.pl30 my $file = 0;
203 'f|file!' => \$file,
694 my ($wordsRef, $file) = @_;
696 if (open(my $words, '<', $file)) {
706 print("$file: '$line' invalid - ignored\n");
713 close($file);
813 my ($file) = @_;
815 return if (!(-f $file));
819 open(my $include_file, '<', "$file")
820 or warn "$P: Can't read '$file' $!\n";
[all …]
/tools/tradefederation/core/global_configuration/com/android/tradefed/util/keystore/
DJSONFileKeyStoreFactory.java120 for (File file : mHostBasedJsonFiles) { in findInvalidJsonKeyStoreFiles()
121 if (!file.exists() || !file.canRead()) { in findInvalidJsonKeyStoreFiles()
122 invalidFiles.add(file.getAbsolutePath()); in findInvalidJsonKeyStoreFiles()
133 for (File file : mHostBasedJsonFiles) { in findChangedJsonKeyStoreFiles()
134 if (mLastLoadedTime < file.lastModified()) { in findChangedJsonKeyStoreFiles()
135 changedFiles.add(file.getAbsolutePath()); in findChangedJsonKeyStoreFiles()
144 for (File file : mHostBasedJsonFiles) { in createKeyStoreInternal()
145 overrideClientWithHostKeyStoreFromFile(file); in createKeyStoreInternal()
149 private void overrideClientWithHostKeyStoreFromFile(File file) throws KeyStoreException { in overrideClientWithHostKeyStoreFromFile() argument
150 JSONObject hostKeyStore = getHostKeyStoreFromFile(file); in overrideClientWithHostKeyStoreFromFile()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DTestDescriptionsFileTest.java37 File file = tdf.getFile(); in getFile_empty() local
38 assertThat(file).isNotNull(); in getFile_empty()
39 assertThat(file.exists()).isTrue(); in getFile_empty()
40 assertThat(FileUtil.readStringFromFile(file)).isEmpty(); in getFile_empty()
49 File file = tdf.getFile(); in getFile_oneEntry() local
50 assertThat(file).isNotNull(); in getFile_oneEntry()
51 assertThat(file.exists()).isTrue(); in getFile_oneEntry()
52 assertThat(FileUtil.readStringFromFile(file)).contains(td.toString()); in getFile_oneEntry()
61 File file = tdf.getFile(); in getFile_caching() local
64 assertThat(cachedFile).isEqualTo(file); in getFile_caching()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/
DRustBinaryHostTest.java68 for (File file : rustFilesList) { in run()
69 if (!file.exists()) { in run()
70 CLog.d("ignoring %s which doesn't look like a test file.", file.getAbsolutePath()); in run()
73 file.setExecutable(true); in run()
74 runSingleRustFile(listener, file); in run()
129 private void runSingleRustFile(ITestInvocationListener listener, File file) { in runSingleRustFile() argument
130 CLog.d("Run single Rust File: %s", file.getAbsolutePath()); in runSingleRustFile()
139 countTests(file, filter, foundTests); in runSingleRustFile()
144 listener.testRunStarted(file.getName(), testCount, 0, startTimeMs); in runSingleRustFile()
147 runTestWithFilter(listener, file, filter); in runSingleRustFile()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/gen/google/protobuf/
Ddescriptor_pb2.py30 file=DESCRIPTOR,
116 file=DESCRIPTOR,
142 file=DESCRIPTOR,
168 file=DESCRIPTOR,
195 file=DESCRIPTOR,
226 file=DESCRIPTOR,
334 file=DESCRIPTOR,
371 file=DESCRIPTOR,
451 file=DESCRIPTOR,
540 file=DESCRIPTOR,
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DZFile.java254 private final File file; field in ZFile
433 public ZFile(@Nonnull File file) throws IOException { in ZFile() argument
434 this(file, new ZFileOptions()); in ZFile()
447 public ZFile(@Nonnull File file, @Nonnull ZFileOptions options) throws IOException { in ZFile() argument
448 this(file, options, false); in ZFile()
463 public ZFile(@Nonnull File file, @Nonnull ZFileOptions options, boolean readOnly) in ZFile() argument
465 this.file = file; in ZFile()
491 if (file.exists()) { in ZFile()
526 throw new IOException("Failed to read zip file '" + file.getAbsolutePath() + "'.", e); in ZFile()
529 "Internal error when trying to read zip file '" + file.getAbsolutePath() + "'.", in ZFile()
[all …]
DStoredEntry.java170 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 …]
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterLogSaver.java37 import java.nio.file.FileSystem;
38 import java.nio.file.FileSystems;
39 import java.nio.file.FileVisitOption;
40 import java.nio.file.Files;
41 import java.nio.file.Path;
42 import java.nio.file.Paths;
214 private String getDestinationPath(String prefix, File file) { in getDestinationPath() argument
215 String filename = file.getName(); in getDestinationPath()
275 File file = entry.getKey(); in uploadFiles() local
276 CLog.i("Uploading file %d of %d: %s", index, fileMap.size(), file.getAbsolutePath()); in uploadFiles()
[all …]

12345678910>>...18