1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5java_defaults { 6 name: "BluetoothInstrumentationTestsDefaults", 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 "PlatformProperties", 30 "TestParameterInjector", 31 "android.media.audio-aconfig-exported-java", 32 "androidx.media_media", 33 "androidx.room_room-migration", 34 "androidx.room_room-runtime", 35 "androidx.room_room-testing", 36 "androidx.test.espresso.intents", 37 "androidx.test.ext.truth", 38 "androidx.test.rules", 39 "androidx.test.uiautomator_uiautomator", 40 "bluetooth_flags_java_lib", 41 "com.android.sysprop.bluetooth", 42 "flag-junit", 43 "framework-bluetooth-pre-jarjar", 44 "gson", 45 "mmslib", 46 "mockito-target", 47 "modules-utils-handlerexecutor", 48 "platform-parametric-runner-lib", 49 "platform-test-annotations", 50 "truth", 51 ], 52 53 jarjar_rules: ":bluetooth-jarjar-rules", 54 55 // Include all test java files. 56 srcs: [ 57 "**/*.java", 58 ":bluetooth_test_looper", 59 ], 60 jacoco: { 61 include_filter: ["android.bluetooth.*"], 62 exclude_filter: [], 63 }, 64 65 test_suites: [ 66 "automotive-general-tests", 67 "general-tests", 68 "mts-bluetooth", 69 "mts-bt", 70 ], 71 72 instrumentation_for: "Bluetooth", 73} 74 75android_test { 76 name: "BluetoothInstrumentationTests", 77 defaults: ["BluetoothInstrumentationTestsDefaults"], 78} 79 80android_test { 81 name: "GoogleBluetoothInstrumentationTests", 82 defaults: ["BluetoothInstrumentationTestsDefaults"], 83 test_config: "GoogleAndroidTest.xml", 84 instrumentation_target_package: "com.google.android.bluetooth", 85} 86