Colin Cross | 1d3245d | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 1 | //######################################################################## |
| 2 | // Build FrameworksServicesTests package |
| 3 | //######################################################################## |
| 4 | |
| 5 | android_test { |
| 6 | name: "FrameworksServicesTests", |
| 7 | |
| 8 | // Include all test java files. |
| 9 | srcs: [ |
| 10 | "src/**/*.java", |
| 11 | |
| 12 | "aidl/com/android/servicestests/aidl/INetworkStateObserver.aidl", |
| 13 | "aidl/com/android/servicestests/aidl/ICmdReceiverService.aidl", |
| 14 | |
| 15 | "test-apps/JobTestApp/src/**/*.java", |
| 16 | |
| 17 | "test-apps/SuspendTestApp/src/**/*.java", |
| 18 | ], |
| 19 | static_libs: [ |
| 20 | "frameworks-base-testutils", |
| 21 | "services.accessibility", |
| 22 | "services.appwidget", |
| 23 | "services.autofill", |
| 24 | "services.backup", |
| 25 | "services.core", |
| 26 | "services.devicepolicy", |
| 27 | "services.net", |
| 28 | "services.usage", |
| 29 | "guava", |
| 30 | "android-support-test", |
| 31 | "mockito-target-minus-junit4", |
| 32 | "platform-test-annotations", |
| 33 | "ShortcutManagerTestUtils", |
| 34 | "truth-prebuilt", |
| 35 | "testables", |
| 36 | "testng", |
| 37 | "ub-uiautomator", |
| 38 | "platformprotosnano", |
| 39 | "servicestests-utils", |
| 40 | ], |
| 41 | |
| 42 | aidl: { |
| 43 | local_include_dirs: ["aidl"], |
| 44 | }, |
| 45 | |
| 46 | libs: [ |
| 47 | "android.hidl.manager-V1.0-java", |
| 48 | "android.test.mock", |
| 49 | "android.test.base", |
| 50 | "android.test.runner", |
| 51 | ], |
| 52 | |
| 53 | platform_apis: true, |
| 54 | test_suites: ["device-tests"], |
| 55 | |
| 56 | certificate: "platform", |
| 57 | |
| 58 | // These are not normally accessible from apps so they must be explicitly included. |
| 59 | jni_libs: [ |
| 60 | "libbacktrace", |
| 61 | "libbase", |
| 62 | "libbinder", |
| 63 | "libbinderthreadstate", |
| 64 | "libc++", |
| 65 | "libcutils", |
| 66 | "liblog", |
| 67 | "liblzma", |
| 68 | "libnativehelper", |
Colin Cross | 1d3245d | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 69 | "libui", |
Elliott Hughes | fc885bb | 2018-12-12 12:32:15 -0800 | [diff] [blame^] | 70 | "libunwindstack", |
Colin Cross | 1d3245d | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 71 | "libutils", |
Luke Huang | 734c4ce | 2018-11-23 17:19:22 +0800 | [diff] [blame] | 72 | "netd_aidl_interface-cpp", |
Colin Cross | 1d3245d | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 73 | ], |
| 74 | |
| 75 | dxflags: ["--multi-dex"], |
| 76 | |
| 77 | optimize: { |
| 78 | enabled: false, |
| 79 | }, |
| 80 | } |
| 81 | |
| 82 | java_library { |
| 83 | name: "servicestests-utils", |
| 84 | srcs: [ |
| 85 | "utils/**/*.java", |
| 86 | ], |
| 87 | static_libs: [ |
| 88 | "android-support-test", |
| 89 | "mockito-target-minus-junit4", |
| 90 | ], |
| 91 | libs: [ |
| 92 | "android.test.runner", |
| 93 | ], |
| 94 | } |
| 95 | |
| 96 | filegroup { |
| 97 | name: "servicestests-SuspendTestApp-files", |
| 98 | srcs: [ |
| 99 | "src/com/android/server/pm/SuspendPackagesTest.java", |
| 100 | ], |
| 101 | } |