blob: 2cd2fa0333a17571ecf05423ac70bea9a3793791 [file] [log] [blame]
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_shared {
name: "liblmkhelper_statsdatom", //TODO(b/163546661): rename back to liblmkhelper.
srcs: ["jni/alloc_stress_activity.cpp"],
cflags: [
"-Wall",
"-Werror",
],
header_libs: ["jni_headers"],
shared_libs: ["liblog"],
stl: "c++_static",
sdk_version: "current",
}
cc_library_shared {
name: "libcrashhelper",
srcs: ["jni/crash_activity.cpp"],
cflags: [
"-Wall",
"-Werror",
],
header_libs: ["jni_headers"],
stl: "c++_static",
sdk_version: "current",
}
android_test_helper_app {
name: "CtsStatsdAtomApp",
defaults: ["cts_defaults"],
platform_apis: true,
min_sdk_version: "28",
srcs: [
"src/**/*.java",
":statslog-statsdatom-cts-java-gen",
],
libs: [
"android.test.runner",
"junit",
"org.apache.http.legacy",
],
privileged: true,
static_libs: [
"ctstestrunner-axt",
"compatibility-device-util-axt",
"androidx.legacy_legacy-support-v4",
"androidx.test.rules",
"cts-net-utils",
],
jni_libs: [
"liblmkhelper_statsdatom",
"libcrashhelper",
],
compile_multilib: "both",
v4_signature: true,
}
genrule {
name: "statslog-statsdatom-cts-java-gen",
tools: ["stats-log-api-gen"],
cmd: "$(location stats-log-api-gen) --java $(out) --module cts --javaPackage com.android.server.cts.device.statsdatom --javaClass StatsLogStatsdCts",
out: ["com/android/server/cts/device/statsdatom/StatsLogStatsdCts.java"],
}