summaryrefslogtreecommitdiff
path: root/test-mock
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2019-10-31 20:38:47 +0900
committerJiyong Park <jiyong@google.com>2019-10-31 20:38:47 +0900
commit00ea0b1f91210a3e195a2106d18589a0048c95a3 (patch)
treee0e7d2d1a043914e020b1430fdc7843a10d2c66f /test-mock
parent47db7adcca3ebfd5fd3c0cded7b33d65fbad6480 (diff)
android.test.mock is built with much less number of sources
android.test.mock is built with its own sources plus a small number of framework sources that provides private APIs that the library's APIs have references to. Previously, it was built with the entire framework sources which is too many and should have slowed the build performance. Bug: 141149570 Test: m Change-Id: I165ffdfc053a71b323ef7058651d5908df06870f
Diffstat (limited to 'test-mock')
-rw-r--r--test-mock/Android.bp10
1 files changed, 8 insertions, 2 deletions
diff --git a/test-mock/Android.bp b/test-mock/Android.bp
index 81b1e49ffed1..0b5d4460612d 100644
--- a/test-mock/Android.bp
+++ b/test-mock/Android.bp
@@ -19,8 +19,14 @@
java_sdk_library {
name: "android.test.mock",
- srcs: ["src/**/*.java"],
- api_srcs: [":framework-all-sources"],
+ srcs: [
+ "src/**/*.java",
+ // Note: Below are NOT APIs of this library. We only take APIs under
+ // the android.test.mock package. They however provide private APIs that
+ // android.test.mock APIs references to.
+ ":framework-core-sources-for-test-mock",
+ ":framework_native_aidl",
+ ],
libs: ["framework-all"],
api_packages: [