summaryrefslogtreecommitdiff
path: root/pandora
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-09-20 23:06:52 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-09-20 23:06:52 +0000
commit66c01a2a4a3f5af339b1ef534565786855ed249e (patch)
tree1abb585f6a5b40389236573743279521cb4789b7 /pandora
parentf4ed978a74c51157ad7cef903e691efd608ece5f (diff)
parentc62a18f124ef7b5eefcd3e4fd21c76feddfcbb56 (diff)
Merge "Avatar implement first HAP test" into main
Diffstat (limited to 'pandora')
-rw-r--r--pandora/interfaces/pandora_experimental/hap.proto17
1 files changed, 17 insertions, 0 deletions
diff --git a/pandora/interfaces/pandora_experimental/hap.proto b/pandora/interfaces/pandora_experimental/hap.proto
index c52b691aae..dc6298d70d 100644
--- a/pandora/interfaces/pandora_experimental/hap.proto
+++ b/pandora/interfaces/pandora_experimental/hap.proto
@@ -18,6 +18,8 @@ option java_outer_classname = "HapProto";
import "google/protobuf/empty.proto";
service HAP {
+ // get the Hearing aid features
+ rpc GetFeatures(GetFeaturesRequest) returns (GetFeaturesResponse);
// Set active preset by index
rpc SetActivePreset(SetActivePresetRequest) returns (google.protobuf.Empty);
// Set next preset
@@ -34,6 +36,16 @@ service HAP {
rpc GetAllPresetRecords(GetAllPresetRecordsRequest) returns (GetAllPresetRecordsResponse);
// Wait for Preset Changed event
rpc WaitPresetChanged(google.protobuf.Empty) returns (WaitPresetChangedResponse);
+ // Wait for HAP device to be connected.
+ rpc WaitPeripheral(WaitPeripheralRequest) returns (google.protobuf.Empty);
+}
+
+message GetFeaturesRequest{
+ Connection connection = 1;
+}
+
+message GetFeaturesResponse{
+ int32 features = 1;
}
// Request of the `PlaybackAudio` method.
@@ -123,3 +135,8 @@ message WaitPresetChangedResponse {
// Reason why the presets were changed
uint32 reason = 3;
}
+
+message WaitPeripheralRequest {
+ Connection connection = 1;
+}
+