xref: /aosp_15_r20/frameworks/base/tests/Internal/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1*d57664e9SAndroid Build Coastguard Workerpackage {
2*d57664e9SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
3*d57664e9SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
4*d57664e9SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "frameworks_base_license"
5*d57664e9SAndroid Build Coastguard Worker    // to get the below license kinds:
6*d57664e9SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
7*d57664e9SAndroid Build Coastguard Worker    default_applicable_licenses: ["frameworks_base_license"],
8*d57664e9SAndroid Build Coastguard Worker}
9*d57664e9SAndroid Build Coastguard Worker
10*d57664e9SAndroid Build Coastguard Workerandroid_test {
11*d57664e9SAndroid Build Coastguard Worker    name: "InternalTests",
12*d57664e9SAndroid Build Coastguard Worker    proto: {
13*d57664e9SAndroid Build Coastguard Worker        type: "nano",
14*d57664e9SAndroid Build Coastguard Worker    },
15*d57664e9SAndroid Build Coastguard Worker    // Include some source files directly to be able to access package members
16*d57664e9SAndroid Build Coastguard Worker    srcs: ["src/**/*.java"],
17*d57664e9SAndroid Build Coastguard Worker    libs: ["android.test.runner.stubs.system"],
18*d57664e9SAndroid Build Coastguard Worker    static_libs: [
19*d57664e9SAndroid Build Coastguard Worker        "junit",
20*d57664e9SAndroid Build Coastguard Worker        "androidx.test.rules",
21*d57664e9SAndroid Build Coastguard Worker        "mockito-target-minus-junit4",
22*d57664e9SAndroid Build Coastguard Worker        "truth",
23*d57664e9SAndroid Build Coastguard Worker        "platform-test-annotations",
24*d57664e9SAndroid Build Coastguard Worker        "flickerlib-parsers",
25*d57664e9SAndroid Build Coastguard Worker        "perfetto_trace_java_protos",
26*d57664e9SAndroid Build Coastguard Worker        "flickerlib-trace_processor_shell",
27*d57664e9SAndroid Build Coastguard Worker        "ravenwood-junit",
28*d57664e9SAndroid Build Coastguard Worker    ],
29*d57664e9SAndroid Build Coastguard Worker    java_resource_dirs: ["res"],
30*d57664e9SAndroid Build Coastguard Worker    certificate: "platform",
31*d57664e9SAndroid Build Coastguard Worker    platform_apis: true,
32*d57664e9SAndroid Build Coastguard Worker    test_suites: ["device-tests"],
33*d57664e9SAndroid Build Coastguard Worker}
34*d57664e9SAndroid Build Coastguard Worker
35*d57664e9SAndroid Build Coastguard Worker// Run just ApplicationSharedMemoryTest with ABI override for 32 bits.
36*d57664e9SAndroid Build Coastguard Worker// This is to test that on systems that support multi-ABI,
37*d57664e9SAndroid Build Coastguard Worker// ApplicationSharedMemory works in app processes launched with a different ABI
38*d57664e9SAndroid Build Coastguard Worker// than that of the system processes.
39*d57664e9SAndroid Build Coastguard Workerandroid_test {
40*d57664e9SAndroid Build Coastguard Worker    name: "ApplicationSharedMemoryTest32",
41*d57664e9SAndroid Build Coastguard Worker    team: "trendy_team_system_performance",
42*d57664e9SAndroid Build Coastguard Worker    srcs: ["src/com/android/internal/os/ApplicationSharedMemoryTest.java"],
43*d57664e9SAndroid Build Coastguard Worker    libs: ["android.test.runner.stubs.system"],
44*d57664e9SAndroid Build Coastguard Worker    static_libs: [
45*d57664e9SAndroid Build Coastguard Worker        "junit",
46*d57664e9SAndroid Build Coastguard Worker        "androidx.test.rules",
47*d57664e9SAndroid Build Coastguard Worker        "platform-test-annotations",
48*d57664e9SAndroid Build Coastguard Worker    ],
49*d57664e9SAndroid Build Coastguard Worker    manifest: "ApplicationSharedMemoryTest32/AndroidManifest.xml",
50*d57664e9SAndroid Build Coastguard Worker    test_config: "ApplicationSharedMemoryTest32/AndroidTest.xml",
51*d57664e9SAndroid Build Coastguard Worker    certificate: "platform",
52*d57664e9SAndroid Build Coastguard Worker    platform_apis: true,
53*d57664e9SAndroid Build Coastguard Worker    test_suites: ["device-tests"],
54*d57664e9SAndroid Build Coastguard Worker}
55*d57664e9SAndroid Build Coastguard Worker
56*d57664e9SAndroid Build Coastguard Workerandroid_ravenwood_test {
57*d57664e9SAndroid Build Coastguard Worker    name: "InternalTestsRavenwood",
58*d57664e9SAndroid Build Coastguard Worker    static_libs: [
59*d57664e9SAndroid Build Coastguard Worker        "androidx.annotation_annotation",
60*d57664e9SAndroid Build Coastguard Worker        "androidx.test.rules",
61*d57664e9SAndroid Build Coastguard Worker        "platform-test-annotations",
62*d57664e9SAndroid Build Coastguard Worker    ],
63*d57664e9SAndroid Build Coastguard Worker    srcs: [
64*d57664e9SAndroid Build Coastguard Worker        "src/com/android/internal/graphics/ColorUtilsTest.java",
65*d57664e9SAndroid Build Coastguard Worker        "src/com/android/internal/util/ParcellingTests.java",
66*d57664e9SAndroid Build Coastguard Worker    ],
67*d57664e9SAndroid Build Coastguard Worker    auto_gen_config: true,
68*d57664e9SAndroid Build Coastguard Worker}
69*d57664e9SAndroid Build Coastguard Worker
70*d57664e9SAndroid Build Coastguard Workerjava_test_helper_library {
71*d57664e9SAndroid Build Coastguard Worker    name: "ApplicationSharedMemoryTestRule",
72*d57664e9SAndroid Build Coastguard Worker    srcs: ["src/com/android/internal/os/ApplicationSharedMemoryTestRule.java"],
73*d57664e9SAndroid Build Coastguard Worker    static_libs: ["junit"],
74*d57664e9SAndroid Build Coastguard Worker}
75