Use libstatssocket_lazy to report stylus metrics
Report stylus prediction metrics using libstatssocket_lazy
as an interim solution while I working on untangling the
build dependency issues (b/338106546) that prevent us from using
libstatslog within libinput.
Test: `adb reboot`, then `adb logcat | egrep -i "statssocket|MotionPredictor"`
→ Shows no bootanimation linker error, and no other errors
Test: `statsd_testdrive -d 3000 718`, then draw with stylus
→ Shows reasonable metrics logged
Bug: 338106546
Bug: 311066949
Change-Id: I05ae5ffdd774d0b25cb7b2435015245d5f712c01
diff --git a/libs/input/tests/Android.bp b/libs/input/tests/Android.bp
index 6e724ac..e9d799e 100644
--- a/libs/input/tests/Android.bp
+++ b/libs/input/tests/Android.bp
@@ -79,6 +79,12 @@
},
test_suites: ["device-tests"],
target: {
+ android: {
+ static_libs: [
+ "libstatslog_libinput",
+ "libstatssocket_lazy",
+ ],
+ },
host: {
sanitize: {
address: true,