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

Commit e9e92661 authored by Henri Chataing's avatar Henri Chataing
Browse files

Remove blueberry facade proto definitions

Bug: 384782957
Test: TreeHugger
Flag: EXEMPT, dead code removal
Change-Id: I5dc837c786184ab8b2b4e3b25de20d90a82e7add
parent 0b452f22
Loading
Loading
Loading
Loading
+0 −35
Original line number Diff line number Diff line
syntax = "proto3";

package blueberry.facade;

message Data {
  bytes payload = 1;
}

message BluetoothAddress {
  bytes address = 1;
}

enum BluetoothAddressTypeEnum {
  PUBLIC_DEVICE_ADDRESS = 0x0;
  RANDOM_DEVICE_ADDRESS = 0x1;
  PUBLIC_IDENTITY_ADDRESS = 0x2;
  RANDOM_IDENTITY_ADDRESS = 0x3;
}

enum BluetoothOwnAddressTypeEnum {
  USE_PUBLIC_DEVICE_ADDRESS = 0x0;
  USE_RANDOM_DEVICE_ADDRESS = 0x1;
  RESOLVABLE_OR_PUBLIC_ADDRESS = 0x2;
  RESOLVABLE_OR_RANDOM_ADDRESS = 0x3;
}

message BluetoothAddressWithType {
  BluetoothAddress address = 1;
  BluetoothAddressTypeEnum type = 2;
}

enum BluetoothPeerAddressTypeEnum {
  PUBLIC_DEVICE_OR_IDENTITY_ADDRESS = 0x0;
  RANDOM_DEVICE_OR_IDENTITY_ADDRESS = 0x1;
}
+0 −20
Original line number Diff line number Diff line
syntax = "proto3";

package blueberry.facade.hal;

import "google/protobuf/empty.proto";
import "blueberry/facade/common.proto";

service HciHalFacade {
  rpc SendCommand(blueberry.facade.Data) returns (google.protobuf.Empty) {}
  rpc StreamEvents(google.protobuf.Empty) returns (stream blueberry.facade.Data) {}

  rpc SendAcl(blueberry.facade.Data) returns (google.protobuf.Empty) {}
  rpc StreamAcl(google.protobuf.Empty) returns (stream blueberry.facade.Data) {}

  rpc SendSco(blueberry.facade.Data) returns (google.protobuf.Empty) {}
  rpc StreamSco(google.protobuf.Empty) returns (stream blueberry.facade.Data) {}

  rpc SendIso(blueberry.facade.Data) returns (google.protobuf.Empty) {}
  rpc StreamIso(google.protobuf.Empty) returns (stream blueberry.facade.Data) {}
}
+0 −53
Original line number Diff line number Diff line
syntax = "proto3";

package blueberry.facade.hci;

import "google/protobuf/empty.proto";

service AclManagerFacade {
  rpc CreateConnection(ConnectionMsg) returns (stream ConnectionEvent) {}
  rpc CancelConnection(ConnectionMsg) returns (google.protobuf.Empty) {}
  rpc Disconnect(HandleMsg) returns (google.protobuf.Empty) {}
  rpc WriteDefaultLinkPolicySettings(PolicyMsg) returns (google.protobuf.Empty) {}
  rpc AuthenticationRequested(HandleMsg) returns (google.protobuf.Empty) {}
  rpc ConnectionCommand(ConnectionCommandMsg) returns (google.protobuf.Empty) {}
  rpc SwitchRole(RoleMsg) returns (google.protobuf.Empty) {}
  rpc SendAclData(AclData) returns (google.protobuf.Empty) {}
  rpc FetchAclData(HandleMsg) returns (stream AclData) {}
  rpc FetchIncomingConnection(google.protobuf.Empty) returns (stream ConnectionEvent) {}
}

message HandleMsg {
  uint32 handle = 1;
}

message ConnectionMsg {
  bytes address = 1;
}

message PolicyMsg {
  uint32 policy = 1;
}

enum NewRole {
  CENTRAL = 0;
  PERIPHERAL = 1;
}

message RoleMsg {
  bytes address = 1;
  NewRole role = 2;
}

message ConnectionCommandMsg {
  bytes packet = 1;
}

message ConnectionEvent {
  bytes payload = 1;
}

