Home
last modified time | relevance | path

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

12345678910>>...12

/tools/repohooks/tools/
Dandroid_test_mapping_format_unittest.py201 with open(self.test_mapping_file, 'w') as file:
202 file.write(_VALID_TEST_MAPPING)
203 with open(self.test_mapping_file, 'r') as file:
204 android_test_mapping_format.process_file(file.read())
208 with open(self.test_mapping_file, 'w') as file:
209 file.write(_BAD_JSON)
210 with open(self.test_mapping_file, 'r') as file:
213 file.read())
217 with open(self.test_mapping_file, 'w') as file:
218 file.write(_BAD_TEST_WRONG_KEY)
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/loggers/protos/
Dbluetooth_metric_pb2.py31 file=DESCRIPTOR,
71 file=DESCRIPTOR,
101 file=DESCRIPTOR,
132 file=DESCRIPTOR,
142 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
149 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
156 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
163 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
170 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
177 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
[all …]
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSourceFromRAFFactory.java23 @Override DataSource create(RandomAccessFile file) { in create() argument
24 return DataSources.asDataSource(file); in create()
27 @Override DataSource create(RandomAccessFile file, long offset, long size) { in create() argument
28 return DataSources.asDataSource(file, offset, size); in create()
32 @Override DataSource create(RandomAccessFile file) { in create() argument
33 return DataSources.asDataSource(file.getChannel()); in create()
36 @Override DataSource create(RandomAccessFile file, long offset, long size) { in create() argument
37 return DataSources.asDataSource(file.getChannel(), offset, size); in create()
41 abstract DataSource create(RandomAccessFile file); in create() argument
42 abstract DataSource create(RandomAccessFile file, long offset, long size); in create() argument
/tools/asuite/atest/tools/asuite/atest/tf_proto/
Dtest_record_pb2.py35 file=DESCRIPTOR,
70 file=DESCRIPTOR,
143 file=DESCRIPTOR,
152 serialized_options=None, file=DESCRIPTOR),
159 serialized_options=None, file=DESCRIPTOR),
180 file=DESCRIPTOR,
189 serialized_options=None, file=DESCRIPTOR),
196 serialized_options=None, file=DESCRIPTOR),
217 file=DESCRIPTOR,
226 serialized_options=None, file=DESCRIPTOR),
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/protos/
Dbluetooth_pb2.py30 file=DESCRIPTOR,
76 file=DESCRIPTOR,
192 file=DESCRIPTOR,
254 file=DESCRIPTOR,
289 file=DESCRIPTOR,
319 file=DESCRIPTOR,
349 file=DESCRIPTOR,
379 file=DESCRIPTOR,
414 file=DESCRIPTOR,
440 file=DESCRIPTOR,
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/loggers/protos/
Dpower_metric_pb2.py32 file=DESCRIPTOR,
42 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
49 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
56 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
63 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
70 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
77 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
84 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
91 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
98 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
[all …]
/tools/asuite/atest/tf_proto/
Dlog_file.proto5 * you may not use this file except in compliance with the License.
21 // Represents a single log file
23 // The local path of the log file
25 // The remote path of the log file once logged
27 // The type of the log file (For example: Logcat, screenshot)
29 // Whether the file is a text file
31 // whether the file is compressed or not
33 // Size of the file in bytes
35 // The actual mime content type of the file
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DZFileDataSource.java36 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/test/connectivity/acts/framework/acts/metrics/loggers/protos/gen/
Dmetrics_pb2.py32 file=DESCRIPTOR,
42 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
49 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
56 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
63 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
70 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
77 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
84 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
91 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
113 file=DESCRIPTOR,
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DApiParseException.kt19 private var file: String? = null variable in com.android.tools.metalava.model.text.ApiParseException
23 internal constructor(message: String, file: String, cause: Exception?) : super(message, cause) {
24 this.file = file
27 file = tokenizer.fileName
34 if (file != null) {
35 sb.append(file).append(':')
DSourcePositionInfo.kt19 private val file: String, constant in com.android.tools.metalava.model.text.SourcePositionInfo
23 return "$file:$line" in toString()
27 val r = file.compareTo(other.file) in compareTo()
61 that.file, in add()
/tools/metalava/src/main/java/com/android/tools/metalava/
DSignatureFileLoader.kt28 file: File, in load()
31 return map[file] ?: run { in load()
32 val loaded = loadFromSignatureFiles(file, kotlinStyleNulls) in load()
33 map[file] = loaded in load()
39 file: File, in loadFromSignatureFiles()
43 val codebase = ApiFile.parseApi(File(file.path), kotlinStyleNulls ?: false) in loadFromSignatureFiles()
47 val message = "Unable to parse signature file $file: ${ex.message}" in loadFromSignatureFiles()
DBaseline.kt47 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/test/connectivity/acts/framework/acts/libs/testtracker/protos/gen/
Dtesttracker_result_pb2.py31 file=DESCRIPTOR,
90 file=DESCRIPTOR,
99 serialized_options=None, file=DESCRIPTOR),
106 serialized_options=None, file=DESCRIPTOR),
113 serialized_options=None, file=DESCRIPTOR),
120 serialized_options=None, file=DESCRIPTOR),
127 serialized_options=None, file=DESCRIPTOR),
134 serialized_options=None, file=DESCRIPTOR),
141 serialized_options=None, file=DESCRIPTOR),
166 file=DESCRIPTOR,
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/
DSymlinkTest.kt44 val file = File(dir, "src/test/pkg/sub1/sub2") in <lambda>() constant
45 file.mkdirs() in <lambda>()
46 val symlink = File(file, "sub3").toPath() in <lambda>()
47 java.nio.file.Files.createSymbolicLink(symlink, dir.toPath()) in <lambda>()
49 val git = File(file, ".git").toPath() in <lambda>()
50 java.nio.file.Files.createSymbolicLink(git, dir.toPath()) in <lambda>()
DBaselineTest.kt134 val file = File(dir, "src/test/pkg/sub1/sub2") in <lambda>() constant
135 file.mkdirs() in <lambda>()
136 val symlink = File(file, "sub3").toPath() in <lambda>()
137 java.nio.file.Files.createSymbolicLink(symlink, dir.toPath()) in <lambda>()
138 val git = File(file, ".git").toPath() in <lambda>()
139 java.nio.file.Files.createSymbolicLink(git, dir.toPath()) in <lambda>()
/tools/platform-compat/hiddenapi/
Dchecksorted_sha.sh4 git show --name-only --pretty=format: $1 | grep "hiddenapi/hiddenapi-.*txt" | while read file; do
5 diff <(git show $1:$file) <(git show $1:$file | $LOCAL_DIR/sort_api.sh ) || {
6 echo -e "\e[1m\e[31m$file $1 is not sorted or contains duplicates. To sort it correctly:\e[0m"
7 echo -e "\e[33m${LOCAL_DIR}/sort_api.sh $PWD/$file\e[0m"
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DRandomAccessFileDataSink.java38 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/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiCompilationUnit.kt66 if (file is PsiJavaFile) { in getHeaderComments()
67 val pkg = file.packageStatement ?: return null in getHeaderComments()
68 return file.text.substring(0, pkg.startOffset) in getHeaderComments()
69 } else if (file is KtFile) { in getHeaderComments()
70 var curr: PsiElement? = file.firstChild in getHeaderComments()
94 if (file is PsiJavaFile) { in getImportStatements()
95 val importList = file.importList in getImportStatements()
132 } else if (file is KtFile) { in getImportStatements()
133 for (importDirective in file.importDirectives) { in getImportStatements()
214 if (file is PsiClassOwner) { in classes()
[all …]
/tools/dexter/slicer/
Dcommon.cc28 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/apksig/src/apksigner/java/com/android/apksigner/
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 …]
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/
DTraceViewerWindow.kt43 frame.contentPane = ChooseTrace { file -> import(file) } in <lambda>() method
48 constructor(file: File) { in <lambda>()
49 import(file) in <lambda>()
62 fun import(file: File) { in <lambda>()
66 FileInputStream(file)) in <lambda>()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
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/test/graphicsbenchmark/dist/
DREADME4 Usage: ./run_gamecore.sh [--all] [--apk-info=file] [--apk-dir=dir]
9 --apk-info=file An XML file describing the list of APKs for qualifications.
11 not specified and a file named 'apk-info.xml' exists in --apk-dir,
12 that file will be used as the apk-info.
/tools/ndkports/src/main/kotlin/com/android/ndkports/
DZip.kt30 private fun zipFile(file: File, name: String, zipOut: ZipOutputStream) { in zipFile()
32 FileInputStream(file).use { in zipFile()
37 private fun zip(file: File, name: String, zipOut: ZipOutputStream) { in zip()
38 if (file.isDirectory) { in zip()
41 zipFile(file, name, zipOut) in zip()

12345678910>>...12