diff --git a/framework-t/Android.bp b/framework-t/Android.bp index 1ce96eed54..9c8b359238 100644 --- a/framework-t/Android.bp +++ b/framework-t/Android.bp @@ -19,6 +19,9 @@ package { default_applicable_licenses: ["Android-Apache-2.0"], } +// Include build rules from Sources.bp +build = ["Sources.bp"] + java_defaults { name: "enable-framework-connectivity-t-targets", enabled: true, diff --git a/framework-t/Sources.bp b/framework-t/Sources.bp index bc27852857..53b4163b93 100644 --- a/framework-t/Sources.bp +++ b/framework-t/Sources.bp @@ -14,11 +14,6 @@ // limitations under the License. // -package { - // See: http://go/android-license-faq - default_applicable_licenses: ["Android-Apache-2.0"], -} - // NetworkStats related libraries. filegroup { @@ -46,23 +41,10 @@ filegroup { ], } -filegroup { - name: "framework-connectivity-netstats-aidl-export-sources", - srcs: [ - "aidl-export/android/net/NetworkStats.aidl", - "aidl-export/android/net/NetworkTemplate.aidl", - ], - path: "aidl-export", - visibility: [ - "//visibility:private", - ], -} - filegroup { name: "framework-connectivity-netstats-sources", srcs: [ ":framework-connectivity-netstats-internal-sources", - ":framework-connectivity-netstats-aidl-export-sources", ], visibility: [ "//visibility:private", @@ -83,22 +65,10 @@ filegroup { ], } -filegroup { - name: "framework-connectivity-nsd-aidl-export-sources", - srcs: [ - "aidl-export/android/net/nsd/*.aidl", - ], - path: "aidl-export", - visibility: [ - "//visibility:private", - ], -} - filegroup { name: "framework-connectivity-nsd-sources", srcs: [ ":framework-connectivity-nsd-internal-sources", - ":framework-connectivity-nsd-aidl-export-sources", ], visibility: [ "//visibility:private", diff --git a/service-t/Android.bp b/service-t/Android.bp index 8851554751..50dd995ef4 100644 --- a/service-t/Android.bp +++ b/service-t/Android.bp @@ -19,6 +19,9 @@ package { default_applicable_licenses: ["Android-Apache-2.0"], } +// Include build rules from Sources.bp +build = ["Sources.bp"] + // This builds T+ services depending on framework-connectivity-t // hidden symbols separately from the S+ services, to ensure that S+ // services cannot accidentally depend on T+ hidden symbols from diff --git a/service-t/Sources.bp b/service-t/Sources.bp index 4b799c599b..04866fb9cc 100644 --- a/service-t/Sources.bp +++ b/service-t/Sources.bp @@ -14,11 +14,6 @@ // limitations under the License. // -package { - // See: http://go/android-license-faq - default_applicable_licenses: ["Android-Apache-2.0"], -} - // NetworkStats related libraries. filegroup { diff --git a/tests/unit/java/com/android/server/net/IpConfigStoreTest.java b/tests/unit/java/com/android/server/net/IpConfigStoreTest.java index ad0be5862c..e9a53096b7 100644 --- a/tests/unit/java/com/android/server/net/IpConfigStoreTest.java +++ b/tests/unit/java/com/android/server/net/IpConfigStoreTest.java @@ -105,7 +105,7 @@ public class IpConfigStoreTest { IpConfigStore store = new IpConfigStore(writer); store.writeIpConfigurations("file/path/not/used/", expectedNetworks); - InputStream in = new ByteArrayInputStream(writer.byteStream.toByteArray()); + InputStream in = new ByteArrayInputStream(writer.mByteStream.toByteArray()); ArrayMap actualNetworks = IpConfigStore.readIpConfigurations(in); assertNotNull(actualNetworks); assertEquals(2, actualNetworks.size());