From 4ac2aed1361198611541b6785676a83ea9607a44 Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Wed, 28 Dec 2022 01:54:29 +0000 Subject: [PATCH] Create a "Toolchain" API surface This creates a new API surface for the APIs provided by ART to compile other API domains (e.g. this contains LambdaMetaFactory). The scope of this API surface is restricted to compile-time. Unlike the other API surfaces (e.g. public) whose APIs will exist on device in the form of implementation libraries, these classes are not guaranteed to exist on device. This also updates the naming convention map used in Multi-tree API export Bug: 261244752 Test: TH Change-Id: I164714d68618a3c289bac1a695958e36fdbbda5d --- android/sdk_version.go | 3 +++ java/droidstubs.go | 1 + 2 files changed, 4 insertions(+) diff --git a/android/sdk_version.go b/android/sdk_version.go index d73c9125d..8953eaecd 100644 --- a/android/sdk_version.go +++ b/android/sdk_version.go @@ -51,6 +51,7 @@ const ( SdkModule SdkSystemServer SdkPrivate + SdkToolchain // API surface provided by ART to compile other API domains ) // String returns the string representation of this SdkKind @@ -76,6 +77,8 @@ func (k SdkKind) String() string { return "module-lib" case SdkSystemServer: return "system-server" + case SdkToolchain: + return "toolchain" default: return "invalid" } diff --git a/java/droidstubs.go b/java/droidstubs.go index 2ad29693d..059f98c44 100644 --- a/java/droidstubs.go +++ b/java/droidstubs.go @@ -879,6 +879,7 @@ var ( "module_lib": android.SdkModule, "module-lib": android.SdkModule, "test": android.SdkTest, + "toolchain": android.SdkToolchain, } )