1/* 2 * Copyright (C) 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_library_shared { 22 name: "liblmkhelper_statsdatom", //TODO(b/163546661): rename back to liblmkhelper. 23 srcs: ["jni/alloc_stress_activity.cpp"], 24 cflags: [ 25 "-Wall", 26 "-Werror", 27 ], 28 header_libs: ["jni_headers"], 29 shared_libs: ["liblog"], 30 stl: "c++_static", 31 sdk_version: "current", 32} 33 34cc_library_shared { 35 name: "libcrashhelper", 36 srcs: ["jni/crash_activity.cpp"], 37 cflags: [ 38 "-Wall", 39 "-Werror", 40 ], 41 header_libs: ["jni_headers"], 42 stl: "c++_static", 43 sdk_version: "current", 44} 45 46cc_library_shared { 47 name: "libimagedecoderhelper", 48 srcs: ["jni/image_decoding.cpp"], 49 cflags: [ 50 "-Wall", 51 "-Werror", 52 ], 53 shared_libs: [ 54 "libandroid", 55 "libjnigraphics", 56 "liblog", 57 ], 58 header_libs: ["jni_headers"], 59 stl: "c++_static", 60 sdk_version: "current", 61} 62 63android_test_helper_app { 64 name: "CtsStatsdAtomApp", 65 defaults: ["cts_defaults"], 66 platform_apis: true, 67 min_sdk_version: "28", 68 target_sdk_version: "36", 69 srcs: [ 70 "src/**/*.java", 71 ":statslog-statsdatom-cts-java-gen", 72 ], 73 libs: [ 74 "androidx.annotation_annotation", 75 "android.test.runner.stubs.system", 76 "junit", 77 "org.apache.http.legacy.stubs.system", 78 ], 79 privileged: true, 80 static_libs: [ 81 "bluetooth-test-util-lib", 82 "core-tests-support", 83 "ctstestrunner-axt", 84 "compatibility-device-util-axt", 85 "androidx.legacy_legacy-support-v4", 86 "androidx.test.rules", 87 "cts-net-utils", 88 "collector-device-lib", 89 "cts_adpf_atom_common", 90 "flag-junit", 91 ], 92 jni_libs: [ 93 "liblmkhelper_statsdatom", 94 "libcrashhelper", 95 "libimagedecoderhelper", 96 ], 97 compile_multilib: "both", 98 v4_signature: true, 99} 100 101java_library_static { 102 name: "statslog-cts", 103 srcs: [ 104 ":statslog-statsdatom-cts-java-gen", 105 ], 106 libs: [ 107 "androidx.annotation_annotation", 108 ], 109 visibility: [ 110 "//cts/hostsidetests/statsdapp/apps:__subpackages__", 111 "//vendor:__subpackages__", 112 ], 113} 114 115genrule { 116 name: "statslog-statsdatom-cts-java-gen", 117 tools: ["stats-log-api-gen"], 118 cmd: "$(location stats-log-api-gen) --java $(out) --module cts --javaPackage com.android.server.cts.device.statsdatom --javaClass StatsLogStatsdCts", 119 out: ["com/android/server/cts/device/statsdatom/StatsLogStatsdCts.java"], 120} 121