-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetworkscorerappdata.go
More file actions
58 lines (52 loc) · 1.39 KB
/
networkscorerappdata.go
File metadata and controls
58 lines (52 loc) · 1.39 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
package net
import (
types "github.com/AndroidGoLab/binder/android/content/types"
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type NetworkScorerAppData struct {
PackageUid int32
RecommendationServiceLabel string
NetworkAvailableNotificationChannelId string
ComponentName types.ComponentName
ComponentName2 types.ComponentName
}
var _ parcel.Parcelable = (*NetworkScorerAppData)(nil)
func (s *NetworkScorerAppData) MarshalParcel(
p *parcel.Parcel,
) error {
p.WriteInt32(s.PackageUid)
if _err := s.ComponentName.MarshalParcel(p); _err != nil {
return _err
}
p.WriteString16(s.RecommendationServiceLabel)
if _err := s.ComponentName2.MarshalParcel(p); _err != nil {
return _err
}
p.WriteString16(s.NetworkAvailableNotificationChannelId)
return nil
}
func (s *NetworkScorerAppData) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
s.PackageUid, _err = p.ReadInt32()
if _err != nil {
return _err
}
if _err := s.ComponentName.UnmarshalParcel(p); _err != nil {
return _err
}
s.RecommendationServiceLabel, _err = p.ReadString16()
if _err != nil {
return _err
}
if _err := s.ComponentName2.UnmarshalParcel(p); _err != nil {
return _err
}
s.NetworkAvailableNotificationChannelId, _err = p.ReadString16()
if _err != nil {
return _err
}
return nil
}