1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5java_defaults {
6    name: "BluetoothInstrumentationTestsDefaults",
7    defaults: [
8        "bluetooth_errorprone_rules",
9        "framework-bluetooth-tests-defaults",
10    ],
11
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        "javax.obex.stubs",
19        "libprotobuf-java-micro",
20        "telephony-common",
21    ],
22
23    static_libs: [
24        "PlatformProperties",
25        "android.media.audio-aconfig-exported-java",
26        "androidx.media_media",
27        "androidx.room_room-migration",
28        "androidx.room_room-runtime",
29        "androidx.room_room-testing",
30        "androidx.test.espresso.intents",
31        "androidx.test.ext.truth",
32        "androidx.test.rules",
33        "androidx.test.uiautomator_uiautomator",
34        "bluetooth_flags_java_lib",
35        "com.android.sysprop.bluetooth",
36        "flag-junit",
37        "framework-bluetooth-pre-jarjar",
38        "frameworks-base-testutils",
39        "gson",
40        "mockito-target",
41        "platform-parametric-runner-lib",
42        "platform-test-annotations",
43        "truth",
44    ],
45
46    jarjar_rules: ":bluetooth-jarjar-rules",
47    asset_dirs: ["src/com/android/bluetooth/btservice/storage/schemas"],
48
49    // Include all test java files.
50    srcs: ["src/**/*.java"],
51    jacoco: {
52        include_filter: ["android.bluetooth.*"],
53        exclude_filter: [],
54    },
55    platform_apis: true,
56
57    test_suites: [
58        "automotive-tests",
59        "general-tests",
60        "mts-bluetooth",
61    ],
62
63    instrumentation_for: "Bluetooth",
64}
65
66android_test {
67    name: "BluetoothInstrumentationTests",
68    defaults: ["BluetoothInstrumentationTestsDefaults"],
69}
70
71android_test {
72    name: "GoogleBluetoothInstrumentationTests",
73    defaults: ["BluetoothInstrumentationTestsDefaults"],
74    test_config: "GoogleAndroidTest.xml",
75    instrumentation_target_package: "com.google.android.bluetooth",
76}
77