Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing hal interfaces #9

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions Android.bp
@@ -1,6 +1,21 @@
subdirs = [
"*"
]
hidl_package_root {
name: "vendor.qti.hardware.fm",
path: "vendor/qcom/opensource/interfaces/fm",
}

hidl_package_root {
name: "com.qualcomm.qti.bluetooth_audio",
path: "vendor/qcom/opensource/interfaces/bluetooth_audio",
}

hidl_package_root {
name: "vendor.qti.hardware.btconfigstore",
path: "vendor/qcom/opensource/interfaces/btconfigstore",
}

hidl_package_root {
name: "vendor.qti.hardware.camera",
path: "vendor/qcom/opensource/interfaces/camera",
Expand Down
16 changes: 16 additions & 0 deletions bluetooth_audio/1.0/Android.bp
@@ -0,0 +1,16 @@
// This file is autogenerated by hidl-gen -Landroidbp.

hidl_interface {
name: "com.qualcomm.qti.bluetooth_audio@1.0",
root: "com.qualcomm.qti.bluetooth_audio",
system_ext_specific: true,
srcs: [
"types.hal",
"IBluetoothAudio.hal",
"IBluetoothAudioCallbacks.hal",
],
interfaces: [
"android.hidl.base@1.0",
],
gen_java: true,
}
17 changes: 17 additions & 0 deletions bluetooth_audio/1.0/IBluetoothAudio.hal
@@ -0,0 +1,17 @@
package com.qualcomm.qti.bluetooth_audio@1.0;

import IBluetoothAudioCallbacks;

interface IBluetoothAudio {
initialize_callbacks(IBluetoothAudioCallbacks callbacks);
deinitialize_callbacks();
a2dp_on_started(Status status);
a2dp_on_suspended(Status status);
a2dp_on_stopped(Status status);
a2dp_on_check_ready(Status status);
a2dp_on_get_codec_config(Status status, vec<uint8_t> codec_cfg);
a2dp_on_get_multicast_status(uint8_t mcast);
a2dp_on_get_num_connected_devices(uint8_t num_dev);
a2dp_on_get_connection_status(Status status);
a2dp_on_get_sink_latency(uint16_t sink_latency);
};
13 changes: 13 additions & 0 deletions bluetooth_audio/1.0/IBluetoothAudioCallbacks.hal
@@ -0,0 +1,13 @@
package com.qualcomm.qti.bluetooth_audio@1.0;

interface IBluetoothAudioCallbacks {
a2dp_start_stream_req();
a2dp_suspend_stream_req();
a2dp_stop_stream_req();
a2dp_check_ready();
a2dp_get_codec_config();
a2dp_get_multicast_status();
a2dp_get_num_connected_devices();
a2dp_get_connection_status();
a2dp_get_sink_latency();
};
12 changes: 12 additions & 0 deletions bluetooth_audio/1.0/types.hal
@@ -0,0 +1,12 @@
package com.qualcomm.qti.bluetooth_audio@1.0;

enum Status : uint8_t {
SUCCESS,
FAILURE,
INCALL_FAILURE,
PENDING,
DISCONNECTING,
UNSUPPORTED,
};

typedef vec<uint8_t> CodecCfg;
13 changes: 13 additions & 0 deletions btconfigstore/1.0/Android.bp
@@ -0,0 +1,13 @@
hidl_interface {
name: "vendor.qti.hardware.btconfigstore@1.0",
root: "vendor.qti.hardware.btconfigstore",
product_specific: true,
srcs: [
"types.hal",
"IBTConfigStore.hal",
],
interfaces: [
"android.hidl.base@1.0",
],
gen_java: true,
}
7 changes: 7 additions & 0 deletions btconfigstore/1.0/IBTConfigStore.hal
@@ -0,0 +1,7 @@
package vendor.qti.hardware.btconfigstore@1.0;

interface IBTConfigStore {
getVendorProperties(uint32_t prop) generates (Result result, vec<VendorProperty> vendorProperty);
setVendorProperty(VendorProperty vendorProperty) generates (Result result);
getAddOnFeatures() generates (Result result, AddOnFeaturesList featuresList);
};
18 changes: 18 additions & 0 deletions btconfigstore/1.0/types.hal
@@ -0,0 +1,18 @@
package vendor.qti.hardware.btconfigstore@1.0;

enum Result : int32_t {
SUCCESS,
UNKNOWN_ERROR,
};

struct VendorProperty {
uint32_t type;
string value;
};

struct AddOnFeaturesList {
uint16_t product_id;
uint16_t rsp_version;
uint8_t feat_mask_len;
uint8_t[8] features;
};
15 changes: 15 additions & 0 deletions btconfigstore/2.0/Android.bp
@@ -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,
}
8 changes: 8 additions & 0 deletions btconfigstore/2.0/IBTConfigStore.hal
@@ -0,0 +1,8 @@
package vendor.qti.hardware.btconfigstore@2.0;

interface IBTConfigStore {
getVendorProperties(uint32_t prop) generates (Result result, vec<VendorProperty> vendorProperty);
setVendorProperty(VendorProperty vendorProperty) generates (Result result);
getControllerAddOnFeatures() generates (Result result, ControllerAddOnFeatures featuresList);
getHostAddOnFeatures() generates (Result result, HostAddOnFeatures featuresList);
};
23 changes: 23 additions & 0 deletions btconfigstore/2.0/types.hal
@@ -0,0 +1,23 @@
package vendor.qti.hardware.btconfigstore@2.0;

enum Result : int32_t {
SUCCESS,
UNKNOWN_ERROR,
};

struct VendorProperty {
uint32_t type;
string value;
};

struct ControllerAddOnFeatures {
uint16_t product_id;
uint16_t rsp_version;
uint8_t feat_mask_len;
uint8_t[8] features;
};

struct HostAddOnFeatures {
uint8_t feat_mask_len;
uint8_t[8] features;
};
14 changes: 14 additions & 0 deletions fm/1.0/Android.bp
@@ -0,0 +1,14 @@
hidl_interface {
name: "vendor.qti.hardware.fm@1.0",
root: "vendor.qti.hardware.fm",
product_specific: true,
srcs: [
"IFmHci.hal",
"IFmHciCallbacks.hal",
"types.hal",
],
interfaces: [
"android.hidl.base@1.0",
],
gen_java: true,
}
9 changes: 9 additions & 0 deletions fm/1.0/IFmHci.hal
@@ -0,0 +1,9 @@
package vendor.qti.hardware.fm@1.0;

import IFmHciCallbacks;

interface IFmHci {
initialize(IFmHciCallbacks callback);
sendHciCommand(HciPacket command);
close();
};
4 changes: 4 additions & 0 deletions fm/1.0/IFmHciCallbacks.hal
@@ -0,0 +1,4 @@
package vendor.qti.hardware.fm@1.0;

interface IFmHciCallbacks {
};
13 changes: 13 additions & 0 deletions fm/1.0/types.hal
@@ -0,0 +1,13 @@
package vendor.qti.hardware.fm@1.0;

typedef vec<uint8_t> HciPacket;

enum Status : int32_t {
SUCCESS,
FAIL,
NOT_READY,
NOMEM,
BUSY,
CORRUPTED_BUFFER,
NULL_POINTER,
};