Home | History | Annotate | Download | only in servicestests
      1 //########################################################################
      2 // Build FrameworksServicesTests package
      3 //########################################################################
      4 
      5 android_test {
      6     name: "FrameworksServicesTests",
      7 
      8     // Include all test java files.
      9     srcs: [
     10         "src/**/*.java",
     11 
     12         "aidl/com/android/servicestests/aidl/INetworkStateObserver.aidl",
     13         "aidl/com/android/servicestests/aidl/ICmdReceiverService.aidl",
     14 
     15         "test-apps/JobTestApp/src/**/*.java",
     16 
     17         "test-apps/SuspendTestApp/src/**/*.java",
     18     ],
     19     static_libs: [
     20         "frameworks-base-testutils",
     21         "services.accessibility",
     22         "services.appwidget",
     23         "services.autofill",
     24         "services.backup",
     25         "services.core",
     26         "services.devicepolicy",
     27         "services.net",
     28         "services.usage",
     29         "guava",
     30         "androidx.test.runner",
     31         "androidx.test.rules",
     32         "mockito-target-minus-junit4",
     33         "platform-test-annotations",
     34         "ShortcutManagerTestUtils",
     35         "truth-prebuilt",
     36         "testables",
     37         "testng",
     38         "ub-uiautomator",
     39         "platformprotosnano",
     40         "hamcrest-library",
     41         "servicestests-utils",
     42     ],
     43 
     44     aidl: {
     45         local_include_dirs: ["aidl"],
     46     },
     47 
     48     libs: [
     49         "android.hidl.manager-V1.0-java",
     50         "android.hardware.tv.cec-V1.0-java",
     51         "android.test.mock",
     52         "android.test.base",
     53         "android.test.runner",
     54     ],
     55 
     56     platform_apis: true,
     57     test_suites: ["device-tests"],
     58 
     59     certificate: "platform",
     60 
     61     // These are not normally accessible from apps so they must be explicitly included.
     62     jni_libs: [
     63         "libbacktrace",
     64         "libbase",
     65         "libbinder",
     66         "libbinderthreadstate",
     67         "libc++",
     68         "libcutils",
     69         "liblog",
     70         "liblzma",
     71         "libnativehelper",
     72         "libpsi",
     73         "libui",
     74         "libunwindstack",
     75         "libutils",
     76         "netd_aidl_interface-V2-cpp",
     77     ],
     78 
     79     dxflags: ["--multi-dex"],
     80 
     81     optimize: {
     82         enabled: false,
     83     },
     84 }
     85 
     86 java_library {
     87     name: "servicestests-utils",
     88     srcs: [
     89         "utils/**/*.java",
     90     ],
     91     static_libs: [
     92         "junit",
     93         "mockito-target-minus-junit4",
     94     ],
     95     libs: [
     96         "android.test.runner",
     97     ],
     98 }
     99 
    100 filegroup {
    101     name: "servicestests-SuspendTestApp-files",
    102     srcs: [
    103         "src/com/android/server/pm/SuspendPackagesTest.java",
    104     ],
    105 }
    106