diff --git a/trusty/stats/aidl/Android.bp b/trusty/stats/aidl/Android.bp new file mode 100644 index 000000000..078cc99a5 --- /dev/null +++ b/trusty/stats/aidl/Android.bp @@ -0,0 +1,39 @@ +// Copyright (C) 2023 The Android Open-Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +aidl_interface { + name: "android.trusty.stats.nw.setter", + unstable: true, + vendor_available: true, + srcs: [ + "android/trusty/stats/nw/setter/IStatsSetter.aidl", + ], + imports: ["android.frameworks.stats-V1"], + backend: { + cpp: { + enabled: true, + }, + java: { + enabled: false, + platform_apis: false, + }, + ndk: { + enabled: false, + }, + }, +} diff --git a/trusty/stats/aidl/android/trusty/stats/nw/setter/IStatsSetter.aidl b/trusty/stats/aidl/android/trusty/stats/nw/setter/IStatsSetter.aidl new file mode 100644 index 000000000..f44f4a368 --- /dev/null +++ b/trusty/stats/aidl/android/trusty/stats/nw/setter/IStatsSetter.aidl @@ -0,0 +1,28 @@ +// +// Copyright (C) 2023 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +package android.trusty.stats.nw.setter; + +import android.frameworks.stats.IStats; + +interface IStatsSetter { + /** + * Set the IStats interface facet. + * + * @param istats The IStats facet provided by the caller for the remote + * service to report IStats' VendorAtom. + */ + void setInterface(in IStats istats); +}