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", |
Brett Chabot | 8091d9e | 2019-02-26 14:52:33 -0800 | [diff] [blame] | 30 | "androidx.test.rules", |
Ian Kasprzak | df6b2f6 | 2019-03-08 18:49:31 -0800 | [diff] [blame] | 31 | "hamcrest-library", |
Colin Cross | 1d3245d | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 32 | "mockito-target-minus-junit4", |
| 33 | "platform-test-annotations", |
| 34 | "ShortcutManagerTestUtils", |
| 35 | "truth-prebuilt", |
| 36 | "testables", |
| 37 | "testng", |
| 38 | "ub-uiautomator", |
| 39 | "platformprotosnano", |
| 40 | "servicestests-utils", |
atrost | 7e6060f | 2019-07-24 14:12:48 +0100 | [diff] [blame^] | 41 | "xml-writer-device-lib", |
Colin Cross | 1d3245d | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 42 | ], |
| 43 | |
| 44 | aidl: { |
| 45 | local_include_dirs: ["aidl"], |
| 46 | }, |
| 47 | |
| 48 | libs: [ |
| 49 | "android.hidl.manager-V1.0-java", |
| 50 | "android.test.mock", |
| 51 | "android.test.base", |
| 52 | "android.test.runner", |
| 53 | ], |
| 54 | |
| 55 | platform_apis: true, |
| 56 | test_suites: ["device-tests"], |
| 57 | |
| 58 | certificate: "platform", |
| 59 | |
| 60 | // These are not normally accessible from apps so they must be explicitly included. |
| 61 | jni_libs: [ |
| 62 | "libbacktrace", |
| 63 | "libbase", |
| 64 | "libbinder", |
| 65 | "libbinderthreadstate", |
| 66 | "libc++", |
| 67 | "libcutils", |
| 68 | "liblog", |
| 69 | "liblzma", |
| 70 | "libnativehelper", |
Colin Cross | 1d3245d | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 71 | "libui", |
Elliott Hughes | fc885bb | 2018-12-12 12:32:15 -0800 | [diff] [blame] | 72 | "libunwindstack", |
Colin Cross | 1d3245d | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 73 | "libutils", |
Lorenzo Colitti | fe0c38a | 2019-05-21 19:45:09 +0900 | [diff] [blame] | 74 | "netd_aidl_interface-V2-cpp", |
Colin Cross | 1d3245d | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 75 | ], |
| 76 | |
| 77 | dxflags: ["--multi-dex"], |
| 78 | |
| 79 | optimize: { |
| 80 | enabled: false, |
| 81 | }, |
| 82 | } |
| 83 | |
| 84 | java_library { |
| 85 | name: "servicestests-utils", |
| 86 | srcs: [ |
| 87 | "utils/**/*.java", |
| 88 | ], |
| 89 | static_libs: [ |
Brett Chabot | 8091d9e | 2019-02-26 14:52:33 -0800 | [diff] [blame] | 90 | "androidx.test.rules", |
Colin Cross | 1d3245d | 2018-11-20 09:46:47 -0800 | [diff] [blame] | 91 | "mockito-target-minus-junit4", |
| 92 | ], |
| 93 | libs: [ |
| 94 | "android.test.runner", |
| 95 | ], |
| 96 | } |
| 97 | |
| 98 | filegroup { |
| 99 | name: "servicestests-SuspendTestApp-files", |
| 100 | srcs: [ |
| 101 | "src/com/android/server/pm/SuspendPackagesTest.java", |
| 102 | ], |
| 103 | } |