Limit protolog to services.core-sources-am-wm
protolog is applied to window manager and activity manager only in
frameworks/base/services and `argument list too long` may be raised
during compile time if otherwise (eg. applying to the whole
frameworks/base)
Bug: 173335291
Test: m -j && flash device
Change-Id: I68a3ea431717f3d52a62f31baf6b988cb462557d
diff --git a/services/Android.bp b/services/Android.bp
index eb7b72e..1101e2a 100644
--- a/services/Android.bp
+++ b/services/Android.bp
@@ -9,6 +9,7 @@
name: "services-all-sources",
srcs: [
":services.core-sources",
+ ":services.core-sources-am-wm",
":services.accessibility-sources",
":services.appprediction-sources",
":services.appwidget-sources",
diff --git a/services/core/Android.bp b/services/core/Android.bp
index 069a5ea..fec7ac0 100644
--- a/services/core/Android.bp
+++ b/services/core/Android.bp
@@ -1,7 +1,20 @@
filegroup {
+ name: "services.core-sources-am-wm",
+ srcs: [
+ "java/com/android/server/am/**/*.java",
+ "java/com/android/server/wm/**/*.java",
+ ],
+ path: "java",
+ visibility: ["//frameworks/base/services"],
+}
+
+filegroup {
name: "services.core-sources",
srcs: ["java/**/*.java"],
- exclude_srcs: [":connectivity-service-srcs"],
+ exclude_srcs: [
+ ":connectivity-service-srcs",
+ ":services.core-sources-am-wm"
+ ],
path: "java",
visibility: [
"//frameworks/base/services",
@@ -13,7 +26,7 @@
name: "services.core.protologsrc",
srcs: [
":protolog-groups",
- ":services.core-sources",
+ ":services.core-sources-am-wm",
],
tools: ["protologtool"],
cmd: "$(location protologtool) transform-protolog-calls " +
@@ -23,7 +36,7 @@
"--loggroups-class com.android.internal.protolog.ProtoLogGroup " +
"--loggroups-jar $(location :protolog-groups) " +
"--output-srcjar $(out) " +
- "$(locations :services.core-sources)",
+ "$(locations :services.core-sources-am-wm)",
out: ["services.core.protolog.srcjar"],
}
@@ -31,7 +44,7 @@
name: "generate-protolog.json",
srcs: [
":protolog-groups",
- ":services.core-sources",
+ ":services.core-sources-am-wm",
],
tools: ["protologtool"],
cmd: "$(location protologtool) generate-viewer-config " +
@@ -39,7 +52,7 @@
"--loggroups-class com.android.internal.protolog.ProtoLogGroup " +
"--loggroups-jar $(location :protolog-groups) " +
"--viewer-conf $(out) " +
- "$(locations :services.core-sources)",
+ "$(locations :services.core-sources-am-wm)",
out: ["services.core.protolog.json"],
}
@@ -63,6 +76,7 @@
name: "services.core.unboosted",
defaults: ["platform_service_defaults"],
srcs: [
+ ":services.core-sources",
":services.core.protologsrc",
":dumpstate_aidl",
":framework_native_aidl",