1// Copyright (C) 2021 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 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "hardware_interfaces_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["hardware_interfaces_license"], 22} 23 24aidl_interface { 25 name: "android.hardware.health", 26 vendor_available: true, 27 recovery_available: true, 28 host_supported: true, 29 srcs: ["android/hardware/health/*.aidl"], 30 stability: "vintf", 31 backend: { 32 cpp: { 33 enabled: false, 34 }, 35 java: { 36 enabled: true, 37 sdk_version: "module_current", 38 }, 39 ndk: { 40 vndk: { 41 enabled: true, 42 }, 43 }, 44 }, 45 versions_with_info: [ 46 { 47 version: "1", 48 imports: [], 49 }, 50 ], 51 52} 53 54cc_library { 55 name: "android.hardware.health-translate-ndk", 56 vendor_available: true, 57 recovery_available: true, 58 host_supported: true, 59 srcs: ["android/hardware/health/translate-ndk.cpp"], 60 shared_libs: [ 61 "libbinder_ndk", 62 "libhidlbase", 63 "android.hardware.health-V1-ndk", 64 "android.hardware.health@2.0", 65 "android.hardware.health@2.1", 66 ], 67 export_include_dirs: ["include"], 68 export_shared_lib_headers: [ 69 "android.hardware.health@2.0", 70 "android.hardware.health@2.1", 71 ], 72 target: { 73 darwin: { 74 enabled: false, 75 }, 76 }, 77} 78 79java_library { 80 name: "android.hardware.health-translate-java", 81 srcs: ["android/hardware/health/Translate.java"], 82 libs: [ 83 "android.hardware.health-V1-java", 84 "android.hardware.health-V2.0-java", 85 "android.hardware.health-V2.1-java", 86 ], 87} 88