1// Copyright (C) 2017 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_library_shared {
20    name: "liblmkhelper",
21    srcs: ["jni/alloc_stress_activity.cpp"],
22    cflags: [
23        "-Wall",
24        "-Werror",
25        "-Wthread-safety",
26    ],
27    header_libs: ["jni_headers"],
28    shared_libs: ["liblog"],
29    stl: "c++_static",
30    sdk_version: "current",
31}
32
33android_test_helper_app {
34    name: "CtsStatsdApp",
35    defaults: ["cts_defaults"],
36    platform_apis: true,
37    min_sdk_version: "24",
38    srcs: [
39        "src/**/*.java",
40        ":statslog-statsd-cts-java-gen",
41    ],
42    libs: [
43        "android.test.runner.stubs.system",
44        "junit",
45        "org.apache.http.legacy.stubs.system",
46    ],
47    privileged: true,
48    static_libs: [
49        "ctstestrunner-axt",
50        "compatibility-device-util-axt",
51        "androidx.legacy_legacy-support-v4",
52        "androidx.test.rules",
53        "cts-net-utils",
54        "BlobStoreTestUtils",
55    ],
56    jni_libs: ["liblmkhelper"],
57    compile_multilib: "both",
58}
59
60genrule {
61    name: "statslog-statsd-cts-java-gen",
62    tools: ["stats-log-api-gen"],
63    cmd: "$(location stats-log-api-gen) " +
64        "--java $(out) " +
65        "--module cts " +
66        "--javaPackage com.android.server.cts.device.statsd " +
67        "--javaClass StatsLogStatsdCts",
68    out: ["com/android/server/cts/device/statsd/StatsLogStatsdCts.java"],
69}
70