1// Copyright (C) 2022 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 19java_sdk_library { 20 name: "framework-ondeviceintelligence-platform", 21 srcs: [ 22 ":framework-ondeviceintelligence-sources-platform", 23 ], 24 defaults: ["framework-non-updatable-unbundled-defaults"], 25 impl_library_visibility: [ 26 "//frameworks/base:__subpackages__", 27 ], 28 static_libs: [ 29 "android.app.ondeviceintelligence-aconfig-java", 30 ], 31 aidl: { 32 include_dirs: [ 33 "frameworks/base/core/java", 34 "frameworks/base/packages/NeuralNetworks/framework/platform/java", 35 "frameworks/native/aidl/binder", // For PersistableBundle.aidl 36 ], 37 }, 38} 39 40java_sdk_library { 41 name: "framework-ondeviceintelligence", 42 srcs: [ 43 ":framework-ondeviceintelligence-sources", 44 ":module-utils-future-aidls", 45 ], 46 defaults: ["framework-module-defaults"], 47 sdk_version: "module_current", 48 apex_available: [ 49 "com.android.neuralnetworks", 50 "//apex_available:platform", 51 ], 52 permitted_packages: [ 53 "android.app.ondeviceintelligence", 54 "android.service.ondeviceintelligence", 55 "com.android.neuralnetworks.framework.jarjar", 56 "com.android.modules.utils", 57 ], 58 impl_library_visibility: [ 59 "//packages/modules/NeuralNetworks:__subpackages__", 60 "//frameworks/base:__subpackages__", 61 ], 62 min_sdk_version: "35", 63 static_libs: [ 64 "android.app.ondeviceintelligence-aconfig-java", 65 "modules-utils-preconditions", 66 "modules-utils-infra", 67 ], 68 aidl: { 69 include_dirs: [ 70 "frameworks/base/packages/NeuralNetworks/framework/module/java", 71 ], 72 }, 73 libs: [ 74 "unsupportedappusage", 75 ], 76 jarjar_rules: "jarjar-rules.txt", 77} 78 79platform_compat_config { 80 name: "framework-ondeviceintelligence-platform-compat-config", 81 src: ":framework-ondeviceintelligence-platform", 82} 83