-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbluetoothheadsetclientcall.go
More file actions
48 lines (42 loc) · 986 Bytes
/
bluetoothheadsetclientcall.go
File metadata and controls
48 lines (42 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package bluetooth
import (
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type BluetoothHeadsetClientCall struct {
Id int32
State int32
MultiParty bool
Outgoing bool
InBandRing bool
Device BluetoothDevice
}
var _ parcel.Parcelable = (*BluetoothHeadsetClientCall)(nil)
func (s *BluetoothHeadsetClientCall) MarshalParcel(
p *parcel.Parcel,
) error {
if _err := s.Device.MarshalParcel(p); _err != nil {
return _err
}
p.WriteInt32(s.Id)
p.WriteInt32(-1) // null Out
p.WriteInt32(s.State)
p.WriteInt32(-1) // null Out
p.WriteBool(s.MultiParty)
p.WriteBool(s.Outgoing)
p.WriteBool(s.InBandRing)
return nil
}
func (s *BluetoothHeadsetClientCall) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
if _err := s.Device.UnmarshalParcel(p); _err != nil {
return _err
}
s.Id, _err = p.ReadInt32()
if _err != nil {
return _err
}
return nil // opaque Out: cannot skip without known wire format
}