Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility with latest Android Auto #2

Merged
merged 13 commits into from
Aug 7, 2019
8 changes: 4 additions & 4 deletions aasdk_proto/AVChannelData.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

import "AVStreamTypeEnum.proto";
import "AudioTypeEnum.proto";
Expand All @@ -27,9 +27,9 @@ package f1x.aasdk.proto.data;

message AVChannel
{
enums.AVStreamType.Enum stream_type = 1;
enums.AudioType.Enum audio_type = 2;
required enums.AVStreamType.Enum stream_type = 1;
optional enums.AudioType.Enum audio_type = 2;
repeated AudioConfig audio_configs = 3;
repeated VideoConfig video_configs = 4;
bool available_while_in_call = 5;
optional bool available_while_in_call = 5;
}
2 changes: 1 addition & 1 deletion aasdk_proto/AVChannelMessageIdsEnum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.ids;

Expand Down
4 changes: 2 additions & 2 deletions aasdk_proto/AVChannelSetupRequestMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.messages;

message AVChannelSetupRequest
{
uint32 config_index = 1;
required uint32 config_index = 1;
}
2 changes: 1 addition & 1 deletion aasdk_proto/AVChannelSetupStatusEnum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.enums;

Expand Down
6 changes: 3 additions & 3 deletions aasdk_proto/AVChannelStartIndicationMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.messages;

message AVChannelStartIndication
{
int32 session = 1;
uint32 config = 2;
required int32 session = 1;
required uint32 config = 2;
}
2 changes: 1 addition & 1 deletion aasdk_proto/AVChannelStopIndicationMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.messages;

Expand Down
8 changes: 4 additions & 4 deletions aasdk_proto/AVInputChannelData.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

import "AVStreamTypeEnum.proto";
import "AudioConfigData.proto";
Expand All @@ -25,7 +25,7 @@ package f1x.aasdk.proto.data;

message AVInputChannel
{
enums.AVStreamType.Enum stream_type = 1;
AudioConfig audio_config = 2;
bool available_while_in_call = 3;
required enums.AVStreamType.Enum stream_type = 1;
required AudioConfig audio_config = 2;
optional bool available_while_in_call = 3;
}
10 changes: 5 additions & 5 deletions aasdk_proto/AVInputOpenRequestMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.messages;

message AVInputOpenRequest
{
bool open = 1;
bool anc = 2;
bool ec = 3;
int32 max_unacked = 4;
required bool open = 1;
optional bool anc = 2;
optional bool ec = 3;
optional int32 max_unacked = 4;
}
2 changes: 1 addition & 1 deletion aasdk_proto/AVStreamTypeEnum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.enums;

Expand Down
6 changes: 3 additions & 3 deletions aasdk_proto/AbsoluteInputEventData.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.data;

message AbsoluteInputEvent
{
uint32 scan_code = 1;
int32 value = 2;
required uint32 scan_code = 1;
required int32 value = 2;
}
2 changes: 1 addition & 1 deletion aasdk_proto/AbsoluteInputEventsData.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

import "AbsoluteInputEventData.proto";

Expand Down
8 changes: 4 additions & 4 deletions aasdk_proto/AccelData.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.data;

message Accel
{
int32 acceleration_x = 1;
int32 acceleration_y = 2;
int32 acceleration_z = 3;
required int32 acceleration_x = 1;
required int32 acceleration_y = 2;
required int32 acceleration_z = 3;
}
8 changes: 4 additions & 4 deletions aasdk_proto/AudioConfigData.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.data;

message AudioConfig
{
uint32 sample_rate = 1;
uint32 bit_depth = 2;
uint32 channel_count = 3;
required uint32 sample_rate = 1;
required uint32 bit_depth = 2;
required uint32 channel_count = 3;
}
4 changes: 2 additions & 2 deletions aasdk_proto/AudioFocusRequestMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

import "AudioFocusTypeEnum.proto";

package f1x.aasdk.proto.messages;

message AudioFocusRequest
{
enums.AudioFocusType.Enum audio_focus_type = 1;
required enums.AudioFocusType.Enum audio_focus_type = 1;
}
4 changes: 2 additions & 2 deletions aasdk_proto/AudioFocusResponseMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

import "AudioFocusStateEnum.proto";

package f1x.aasdk.proto.messages;

message AudioFocusResponse
{
enums.AudioFocusState.Enum audio_focus_state = 1;
required enums.AudioFocusState.Enum audio_focus_state = 1;
}
2 changes: 1 addition & 1 deletion aasdk_proto/AudioFocusStateEnum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.enums;

Expand Down
2 changes: 1 addition & 1 deletion aasdk_proto/AudioFocusTypeEnum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.enums;

Expand Down
2 changes: 1 addition & 1 deletion aasdk_proto/AudioTypeEnum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.enums;

Expand Down
2 changes: 1 addition & 1 deletion aasdk_proto/BindingRequestMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.messages;

Expand Down
4 changes: 2 additions & 2 deletions aasdk_proto/BluetoothChannelData.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

import "BluetoothPairingMethodEnum.proto";

package f1x.aasdk.proto.data;

message BluetoothChannel
{
string adapter_address = 1;
required string adapter_address = 1;
repeated enums.BluetoothPairingMethod.Enum supported_pairing_methods = 2;
}
2 changes: 1 addition & 1 deletion aasdk_proto/BluetoothChannelMessageIdsEnum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.ids;

Expand Down
2 changes: 1 addition & 1 deletion aasdk_proto/BluetoothPairingMethodEnum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.enums;

Expand Down
6 changes: 3 additions & 3 deletions aasdk_proto/BluetoothPairingRequestMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

import "BluetoothPairingMethodEnum.proto";

package f1x.aasdk.proto.messages;

message BluetoothPairingRequest
{
string phone_address = 1;
enums.BluetoothPairingMethod.Enum pairing_method = 2;
required string phone_address = 1;
required enums.BluetoothPairingMethod.Enum pairing_method = 2;
}
6 changes: 3 additions & 3 deletions aasdk_proto/BluetoothPairingResponseMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

import "BluetoothPairingStatusEnum.proto";

package f1x.aasdk.proto.messages;

message BluetoothPairingResponse
{
bool already_paired = 1;
enums.BluetoothPairingStatus.Enum status = 2;
required bool already_paired = 1;
required enums.BluetoothPairingStatus.Enum status = 2;
}
2 changes: 1 addition & 1 deletion aasdk_proto/BluetoothPairingStatusEnum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.enums;

Expand Down
2 changes: 1 addition & 1 deletion aasdk_proto/ButtonCodeEnum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.enums;

Expand Down
10 changes: 5 additions & 5 deletions aasdk_proto/ButtonEventData.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

package f1x.aasdk.proto.data;

message ButtonEvent
{
uint32 scan_code = 1;
bool is_pressed = 2;
uint32 meta = 3;
bool long_press = 4;
required uint32 scan_code = 1;
required bool is_pressed = 2;
optional uint32 meta = 3;
optional bool long_press = 4;
}
2 changes: 1 addition & 1 deletion aasdk_proto/ButtonEventsData.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/

syntax="proto3";
syntax="proto2";

import "ButtonEventData.proto";

Expand Down
Loading