interfaces: Introduce QTI btconfigstore v2.0 HAL.

* vendor.qti.hardware.btconfigstore@2.0 based on observing
  libbtconfigstore expectations.

Change-Id: I755c6ab6cd11de99dc3ddc4969da77ea0a251942
This commit is contained in:
Jyotiraditya 2020-09-19 18:31:03 +05:30 committed by Vishalcj17
parent f4ca76c675
commit 7b257d24d7
No known key found for this signature in database
GPG Key ID: 5CB1A9F3F6539FB2
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,15 @@
// This file is autogenerated by hidl-gen -Landroidbp.
hidl_interface {
name: "vendor.qti.hardware.btconfigstore@2.0",
root: "vendor.qti.hardware.btconfigstore",
system_ext_specific: true,
srcs: [
"types.hal",
"IBTConfigStore.hal",
],
interfaces: [
"android.hidl.base@1.0",
],
gen_java: true,
}

View File

@ -0,0 +1,8 @@
package vendor.qti.hardware.btconfigstore@2.0;
interface IBTConfigStore {
getVendorProperties(uint32_t vPropType) generates (Result result, vec<VendorProperty> vendorProp);
setVendorProperty(VendorProperty vendorProp) generates (Result result);
getHostAddOnFeatures() generates (Result result, HostAddOnFeatures host_features);
getControllerAddOnFeatures() generates (Result result, ControllerAddOnFeatures controller_features);
};

View File

@ -0,0 +1,27 @@
package vendor.qti.hardware.btconfigstore@2.0;
enum Result : int32_t {
SUCCESS,
FAILED,
UNKNOWN_ERROR,
INTERNAL_ERROR,
INVALID_ARGUMENTS,
NOT_SUPPORTED,
};
struct VendorProperty {
uint32_t type;
string value;
};
struct HostAddOnFeatures {
uint8_t feat_mask_len;
vec<uint8_t> features;
};
struct ControllerAddOnFeatures {
uint16_t product_id;
uint16_t rsp_version;
uint8_t feat_mask_len;
vec<uint8_t> features;
};

View File

@ -1,2 +1,5 @@
b0d81417ddc5daf549ac2fb63db24a83b4fe2fae71cd38c76f7482d029dd338f vendor.qti.hardware.btconfigstore@1.0::types
04a894025ae70cb5821de82289b1a13426583696a4d3bf99042d0a25b615c10a vendor.qti.hardware.btconfigstore@1.0::IBTConfigStore
3c637d840916d6affda8b35359df37ea0510964242109b9e558ae8276a205d29 vendor.qti.hardware.btconfigstore@2.0::types
3fd14e41ed74c712f74b34d930e595666a838945c1877b49825160106a3d932d vendor.qti.hardware.btconfigstore@2.0::IBTConfigStore