1// Copyright (C) 2023 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
19apex {
20    name: "com.android.hardware.neuralnetworks",
21    manifest: "manifest.json",
22    file_contexts: "file_contexts",
23    key: "com.android.hardware.key",
24    certificate: ":com.android.hardware.certificate",
25    updatable: false,
26    vendor: true,
27
28    binaries: [
29        "android.hardware.neuralnetworks-service-sample-all",
30        "android.hardware.neuralnetworks-service-sample-limited",
31        "android.hardware.neuralnetworks-shim-service-sample",
32    ],
33    prebuilts: [
34        "android.hardware.neuralnetworks-service-sample-all.rc",
35        "android.hardware.neuralnetworks-service-sample-all.xml",
36        "android.hardware.neuralnetworks-service-sample-limited.rc",
37        "android.hardware.neuralnetworks-service-sample-limited.xml",
38        "android.hardware.neuralnetworks-shim-service-sample.rc",
39        "android.hardware.neuralnetworks-shim-service-sample.xml",
40    ],
41}
42
43prebuilt_etc {
44    name: "android.hardware.neuralnetworks-service-sample-all.rc",
45    src: "sample_aidl/config/android.hardware.neuralnetworks-service-sample-all.rc",
46    installable: false,
47}
48
49prebuilt_etc {
50    name: "android.hardware.neuralnetworks-service-sample-all.xml",
51    src: "sample_aidl/config/android.hardware.neuralnetworks-service-sample-all.xml",
52    installable: false,
53    sub_dir: "vintf",
54}
55
56prebuilt_etc {
57    name: "android.hardware.neuralnetworks-service-sample-limited.rc",
58    src: "sample_aidl/config/android.hardware.neuralnetworks-service-sample-limited.rc",
59    installable: false,
60}
61
62prebuilt_etc {
63    name: "android.hardware.neuralnetworks-service-sample-limited.xml",
64    src: "sample_aidl/config/android.hardware.neuralnetworks-service-sample-limited.xml",
65    installable: false,
66    sub_dir: "vintf",
67}
68
69prebuilt_etc {
70    name: "android.hardware.neuralnetworks-shim-service-sample.rc",
71    src: "sample_shim/config/android.hardware.neuralnetworks-shim-service-sample.rc",
72    installable: false,
73}
74
75prebuilt_etc {
76    name: "android.hardware.neuralnetworks-shim-service-sample.xml",
77    src: "sample_shim/config/android.hardware.neuralnetworks-shim-service-sample.xml",
78    installable: false,
79    sub_dir: "vintf",
80}
81