1//######################################################################## 2// Build FrameworksUtilTests package 3//######################################################################## 4 5package { 6 // See: http://go/android-license-faq 7 // A large-scale-change added 'default_applicable_licenses' to import 8 // all of the 'license_kinds' from "frameworks_base_license" 9 // to get the below license kinds: 10 // SPDX-license-identifier-Apache-2.0 11 default_applicable_licenses: ["frameworks_base_license"], 12} 13 14android_test { 15 name: "FrameworksUtilTests", 16 17 // We only want this apk build for tests. 18 19 // Include all test java files. 20 srcs: [ 21 "src/**/*.java", 22 "src/android/util/IRemoteMemoryIntArray.aidl", 23 ], 24 25 jni_libs: [ 26 "libmemoryintarraytest", 27 "libcutils", 28 "libc++", 29 ], 30 31 static_libs: [ 32 "androidx.test.rules", 33 "frameworks-base-testutils", 34 "mockito-target-minus-junit4", 35 "androidx.test.ext.junit", 36 "truth", 37 "servicestests-utils", 38 "ravenwood-junit", 39 ], 40 41 libs: [ 42 "android.test.runner", 43 "android.test.base", 44 "android.test.mock", 45 ], 46 47 platform_apis: true, 48 49 certificate: "platform", 50 51 test_suites: ["device-tests"], 52 53} 54 55android_ravenwood_test { 56 name: "FrameworksUtilTestsRavenwood", 57 libs: [ 58 "android.test.mock", 59 ], 60 static_libs: [ 61 "androidx.annotation_annotation", 62 "androidx.test.rules", 63 "frameworks-base-testutils", 64 "servicestests-utils", 65 ], 66 srcs: [ 67 "src/android/util/IRemoteMemoryIntArray.aidl", 68 "src/android/util/**/*.java", 69 "src/com/android/internal/util/**/*.java", 70 ], 71 auto_gen_config: true, 72} 73