• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15cc_library_shared {
16    name: "liblmkhelper",
17    srcs: ["jni/alloc_stress_activity.cpp"],
18    cflags: [
19        "-Wall",
20        "-Werror",
21    ],
22    shared_libs: ["liblog"],
23    stl: "c++_static",
24    sdk_version: "current",
25}
26
27android_test_helper_app {
28    name: "CtsStatsdApp",
29    defaults: ["cts_defaults"],
30    platform_apis: true,
31    min_sdk_version: "24",
32    srcs: [
33        "src/**/*.java",
34        ":statslog-statsd-cts-java-gen",
35    ],
36    libs: [
37        "android.test.runner.stubs",
38        "junit",
39        "org.apache.http.legacy",
40    ],
41    privileged: true,
42    static_libs: [
43        "ctstestrunner-axt",
44        "compatibility-device-util-axt",
45        "androidx.legacy_legacy-support-v4",
46        "androidx.test.rules",
47    ],
48    jni_libs: ["liblmkhelper"],
49    // tag this module as a cts test artifact
50    test_suites: [
51        "cts",
52        "vts",
53        "general-tests",
54    ],
55    compile_multilib: "both",
56}
57
58genrule {
59    name: "statslog-statsd-cts-java-gen",
60    tools: ["stats-log-api-gen"],
61    cmd: "$(location stats-log-api-gen) --java $(out) --module cts --javaPackage com.android.server.cts.device.statsd --javaClass StatsLogStatsdCts",
62    out: ["com/android/server/cts/device/statsd/StatsLogStatsdCts.java"],
63}
64