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