diff options
author | Tej Singh <singhtejinder@google.com> | 2021-03-18 16:19:55 -0700 |
---|---|---|
committer | Tej Singh <singhtejinder@google.com> | 2021-06-01 15:42:03 -0700 |
commit | 78f65b68552fcc690ff0c3e160aa2136b6e2593d (patch) | |
tree | a3b2c72f027c2944054ab8c1ab28964ee50bba62 /libs/hwui/jni/GraphicsStatsService.cpp | |
parent | 9ad083d7ee6eb7a2f2d841b53be786bbf472242f (diff) |
libandroid_runtime & libhwui: use libstats*_lazy
Update libandroid_runtime and libhwui, both of which are dependencies of
bootanimation, to use listatssocket_lazy and libstatspull_lazy, which
are new static versions of libstatssocket and libstatspull. This means
that bootanimation does not depend on these libraries, which are shipped
from the statsd apex.
The change enables removing the statsd apex from the bootstrap apexes.
Test: m
Test: boots
Test: no fatal linker errors after removing statsd from the bootstrap
apexes
Bug: 178480419
Change-Id: I78f4abe71f4b3718bbd97522c16f1c5ab88f77ae
Diffstat (limited to 'libs/hwui/jni/GraphicsStatsService.cpp')
-rw-r--r-- | libs/hwui/jni/GraphicsStatsService.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/hwui/jni/GraphicsStatsService.cpp b/libs/hwui/jni/GraphicsStatsService.cpp index 1591ffabd26a..e32c9115483c 100644 --- a/libs/hwui/jni/GraphicsStatsService.cpp +++ b/libs/hwui/jni/GraphicsStatsService.cpp @@ -24,10 +24,10 @@ #include <service/GraphicsStatsService.h> #include <stats_event.h> #include <stats_pull_atom_callback.h> -#include <statslog.h> +#include <statslog_hwui.h> -#include "android/graphics/jni_runtime.h" #include "GraphicsJNI.h" +#include "android/graphics/jni_runtime.h" namespace android { @@ -161,14 +161,14 @@ static void nativeInit(JNIEnv* env, jobject javaObject) { AStatsManager_PullAtomMetadata_setCoolDownMillis(metadata, 10); // 10 milliseconds AStatsManager_PullAtomMetadata_setTimeoutMillis(metadata, 2 * MS_PER_SEC); // 2 seconds - AStatsManager_setPullAtomCallback(android::util::GRAPHICS_STATS, metadata, - &graphicsStatsPullCallback, nullptr); + AStatsManager_setPullAtomCallback(stats::GRAPHICS_STATS, metadata, &graphicsStatsPullCallback, + nullptr); AStatsManager_PullAtomMetadata_release(metadata); } static void nativeDestructor(JNIEnv* env, jobject javaObject) { - AStatsManager_clearPullAtomCallback(android::util::GRAPHICS_STATS); + AStatsManager_clearPullAtomCallback(stats::GRAPHICS_STATS); env->DeleteGlobalRef(gGraphicsStatsServiceObject); gGraphicsStatsServiceObject = nullptr; } |