Home
last modified time | relevance | path

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

12345

/tools/metalava/src/test/java/com/android/tools/metalava/
DApiFromTextTest.kt26 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 …]
DJDiffXmlTest.kt164 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()
DRewriteAnnotationsTest.kt34 val source = File("stub-annotations".replace('/', File.separatorChar)) in Test copying private annotations from one of the stubs() constant
35 assertTrue(source.path, source.isDirectory) in Test copying private annotations from one of the stubs()
42 source.path, in Test copying private annotations from one of the stubs()
/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/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 …]
DAndroidBinXmlParser.java792 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/test/java/com/android/tools/metalava/model/psi/
DJavadocTest.kt27 @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/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,
Dremoteclient.go43 func (r *RemoteBinderClient) BindReadOnly(source string, destination string) error {
44 args := BindReadOnlyArgs{source, destination}
58 func (r *RemoteBinderClient) BindReadWrite(source string, destination string) error {
59 args := BindReadWriteArgs{source, destination}
/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/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_tests/acts_contrib/test_utils/power/
Dplot_utils.py59 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),
DPowerGnssBaseTest.py83 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/repohooks/rh/
Dconfig.py100 def __init__(self, config=None, source=None): argument
109 self.source = source
184 (self.source, bad_sections))
190 (self.source, hook))
199 (self.source, bad_hooks))
209 (self.source, bad_hooks))
217 '%s' % (self.source, hook, e)) from e
225 (self.source, hook, e)) from e
234 (self.source, bad_tools))
242 (self.source, bad_options))
[all …]
/tools/test/openhst/resources/
Ddevice_config.common.ascii_proto2 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/framework/tests/controllers/monsoon_lib/sampling/engine/
Dassembly_line_test.py99 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/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextModifiers.kt54 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/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DCompressionResult.java37 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()
DStoredEntry.java194 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 …]
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/
Dmain.cpp116 struct android_poll_source* source; in android_main() local
121 while (ALooper_pollAll(animating ? 0 : -1, NULL, &events, (void**)&source) >= 0) { in android_main()
124 if (source != NULL) { in android_main()
125 source->process(state, source); in android_main()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/compress/
DDeflateExecutionCompressor.java65 protected CompressionResult immediateCompress(@Nonnull CloseableByteSource source) in immediateCompress() argument
71 dos.write(source.read()); in immediateCompress()
75 if (result.size() >= source.size()) { in immediateCompress()
76 return new CompressionResult(source, CompressionMethod.STORE, source.size()); in immediateCompress()
/tools/metalava/src/test/java/com/android/tools/metalava/model/
DAnnotationItemTest.kt24 fun checkShortenAnnotation(expected: String, source: String) { in checkShortenAnnotation()
25 Assert.assertEquals(expected, AnnotationItem.shortenAnnotation(source)) in checkShortenAnnotation()
26 Assert.assertEquals(source, AnnotationItem.unshortenAnnotation(expected)) in checkShortenAnnotation()
/tools/platform-compat/java/android/processor/compat/
DSingleAnnotationProcessor.java23 import com.sun.source.tree.CompilationUnitTree;
24 import com.sun.source.tree.LineMap;
25 import com.sun.source.tree.Tree;
26 import com.sun.source.util.SourcePositions;
27 import com.sun.source.util.TreePath;
28 import com.sun.source.util.Trees;
/tools/treble/split/
DREADME.md8 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.

12345