universal7885: aidl-support: Make a stable version

This commit is contained in:
roynatech2544 2022-10-09 05:01:09 +00:00
commit 65fa2766f4
38 changed files with 704 additions and 21 deletions

View file

@ -1,10 +1,17 @@
aidl_interface {
name: "vendor.eureka.hardware.fmradio",
srcs: ["vendor/eureka/hardware/fmradio/*.aidl"],
stability: "vintf",
backend: {
ndk: {
enabled: true,
},
},
unstable: true,
versions_with_info: [
{
version: "1",
imports: [],
},
],
}

View file

@ -0,0 +1,3 @@
c3526b25ff642236758dcaad007a7e232f87efa9
c3526b25ff642236758dcaad007a7e232f87efa9
953afbf98105208eed602421a0cb5c39f5e7b69e

View file

@ -0,0 +1,27 @@
// 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.
package vendor.eureka.hardware.fmradio;
@Backing(type="int")
@VintfStability
enum GetType {
GET_TYPE_FM_FREQ,
GET_TYPE_FM_UPPER_LIMIT,
GET_TYPE_FM_LOWER_LIMIT,
GET_TYPE_FM_RMSSI,
GET_TYPE_FM_BEFORE_CHANNEL,
GET_TYPE_FM_NEXT_CHANNEL,
GET_TYPE_FM_SYSFS_IF,
}

View file

@ -0,0 +1,31 @@
// 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.
package vendor.eureka.hardware.fmradio;
import vendor.eureka.hardware.fmradio.GetType;
import vendor.eureka.hardware.fmradio.SetType;
@VintfStability
interface IFMDevControl {
oneway void open();
int getValue(in GetType type);
oneway void setValue(in SetType type, int value);
int[] getFreqsList();
oneway void close();
}

View file

@ -0,0 +1,27 @@
// 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.
package vendor.eureka.hardware.fmradio;
@Backing(type="int")
@VintfStability
enum SetType {
SET_TYPE_FM_FREQ,
SET_TYPE_FM_MUTE,
SET_TYPE_FM_VOLUME,
SET_TYPE_FM_THREAD,
SET_TYPE_FM_RMSSI,
SET_TYPE_FM_SEARCH_CANCEL,
SET_TYPE_FM_SPEAKER_ROUTE,
}

View file

@ -0,0 +1,42 @@
// 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 <name>-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,
}

View file

@ -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 <name>-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();
}

View file

@ -0,0 +1,42 @@
// 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 <name>-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,
}

View file

@ -30,7 +30,7 @@ cc_binary {
"libaudioclient",
"libaudiopolicy",
"libaudiomanager",
"vendor.eureka.hardware.fmradio-ndk",
"vendor.eureka.hardware.fmradio-V1-ndk",
],
header_libs: ["libaudioclient_headers"],
init_rc: ["vendor.eureka.hardware.fmradio-service.rc"],

View file

@ -15,6 +15,7 @@
package vendor.eureka.hardware.fmradio;
@Backing(type="int")
@VintfStability
enum GetType {
GET_TYPE_FM_FREQ,
GET_TYPE_FM_UPPER_LIMIT,

View file

@ -17,14 +17,15 @@ package vendor.eureka.hardware.fmradio;
import vendor.eureka.hardware.fmradio.GetType;
import vendor.eureka.hardware.fmradio.SetType;
@VintfStability
interface IFMDevControl {
void open();
oneway void open();
int getValue(in GetType type);
void setValue(in SetType type, int value);
oneway void setValue(in SetType type, int value);
int[] getFreqsList();
void close();
oneway void close();
}

View file

@ -15,6 +15,7 @@
package vendor.eureka.hardware.fmradio;
@Backing(type="int")
@VintfStability
enum SetType {
SET_TYPE_FM_FREQ,
SET_TYPE_FM_MUTE,