/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | ApiFromTextTest.kt | 26 val source = """ in Loading a signature file and writing the API back out() constant 40 signatureSource = source, in Loading a signature file and writing the API back out() 41 api = source in Loading a signature file and writing the API back out() 47 val source = """ in Handle lambdas as default values() constant 61 signatureSource = source, in Handle lambdas as default values() 63 api = source in Handle lambdas as default values() 69 val source = """ in Invoking function with multiple parameters as parameter default value() constant 82 signatureSource = source, in Invoking function with multiple parameters as parameter default value() 84 api = source in Invoking function with multiple parameters as parameter default value() 90 val source = """ in Handle enum constants as default values() constant [all …]
|
D | JDiffXmlTest.kt | 164 val source = """ in Test generics, superclasses and interfaces() constant 195 signatureSource = source, in Test generics, superclasses and interfaces() 378 val source = """ in Test enums() constant 392 signatureSource = source, in Test enums() 483 val source = """ in Test enums compat mode() constant 497 signatureSource = source, in Test enums compat mode() 796 fun `Half float short from source`() { in Half float short from source()
|
/tools/metalava/src/test/java/com/android/tools/metalava/stub/ |
D | StubsTest.kt | 21 import com.android.tools.lint.checks.infrastructure.LintDetectorTest.source in <lambda>() 56 @Language("JAVA") source: String, in <lambda>() 71 stubFiles = arrayOf(java(source)), in <lambda>() 120 source = """ in <lambda>() 235 source = """ in <lambda>() 261 source = """ in <lambda>() 286 source = """ in <lambda>() 312 source = """ in <lambda>() 344 source = """ in <lambda>() 379 source = in <lambda>() [all …]
|
/tools/platform-compat/javatest/android/processor/compat/changeid/ |
D | ChangeIdProcessorTest.java | 109 JavaFileObject[] source = { in testCompatConfigXmlOutput() local 160 .compile(ObjectArrays.concat(mAnnotations, source, JavaFileObject.class)); in testCompatConfigXmlOutput() 168 JavaFileObject[] source = { in testCompatConfigXmlOutput_multiplePackages() local 208 .compile(ObjectArrays.concat(mAnnotations, source, JavaFileObject.class)); in testCompatConfigXmlOutput_multiplePackages() 219 JavaFileObject[] source = { in testCompatConfigXmlOutput_innerClass() local 245 .compile(ObjectArrays.concat(mAnnotations, source, JavaFileObject.class)); in testCompatConfigXmlOutput_innerClass() 253 JavaFileObject[] source = { in testCompatConfigXmlOutput_interface() local 277 .compile(ObjectArrays.concat(mAnnotations, source, JavaFileObject.class)); in testCompatConfigXmlOutput_interface() 285 JavaFileObject[] source = { in testCompatConfigXmlOutput_enum() local 310 .compile(ObjectArrays.concat(mAnnotations, source, JavaFileObject.class)); in testCompatConfigXmlOutput_enum() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtilsLite.java | 277 private static ByteBuffer sliceFromTo(ByteBuffer source, int start, int end) { in sliceFromTo() argument 284 int capacity = source.capacity(); in sliceFromTo() 285 if (end > source.capacity()) { in sliceFromTo() 288 int originalLimit = source.limit(); in sliceFromTo() 289 int originalPosition = source.position(); in sliceFromTo() 291 source.position(0); in sliceFromTo() 292 source.limit(end); in sliceFromTo() 293 source.position(start); in sliceFromTo() 294 ByteBuffer result = source.slice(); in sliceFromTo() 295 result.order(source.order()); in sliceFromTo() [all …]
|
D | AndroidBinXmlParser.java | 792 private static ByteBuffer sliceFromTo(ByteBuffer source, long start, long end) { in sliceFromTo() argument 799 int capacity = source.capacity(); in sliceFromTo() 800 if (end > source.capacity()) { in sliceFromTo() 803 return sliceFromTo(source, (int) start, (int) end); in sliceFromTo() 812 private static ByteBuffer sliceFromTo(ByteBuffer source, int start, int end) { in sliceFromTo() argument 819 int capacity = source.capacity(); in sliceFromTo() 820 if (end > source.capacity()) { in sliceFromTo() 823 int originalLimit = source.limit(); in sliceFromTo() 824 int originalPosition = source.position(); in sliceFromTo() 826 source.position(0); in sliceFromTo() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | AnnotationItem.kt | 561 fun shortenAnnotation(source: String): String { in shortenAnnotation() 563 source == "@java.lang.Deprecated" -> "@Deprecated" in shortenAnnotation() 564 source.startsWith("android.annotation.", 1) -> { in shortenAnnotation() 565 "@" + source.substring("@android.annotation.".length) in shortenAnnotation() 567 source.startsWith(ANDROID_SUPPORT_ANNOTATION_PREFIX, 1) -> { in shortenAnnotation() 568 "@" + source.substring("@android.support.annotation.".length) in shortenAnnotation() 570 source.startsWith(ANDROIDX_ANNOTATION_PREFIX, 1) -> { in shortenAnnotation() 571 "@" + source.substring("@androidx.annotation.".length) in shortenAnnotation() 573 else -> source in shortenAnnotation() 581 fun unshortenAnnotation(source: String): String { in unshortenAnnotation() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ |
D | Asn1DerEncoder.java | 502 public static byte[] toDer(Object source, Asn1Type targetType, Asn1Type targetElementType) in toDer() argument 504 Class<?> sourceType = source.getClass(); in toDer() 506 ByteBuffer buf = ((Asn1OpaqueObject) source).getEncoded(); in toDer() 513 return encode(source); in toDer() 520 if (source instanceof ByteBuffer) { in toDer() 521 ByteBuffer buf = (ByteBuffer) source; in toDer() 524 } else if (source instanceof byte[]) { in toDer() 525 value = (byte[]) source; in toDer() 536 if (source instanceof Integer) { in toDer() 537 return toInteger((Integer) source); in toDer() [all …]
|
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/ |
D | JavadocTest.kt | 27 @Language("JAVA") source: String, in checkStubs() 41 stubFiles = arrayOf(java(source)), in checkStubs() 146 source = """ in Relative documentation links in stubs() 245 source = """ in Rewrite relative documentation links in doc-stubs() 336 source = """ in Rewrite relative documentation links in doc-stubs 2() 413 source = """ in Rewrite relative documentation links in doc-stubs 3() 484 source = """ in Rewrite relative documentation links in doc-stubs but preserve custom link text() 581 source = """ in Rewrite relative documentation links in doc-stubs 4() 655 source = """ in Rewrite relative documentation links in doc-stubs 5() 741 source = """ in Check references to inherited field constants() [all …]
|
/tools/metalava/src/main/java/com/android/tools/lint/checks/infrastructure/ |
D | ClassName.kt | 24 class ClassName(source: String) { 29 val withoutComments = stripComments(source) 42 fun stripComments(source: String, stripLineComments: Boolean = true): String { in packageNameWithDefault() 43 val sb = StringBuilder(source.length) in packageNameWithDefault() 54 for (c in source) { in packageNameWithDefault() 134 fun getPackage(source: String): String? { in getPackage() 135 val matcher = PACKAGE_PATTERN.matcher(source) in getPackage() 143 fun getClassName(source: String): String? { in getClassName() 144 val matcher = CLASS_PATTERN.matcher(source.replace('\n', ' ')) in getClassName() 152 if (groupStart == 0 || source[groupStart - 1] != '.' && source[groupStart - 1] != ':') { in getClassName()
|
/tools/trebuchet/trebuchet/traceutils/src/ |
D | TraceUtils.kt | 27 fun validateSrcDest(source: File, destDir: File) { in <lambda>() 28 if (!source.exists()) { in <lambda>() 29 throw IllegalArgumentException("No such file '$source'") in <lambda>() 73 var next = reader.source.next() in copy() 76 next = reader.source.next() in copy() 80 fun extract(source: File, destDir: File) { in extract() 81 validateSrcDest(source, destDir) in extract() 84 findTraces(InputStreamAdapter(source), onlyKnownFormats = false) { in extract() 101 val source = File(args[0]) in main() constant 103 extract(source, destDir) in main()
|
/tools/repohooks/rh/ |
D | config.py | 121 def __init__(self, config=None, source=None): argument 130 self.source = source 204 (self.source, bad_sections)) 210 (self.source, hook)) 219 (self.source, bad_hooks)) 229 (self.source, bad_hooks)) 237 '%s' % (self.source, hook, e)) 245 (self.source, hook, e)) 254 (self.source, bad_tools)) 262 (self.source, bad_options)) [all …]
|
/tools/treble/hacksaw/bind/ |
D | local.go | 52 func (p localBinder) BindReadOnly(source string, destination string) error { 54 source, err := filepath.EvalSymlinks(source) 62 err = p.mounter.Mount(source, destination, 67 err = p.mounter.Mount(source, destination, 72 func (p localBinder) BindReadWrite(source string, destination string) error { 74 source, err := filepath.EvalSymlinks(source) 82 err = p.mounter.Mount(source, destination,
|
/tools/test/connectivity/acts/framework/tests/controllers/monsoon_lib/sampling/engine/ |
D | assembly_line_test.py | 99 builder.source(first_source) 102 builder.source(second_source) 112 builder.source(dummy_source, input_stream=input_stream) 121 builder.source(dummy_source) 130 return_value = builder.source(mock.Mock()) 149 builder.source(dummy_transformer).build() 161 builder.source(dummy_source) 173 builder.source(dummy_source) 183 builder.source(mock.Mock()) 192 builder.source(mock.Mock()).build() [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | StoredEntry.java | 194 private ProcessedAndRawByteSources source; field in StoredEntry 215 @Nullable ProcessedAndRawByteSources source) in StoredEntry() argument 232 source == null, in StoredEntry() 240 this.source = createSourceFromZip(cdh.getOffset()); in StoredEntry() 248 source, in StoredEntry() 250 this.source = source; in StoredEntry() 261 this.source.getProcessedByteSource().isEmpty(), in StoredEntry() 334 return source.getProcessedByteSource().openStream(); in open() 402 source.close(); in delete() 625 ProcessedAndRawByteSources oldSource = source; in replaceSourceFromZip() [all …]
|
D | CompressionResult.java | 37 private final CloseableByteSource source; field in CompressionResult 51 public CompressionResult(@Nonnull CloseableByteSource source, @Nonnull CompressionMethod method, in CompressionResult() argument 54 this.source = source; in CompressionResult() 75 return source; in getSource()
|
/tools/test/openhst/resources/ |
D | device_config.common.ascii_proto | 2 source: "LOGCAT" 13 source: "/dev/kmsg" 24 source: "/sdcard/captured_dsp_audio.wav" 29 source: "LOGCAT" 35 source: "LOGCAT" 41 source: "LOGCAT" 47 source: "LOGCAT" 54 source: "LOGCAT" 60 source: "LOGCAT" 66 source: "LOGCAT"
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/ |
D | plot_utils.py | 59 source = ColumnDataSource( 75 dt = DataTable(source=s2, 90 plot.line('x', 'y', source=source, line_width=2) 91 plot.circle('x', 'y', source=source, size=0.5, fill_color='color') 96 source.selected.js_on_change( 98 CustomJS(args=dict(source=source, mytable=dt),
|
D | PowerGnssBaseTest.py | 83 source = ColumnDataSource( 101 source=s2, columns=columns, width=1300, height=60, editable=True) 114 plot.line('x0', 'y0', source=source, line_width=2) 115 plot.circle('x0', 'y0', source=source, size=0.5, fill_color='color') 122 source.callback = CustomJS(
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | RewriteAnnotations.kt | 51 fun modifyAnnotationSources(codebase: Codebase?, source: File, target: File, pkg: String = "") { in <lambda>() 52 val fileName = source.name in <lambda>() 65 source.readText(UTF_8).replace( in <lambda>() 70 } else if (source.isDirectory) { in <lambda>() 72 source.listFiles()?.forEach { in <lambda>() 79 fun copyAnnotations(codebase: Codebase, source: File, target: File, pkg: String = "") { in <lambda>() 80 val fileName = source.name in <lambda>() 92 source.copyTo(target) in <lambda>() 93 } else if (source.isDirectory) { in <lambda>() 95 source.listFiles()?.forEach { in <lambda>()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextBackedAnnotationItem.kt | 28 source: String, 37 val index = source.indexOf("(") 39 source.substring(1) // Strip @ 40 else source.substring(1, index) 47 else -> "@" + qualifiedName + source.substring(index) 54 source.substring(index + 1, source.lastIndexOf(')'))
|
D | TextModifiers.kt | 54 annotationSources.forEach { source -> in <lambda>() method 55 val index = source.indexOf('(') in <lambda>() 56 val originalName = if (index == -1) source.substring(1) else source.substring(1, index) in <lambda>() 68 … DefaultAnnotationAttribute.createList(source.substring(index + 1, source.lastIndexOf(')'))) in <lambda>() 75 … override fun toSource(target: AnnotationTarget, showDefaultAttrs: Boolean): String = source in <lambda>()
|
/tools/acloud/ |
D | setup.py | 45 def GenerateProto(source): argument 56 output = source.replace(".proto", "_pb2.py") 59 os.path.exists(source) and 60 os.path.getmtime(source) > os.path.getmtime(output)): 63 if not os.path.exists(source): 64 sys.stderr.write("Can't find required file: %s\n" % source) 74 protoc_command = [PROTOC, "-I%s" % ACLOUD_DIR, "--python_out=.", source]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 1173 private void mergeFrom(V1SchemeVerifier.Result source) { in mergeFrom() argument 1174 mVerifiedUsingV1Scheme = source.verified; in mergeFrom() 1175 mErrors.addAll(source.getErrors()); in mergeFrom() 1176 mWarnings.addAll(source.getWarnings()); in mergeFrom() 1177 for (V1SchemeVerifier.Result.SignerInfo signer : source.signers) { in mergeFrom() 1180 for (V1SchemeVerifier.Result.SignerInfo signer : source.ignoredSigners) { in mergeFrom() 1185 private void mergeFrom(ApkSigResult source) { in mergeFrom() argument 1186 switch (source.signatureSchemeVersion) { in mergeFrom() 1188 mSourceStampVerified = source.verified; in mergeFrom() 1189 if (!source.mSigners.isEmpty()) { in mergeFrom() [all …]
|
/tools/treble/split/ |
D | README.md | 8 used to sync the Android source tree and build the specific target. This sync 13 manifest from a full manifest using dependency information from the source tree 16 and source tree. This is solved by manually fine-tuning a tool configuration XML 60 https://source.android.com/setup/build/downloading#initializing-a-repo-client. 69 by now-removed projects. These dependencies may be implicit in the source code, 73 1. Find the dependency source project in your full-manifest repo directory. 106 - An implicit and optional source dependency. Can be fixed by manually adding 107 the project that defines the missing source.
|