1//######################################################################## 2// Build WmTests package 3//######################################################################## 4 5android_test { 6 name: "WmTests", 7 8 // We only want this apk build for tests. 9 10 // Include all test java files. 11 srcs: [ 12 "src/**/*.java", 13 ], 14 15 static_libs: [ 16 "frameworks-base-testutils", 17 "services.core", 18 "androidx.test.runner", 19 "androidx.test.rules", 20 "mockito-target-extended-minus-junit4", 21 "platform-test-annotations", 22 "servicestests-utils", 23 "truth-prebuilt", 24 "testables", 25 "ub-uiautomator", 26 "hamcrest-library", 27 ], 28 29 libs: [ 30 "android.test.mock", 31 "android.test.base", 32 "android.test.runner", 33 ], 34 35 // These are not normally accessible from apps so they must be explicitly included. 36 jni_libs: [ 37 "libdexmakerjvmtiagent", 38 "libstaticjvmtiagent", 39 ], 40 41 platform_apis: true, 42 test_suites: ["device-tests"], 43 44 certificate: "platform", 45 46 dxflags: ["--multi-dex"], 47 48 optimize: { 49 enabled: false, 50 }, 51 52} 53