blob: 79a69f7d6f0cca41ee4c9f945c4cc79d9bfc379b [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.
*/
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",
],
compile_multilib: "both",
}
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"],
}