Home
last modified time | relevance | path

Searched refs:source (Results 1 – 25 of 355) sorted by relevance

12345678910>>...15

/tools/metalava/metalava-model-text/src/test/resources/
Dmodel-test-suite-baseline.txt21 testLegacySource[source,String using constant]
22 testLegacySource[source,annotation]
23 testLegacySource[source,char escaped]
24 testLegacySource[source,char unicode]
25 testLegacySource[source,char]
26 testLegacySource[source,double NaN]
27 testLegacySource[source,double negative infinity]
28 testLegacySource[source,double positive infinity]
29 testLegacySource[source,double with exponent]
30 testLegacySource[source,float NaN]
[all …]
/tools/metalava/metalava-model-snapshot-testing/src/test/resources/
Dmodel-test-suite-baseline.txt146 testLegacySource[psi,kotlin,k1,source,class array literal]
147 testLegacySource[psi,kotlin,k1,source,class int array literal]
148 testLegacySource[psi,kotlin,k1,source,class void primitive class]
149 testLegacySource[psi,kotlin,k1,source,class void wrapper class]
150 testLegacySource[psi,kotlin,k1,source,class]
151 testLegacySource[psi,kotlin,k2,source,class array literal]
152 testLegacySource[psi,kotlin,k2,source,class int array literal]
153 testLegacySource[psi,kotlin,k2,source,class void primitive class]
154 testLegacySource[psi,kotlin,k2,source,class void wrapper class]
155 testLegacySource[psi,kotlin,k2,source,class]
[all …]
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DApiFromTextTest.kt27 val source = in Loading a signature file and writing the API back out() constant
40 check(format = FileFormat.V2, signatureSource = source, api = source) in Loading a signature file and writing the API back out()
45 val source = in Handle lambdas as default values() constant
58 signatureSource = source, in Handle lambdas as default values()
59 api = source, in Handle lambdas as default values()
65 val source = in Invoking function with multiple parameters as parameter default value() constant
77 signatureSource = source, in Invoking function with multiple parameters as parameter default value()
78 api = source, in Invoking function with multiple parameters as parameter default value()
84 val source = in Handle enum constants as default values() constant
108 check(format = FileFormat.V4, signatureSource = source, api = source) in Handle enum constants as default values()
[all …]
DJavadocTest.kt22 import com.android.tools.metalava.model.source.utils.packageHtmlToJavadoc
31 @Language("JAVA") source: String, in checkStubs()
45 stubFiles = arrayOf(java(source)), in checkStubs()
153 source = in Relative documentation links in stubs()
285 source = in Check allowReadingComments = false()
362 source = in Rewrite relative documentation links in doc-stubs()
457 source = in Rewrite relative documentation links in doc-stubs 2()
536 source = in Rewrite relative documentation links in doc-stubs 3()
609 source = in Rewrite relative documentation links in doc-stubs but preserve custom link text()
708 source = in Rewrite relative documentation links in doc-stubs 4()
[all …]
/tools/metalava/metalava-testing/src/main/java/com/android/tools/metalava/testing/
DTestUtils.kt24 fun source(to: String, source: String): TestFile { in source() method
25 return TestFiles.source(to, source.trimIndent()) in source()
28 fun html(to: String, @Language("HTML") source: String): TestFile { in html()
29 return TestFiles.source(to, source.trimIndent()) in html()
32 fun xml(to: String, @Language("XML") source: String): TestFile { in xml()
33 return TestFiles.xml(to, source.trimIndent()) in xml()
36 fun java(to: String, @Language("JAVA") source: String): TestFile { in java()
37 return TestFiles.java(to, source.trimIndent()) in java()
40 fun java(@Language("JAVA") source: String): TestFile { in java()
41 return TestFiles.java(source.trimIndent()) in java()
[all …]
/tools/platform-compat/javatest/android/processor/compat/changeid/
DChangeIdProcessorTest.java109 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/security/remote_provisioning/hwtrust/
DCargo.lock8 source = "registry+https://github.com/rust-lang/crates.io-index"
17 source = "registry+https://github.com/rust-lang/crates.io-index"
23 source = "registry+https://github.com/rust-lang/crates.io-index"
32 source = "registry+https://github.com/rust-lang/crates.io-index"
38 source = "registry+https://github.com/rust-lang/crates.io-index"
53 source = "registry+https://github.com/rust-lang/crates.io-index"
59 source = "registry+https://github.com/rust-lang/crates.io-index"
65 source = "registry+https://github.com/rust-lang/crates.io-index"
71 source = "registry+https://github.com/rust-lang/crates.io-index"
77 source = "registry+https://github.com/rust-lang/crates.io-index"
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/config/
DOptionCopierTest.java136 OptionSource source = new OptionSource(); in testCopyOptions_string() local
138 OptionCopier.copyOptions(source, dest); in testCopyOptions_string()
139 assertEquals(source.mMyOption, dest.mDestOption); in testCopyOptions_string()
145 OptionSource source = new OptionSource(); in testCopyOptions_int() local
147 OptionCopier.copyOptions(source, dest); in testCopyOptions_int()
148 assertEquals(source.mMyIntOption, dest.mDestIntOption); in testCopyOptions_int()
154 OptionSource source = new OptionSource(); in testCopyOptions_collection() local
155 source.mStringCollection.add("foo"); in testCopyOptions_collection()
158 OptionCopier.copyOptions(source, dest); in testCopyOptions_collection()
167 OptionSource source = new OptionSource(); in testCopyOptions_enum() local
[all …]
/tools/metalava/metalava-model-turbine/src/test/resources/
Dmodel-test-suite-baseline.txt41 testLegacySource[source,String using constant]
42 testLegacySource[source,annotation]
43 testLegacySource[source,double NaN]
44 testLegacySource[source,double with int]
45 testLegacySource[source,float NaN]
46 testLegacySource[source,float with int]
47 testLegacySource[source,int positive]
48 testLegacySource[source,long with int]
58 testLegacySource[source,annotation]
59 testLegacySource[source,double with int]
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtilsLite.java277 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 …]
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt214 fun shortenAnnotation(source: String): String { in snapshot()
216 source == "@java.lang.Deprecated" -> "@Deprecated" in snapshot()
217 source.startsWith(ANDROID_ANNOTATION_PREFIX, 1) -> { in snapshot()
218 "@" + source.substring(ANDROID_ANNOTATION_PREFIX.length + 1) in snapshot()
220 source.startsWith(ANDROIDX_ANNOTATION_PREFIX, 1) -> { in snapshot()
221 "@" + source.substring(ANDROIDX_ANNOTATION_PREFIX.length + 1) in snapshot()
223 else -> source in snapshot()
231 fun unshortenAnnotation(source: String): String { in snapshot()
233 source == "@Deprecated" -> "@java.lang.Deprecated" in snapshot()
238 source.startsWith("@SystemService") || in snapshot()
[all …]
/tools/metalava/metalava-model-psi/src/test/resources/
Dmodel-test-suite-baseline.txt44 testLegacySource[kotlin,k1,source,class array literal]
45 testLegacySource[kotlin,k1,source,class int array literal]
46 testLegacySource[kotlin,k1,source,class void primitive class]
47 testLegacySource[kotlin,k1,source,class void wrapper class]
48 testLegacySource[kotlin,k1,source,class]
49 testLegacySource[kotlin,k2,source,class array literal]
50 testLegacySource[kotlin,k2,source,class int array literal]
51 testLegacySource[kotlin,k2,source,class void primitive class]
52 testLegacySource[kotlin,k2,source,class void wrapper class]
53 testLegacySource[kotlin,k2,source,class]
[all …]
/tools/netsim/rust/packets/src/
Dieee80211.rs101 source: MacAddress, field
125 source: MacAddress::from(src_slice), in from()
137 ethernet_frame.extend_from_slice(&self.source.to_vec()); in to_vec()
175 source: ieee8023.source, in from_ieee8023()
406 Ieee80211Child::Ieee80211ToAp(hdr) => hdr.source, in get_source()
407 Ieee80211Child::Ieee80211FromAp(hdr) => hdr.source, in get_source()
408 Ieee80211Child::Ieee80211Ibss(hdr) => hdr.source, in get_source()
409 Ieee80211Child::Ieee80211Wds(hdr) => hdr.source, in get_source()
449 Ieee80211Child::Ieee80211Ibss(hdr) => hdr.source, in get_addr2()
451 Ieee80211Child::Ieee80211ToAp(hdr) => hdr.source, in get_addr2()
[all …]
/tools/metalava/metalava-model-source/src/main/java/com/android/tools/lint/checks/infrastructure/
DClassName.kt19 import com.android.tools.metalava.model.source.utils.DOT_JAVA
20 import com.android.tools.metalava.model.source.utils.DOT_KT
30 class ClassName(source: String, extension: String = DOT_JAVA) {
35 val withoutComments = stripComments(source, extension)
45 fun stripComments(source: String, extension: String, stripLineComments: Boolean = true): String { in packageNameWithDefault()
46 val sb = StringBuilder(source.length) in packageNameWithDefault()
59 for (c in source) { in packageNameWithDefault()
160 fun getPackage(source: String): String? { in getPackage()
161 val matcher = PACKAGE_PATTERN.matcher(source) in getPackage()
169 fun getClassName(source: String): String? { in getClassName()
[all …]
/tools/tradefederation/core/common_util/com/android/tradefed/config/
DOptionDef.java29 public final String source; field in OptionDef
32 public OptionDef(String optionName, String optionValue, String source) { in OptionDef() argument
33 this(optionName, null, optionValue, source, null); in OptionDef()
36 public OptionDef(String optionName, String optionKey, String optionValue, String source) { in OptionDef() argument
37 this(optionName, optionKey, optionValue, source, null); in OptionDef()
41 String optionName, String optionKey, String optionValue, String source, String type) { in OptionDef() argument
45 this.source = source; in OptionDef()
/tools/trebuchet/trebuchet/traceutils/src/
DTraceUtils.kt27 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/treble/hacksaw/bind/
Dlocal.go52 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/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/value/
DValueExample.kt174 source { common = "@OtherAnnotation(intType = 1)" } in <lambda>()
285 source { in <lambda>()
308 source { in <lambda>()
344 source { in <lambda>()
393 source { in <lambda>()
400 expectedKotlinLegacySource = partialExpectations { source { common = "3" } }, in <lambda>()
412 source { attributeValue = "7e10" } in <lambda>()
428 source { in <lambda>()
463 source { in <lambda>()
499 source { in <lambda>()
[all …]
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/internal/
DRewriteAnnotations.kt37 fun modifyAnnotationSources(source: File, target: File, pkg: String = "") { in modifyAnnotationSources()
38 val fileName = source.name in modifyAnnotationSources()
42 if (hasSourceRetention(source, qualifiedName)) { in modifyAnnotationSources()
48 target.writeText(source.readText(UTF_8).replace("\npublic @interface", "\n@interface")) in modifyAnnotationSources()
49 } else if (source.isDirectory) { in modifyAnnotationSources()
51 source.listFiles()?.forEach { in modifyAnnotationSources()
61 private fun hasSourceRetention(source: File, qualifiedName: String): Boolean { in hasSourceRetention()
72 error("$source: Found annotation with unknown desired retention: $qualifiedName") in hasSourceRetention()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/stub/
DStubsTest.kt80 source = in Generate stubs for fields with initial values()
153 source = in Generate stubs for various modifier scenarios()
212 source = in Check throws list()
255 source = in Test final instance fields()
384 source = in Preserve file header comments()
431 source = in DocOnly members should be omitted()
487 source = in DocOnly members should be included when requested()
582 source = in Picking super class throwables()
660 source = in Rewriting implements class references()
699 source = in Arrays in type arguments()
[all …]
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/internal/
DMakeAnnotationsPackagePrivateCommandTest.kt65 val source = stubAnnotationsDir in Test copying private annotations from one of the stubs() constant
70 source.path, in Test copying private annotations from one of the stubs()
149 val source = getOrCreateFolder("annotations-copy") in Test stub-annotations containing unknown annotation() constant
150 stubAnnotationsDir.copyRecursively(source) in Test stub-annotations containing unknown annotation()
151 assertTrue(source.path, source.isDirectory) in Test stub-annotations containing unknown annotation()
152 unindentedInputFile("android/annotation/Unknown.java", fooSource, source) in Test stub-annotations containing unknown annotation()
157 source.path, in Test stub-annotations containing unknown annotation()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1DerEncoder.java502 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/tradefederation/core/javatests/com/android/tradefed/util/
DStreamUtilTest.java49 try (final InputStreamSource source = new ByteArrayInputStreamSource(contentBytes)) { in testGetByteArrayListFromSource() argument
50 final InputStream stream = source.createInputStream(); in testGetByteArrayListFromSource()
86 try (InputStreamSource source = new ByteArrayInputStreamSource(contents.getBytes())) { in testGetStringFromSource() argument
87 final InputStream stream = source.createInputStream(); in testGetStringFromSource()
101 try (InputStreamSource source = new ByteArrayInputStreamSource(contents.getBytes())) { in testGetBufferedReaderFromInputStream() argument
102 output = StreamUtil.getBufferedReaderFromStreamSrc(source); in testGetBufferedReaderFromInputStream()
118 final InputStreamSource source = new ByteArrayInputStreamSource(contents.getBytes()); in testCountLinesFromSource() local
119 assertEquals(3, StreamUtil.countLinesFromSource(source)); in testCountLinesFromSource()
154 final String source = getLargeText(); in testCalculateCrc32() local
156 ByteArrayInputStream inputSource = new ByteArrayInputStream(source.getBytes()); in testCalculateCrc32()
[all …]
/tools/acloud/
Dsetup.py45 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/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcmw500_handover_simulator.py62 source = self._get_handover_manager(source_technology)
63 self._prepare_handover(source, self._lte)
66 self._perform_handover(source, self._lte)
78 source = self._get_handover_manager(source_technology)
79 self._prepare_handover(source, self._wcdma)
81 self._perform_handover(source, self._wcdma)
83 def _prepare_handover(self, source, destination): argument
91 if source.is_attached:
99 source.handover_destination = destination.application_name
100 if source.is_internal_handover:
[all …]

12345678910>>...15