1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5java_defaults { 6 name: "BluetoothInstrumentationTestsDefaults", 7 defaults: ["framework-bluetooth-tests-defaults"], 8 9 min_sdk_version: "Tiramisu", 10 target_sdk_version: "current", 11 libs: [ 12 "android.test.base", 13 "android.test.mock", 14 "android.test.runner", 15 "javax.obex", 16 "libprotobuf-java-micro", 17 "telephony-common", 18 ], 19 20 static_libs: [ 21 "PlatformProperties", 22 "androidx.media_media", 23 "androidx.room_room-migration", 24 "androidx.room_room-runtime", 25 "androidx.room_room-testing", 26 "androidx.test.espresso.intents", 27 "androidx.test.ext.truth", 28 "androidx.test.rules", 29 "androidx.test.uiautomator_uiautomator", 30 "framework-bluetooth-pre-jarjar", 31 "gson", 32 "mockito-target", 33 "truth-prebuilt", 34 ], 35 36 asset_dirs: ["src/com/android/bluetooth/btservice/storage/schemas"], 37 38 // Include all test java files. 39 srcs: ["src/**/*.java"], 40 jacoco: { 41 include_filter: ["android.bluetooth.*"], 42 exclude_filter: [], 43 }, 44 platform_apis: true, 45 46 test_suites: [ 47 "device-tests", 48 "mts-bluetooth", 49 "automotive-tests", 50 ], 51 52 instrumentation_for: "Bluetooth", 53} 54 55android_test { 56 name: "BluetoothInstrumentationTests", 57 defaults: ["BluetoothInstrumentationTestsDefaults"], 58} 59 60android_test { 61 name: "GoogleBluetoothInstrumentationTests", 62 defaults: ["BluetoothInstrumentationTestsDefaults"], 63 test_config: "GoogleAndroidTest.xml", 64 instrumentation_target_package: "com.google.android.bluetooth", 65} 66