Set default visibility to private

Takes advantage of a new mechanism for specifying the default visibility
of all modules in a package to restrict the visibility of libcore
modules as much as possible:
  package {default_visibility: ["//visibility:private"]}

Bug: 133290645
Bug: 134379140
Test: m droid
Change-Id: I2ba1a6131993d218fd65cd4a8f0ad29a7a83df14
diff --git a/Android.bp b/Android.bp
index e57045f..268ea18 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,3 +1,21 @@
+// Copyright (C) 2017 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_visibility: ["//visibility:private"],
+}
+
 build = [
     "JavaLibrary.bp",
     "NativeCode.bp",
@@ -5,6 +23,9 @@
 
 genrule {
     name: "notices-for-framework-stubs",
+    visibility: [
+        "//development/build",
+    ],
     tool_files: [
         "NOTICE",
         "ojluni/NOTICE",