-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinputmethodinfo.go
More file actions
114 lines (108 loc) · 3.15 KB
/
inputmethodinfo.go
File metadata and controls
114 lines (108 loc) · 3.15 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
package inputmethod
import (
types "github.com/AndroidGoLab/binder/android/content/pm/types"
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type InputMethodInfo struct {
Id string
SettingsActivityName string
LanguageSettingsActivityName string
IsDefaultResId int32
IsAuxIme bool
SupportsSwitchingToNextInputMethod bool
InlineSuggestionsEnabled bool
SupportsInlineSuggestionsWithTouchExploration bool
SuppressesSpellChecker bool
ShowInInputMethodPicker bool
IsVrOnly bool
IsVirtualDeviceOnly bool
HandledConfigChanges int32
SupportsStylusHandwriting bool
SupportsConnectionlessStylusHandwriting bool
StylusHandwritingSettingsActivityAttr string
Service types.ResolveInfo
}
var _ parcel.Parcelable = (*InputMethodInfo)(nil)
func (s *InputMethodInfo) MarshalParcel(
p *parcel.Parcel,
) error {
p.WriteString16(s.Id)
p.WriteString16(s.SettingsActivityName)
p.WriteString(s.LanguageSettingsActivityName)
p.WriteInt32(s.IsDefaultResId)
p.WriteBool(s.IsAuxIme)
p.WriteBool(s.SupportsSwitchingToNextInputMethod)
p.WriteBool(s.InlineSuggestionsEnabled)
p.WriteBool(s.SupportsInlineSuggestionsWithTouchExploration)
p.WriteBool(s.SuppressesSpellChecker)
p.WriteBool(s.ShowInInputMethodPicker)
p.WriteBool(s.IsVrOnly)
p.WriteBool(s.IsVirtualDeviceOnly)
if _err := s.Service.MarshalParcel(p); _err != nil {
return _err
}
p.WriteInt32(-1) // null Subtypes
p.WriteInt32(s.HandledConfigChanges)
p.WriteBool(s.SupportsStylusHandwriting)
p.WriteBool(s.SupportsConnectionlessStylusHandwriting)
p.WriteString(s.StylusHandwritingSettingsActivityAttr)
return nil
}
func (s *InputMethodInfo) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
s.Id, _err = p.ReadString16()
if _err != nil {
return _err
}
s.SettingsActivityName, _err = p.ReadString16()
if _err != nil {
return _err
}
s.LanguageSettingsActivityName, _err = p.ReadString()
if _err != nil {
return _err
}
s.IsDefaultResId, _err = p.ReadInt32()
if _err != nil {
return _err
}
s.IsAuxIme, _err = p.ReadBool()
if _err != nil {
return _err
}
s.SupportsSwitchingToNextInputMethod, _err = p.ReadBool()
if _err != nil {
return _err
}
s.InlineSuggestionsEnabled, _err = p.ReadBool()
if _err != nil {
return _err
}
s.SupportsInlineSuggestionsWithTouchExploration, _err = p.ReadBool()
if _err != nil {
return _err
}
s.SuppressesSpellChecker, _err = p.ReadBool()
if _err != nil {
return _err
}
s.ShowInInputMethodPicker, _err = p.ReadBool()
if _err != nil {
return _err
}
s.IsVrOnly, _err = p.ReadBool()
if _err != nil {
return _err
}
s.IsVirtualDeviceOnly, _err = p.ReadBool()
if _err != nil {
return _err
}
if _err := s.Service.UnmarshalParcel(p); _err != nil {
return _err
}
return nil // opaque Subtypes: cannot skip without known wire format
}