Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88df5568 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

HCI: Add pairing facade proto

Just add the facade definition for pairing tests

Test: manual
Change-Id: I95bb08d190eb326c0de9a3aeb46f80fb1f465745
parent ffd40b7b
Loading
Loading
Loading
Loading
+38 −23
Original line number Diff line number Diff line
@@ -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;