Migrate to SettingsStatsLog from StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by *StatsLog.java
that is autogenerated for each module.
This CL adds autogenerated SettingsStatsLog and replaces usages
of StatsLog with SettingsStatsLog.
Bug: 145952197
Test: m
Change-Id: I3ffdb51394017e3e48b65734d67595abd69dd70d
diff --git a/Android.bp b/Android.bp
index e1c002d..cc273fb 100644
--- a/Android.bp
+++ b/Android.bp
@@ -4,6 +4,21 @@
static_libs: ["WifiTrackerLib"],
}
+genrule {
+ name: "statslog-settings-java-gen",
+ tools: ["stats-log-api-gen"],
+ cmd: "$(location stats-log-api-gen) --java $(out) --module settings"
+ + " --javaPackage com.android.settings.core.instrumentation --javaClass SettingsStatsLog",
+ out: ["com/android/settings/core/instrumentation/SettingsStatsLog.java"],
+}
+
+java_library {
+ name: "statslog-settings",
+ srcs: [
+ ":statslog-settings-java-gen",
+ ],
+}
+
// Build the Settings APK
android_library {
name: "Settings-core",
@@ -37,6 +52,7 @@
"settings-log-bridge-protos-lite",
"contextualcards",
"settings-logtags",
+ "statslog-settings",
"zxing-core-1.7",
],