1//######################################################################## 2// Build FrameworksServicesTests package 3//######################################################################## 4 5android_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.contentsuggestions", 26 "services.core", 27 "services.devicepolicy", 28 "services.net", 29 "services.usage", 30 "guava", 31 "androidx.test.core", 32 "androidx.test.runner", 33 "androidx.test.rules", 34 "mockito-target-minus-junit4", 35 "platform-test-annotations", 36 "ShortcutManagerTestUtils", 37 "truth-prebuilt", 38 "testables", 39 "testng", 40 "ub-uiautomator", 41 "platformprotosnano", 42 "hamcrest-library", 43 "servicestests-utils", 44 ], 45 46 aidl: { 47 local_include_dirs: ["aidl"], 48 }, 49 50 libs: [ 51 "android.hidl.manager-V1.0-java", 52 "android.hardware.tv.cec-V1.0-java", 53 "android.test.mock", 54 "android.test.base", 55 "android.test.runner", 56 ], 57 58 platform_apis: true, 59 test_suites: ["device-tests"], 60 61 certificate: "platform", 62 63 // These are not normally accessible from apps so they must be explicitly included. 64 jni_libs: [ 65 "libbacktrace", 66 "libbase", 67 "libbinder", 68 "libc++", 69 "libcutils", 70 "liblog", 71 "liblzma", 72 "libnativehelper", 73 "libpsi", 74 "libui", 75 "libunwindstack", 76 "libutils", 77 "netd_aidl_interface-cpp", 78 ], 79 80 dxflags: ["--multi-dex"], 81 82 optimize: { 83 enabled: false, 84 }, 85 86 data: [":JobTestApp"], 87} 88 89java_library { 90 name: "servicestests-utils", 91 srcs: [ 92 "utils/**/*.java", 93 ], 94 static_libs: [ 95 "junit", 96 "mockito-target-minus-junit4", 97 ], 98 libs: [ 99 "android.test.runner", 100 ], 101} 102 103filegroup { 104 name: "servicestests-SuspendTestApp-files", 105 srcs: [ 106 "src/com/android/server/pm/SuspendPackagesTest.java", 107 ], 108} 109