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

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

Compose the main stubs jars from module stubs am: 33ea9997 am: b85debbd

Change-Id: I649e8915651bae6b7da4ffec2d2ebc20801592e9
parents 40120a78 b85debbd
Loading
Loading
Loading
Loading
+114 −3
Original line number Original line Diff line number Diff line
@@ -84,7 +84,7 @@ stubs_defaults {
    // finalized stub library to resolve them. If a new class gets added,
    // 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
    // this may be need to be revisited to use a manually maintained stub
    // library with empty classes in order to resolve those references.
    // library with empty classes in order to resolve those references.
    libs: ["sdk_system_29_android"],
    libs: ["sdk_system_30_android"],
    aidl: {
    aidl: {
        local_include_dirs: ["apex/media/aidl/stable"],
        local_include_dirs: ["apex/media/aidl/stable"],
    },
    },
@@ -129,6 +129,23 @@ droidstubs {
    jdiff_enabled: true,
    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 = " " +
priv_apps = " " +
    "--show-annotation android.annotation.SystemApi\\(" +
    "--show-annotation android.annotation.SystemApi\\(" +
        "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS" +
        "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS" +
@@ -171,6 +188,24 @@ droidstubs {
    jdiff_enabled: true,
    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 {
droidstubs {
    name: "test-api-stubs-docs",
    name: "test-api-stubs-docs",
    defaults: ["metalava-full-api-stubs-default"],
    defaults: ["metalava-full-api-stubs-default"],
@@ -238,6 +273,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
// 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
// modules. Note that it not only includes its own APIs but also other APIs that have
@@ -274,19 +325,65 @@ java_defaults {
}
}


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


java_library_static {
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" ],
    srcs: [ ":system-api-stubs-docs" ],
    static_libs: [ "private-stub-annotations-jar" ],
    static_libs: [ "private-stub-annotations-jar" ],
    defaults: ["android_defaults_stubs_current"],
    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 {
java_library_static {
    name: "android_test_stubs_current",
    name: "android_test_stubs_current",
    srcs: [ ":test-api-stubs-docs" ],
    srcs: [ ":test-api-stubs-docs" ],
@@ -301,6 +398,20 @@ java_library_static {
    libs: ["sdk_system_29_android"],
    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
// hwbinder.stubs provides APIs required for building HIDL Java
// libraries.
// libraries.
+80477 −0

File added.

Preview size limit exceeded, changes collapsed.

+28 −0
Original line number Original line 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 Original line Diff line number Diff line
// Signature format: 2.0
+587 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading