1//
2// Copyright (C) 2019 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//
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20filegroup {
21    name: "framework-statsd-aidl-sources",
22    srcs: ["**/*.aidl"],
23}
24
25aidl_interface {
26    name: "statsd-aidl",
27    unstable: true,
28    srcs: [
29        "android/os/IPendingIntentRef.aidl",
30        "android/os/IPullAtomCallback.aidl",
31        "android/os/IPullAtomResultReceiver.aidl",
32        "android/os/IStatsCompanionService.aidl",
33        "android/os/IStatsd.aidl",
34        "android/os/StatsDimensionsValueParcel.aidl",
35        "android/util/StatsEventParcel.aidl",
36    ],
37    host_supported: true,
38    backend: {
39        java: {
40            enabled: false, // framework-statsd and service-statsd use framework-statsd-aidl-sources
41        },
42        cpp: {
43            enabled: false,
44        },
45        ndk: {
46            enabled: true,
47            apex_available: [
48                // TODO(b/145923087): Remove this once statsd binary is in apex
49                "//apex_available:platform",
50
51                "com.android.os.statsd",
52                "test_com.android.os.statsd",
53            ],
54            min_sdk_version: "30",
55        },
56    }
57}
58