-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremoteaction.go
More file actions
70 lines (64 loc) · 1.4 KB
/
remoteaction.go
File metadata and controls
70 lines (64 loc) · 1.4 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
70
package app
import (
drawable "github.com/AndroidGoLab/binder/android/graphics/drawable"
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type RemoteAction struct {
Enabled bool
ShouldShowIcon bool
Icon drawable.Icon
Title *string
ContentDescription *string
ActionIntent PendingIntent
}
var _ parcel.Parcelable = (*RemoteAction)(nil)
func (s *RemoteAction) MarshalParcel(
p *parcel.Parcel,
) error {
if _err := s.Icon.MarshalParcel(p); _err != nil {
return _err
}
parcel.WritePlainCharSequence(p, s.Title)
parcel.WritePlainCharSequence(p, s.ContentDescription)
if _err := s.ActionIntent.MarshalParcel(p); _err != nil {
return _err
}
p.WriteBool(s.Enabled)
p.WriteBool(s.ShouldShowIcon)
return nil
}
func (s *RemoteAction) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
if _err := s.Icon.UnmarshalParcel(p); _err != nil {
return _err
}
{
_cs, _csErr := parcel.ReadPlainCharSequence(p)
if _csErr != nil {
return _csErr
}
s.Title = _cs
}
{
_cs, _csErr := parcel.ReadPlainCharSequence(p)
if _csErr != nil {
return _csErr
}
s.ContentDescription = _cs
}
if _err := s.ActionIntent.UnmarshalParcel(p); _err != nil {
return _err
}
s.Enabled, _err = p.ReadBool()
if _err != nil {
return _err
}
s.ShouldShowIcon, _err = p.ReadBool()
if _err != nil {
return _err
}
return nil
}