-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfragmentinfo.go
More file actions
69 lines (63 loc) · 1.8 KB
/
taskfragmentinfo.go
File metadata and controls
69 lines (63 loc) · 1.8 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
58
59
60
61
62
63
64
65
66
67
68
69
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 TaskFragmentInfo struct {
RunningActivityCount int32
IsVisible bool
IsTaskClearedForReuse bool
IsTaskFragmentClearedForPip bool
IsClearedForReorderActivityToFront bool
Configuration types.Configuration
}
var _ parcel.Parcelable = (*TaskFragmentInfo)(nil)
func (s *TaskFragmentInfo) MarshalParcel(
p *parcel.Parcel,
) error {
p.WriteNullStrongBinder() // null FragmentToken
p.WriteInt32(0) // null Token
if _err := s.Configuration.MarshalParcel(p); _err != nil {
return _err
}
p.WriteInt32(s.RunningActivityCount)
p.WriteBool(s.IsVisible)
p.WriteInt32(-1) // null Activities
p.WriteInt32(-1) // null InRequestedTaskFragmentActivities
p.WriteInt32(-1) // null PositionInParent
p.WriteBool(s.IsTaskClearedForReuse)
p.WriteBool(s.IsTaskFragmentClearedForPip)
p.WriteBool(s.IsClearedForReorderActivityToFront)
p.WriteInt32(-1) // null MinimumDimensions
return nil
}
func (s *TaskFragmentInfo) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
if _, _, _binderErr := p.ReadNullableStrongBinder(); _binderErr != nil {
return _binderErr
}
{
_opaqueFlag, _opaqueErr := p.ReadInt32()
if _opaqueErr != nil {
return _opaqueErr
}
if _opaqueFlag != 0 {
return nil // non-null Token: cannot skip unknown-size typed object
}
}
if _err := s.Configuration.UnmarshalParcel(p); _err != nil {
return _err
}
s.RunningActivityCount, _err = p.ReadInt32()
if _err != nil {
return _err
}
s.IsVisible, _err = p.ReadBool()
if _err != nil {
return _err
}
return nil // opaque Activities: cannot skip without known wire format
}