1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5android_test { 6 name: "BluetoothJavaUnitTests", 7 defaults: [ 8 "bluetooth_errorprone_rules", 9 ], 10 11 sdk_version: "module_current", 12 min_sdk_version: "Tiramisu", 13 target_sdk_version: "current", 14 libs: [ 15 "android.test.base.stubs", 16 "android.test.mock.stubs", 17 "android.test.runner.stubs", 18 "framework-annotations-lib", 19 "framework-configinfrastructure.stubs.module_lib", 20 "framework-connectivity.stubs.module_lib", 21 "framework-location.stubs.module_lib", 22 "framework-mediaprovider.stubs.module_lib", 23 "framework-tethering.stubs.module_lib", 24 "javax.obex.stubs", 25 "libprotobuf-java-micro", 26 ], 27 28 static_libs: [ 29 "BluetoothLib", 30 "PlatformProperties", 31 "TestParameterInjector", 32 "android.media.audio-aconfig-exported-java", 33 "androidx.media_media", 34 "androidx.room_room-migration", 35 "androidx.room_room-runtime", 36 "androidx.room_room-testing", 37 "androidx.test.espresso.intents", 38 "androidx.test.ext.junit", 39 "androidx.test.ext.truth", 40 "androidx.test.rules", 41 "androidx.test.uiautomator_uiautomator", 42 "bluetooth_flags_java_lib", 43 "com.android.sysprop.bluetooth", 44 "flag-junit", 45 "framework-bluetooth-pre-jarjar", 46 "gson", 47 "guava-android-testlib", 48 "mmslib", 49 "mockito-kotlin2", 50 "mockito-target-extended", 51 "modules-utils-handlerexecutor", 52 "platform-parametric-runner-lib", 53 "platform-test-annotations", 54 "truth", 55 ], 56 57 // these are needed for Extended Mockito 58 jni_libs: [ 59 "libdexmakerjvmtiagent", 60 "libstaticjvmtiagent", 61 ], 62 63 jarjar_rules: ":bluetooth-jarjar-rules", 64 asset_dirs: ["src/com/android/bluetooth/btservice/storage/schemas"], 65 66 // Include all test java and kotlin files. 67 srcs: [ 68 "src/**/*.java", 69 "src/**/*.kt", 70 ], 71 jacoco: { 72 include_filter: ["com.android.bluetooth.*"], 73 exclude_filter: [], 74 }, 75 76 test_suites: [ 77 "automotive-general-tests", 78 "general-tests", 79 "mts-bluetooth", 80 "mts-bt", 81 ], 82} 83 84// TODO delete this filegroup to replace by a shadow looper 85filegroup { 86 name: "bluetooth_test_looper", 87 srcs: ["src/com/android/bluetooth/TestLooper.java"], 88 visibility: ["//packages/modules/Bluetooth/android/app/tests:__subpackages__"], 89} 90