• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "accessibility_event_info.h"
17 #include "accessibility_operator.h"
18 #include "hilog_wrapper.h"
19 
20 namespace OHOS {
21 namespace Accessibility {
ReadFromParcel(Parcel & parcel)22 bool AccessibilityMemo::ReadFromParcel(Parcel &parcel)
23 {
24     (void)parcel;
25     return true;
26 }
27 
Marshalling(Parcel & parcel) const28 bool AccessibilityMemo::Marshalling(Parcel &parcel) const
29 {
30     (void)parcel;
31     return true;
32 }
33 
Unmarshalling(Parcel & parcel)34 AccessibilityMemo* AccessibilityMemo::Unmarshalling(Parcel& parcel)
35 {
36     (void)parcel;
37     AccessibilityMemo* accessibilityRecord = new AccessibilityMemo();
38     return accessibilityRecord;
39 }
40 
SetChannelId(const int channelId)41 void AccessibilityMemo::SetChannelId(const int channelId)
42 {
43     (void)channelId;
44 }
45 
GetChannelId() const46 int AccessibilityMemo::GetChannelId() const
47 {
48     return channelId_;
49 }
50 
SetSource(const int componentId)51 void AccessibilityMemo::SetSource(const int componentId)
52 {
53     (void)componentId;
54 }
55 
GetSource(AccessibilityElementInfo & elementInfo) const56 bool AccessibilityMemo::GetSource(AccessibilityElementInfo &elementInfo) const
57 {
58     (void)elementInfo;
59     return true;
60 }
61 
GetViewId() const62 int AccessibilityMemo::GetViewId() const
63 {
64     return componentId_;
65 }
66 
GetAccessibilityId() const67 int AccessibilityMemo::GetAccessibilityId() const
68 {
69     return elementId_;
70 }
71 
SetWindowId(const int windowId)72 void AccessibilityMemo::SetWindowId(const int windowId)
73 {
74     (void)windowId;
75 }
76 
GetWindowId() const77 int AccessibilityMemo::GetWindowId() const
78 {
79     return windowId_;
80 }
81 
GetCurrentIndex() const82 int AccessibilityMemo::GetCurrentIndex() const
83 {
84     return currentIndex_;
85 }
86 
SetCurrentIndex(const int index)87 void AccessibilityMemo::SetCurrentIndex(const int index)
88 {
89     (void)index;
90 }
91 
GetBeginIndex() const92 int AccessibilityMemo::GetBeginIndex() const
93 {
94     return beginIndex_;
95 }
96 
SetBeginIndex(const int index)97 void AccessibilityMemo::SetBeginIndex(const int index)
98 {
99     (void)index;
100 }
101 
GetEndIndex() const102 int AccessibilityMemo::GetEndIndex() const
103 {
104     return endIndex_;
105 }
106 
SetEndIndex(const int index)107 void AccessibilityMemo::SetEndIndex(const int index)
108 {
109     (void)index;
110 }
111 
GetComponentType() const112 std::string AccessibilityMemo::GetComponentType() const
113 {
114     return componentType_;
115 }
116 
SetComponentType(const std::string & className)117 void AccessibilityMemo::SetComponentType(const std::string &className)
118 {
119     (void)className;
120 }
121 
GetBeforeText() const122 std::string AccessibilityMemo::GetBeforeText() const
123 {
124     return beforeText_;
125 }
126 
SetBeforeText(const std::string & beforeText)127 void AccessibilityMemo::SetBeforeText(const std::string &beforeText)
128 {
129     (void)beforeText;
130 }
131 
AddContent(const std::string & content)132 void AccessibilityMemo::AddContent(const std::string &content)
133 {
134     (void)content;
135 }
136 
GetContentList() const137 std::vector<std::string> AccessibilityMemo::GetContentList() const
138 {
139     return contents_;
140 }
141 
GetLatestContent() const142 std::string AccessibilityMemo::GetLatestContent() const
143 {
144     return latestConent_;
145 }
146 
SetLatestContent(const std::string & content)147 void AccessibilityMemo::SetLatestContent(const std::string &content)
148 {
149     (void)content;
150 }
151 
GetDescription() const152 std::string AccessibilityMemo::GetDescription() const
153 {
154     return description_;
155 }
156 
SetDescription(const std::string & contentDescription)157 void AccessibilityMemo::SetDescription(const std::string &contentDescription)
158 {
159     (void)contentDescription;
160 }
161 
SetItemCounts(const int itemCounts)162 void AccessibilityMemo::SetItemCounts(const int itemCounts)
163 {
164     (void)itemCounts;
165 }
166 
GetItemCounts() const167 int AccessibilityMemo::GetItemCounts() const
168 {
169     return itemCounts_;
170 }
171 
ReadFromParcel(Parcel & parcel)172 bool AccessibilityEventInfo::ReadFromParcel(Parcel &parcel)
173 {
174     (void)parcel;
175     return true;
176 }
177 
Marshalling(Parcel & parcel) const178 bool AccessibilityEventInfo::Marshalling(Parcel &parcel) const
179 {
180     (void)parcel;
181     return true;
182 };
183 
Unmarshalling(Parcel & parcel)184 AccessibilityEventInfo *AccessibilityEventInfo::Unmarshalling(Parcel& parcel)
185 {
186     (void)parcel;
187     AccessibilityEventInfo *accessibilityEventInfo = new AccessibilityEventInfo();
188     return accessibilityEventInfo;
189 }
190 
GetRecordCount() const191 int AccessibilityEventInfo::GetRecordCount() const
192 {
193     return recordsCount_;
194 }
195 
SetRecordCount(const int recordCount)196 void AccessibilityEventInfo::SetRecordCount(const int recordCount)
197 {
198     (void)recordCount;
199 }
200 
AddRecord(const AccessibilityEventInfo & record)201 void AccessibilityEventInfo::AddRecord(const AccessibilityEventInfo &record)
202 {
203     (void)record;
204 }
205 
GetRecord(const int index)206 AccessibilityEventInfo AccessibilityEventInfo::GetRecord(const int index)
207 {
208     return records_[index];
209 }
210 
GetRecords()211 std::vector<AccessibilityEventInfo> AccessibilityEventInfo::GetRecords()
212 {
213     return records_;
214 }
215 
GetEventType() const216 EventType AccessibilityEventInfo::GetEventType() const
217 {
218     return eventType_;
219 }
220 
GetWindowContentChangeTypes() const221 WindowsContentChangeTypes AccessibilityEventInfo::GetWindowContentChangeTypes() const
222 {
223     return windowContentChangeTypes_;
224 }
225 
SetWindowContentChangeTypes(const WindowsContentChangeTypes changeTypes)226 void AccessibilityEventInfo::SetWindowContentChangeTypes(const WindowsContentChangeTypes changeTypes)
227 {
228     (void)changeTypes;
229 }
230 
GetWindowChangeTypes() const231 WindowUpdateType AccessibilityEventInfo::GetWindowChangeTypes() const
232 {
233     return windowChangeTypes_;
234 }
235 
SetWindowChangeTypes(const WindowUpdateType changeTypes)236 void AccessibilityEventInfo::SetWindowChangeTypes(const WindowUpdateType changeTypes)
237 {
238     (void)changeTypes;
239 }
240 
SetEventType(const EventType eventType)241 void AccessibilityEventInfo::SetEventType(const EventType eventType)
242 {
243     eventType_ = eventType;
244 }
245 
GetTimeStamp() const246 int64_t AccessibilityEventInfo::GetTimeStamp() const
247 {
248     return timeStamp_;
249 }
250 
SetTimeStamp(const int64_t eventTime)251 void AccessibilityEventInfo::SetTimeStamp(const int64_t eventTime)
252 {
253     (void)eventTime;
254 }
255 
GetBundleName() const256 std::string AccessibilityEventInfo::GetBundleName() const
257 {
258     return bundleName_;
259 }
260 
SetBundleName(const std::string & bundleName)261 void AccessibilityEventInfo::SetBundleName(const std::string &bundleName)
262 {
263     (void)bundleName;
264 }
265 
SetTextMovementStep(const TextMoveUnit granularity)266 void AccessibilityEventInfo::SetTextMovementStep(const TextMoveUnit granularity)
267 {
268     (void)granularity;
269 }
270 
GetTextMovementStep() const271 TextMoveUnit AccessibilityEventInfo::GetTextMovementStep() const
272 {
273     return textMoveStep_;
274 }
275 
SetTriggerAction(const ActionType action)276 void AccessibilityEventInfo::SetTriggerAction(const ActionType action)
277 {
278     (void)action;
279 }
280 
GetTriggerAction() const281 ActionType AccessibilityEventInfo::GetTriggerAction() const
282 {
283     return triggerAction_;
284 }
285 
AccessibilityEventInfo(int windowId,WindowUpdateType windowChangeTypes)286 AccessibilityEventInfo::AccessibilityEventInfo(int windowId, WindowUpdateType windowChangeTypes)
287 {
288     (void)windowId;
289     (void)windowChangeTypes;
290 }
291 
AccessibilityEventInfo(EventType eventType)292 AccessibilityEventInfo::AccessibilityEventInfo(EventType eventType)
293 {
294     (void)eventType;
295 }
296 
SetNotificationInfo(const NotificationCategory category)297 void AccessibilityEventInfo::SetNotificationInfo(const NotificationCategory category)
298 {
299     (void)category;
300 }
301 
GetNotificationInfo() const302 NotificationCategory AccessibilityEventInfo::GetNotificationInfo() const
303 {
304     return category_;
305 }
306 
GetGestureType() const307 GestureType AccessibilityEventInfo::GetGestureType() const
308 {
309     return gestureType_;
310 }
311 } // namespace Accessibility
312 } // namespace OHOS