message AclData {
  uint32 handle = 1;
  bytes payload = 2;
}
+0 −96
Original line number Diff line number Diff line
syntax = "proto3";

package blueberry.facade.hci;

import "google/protobuf/empty.proto";
import "blueberry/facade/common.proto";

service ControllerFacade {
  rpc GetMacAddress(google.protobuf.Empty) returns (blueberry.facade.BluetoothAddress) {}
  rpc WriteLocalName(NameMsg) returns (google.protobuf.Empty) {}
  rpc GetLocalName(google.protobuf.Empty) returns (NameMsg) {}
  rpc IsSupportedCommand(OpCodeMsg) returns (SupportedMsg) {}
  rpc GetLeNumberOfSupportedAdvertisingSets(google.protobuf.Empty) returns (SingleValueMsg) {}
  rpc SupportsSimplePairing(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsSecureConnections(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsSimultaneousLeBrEdr(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsInterlacedInquiryScan(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsRssiWithInquiryResults(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsExtendedInquiryResponse(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsRoleSwitch(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc Supports3SlotPackets(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc Supports5SlotPackets(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsClassic2mPhy(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsClassic3mPhy(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc Supports3SlotEdrPackets(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc Supports5SlotEdrPackets(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsSco(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsHv2Packets(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsHv3Packets(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsEv3Packets(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsEv4Packets(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsEv5Packets(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsEsco2mPhy(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsEsco3mPhy(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc Supports3SlotEscoEdrPackets(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsHoldMode(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsSniffMode(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsParkMode(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsNonFlushablePb(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsSniffSubrating(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsEncryptionPause(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBle(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleEncryption(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleConnectionParametersRequest(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleExtendedReject(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBlePeripheralInitiatedFeaturesExchange(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBlePing(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleDataPacketLengthExtension(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBlePrivacy(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleExtendedScannerFilterPolicies(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBle2mPhy(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleStableModulationIndexTx(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleStableModulationIndexRx(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleCodedPhy(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleExtendedAdvertising(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBlePeriodicAdvertising(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleChannelSelectionAlgorithm2(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBlePowerClass1(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleMinimumUsedChannels(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleConnectionCteRequest(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleConnectionCteResponse(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleConnectionlessCteTransmitter(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleConnectionlessCteReceiver(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleAntennaSwitchingDuringCteTx(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleAntennaSwitchingDuringCteRx(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleReceivingConstantToneExtensions(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBlePeriodicAdvertisingSyncTransferSender(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBlePeriodicAdvertisingSyncTransferRecipient(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleSleepClockAccuracyUpdates(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleRemotePublicKeyValidation(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleConnectedIsochronousStreamCentral(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleConnectedIsochronousStreamPeripheral(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleIsochronousBroadcaster(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleSynchronizedReceiver(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBleIsochronousChannelsHostSupport(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBlePowerControlRequest(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBlePowerChangeIndication(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBlePathLossMonitoring(google.protobuf.Empty) returns (SupportedMsg) {}
  rpc SupportsBlePeriodicAdvertisingAdi(google.protobuf.Empty) returns (SupportedMsg) {}
}

message NameMsg {
  bytes name = 1;
}

message OpCodeMsg {
  uint32 op_code = 1;
}

message SupportedMsg {
  bool supported = 1;
}

message SingleValueMsg {
  uint64 value = 1;
}
 No newline at end of file
+0 −23
Original line number Diff line number Diff line
syntax = "proto3";

package blueberry.facade.hci;

import "google/protobuf/empty.proto";
import "blueberry/facade/common.proto";

service HciFacade {
  rpc SendCommand(blueberry.facade.Data) returns (google.protobuf.Empty) {}

  rpc RequestEvent(EventRequest) returns (google.protobuf.Empty) {}
  rpc StreamEvents(google.protobuf.Empty) returns (stream blueberry.facade.Data) {}

  rpc RequestLeSubevent(EventRequest) returns (google.protobuf.Empty) {}
  rpc StreamLeSubevents(google.protobuf.Empty) returns (stream blueberry.facade.Data) {}

  rpc SendAcl(blueberry.facade.Data) returns (google.protobuf.Empty) {}
  rpc StreamAcl(google.protobuf.Empty) returns (stream blueberry.facade.Data) {}
}

message EventRequest {
  uint32 code = 1;
}
Loading