diff --git a/universal7885-common/apps/aidl-support/fm/Android.bp b/universal7885-common/apps/aidl-support/fm/Android.bp index 3e3197f..d42a3ed 100644 --- a/universal7885-common/apps/aidl-support/fm/Android.bp +++ b/universal7885-common/apps/aidl-support/fm/Android.bp @@ -15,6 +15,11 @@ aidl_interface { version: "1", imports: [], }, + { + version: "2", + imports: [], + }, + ], } diff --git a/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/2/.hash b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/2/.hash new file mode 100644 index 0000000..036d70f --- /dev/null +++ b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/2/.hash @@ -0,0 +1 @@ +17bd5198400558a4e2c50e492ac1c3a3f290a577 diff --git a/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/2/vendor/eureka/hardware/fmradio/GetType.aidl b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/2/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/2/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/2/vendor/eureka/hardware/fmradio/IFMDevControl.aidl b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/2/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/2/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/2/vendor/eureka/hardware/fmradio/SetType.aidl b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/2/vendor/eureka/hardware/fmradio/SetType.aidl new file mode 100644 index 0000000..9747a55 --- /dev/null +++ b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/2/vendor/eureka/hardware/fmradio/SetType.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 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, +} diff --git a/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/current/vendor/eureka/hardware/fmradio/GetType.aidl b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/current/vendor/eureka/hardware/fmradio/GetType.aidl index 5aaae78..4c5e36e 100644 --- a/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/current/vendor/eureka/hardware/fmradio/GetType.aidl +++ b/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/current/vendor/eureka/hardware/fmradio/GetType.aidl @@ -39,4 +39,5 @@ enum GetType { 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/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 4efaf57..9747a55 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 @@ -39,4 +39,5 @@ enum SetType { SET_TYPE_FM_RMSSI = 4, SET_TYPE_FM_SEARCH_CANCEL = 5, SET_TYPE_FM_SPEAKER_ROUTE = 6, + SET_TYPE_FM_SEARCH_START = 7, } diff --git a/universal7885-common/apps/aidl-support/fm/vendor/eureka/hardware/fmradio/GetType.aidl b/universal7885-common/apps/aidl-support/fm/vendor/eureka/hardware/fmradio/GetType.aidl index 4bbb328..2b9c564 100644 --- a/universal7885-common/apps/aidl-support/fm/vendor/eureka/hardware/fmradio/GetType.aidl +++ b/universal7885-common/apps/aidl-support/fm/vendor/eureka/hardware/fmradio/GetType.aidl @@ -24,4 +24,5 @@ enum GetType { GET_TYPE_FM_BEFORE_CHANNEL, GET_TYPE_FM_NEXT_CHANNEL, GET_TYPE_FM_SYSFS_IF, + GET_TYPE_FM_MUTEX_LOCKED, }