aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHansong Zhang <hsz@google.com>2019-08-29 13:00:03 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-08-29 13:00:03 -0700
commit0c63ef1883f565e49636a162f2fd1dcdd0a8044d (patch)
tree0fe9518601df9702b8e1493c51bb61dfd061af6a
parent6d535fc7c02c497fbd365b3e8633b87b42707168 (diff)
parent6ef57712c8b326d5bde588f4282954765cc88525 (diff)
downloadbt-0c63ef1883f565e49636a162f2fd1dcdd0a8044d.tar.gz
HCI: Add pairing facade proto
am: 6ef57712c8 Change-Id: If0ef3ff8a2e864af6b70dba33b80d3acb7375a18
-rw-r--r--gd/hci/facade.proto61
1 files changed, 38 insertions, 23 deletions
diff --git a/gd/hci/facade.proto b/gd/hci/facade.proto
index 4ccfccbd5..8ae211426 100644
--- a/gd/hci/facade.proto
+++ b/gd/hci/facade.proto
@@ -19,6 +19,44 @@ service AclManagerFacade {
rpc TestInternalHciLeCommands(google.protobuf.Empty) returns (google.protobuf.Empty) {}
}
+message PageScanMode {
+ bool enabled = 1;
+}
+
+message ConnectionEvent {
+ facade.BluetoothAddress remote = 1;
+ uint32 connection_handle = 2;
+}
+
+message DisconnectionEvent {
+ facade.BluetoothAddress remote = 1;
+ uint32 reason = 2;
+}
+
+message ConnectionFailedEvent {
+ facade.BluetoothAddress remote = 1;
+ uint32 reason = 2;
+}
+
+message AclData {
+ facade.BluetoothAddress remote = 1;
+ bytes payload = 2;
+}
+
+service ClassicPairingFacade {
+ rpc SetPairingMode(PairingMode) returns (google.protobuf.Empty) {}
+ rpc DeletePairing(DeletePairingRequest) returns (google.protobuf.Empty) {}
+}
+
+message PairingMode {
+ bool enabled = 1;
+}
+
+message DeletePairingRequest {
+ bool deleteAll = 1;
+ facade.BluetoothAddress remote = 2;
+}
+
service ClassicSecurityManagerFacade {
rpc LinkKeyRequestReply(LinkKeyRequestReplyMessage) returns (google.protobuf.Empty) {}
rpc LinkKeyRequestNegativeReply(facade.BluetoothAddress) returns (google.protobuf.Empty) {}
@@ -48,29 +86,6 @@ service ClassicSecurityManagerFacade {
rpc AuthenticationRequested(AuthenticationRequestedMessage) returns (google.protobuf.Empty) {}
}
-message PageScanMode {
- bool enabled = 1;
-}
-
-message ConnectionEvent {
- facade.BluetoothAddress remote = 1;
- uint32 connection_handle = 2;
-}
-
-message DisconnectionEvent {
- facade.BluetoothAddress remote = 1;
- uint32 reason = 2;
-}
-
-message ConnectionFailedEvent {
- facade.BluetoothAddress remote = 1;
- uint32 reason = 2;
-}
-
-message AclData {
- facade.BluetoothAddress remote = 1;
- bytes payload = 2;
-}
message CommandCompleteEvent {
uint32 command_opcode = 1;