Add package filter for system_server stubs

Should prevent accidental addition of APIs outside com.android,
which is where we want these APIs to be.

Bug: 149293194
Test: m update-api
Change-Id: I144ce6dbfe524106fc7de87318f66390c31b45af
Merged-In: I144ce6dbfe524106fc7de87318f66390c31b45af
diff --git a/apex/Android.bp b/apex/Android.bp
index 8ff7901..0b9802d 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -143,6 +143,7 @@
     name: "service-module-stubs-srcs-defaults",
     args: mainline_service_stubs_args,
     installable: false,
+    filter_packages: ["com.android."],
     check_api: {
         current: {
             api_file: "api/current.txt",
diff --git a/services/Android.bp b/services/Android.bp
index 90f98e2..8af642c 100644
--- a/services/Android.bp
+++ b/services/Android.bp
@@ -116,6 +116,7 @@
         " --hide DeprecationMismatch" +
         " --hide HiddenTypedefConstant",
     visibility: ["//visibility:private"],
+    filter_packages: ["com.android."],
     check_api: {
         current: {
             api_file: "api/current.txt",