-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwaitresult.go
More file actions
57 lines (51 loc) · 1.05 KB
/
waitresult.go
File metadata and controls
57 lines (51 loc) · 1.05 KB
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
49
50
51
52
53
54
55
56
57
package app
import (
types "github.com/AndroidGoLab/binder/android/content/types"
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type WaitResult struct {
Result int32
Timeout bool
TotalTime int64
LaunchState int32
ComponentName types.ComponentName
}
var _ parcel.Parcelable = (*WaitResult)(nil)
func (s *WaitResult) MarshalParcel(
p *parcel.Parcel,
) error {
p.WriteInt32(s.Result)
p.WriteBool(s.Timeout)
if _err := s.ComponentName.MarshalParcel(p); _err != nil {
return _err
}
p.WriteInt64(s.TotalTime)
p.WriteInt32(s.LaunchState)
return nil
}
func (s *WaitResult) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
s.Result, _err = p.ReadInt32()
if _err != nil {
return _err
}
s.Timeout, _err = p.ReadBool()
if _err != nil {
return _err
}
if _err := s.ComponentName.UnmarshalParcel(p); _err != nil {
return _err
}
s.TotalTime, _err = p.ReadInt64()
if _err != nil {
return _err
}
s.LaunchState, _err = p.ReadInt32()
if _err != nil {
return _err
}
return nil
}