Limit visibility of ART libraries, binaries, and headers.

This simply records the visibilities necessary to keep things working - more
work is required to vet them.

Test: m
Bug: 133140750
Change-Id: I776d6b79c4c2b214556070c850ae5321d5f8b949
diff --git a/build/Android.bp b/build/Android.bp
index 605d468..45564f4 100644
--- a/build/Android.bp
+++ b/build/Android.bp
@@ -58,6 +58,12 @@
     // Additional flags are computed by art.go
 
     name: "art_defaults",
+
+    // This is the default visibility for the //art package, but we repeat it
+    // here so that it gets merged with other visibility rules in modules
+    // extending these defaults.
+    visibility: ["//art:__subpackages__"],
+
     cflags: [
         // Base set of cflags used by all things ART.
         "-fno-rtti",
@@ -221,6 +227,7 @@
 
 art_debug_defaults {
     name: "art_debug_defaults",
+    visibility: ["//art:__subpackages__"],
     cflags: [
         "-DDYNAMIC_ANNOTATIONS_ENABLED=1",
         "-DVIXL_DEBUG",