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

Commit 38330a08 authored by Jeffrey Huang's avatar Jeffrey Huang
Browse files

Migrate StatsManager to apex

Link frameworks-statsd.jar against framework-all
since it is currently infeasible to to link against stubs

Linking against stubs in frameworks/base cannot be done because
we still have StatsLog that calls StatsEvent.getBytes which
is a hidden API.

We can't move StatsLog to the apex because of hidden APIs in the
autogenerated code which is currently being migrated.

Test: m -j
Bug: 147923515
Change-Id: I0a59dce83a8075bdde3e72d1d8eceef2ed572791
parent 5c74c834
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ java_library {
    name: "framework-statsd",
    installable: true,
    // TODO(b/146209659): Use system_current instead.
    sdk_version: "core_current",
    sdk_version: "core_platform",
    srcs: [
        ":framework-statsd-sources",
    ],
@@ -35,7 +35,9 @@ java_library {
    libs: [
        "framework-annotations-lib",
        // TODO(b/146230220): Use framework-system-stubs instead.
        "android_system_stubs_current",
        //"android_system_stubs_current",
        //"framework_module_lib_stubs_current",
        "framework-all",
    ],
    hostdex: true, // for hiddenapi check
    visibility: [
@@ -52,12 +54,14 @@ java_library {
droidstubs {
    name: "framework-statsd-stubs-docs",
    defaults: [
        "framework-module-stubs-defaults-publicapi"
        "framework-module-stubs-defaults-systemapi"
    ],
    srcs: [
        ":framework-annotations",
        ":framework-statsd-sources",
    ],
    libs: [
        // TODO(b/148218250): Change to android_system_stubs_current
        "framework-all",
    ],
    sdk_version: "core_platform",
@@ -70,6 +74,7 @@ java_library {
        ":framework-statsd-stubs-docs",
    ],
    libs: [
        // TODO(b/148218250): Change to android_system_stubs_current
        "framework-all",
    ],
    sdk_version: "core_platform",