all: Format proto files with protofmt
Change-Id: I1568acc097c1d708680de9a262cdaff44a167541
diff --git a/blueberry/a2dp.proto b/blueberry/a2dp.proto
index 92e0453..c7a630b 100644
--- a/blueberry/a2dp.proto
+++ b/blueberry/a2dp.proto
@@ -1,13 +1,13 @@
syntax = "proto3";
-option java_outer_classname = "A2DPProto";
-
package blueberry;
import "blueberry/host.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
+option java_outer_classname = "A2DPProto";
+
// Service to trigger A2DP (Advanced Audio Distribution Profile) procedures.
//
// Requirements for the implementer:
@@ -71,9 +71,11 @@
// Close a stream, the source or sink tokens must not be reused afterwards.
rpc Close(CloseRequest) returns (CloseResponse);
// Get the `AudioEncoding` value of a stream
- rpc GetAudioEncoding(GetAudioEncodingRequest) returns (GetAudioEncodingResponse);
+ rpc GetAudioEncoding(GetAudioEncodingRequest)
+ returns (GetAudioEncodingResponse);
// Playback audio by a `Source`
- rpc PlaybackAudio(stream PlaybackAudioRequest) returns (PlaybackAudioResponse);
+ rpc PlaybackAudio(stream PlaybackAudioRequest)
+ returns (PlaybackAudioResponse);
// Capture audio from a `Sink`
rpc CaptureAudio(CaptureAudioRequest) returns (stream CaptureAudioResponse);
}
@@ -192,15 +194,15 @@
// Response for the `Start` method.
message StartResponse {
- // Result of the `Start` call.
- oneof result {
- // Stream successfully started.
- google.protobuf.Empty started = 1;
- // Stream is already in AVDTP_STREAMING state.
- google.protobuf.Empty already_started = 2;
- // The Connection disconnected.
- google.protobuf.Empty disconnected = 3;
- }
+ // Result of the `Start` call.
+ oneof result {
+ // Stream successfully started.
+ google.protobuf.Empty started = 1;
+ // Stream is already in AVDTP_STREAMING state.
+ google.protobuf.Empty already_started = 2;
+ // The Connection disconnected.
+ google.protobuf.Empty disconnected = 3;
+ }
}
// Request for the `Suspend` method.
@@ -214,15 +216,15 @@
// Response for the `Suspend` method.
message SuspendResponse {
- // Result of the `Suspend` call.
- oneof result {
- // Stream successfully suspended.
- google.protobuf.Empty suspended = 1;
- // Stream is already in AVDTP_OPEN state.
- google.protobuf.Empty already_suspended = 2;
- // The Connection disconnected.
- google.protobuf.Empty disconnected = 3;
- }
+ // Result of the `Suspend` call.
+ oneof result {
+ // Stream successfully suspended.
+ google.protobuf.Empty suspended = 1;
+ // Stream is already in AVDTP_OPEN state.
+ google.protobuf.Empty already_suspended = 2;
+ // The Connection disconnected.
+ google.protobuf.Empty disconnected = 3;
+ }
}
// Request for the `Close` method.
diff --git a/blueberry/host.proto b/blueberry/host.proto
index 11054ce..5fb11dd 100644
--- a/blueberry/host.proto
+++ b/blueberry/host.proto
@@ -1,11 +1,11 @@
syntax = "proto3";
-option java_outer_classname = "HostProto";
-
package blueberry;
import "google/protobuf/empty.proto";
+option java_outer_classname = "HostProto";
+
// Service to trigger Bluetooth Host procedures
//
// Requirements for the implementer:
@@ -28,11 +28,13 @@
rpc GetConnection(GetConnectionRequest) returns (GetConnectionResponse);
// Wait for an ACL BR/EDR connection from a peer.
rpc WaitConnection(WaitConnectionRequest) returns (WaitConnectionResponse);
- // Disconnect an ACL BR/EDR connection. The Connection must not be reused afterwards.
+ // Disconnect an ACL BR/EDR connection. The Connection must not be reused
+ // afterwards.
rpc Disconnect(DisconnectRequest) returns (DisconnectResponse);
// Read the local Bluetooth device address.
// This should return the same value as a Read BD_ADDR HCI command.
- rpc ReadLocalAddress(google.protobuf.Empty) returns (ReadLocalAddressResponse);
+ rpc ReadLocalAddress(google.protobuf.Empty)
+ returns (ReadLocalAddressResponse);
}
// A Token representing an ACL connection.