Home
last modified time | relevance | path

Searched refs:api (Results 1 – 25 of 82) sorted by relevance

1234

/tools/metalava/src/test/java/com/android/tools/metalava/
DApiFileTest.kt74 api = """ in Basic class signature extraction()
103 api = """ in Parameter Names in Java()
137 api = """ in Default Values Names in Java()
197 api = """ in Default Values and Names in Kotlin()
281 api = """ in Default Values in Kotlin for expressions()
336 api = """ in Basic Kotlin class()
393 api = """ in Kotlin Reified Methods()
428 api = """ in Kotlin Reified Methods 2()
456 api = """ in Suspend functions()
486 api = """ in Var properties with private setters()
[all …]
DApiFromTextTest.kt41 api = source in Loading a signature file and writing the API back out()
63 api = source in Handle lambdas as default values()
84 api = source in Invoking function with multiple parameters as parameter default value()
119 api = source in Handle enum constants as default values()
153 api = source in Handle complex expressions as default values()
172 api = source in Annotation signatures requiring more complicated token matching()
191 api = source in Multiple extends()
208 api = """ in Native and strictfp keywords()
236 api = """ in Type use annotations()
282 api = """ in Infer fully qualified names from shorter names()
[all …]
DAnnotationsMergerTest.kt63 api = """ in Signature files contain annotations()
123 api = """ in Merged class and method annotations with no arguments()
166 api = """ in Merge signature files()
210 api = """ in Merge qualifier annotations from Java stub files()
286 api = """ in Merge qualifier annotations from Java stub files onto stubs that are not in the API signature file()
327 api = """ in Merge type use qualifier annotations from Java stub files()
374 api = """ in Merge qualifier annotations from Java stub files making sure they apply to public members of hidden superclasses()
434 api = """ in Merge inclusion annotations from Java stub files()
479 api = """ in Merge inclusion annotations from Java stub files using --show-single-annotation()
490 fun `Merge inclusion annotations on api in java namespace`() { in Merge inclusion annotations on api in java namespace()
[all …]
DNullnessMigrationTest.kt44 api = """ in Test Kotlin-style null signatures()
88 api = """ in Method which is now marked null should be marked as recently migrated null()
138 api = """ in Parameter which is now marked null should be marked as recently migrated null()
196 api = """ in Comprehensive check of migration()
267 api = """ in Comprehensive check of migration, Kotlin-style output()
318 api = """ in Convert libcore nullness annotations to support()
363 api = if (SUPPORT_TYPE_USE_ANNOTATIONS) { in Check type use annotations()
417 api = if (SUPPORT_TYPE_USE_ANNOTATIONS) { in Check androidx package annotation()
724 api = """ in Merge nullness annotations in stubs that are not in the API signature file()
DShowAnnotationTest.kt54 api = """ in Basic showAnnotation test()
111 api = """ in Basic showAnnotation with showUnannotated test()
171 api = """ in Check @TestApi handling()
247 api = """ in Include interface-inherited fields in stubs()
303 api = """ in No UnhiddenSystemApi warning for --show-single-annotations()
642 api = """
674 api = """ in Check @PublishedApi handling()
745 api = """
DExtractAnnotationsTest.kt516 fun `No typedef signatures in api files`() { in No typedef signatures in api files()
525 api = """ in No typedef signatures in api files()
552 fun `Inlining typedef signatures in api files`() { in Inlining typedef signatures in api files()
561 api = """ in Inlining typedef signatures in api files()
588 fun `Referencing typedef signatures in api files`() { in Referencing typedef signatures in api files()
597 api = """ in Referencing typedef signatures in api files()
DApiLintBaselineTest.kt50 fun `Test with api-lint specific baseline`() { in Test with api-lint specific baseline()
74 fun `Test with api-lint specific baseline with update`() { in Test with api-lint specific baseline with update()
100 fun `Test with non-api-lint specific baseline`() { in Test with non-api-lint specific baseline()
128 fun `Test api-lint error message`() { in Test api-lint error message()
157 fun `Test no api-lint error message`() { in Test no api-lint error message()
DJava9LanguageFeaturesTest.kt44 api = """ in Private Interface Method()
76 api = in Kotlin language level()
170 api = """ in Basic class signature extraction()
206 api = in Using JDK APIs()
DCoreApiTest.kt77 api = in Hidden with --hide-annotation()
170 api = in Hidden with package javadoc and hiding default constructor explicitly()
256 api = in Complain if annotating a member and the surrounding class is not included()
329 api = in Hidden with --hide-meta-annotation()
/tools/acloud/internal/lib/
Dgcompute_client.py161 api = self.service.globalOperations().get(
163 result = self.Execute(api)
165 api = self.service.zoneOperations().get(
169 result = self.Execute(api)
171 api = self.service.regionOperations().get(
175 result = self.Execute(api)
212 api = self.service.projects().get(project=self._project)
213 return self.Execute(api)
231 api = self.service.regions().list(project=self._project)
232 return self.Execute(api)
[all …]
Dandroid_build_client.py94 api = self.service.buildartifact().get_media(
105 fh, api, chunksize=self.DEFAULT_CHUNK_SIZE)
284 api = self.service.buildartifact().copyTo(
292 self.Execute(api)
315 api = self.service.build().get(buildId=build_id, target=build_target)
316 build = self.Execute(api)
336 api = self.service.build().list(
343 build = self.Execute(api)
369 api = self.service.build().get(buildId=build_id,
371 build = self.Execute(api) or {}
[all …]
Dbase_cloud_client.py151 def ExecuteOnce(self, api): argument
165 return api.execute()
170 api, argument
227 api=api)
329 api = api_resource(pageToken=next_page_token, *args, **kwargs)
330 response = self.Execute(api)
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DApiFile.java79 final TextCodebase api = new TextCodebase(files.get(0)); in parseApi() local
95 parseApiSingleFile(api, !first, file.getPath(), apiText, kotlinStyleNulls); in parseApi()
98 api.setDescription(description.toString()); in parseApi()
99 api.postProcess(); in parseApi()
100 return api; in parseApi()
116 final TextCodebase api = new TextCodebase(new File(filename)); in parseApi() local
117 api.setDescription("Codebase loaded from " + filename); in parseApi()
118 parseApiSingleFile(api, false, filename, apiText, kotlinStyleNulls); in parseApi()
119 api.postProcess(); in parseApi()
120 return api; in parseApi()
[all …]
/tools/platform-compat/javatest/com/android/class2nonsdklist/
DApiComponentsTest.java32 ApiComponents api = ApiComponents.fromDexSignature("La/b/C;->foo()V"); in testGetApiComponentsPackageFromSignature() local
33 PackageAndClassName packageAndClassName = api.getPackageAndClassName(); in testGetApiComponentsPackageFromSignature()
39 ApiComponents api = ApiComponents.fromDexSignature("La/b/C;->foo(IJLfoo2/bar/Baz;)V"); in testGetApiComponentsFromSignature() local
40 PackageAndClassName packageAndClassName = api.getPackageAndClassName(); in testGetApiComponentsFromSignature()
42 assertThat(api.getMemberName()).isEqualTo("foo"); in testGetApiComponentsFromSignature()
43 assertThat(api.getMethodParameterTypes()).isEqualTo("int, long, foo2.bar.Baz"); in testGetApiComponentsFromSignature()
86 ApiComponents api = ApiComponents.fromLinkTag("a.b.C#foo(int, long, foo2.bar.Baz)", in testGetApiComponentsFromFieldLink() local
88 PackageAndClassName packageAndClassName = api.getPackageAndClassName(); in testGetApiComponentsFromFieldLink()
91 assertThat(api.getMemberName()).isEqualTo("foo"); in testGetApiComponentsFromFieldLink()
96 ApiComponents api = ApiComponents.fromLinkTag("b.c.D", "La/b/C;->foo:I"); in testGetApiComponentsLinkOnlyClass() local
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/stub/
DStubsTest.kt59 api: String? = null, in <lambda>()
75 api = api, in <lambda>()
583 api = """ in <lambda>()
1262 api = """ in <lambda>()
1445 api = if (SUPPORT_TYPE_USE_ANNOTATIONS) { in <lambda>()
1689 api = """ in <lambda>()
1817 api = """ in <lambda>()
1872 api = """ in <lambda>()
1906 api = """ in <lambda>()
1941 api = """ in <lambda>()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DAndroidJarReader.java66 Api api; in getApi() local
73 api = new Api(max); in getApi()
76 readJar(api, apiLevel, jar); in getApi()
81 processCodebase(api, apiLevel); in getApi()
85 api = new Api(mCurrentApi); in getApi()
99 processCodebase(api, apiLevel); in getApi()
103 readJar(api, apiLevel, jar); in getApi()
107 api.inlineFromHiddenSuperClasses(); in getApi()
108 api.removeImplicitInterfaces(); in getApi()
109 api.removeOverridingMethods(); in getApi()
[all …]
DApiGenerator.java155 Api api = reader.getApi(); in generate() local
156 return createApiFile(new File(outPath), api); in generate()
163 Api api = reader.getApi(); in generate() local
164 return createApiFile(outputFile, api); in generate()
189 private static boolean createApiFile(File outFile, Api api) { in createApiFile() argument
200 api.print(stream); in createApiFile()
DApiClass.java82 public void updateHidden(int api, boolean hidden) { in updateHidden() argument
84 mPrivateUntil = -api; in updateHidden()
86 mPrivateUntil = Math.abs(api); in updateHidden()
98 public void setHiddenUntil(int api) { in setHiddenUntil() argument
99 mPrivateUntil = api; in setHiddenUntil()
293 public void removeHiddenSuperClasses(Map<String, ApiClass> api) { in removeHiddenSuperClasses() argument
301 ApiClass extendsClass = api.get(next.getName()); in removeHiddenSuperClasses()
/tools/metalava/src/main/java/com/android/tools/metalava/
DConvertJarsToSignatureFiles.kt44 var api = 1 in <lambda>() variable
48 if (api <= 3) in <lambda>()
49 "prebuilts/tools/common/api-versions/android-$api/android.jar" in <lambda>()
51 "prebuilts/sdk/$api/public/android.jar" in <lambda>()
56 val signatureFile = "prebuilts/sdk/$api/public/api/android.txt" in <lambda>()
57 val oldApiFile = File(root, "prebuilts/sdk/$api/public/api/android.txt") in <lambda>()
61 File(root, "prebuilts/sdk/$api/public/api/android.txt") in <lambda>()
71 if (api >= 28) { in <lambda>()
99 val oldRemovedFile = File(root, "prebuilts/sdk/$api/public/api/removed.txt") in <lambda>()
145 api++ in <lambda>()
DDocAnalyzer.kt7 import com.android.tools.lint.detector.api.editDistance in <lambda>()
480 val api = annotation.findAttribute("api")?.leafValues()?.firstOrNull()?.value() in <lambda>() constant
481 if (api == null || api == 1) { in <lambda>()
484 api in <lambda>()
752 for ((pkg, api) in pkgApi.entries) { in <lambda>() constant
753 val code = api ?: 1 in <lambda>()
/tools/metalava/buildSrc/src/main/kotlin/com/android/tools/metalava/
DLibraryBuildInfo.kt21 import org.gradle.api.DefaultTask
22 import org.gradle.api.GradleException
23 import org.gradle.api.Project
24 import org.gradle.api.provider.Property
25 import org.gradle.api.tasks.Input
26 import org.gradle.api.tasks.OutputFile
27 import org.gradle.api.tasks.TaskAction
28 import org.gradle.api.tasks.TaskProvider
/tools/platform-compat/java/com/android/class2nonsdklist/
DApiResolver.java43 .map(api -> { in ApiResolver()
45 return ApiComponents.fromDexSignature(api); in ApiResolver()
52 .map(api -> api.getPackageAndClassName()) in ApiResolver()
94 .filter(api -> api.equalsIgnoringParam(alternative)) in resolvePublicAlternatives()
/tools/ndkports/src/main/kotlin/com/android/ndkports/
DPrefabPackageBuilder.kt19 import com.google.prefab.api.AndroidAbiMetadata in <lambda>()
20 import com.google.prefab.api.ModuleMetadataV1 in <lambda>()
21 import com.google.prefab.api.PackageMetadataV1 in <lambda>()
143 val api = abiToApiMap.getOrElse(abi) { in <lambda>() constant
153 api = api, in <lambda>()
/tools/aadevtools/avd/
Dbatch_add_avd_img.sh37 while IFS=',' read -r name api zip others || [ -n "${name}" ]; do
40 header="${name},${api},${zip}"
42 addAvdImgCmd="VARIANT=${name} API_LEVEL=${api} OEM_AVD_ZIP=${zip} ${SCRIPT_DIR}/add_avd_img.sh"
46 …createAvdCmd="AVD_IMG_NAME=${name} API_LEVEL=${api} DEFAULT_DEVICE_XML=${SCRIPT_DIR}/resource/devi…
/tools/metalava/
DAPI-LINT.md4 API Council's guidelines, described in go/android-api-guidelines.
55 ==> baseline_filename: "api/baseline.txt", <==
75 …out/soong/.intermediates/frameworks/base/system-api-stubs-docs/android_common/api/system-baseline.…
76 frameworks/base/api/system-baseline.txt
106 $ cp out/something/baseline.txt frameworks/base/api/baseline.txt

1234