summaryrefslogtreecommitdiff
path: root/pandora
diff options
context:
space:
mode:
author William Escande <wescande@google.com> 2024-11-12 17:13:22 -0800
committer William Escande <wescande@google.com> 2024-11-23 01:19:59 +0000
commit7267d245cf1172096565dac1248542a834e03dd4 (patch)
tree376e40a51ab51b92496f41fca374de50d44107bb /pandora
parent542bb2c1a917d3d5e8ab6090608b4fc034c9fde7 (diff)
AICS: add pts-bot testing
Skip VCP/VC/SPE/BI-14-C because this is testing to set an invalid gain setting value. Our API is preventing a caller to set invalid value and we don't want to relax this Bug: 378768175 Fix: 378768175 Test: atest pts-bots Bug: 372328699 Bug: 359916608 Flag: com.android.bluetooth.flags.aics_api Change-Id: If981b2ceffa98476142967eb1a30bfa36a6ec4a6
Diffstat (limited to 'pandora')
-rw-r--r--pandora/interfaces/pandora_experimental/vcp.proto23
1 files changed, 23 insertions, 0 deletions
diff --git a/pandora/interfaces/pandora_experimental/vcp.proto b/pandora/interfaces/pandora_experimental/vcp.proto
index 42641c8545..7776cc33e9 100644
--- a/pandora/interfaces/pandora_experimental/vcp.proto
+++ b/pandora/interfaces/pandora_experimental/vcp.proto
@@ -24,6 +24,14 @@ service VCP {
rpc SetVolumeOffset(SetVolumeOffsetRequest) returns (google.protobuf.Empty);
// Wait for device to be connected.
rpc WaitConnect(WaitConnectRequest) returns (google.protobuf.Empty);
+
+ // TODO: AICS interfaces could be made a bit more generic by first fetching
+ // what are the available instances and using them like the Connection object
+ // is used.
+
+ rpc SetGainSetting(SetGainSettingRequest) returns (google.protobuf.Empty);
+ rpc SetMute(SetMuteRequest) returns (google.protobuf.Empty);
+ rpc SetGainMode(SetGainModeRequest) returns (google.protobuf.Empty);
}
// Request of the `SetDeviceVolume` method
@@ -45,3 +53,18 @@ message SetVolumeOffsetRequest{
message WaitConnectRequest {
Connection connection = 1;
}
+
+message SetGainSettingRequest {
+ Connection connection = 1;
+ int32 gainSetting = 2;
+}
+message SetMuteRequest {
+ Connection connection = 1;
+ // See Mute.aidl for valid values
+ int32 mute = 2;
+}
+message SetGainModeRequest {
+ Connection connection = 1;
+ // See GainMode.aidl for valid values
+ int32 gainMode = 2;
+}