-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make IHalAdapterVendorExtension stable and frozen
This allows to put its interface fragment into framework VINTF and allows use AServiceManager_isDeclared for detecting whether it is provided by SoC vendor. Bug: 321651892 Bug: 323106963 Test: adb shell logcat | grep IHalAdapterVendorExtension Change-Id: Ifa724eabf488d3f28e94074c588bf43d3bfb251c
- Loading branch information
Mikhail Naganov
committed
Feb 2, 2024
1 parent
6403490
commit fe503e3
Showing
5 changed files
with
102 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ef1bc5ed9db445fbfc116cdec6e6ad081458ee40 |
46 changes: 46 additions & 0 deletions
46
aidl_api/av-audio-types-aidl/1/android/media/audio/IHalAdapterVendorExtension.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* 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. | ||
*/ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// 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 android.media.audio; | ||
/* @hide */ | ||
interface IHalAdapterVendorExtension { | ||
@utf8InCpp String[] parseVendorParameterIds(android.media.audio.IHalAdapterVendorExtension.ParameterScope scope, in @utf8InCpp String rawKeys); | ||
void parseVendorParameters(android.media.audio.IHalAdapterVendorExtension.ParameterScope scope, in @utf8InCpp String rawKeysAndValues, out android.hardware.audio.core.VendorParameter[] syncParameters, out android.hardware.audio.core.VendorParameter[] asyncParameters); | ||
android.hardware.audio.core.VendorParameter[] parseBluetoothA2dpReconfigureOffload(in @utf8InCpp String rawValue); | ||
android.hardware.audio.core.VendorParameter[] parseBluetoothLeReconfigureOffload(in @utf8InCpp String rawValue); | ||
@utf8InCpp String processVendorParameters(android.media.audio.IHalAdapterVendorExtension.ParameterScope scope, in android.hardware.audio.core.VendorParameter[] parameters); | ||
enum ParameterScope { | ||
MODULE = 0, | ||
STREAM = 1, | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
aidl_api/av-audio-types-aidl/current/android/media/audio/IHalAdapterVendorExtension.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* 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. | ||
*/ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// 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 android.media.audio; | ||
/* @hide */ | ||
interface IHalAdapterVendorExtension { | ||
@utf8InCpp String[] parseVendorParameterIds(android.media.audio.IHalAdapterVendorExtension.ParameterScope scope, in @utf8InCpp String rawKeys); | ||
void parseVendorParameters(android.media.audio.IHalAdapterVendorExtension.ParameterScope scope, in @utf8InCpp String rawKeysAndValues, out android.hardware.audio.core.VendorParameter[] syncParameters, out android.hardware.audio.core.VendorParameter[] asyncParameters); | ||
android.hardware.audio.core.VendorParameter[] parseBluetoothA2dpReconfigureOffload(in @utf8InCpp String rawValue); | ||
android.hardware.audio.core.VendorParameter[] parseBluetoothLeReconfigureOffload(in @utf8InCpp String rawValue); | ||
@utf8InCpp String processVendorParameters(android.media.audio.IHalAdapterVendorExtension.ParameterScope scope, in android.hardware.audio.core.VendorParameter[] parameters); | ||
enum ParameterScope { | ||
MODULE = 0, | ||
STREAM = 1, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters