Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afdeb829 authored by Anton Hansson's avatar Anton Hansson Committed by Automerger Merge Worker
Browse files

Merge "Compose the main stubs jars from module stubs" into rvc-dev am: d8d0efef am: 0c025742

Change-Id: Ibdbd1d6b0a45b6233cb38dc2cb8d6a171b63cdce
parents d0c9c662 0c025742
Loading
Loading
Loading
Loading
+114 −3
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ stubs_defaults {
    // finalized stub library to resolve them. If a new class gets added,
    // this may be need to be revisited to use a manually maintained stub
    // library with empty classes in order to resolve those references.
    libs: ["sdk_system_29_android"],
    libs: ["sdk_system_30_android"],
    aidl: {
        local_include_dirs: ["apex/media/aidl/stable"],
    },
@@ -129,6 +129,23 @@ droidstubs {
    jdiff_enabled: true,
}

droidstubs {
    name: "api-stubs-docs-non-updatable",
    defaults: ["metalava-non-updatable-api-stubs-default"],
    arg_files: ["core/res/AndroidManifest.xml"],
    args: metalava_framework_docs_args,
    check_api: {
        current: {
            api_file: "non-updatable-api/current.txt",
            removed_api_file: "non-updatable-api/removed.txt",
        },
        api_lint: {
            enabled: true,
            new_since: ":android-non-updatable.api.public.latest",
        },
    },
}

priv_apps = " " +
    "--show-annotation android.annotation.SystemApi\\(" +
        "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS" +
@@ -171,6 +188,24 @@ droidstubs {
    jdiff_enabled: true,
}

droidstubs {
    name: "system-api-stubs-docs-non-updatable",
    defaults: ["metalava-non-updatable-api-stubs-default"],
    arg_files: ["core/res/AndroidManifest.xml"],
    args: metalava_framework_docs_args + priv_apps,
    check_api: {
        current: {
            api_file: "non-updatable-api/system-current.txt",
            removed_api_file: "non-updatable-api/system-removed.txt",
        },
        api_lint: {
            enabled: true,
            new_since: ":android-non-updatable.api.system.latest",
            baseline_file: "non-updatable-api/system-lint-baseline.txt",
        },
    },
}

droidstubs {
    name: "test-api-stubs-docs",
    defaults: ["metalava-full-api-stubs-default"],
@@ -234,6 +269,22 @@ droidstubs {
    },
}

droidstubs {
    name: "module-lib-api-stubs-docs-non-updatable",
    defaults: ["metalava-non-updatable-api-stubs-default"],
    arg_files: ["core/res/AndroidManifest.xml"],
    args: metalava_framework_docs_args + module_libs,
    check_api: {
        current: {
            api_file: "non-updatable-api/module-lib-current.txt",
            removed_api_file: "non-updatable-api/module-lib-removed.txt",
        },
        api_lint: {
            enabled: true,
            new_since: ":android-non-updatable.api.module-lib.latest",
        },
    },
}

// The following droidstub module generates source files for the API stub library for
// modules. Note that it not only includes its own APIs but also other APIs that have
@@ -267,19 +318,65 @@ java_defaults {
}

java_library_static {
    name: "android_stubs_current",
    name: "android_monolith_stubs_current",
    srcs: [ ":api-stubs-docs" ],
    static_libs: [ "private-stub-annotations-jar" ],
    defaults: ["android_defaults_stubs_current"],
}

java_library_static {
    name: "android_system_stubs_current",
    name: "android_merged_stubs_current",
    srcs: [ ":api-stubs-docs-non-updatable" ],
    static_libs: [
        "conscrypt.module.public.api.stubs",
        "framework-media-stubs-publicapi",
        "framework-mediaprovider-stubs-publicapi",
        "framework-permission-stubs-publicapi",
        "framework-sdkextensions-stubs-publicapi",
        "framework-statsd-stubs-publicapi",
        "framework-tethering-stubs-publicapi",
        "framework-wifi-stubs-publicapi",
        "private-stub-annotations-jar",
    ],
    defaults: ["android_defaults_stubs_current"],
}

java_library_static {
    name: "android_stubs_current",
    static_libs: ["android_merged_stubs_current"],
    defaults: ["android_defaults_stubs_current"],
}

java_library_static {
    name: "android_system_monolith_stubs_current",
    srcs: [ ":system-api-stubs-docs" ],
    static_libs: [ "private-stub-annotations-jar" ],
    defaults: ["android_defaults_stubs_current"],
}

java_library_static {
    name: "android_system_merged_stubs_current",
    srcs: [ ":system-api-stubs-docs-non-updatable" ],
    static_libs: [
        "conscrypt.module.public.api.stubs",
        "framework-media-stubs-systemapi",
        "framework-mediaprovider-stubs-systemapi",
        "framework-permission-stubs-systemapi",
        "framework-sdkextensions-stubs-systemapi",
        "framework-statsd-stubs-systemapi",
        "framework-tethering-stubs-systemapi",
        "framework-wifi-stubs-systemapi",
        "private-stub-annotations-jar",
    ],
    defaults: ["android_defaults_stubs_current"],
}

java_library_static {
    name: "android_system_stubs_current",
    static_libs: ["android_system_merged_stubs_current"],
    defaults: ["android_defaults_stubs_current"],
}

java_library_static {
    name: "android_test_stubs_current",
    srcs: [ ":test-api-stubs-docs" ],
@@ -294,6 +391,20 @@ java_library_static {
    libs: ["sdk_system_29_android"],
}

java_library_static {
    name: "android_non_updatable_stubs_current",
    srcs: [":api-stubs-docs-non-updatable"],
    defaults: ["android_defaults_stubs_current"],
    libs: ["sdk_system_29_android"],
}

java_library_static {
    name: "android_system_non_updatable_stubs_current",
    srcs: [":system-api-stubs-docs-non-updatable"],
    defaults: ["android_defaults_stubs_current"],
    libs: ["sdk_system_29_android"],
}

/////////////////////////////////////////////////////////////////////
// hwbinder.stubs provides APIs required for building HIDL Java
// libraries.
+80388 −0

File added.

Preview size limit exceeded, changes collapsed.

+28 −0
Original line number Diff line number Diff line
// Signature format: 2.0
package android.os {

  public class StatsServiceManager {
    method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer();
    method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer();
    method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer();
  }

  public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception {
    ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String);
  }

  public static final class StatsServiceManager.ServiceRegisterer {
    method @Nullable public android.os.IBinder get();
    method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException;
  }

}

package android.util {

  public final class Log {
    method public static int logToRadioBuffer(int, @Nullable String, @Nullable String);
  }

}
+1 −0
Original line number Diff line number Diff line
// Signature format: 2.0
+587 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading