summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2019-07-16 12:39:15 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-07-16 12:39:15 -0700
commit87aa160a30a831b0c7aea66084241d272bade3b6 (patch)
tree5ccedc69e914f5d108ad20277cf522492f5f98ba
parent45b3fa3febc80a0c71fdea6c9e1924dc5de0e52c (diff)
parent10651f8690b0f6da8485bdbf0ff32b417504b396 (diff)
downloadapache-harmony-87aa160a30a831b0c7aea66084241d272bade3b6.tar.gz
Merge "Set default visibility to private"
am: 10651f8690 Change-Id: I9bc4a6cf571fac91cdd2a8d9c305b18b0d76998c
-rw-r--r--Android.bp21
-rw-r--r--jdwp/Android.bp6
2 files changed, 27 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 55fabc9..362ad39 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,5 +1,26 @@
+// Copyright (C) 2011 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"],
+}
+
java_test {
name: "apache-harmony-tests",
+ visibility: [
+ "//cts/tests/libcore/luni",
+ ],
hostdex: true,
srcs: [
"beans/src/test/java/**/*.java",
diff --git a/jdwp/Android.bp b/jdwp/Android.bp
index 4f921ef..999af88 100644
--- a/jdwp/Android.bp
+++ b/jdwp/Android.bp
@@ -9,6 +9,12 @@ java_genrule {
java_test {
name: "apache-harmony-jdwp-tests",
+ visibility: [
+ "//cts/tests/jdwp",
+ // The preload2 tool in framework uses the JDWP tests from Apache Harmony, for
+ // convenience (and to not depend on internal JDK APIs).
+ "//frameworks/base/tools/preload2",
+ ],
hostdex: true,
host_supported: true,
srcs: ["src/test/java/**/*.java"],