src_frameworkcommon: Fix filegroup base path
The filegroups here were set up without an explicit path. As a result,
the files within were incorrectly considered part of the
"src_frameworkcommon.android.net.utils" package by droidstubs'
filter_packages filter (and thus not fed into droidstubs).
This CL fixes the filegroups by adding an explicit path to where the
package tree starts for each of them, such that the path-based
package filter in droidstubs can work correctly.
Also @hide the classes which otherwise would now be considered exposed
API by droidstubs.
Bug: 151160048
Test: make checkapi
Change-Id: I969fc9846294a42554233cffda725797ee0185f4
diff --git a/staticlibs/Android.bp b/staticlibs/Android.bp
index 8f845bc..d29ba36 100644
--- a/staticlibs/Android.bp
+++ b/staticlibs/Android.bp
@@ -23,9 +23,14 @@
// rules file. Otherwise, it will end up on the boot classpath and other modules will not be able
// to provide their own copy.
+// Note: all filegroups here must have the right path attribute because otherwise, if they are
+// included in the bootclasspath, they could incorrectly be included in the SDK documentation even
+// though they are not in the current.txt files.
+
filegroup {
name: "net-utils-framework-common-srcs",
srcs: ["src_frameworkcommon/**/*.java"],
+ path: "src_frameworkcommon",
visibility: ["//frameworks/base"],
}
@@ -74,6 +79,7 @@
// Any class here *must* have a corresponding jarjar rule in the telephony build rules.
"src_servicescommon/android/net/NetworkFactory.java",
],
+ path: "src_servicescommon",
visibility: [
"//frameworks/opt/telephony",
],
@@ -88,6 +94,7 @@
"src_frameworkcommon/android/net/util/nsd/DnsSdTxtRecord.java",
"src_frameworkcommon/android/net/util/MacAddressUtils.java",
],
+ path: "src_frameworkcommon",
visibility: [
"//frameworks/base",
],