-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindowcontextinfo.go
More file actions
53 lines (47 loc) · 995 Bytes
/
windowcontextinfo.go
File metadata and controls
53 lines (47 loc) · 995 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
49
50
51
52
53
package window
import (
types "github.com/AndroidGoLab/binder/android/content/res/types"
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type WindowContextInfo struct {
DisplayId int32
Configuration *types.Configuration
}
var _ parcel.Parcelable = (*WindowContextInfo)(nil)
func (s *WindowContextInfo) MarshalParcel(
p *parcel.Parcel,
) error {
if s.Configuration != nil {
p.WriteInt32(1)
if _err := s.Configuration.MarshalParcel(p); _err != nil {
return _err
}
} else {
p.WriteInt32(0)
}
p.WriteInt32(s.DisplayId)
return nil
}
func (s *WindowContextInfo) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
{
_flag, _err := p.ReadInt32()
if _err != nil {
return _err
}
if _flag != 0 {
s.Configuration = &types.Configuration{}
if _err = s.Configuration.UnmarshalParcel(p); _err != nil {
return _err
}
}
}
s.DisplayId, _err = p.ReadInt32()
if _err != nil {
return _err
}
return nil
}