From 0a1bb46140611396a313cdc2d2fba24b25e4b944 Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Fri, 28 Oct 2022 21:31:01 +0900 Subject: [PATCH] universal7885: fm-aidl: Add new settype, `FM_APP_PID` --- .../apps/aidl-support/fm/Android.bp | 4 ++ .../vendor.eureka.hardware.fmradio/3/.hash | 1 + .../eureka/hardware/fmradio/GetType.aidl | 43 ++++++++++++++++++ .../hardware/fmradio/IFMDevControl.aidl | 40 +++++++++++++++++ .../eureka/hardware/fmradio/SetType.aidl | 44 +++++++++++++++++++ .../eureka/hardware/fmradio/SetType.aidl | 1 + .../eureka/hardware/fmradio/SetType.aidl | 1 + 7 files changed, 134 insertions(+) create mode 100644 universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/.hash create mode 100644 universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/GetType.aidl create mode 100644 universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/IFMDevControl.aidl create mode 100644 universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/SetType.aidl diff --git a/universal7885-common/apps/aidl-support/fm/Android.bp b/universal7885-common/apps/aidl-support/fm/Android.bp index d42a3ed..6e325d0 100644 --- a/universal7885-common/apps/aidl-support/fm/Android.bp +++ b/universal7885-common/apps/aidl-support/fm/Android.bp @@ -19,6 +19,10 @@ aidl_interface { version: "2", imports: [], }, + { + version: "3", + imports: [], + }, ], diff --git a/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/.hash b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/.hash new file mode 100644 index 0000000..ce2b7e4 --- /dev/null +++ b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/.hash @@ -0,0 +1 @@ +d3dc9e5312012521e5a2324d3182f795648817ec diff --git a/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/GetType.aidl b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/GetType.aidl new file mode 100644 index 0000000..4c5e36e --- /dev/null +++ b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/GetType.aidl @@ -0,0 +1,43 @@ +// Copyright (C) 2022 Eureka Team +// +// 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. +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.eureka.hardware.fmradio; +@Backing(type="int") @VintfStability +enum GetType { + GET_TYPE_FM_FREQ = 0, + GET_TYPE_FM_UPPER_LIMIT = 1, + GET_TYPE_FM_LOWER_LIMIT = 2, + GET_TYPE_FM_RMSSI = 3, + GET_TYPE_FM_BEFORE_CHANNEL = 4, + GET_TYPE_FM_NEXT_CHANNEL = 5, + GET_TYPE_FM_SYSFS_IF = 6, + GET_TYPE_FM_MUTEX_LOCKED = 7, +} diff --git a/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/IFMDevControl.aidl b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/IFMDevControl.aidl new file mode 100644 index 0000000..1737a0b --- /dev/null +++ b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/IFMDevControl.aidl @@ -0,0 +1,40 @@ +// Copyright (C) 2022 Eureka Team +// +// 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. +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.eureka.hardware.fmradio; +@VintfStability +interface IFMDevControl { + oneway void open(); + int getValue(in vendor.eureka.hardware.fmradio.GetType type); + oneway void setValue(in vendor.eureka.hardware.fmradio.SetType type, int value); + int[] getFreqsList(); + oneway void close(); +} diff --git a/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/SetType.aidl b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/SetType.aidl new file mode 100644 index 0000000..8da5a4a --- /dev/null +++ b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/3/vendor/eureka/hardware/fmradio/SetType.aidl @@ -0,0 +1,44 @@ +// Copyright (C) 2022 Eureka Team +// +// 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. +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.eureka.hardware.fmradio; +@Backing(type="int") @VintfStability +enum SetType { + SET_TYPE_FM_FREQ = 0, + SET_TYPE_FM_MUTE = 1, + SET_TYPE_FM_VOLUME = 2, + SET_TYPE_FM_THREAD = 3, + SET_TYPE_FM_RMSSI = 4, + SET_TYPE_FM_SEARCH_CANCEL = 5, + SET_TYPE_FM_SPEAKER_ROUTE = 6, + SET_TYPE_FM_SEARCH_START = 7, + SET_TYPE_FM_APP_PID = 8, +} diff --git a/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/current/vendor/eureka/hardware/fmradio/SetType.aidl b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/current/vendor/eureka/hardware/fmradio/SetType.aidl index 9747a55..8da5a4a 100644 --- a/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/current/vendor/eureka/hardware/fmradio/SetType.aidl +++ b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/current/vendor/eureka/hardware/fmradio/SetType.aidl @@ -40,4 +40,5 @@ enum SetType { SET_TYPE_FM_SEARCH_CANCEL = 5, SET_TYPE_FM_SPEAKER_ROUTE = 6, SET_TYPE_FM_SEARCH_START = 7, + SET_TYPE_FM_APP_PID = 8, } diff --git a/universal7885-common/apps/aidl-support/fm/vendor/eureka/hardware/fmradio/SetType.aidl b/universal7885-common/apps/aidl-support/fm/vendor/eureka/hardware/fmradio/SetType.aidl index cb0f60d..c37c74c 100644 --- a/universal7885-common/apps/aidl-support/fm/vendor/eureka/hardware/fmradio/SetType.aidl +++ b/universal7885-common/apps/aidl-support/fm/vendor/eureka/hardware/fmradio/SetType.aidl @@ -25,4 +25,5 @@ enum SetType { SET_TYPE_FM_SEARCH_CANCEL, SET_TYPE_FM_SPEAKER_ROUTE, SET_TYPE_FM_SEARCH_START, + SET_TYPE_FM_APP_PID, }