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 ], 26 header_libs: ["jni_headers"], 27 shared_libs: ["liblog"], 28 stl: "c++_static", 29 sdk_version: "current", 30} 31 32android_test_helper_app { 33 name: "CtsStatsdApp", 34 defaults: ["cts_defaults"], 35 platform_apis: true, 36 min_sdk_version: "24", 37 srcs: [ 38 "src/**/*.java", 39 ":statslog-statsd-cts-java-gen", 40 ], 41 libs: [ 42 "android.test.runner", 43 "junit", 44 "org.apache.http.legacy", 45 ], 46 privileged: true, 47 static_libs: [ 48 "ctstestrunner-axt", 49 "compatibility-device-util-axt", 50 "androidx.legacy_legacy-support-v4", 51 "androidx.test.rules", 52 "cts-net-utils", 53 "BlobStoreTestUtils" 54 ], 55 jni_libs: ["liblmkhelper"], 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