• 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 <gtest/gtest.h>
17 #include "accessibility_element_info.h"
18 #include "accessibility_operator.h"
19 #include "hilog_wrapper.h"
20 #include "parcel_util.h"
21 
22 namespace OHOS {
23 namespace Accessibility {
ReadFromParcel(Parcel & parcel)24 bool AccessibilityElementInfo::ReadFromParcel(Parcel &parcel)
25 {
26     (void)parcel;
27     return true;
28 }
29 
Marshalling(Parcel & parcel) const30 bool AccessibilityElementInfo::Marshalling(Parcel &parcel) const
31 {
32     (void)parcel;
33     return true;
34 };
35 
Unmarshalling(Parcel & parcel)36 sptr<AccessibilityElementInfo> AccessibilityElementInfo::Unmarshalling(Parcel& parcel)
37 {
38     (void)parcel;
39     return nullptr;
40 }
41 
SetComponentId(const int componentId)42 void AccessibilityElementInfo::SetComponentId(const int componentId)
43 {
44     (void)componentId;
45 }
46 
GetFocus(const int focus,AccessibilityElementInfo & elementInfo)47 bool AccessibilityElementInfo::GetFocus(const int focus, AccessibilityElementInfo &elementInfo)
48 {
49     (void)focus;
50     (void)elementInfo;
51     return true;
52 }
53 
GetNext(const FocusMoveDirection direction,AccessibilityElementInfo & elementInfo)54 bool AccessibilityElementInfo::GetNext(const FocusMoveDirection direction, AccessibilityElementInfo &elementInfo)
55 {
56     (void)direction;
57     (void)elementInfo;
58     return true;
59 }
60 
GetChildId(const int index) const61 int AccessibilityElementInfo::GetChildId(const int index) const
62 {
63     return childNodeIds_[index];
64 }
GetChildCount() const65 int AccessibilityElementInfo::GetChildCount() const
66 {
67     return childCount_;
68 }
69 
GetChild(const int index,AccessibilityElementInfo & elementInfo)70 bool AccessibilityElementInfo::GetChild(const int index, AccessibilityElementInfo &elementInfo)
71 {
72     (void)index;
73     (void)elementInfo;
74     return true;
75 }
76 
GetChildIds() const77 std::vector<int> AccessibilityElementInfo::GetChildIds() const
78 {
79     return childNodeIds_;
80 }
81 
AddChild(const int childId)82 void AccessibilityElementInfo::AddChild(const int childId)
83 {
84     (void)childId;
85 }
86 
RemoveChild(const int childId)87 bool AccessibilityElementInfo::RemoveChild(const int childId)
88 {
89     (void)childId;
90     return true;
91 }
92 
GetActionList() const93 std::vector<AccessibleAction> AccessibilityElementInfo::GetActionList() const
94 {
95     return operations_;
96 }
97 
AddAction(AccessibleAction & operation)98 void AccessibilityElementInfo::AddAction(AccessibleAction &operation)
99 {
100     (void)operation;
101 }
102 
DeleteAction(AccessibleAction & operation)103 void AccessibilityElementInfo::DeleteAction(AccessibleAction &operation)
104 {
105     (void)operation;
106 }
107 
DeleteAction(ActionType & operationType)108 bool AccessibilityElementInfo::DeleteAction(ActionType &operationType)
109 {
110     (void)operationType;
111     return true;
112 }
113 
DeleteAllActions()114 void AccessibilityElementInfo::DeleteAllActions()
115 {}
116 
SetTextLengthLimit(const int max)117 void AccessibilityElementInfo::SetTextLengthLimit(const int max)
118 {
119     (void)max;
120 }
121 
GetTextLengthLimit() const122 int AccessibilityElementInfo::GetTextLengthLimit() const
123 {
124     return textLengthLimit_;
125 }
126 
ExecuteAction(const ActionType & operation,const std::map<std::string,std::string> & actionArguments)127 bool AccessibilityElementInfo::ExecuteAction(const ActionType &operation,
128     const std::map<std::string, std::string> &actionArguments)
129 {
130     (void)operation;
131     (void)actionArguments;
132     return true;
133 }
134 
GetByContent(const std::string & text,std::vector<AccessibilityElementInfo> & elementInfos)135 bool AccessibilityElementInfo::GetByContent(const std::string &text,
136     std::vector<AccessibilityElementInfo> &elementInfos)
137 {
138     (void)text;
139     (void)elementInfos;
140     return true;
141 }
142 
GetElementInfosById(const int elementId,int mode,std::vector<AccessibilityElementInfo> & elementInfos)143 bool AccessibilityElementInfo::GetElementInfosById(const int elementId, int mode,
144     std::vector<AccessibilityElementInfo> &elementInfos)
145 {
146     (void)elementId;
147     (void)mode;
148     (void)elementInfos;
149     return true;
150 }
151 
GetWindowId() const152 int AccessibilityElementInfo::GetWindowId() const
153 {
154     return windowId_;
155 }
156 
SetWindowId(const int windowId)157 void AccessibilityElementInfo::SetWindowId(const int windowId)
158 {
159     (void)windowId;
160 }
161 
GetParent(AccessibilityElementInfo & elementInfo)162 bool AccessibilityElementInfo::GetParent(AccessibilityElementInfo &elementInfo)
163 {
164     (void)elementInfo;
165     return true;
166 }
167 
GetParentNodeId() const168 int AccessibilityElementInfo::GetParentNodeId() const
169 {
170     return parentId_;
171 }
172 
SetParent(const int parentId)173 void AccessibilityElementInfo::SetParent(const int parentId)
174 {
175     (void)parentId;
176 }
177 
GetRectInScreen() const178 Rect AccessibilityElementInfo::GetRectInScreen() const
179 {
180     return bounds_;
181 }
182 
SetRectInScreen(Rect & bounds)183 void AccessibilityElementInfo::SetRectInScreen(Rect &bounds)
184 {
185     (void)bounds;
186 }
187 
IsCheckable() const188 bool AccessibilityElementInfo::IsCheckable() const
189 {
190     return checkable_;
191 }
192 
SetCheckable(const bool checkable)193 void AccessibilityElementInfo::SetCheckable(const bool checkable)
194 {
195     (void)checkable;
196 }
197 
IsChecked() const198 bool AccessibilityElementInfo::IsChecked() const
199 {
200     return checked_;
201 }
202 
SetChecked(const bool checked)203 void AccessibilityElementInfo::SetChecked(const bool checked)
204 {
205     (void)checked;
206 }
207 
IsFocusable() const208 bool AccessibilityElementInfo::IsFocusable() const
209 {
210     return focusable_;
211 }
212 
SetFocusable(const bool focusable)213 void AccessibilityElementInfo::SetFocusable(const bool focusable)
214 {
215     (void)focusable;
216 }
217 
IsFocused() const218 bool AccessibilityElementInfo::IsFocused() const
219 {
220     return focused_;
221 }
222 
SetFocused(const bool focused)223 void AccessibilityElementInfo::SetFocused(const bool focused)
224 {
225     (void)focused;
226 }
227 
IsVisible() const228 bool AccessibilityElementInfo::IsVisible() const
229 {
230     return visible_;
231 }
232 
SetVisible(const bool visible)233 void AccessibilityElementInfo::SetVisible(const bool visible)
234 {
235     (void)visible;
236 }
237 
HasAccessibilityFocus() const238 bool AccessibilityElementInfo::HasAccessibilityFocus() const
239 {
240     return accessibilityFocused_;
241 }
242 
SetAccessibilityFocus(const bool focused)243 void AccessibilityElementInfo::SetAccessibilityFocus(const bool focused)
244 {
245     (void)focused;
246 }
247 
IsSelected() const248 bool AccessibilityElementInfo::IsSelected() const
249 {
250     return selected_;
251 }
252 
SetSelected(const bool selected)253 void AccessibilityElementInfo::SetSelected(const bool selected)
254 {
255     (void)selected;
256 }
257 
IsClickable() const258 bool AccessibilityElementInfo::IsClickable() const
259 {
260     return clickable_;
261 }
262 
SetClickable(const bool clickable)263 void AccessibilityElementInfo::SetClickable(const bool clickable)
264 {
265     (void)clickable;
266 }
267 
IsLongClickable() const268 bool AccessibilityElementInfo::IsLongClickable() const
269 {
270     return longClickable_;
271 }
272 
SetLongClickable(const bool longClickable)273 void AccessibilityElementInfo::SetLongClickable(const bool longClickable)
274 {
275     (void)longClickable;
276 }
277 
IsEnabled() const278 bool AccessibilityElementInfo::IsEnabled() const
279 {
280     return enable_;
281 }
282 
SetEnabled(const bool enabled)283 void AccessibilityElementInfo::SetEnabled(const bool enabled)
284 {
285     (void)enabled;
286 }
287 
IsPassword() const288 bool AccessibilityElementInfo::IsPassword() const
289 {
290     return isPassword_;
291 }
292 
SetPassword(const bool type)293 void AccessibilityElementInfo::SetPassword(const bool type)
294 {
295     (void)type;
296 }
297 
IsScrollable() const298 bool AccessibilityElementInfo::IsScrollable() const
299 {
300     return scrollable_;
301 }
302 
SetScrollable(const bool scrollable)303 void AccessibilityElementInfo::SetScrollable(const bool scrollable)
304 {
305     (void)scrollable;
306 }
307 
GetCurrentIndex() const308 int AccessibilityElementInfo::GetCurrentIndex() const
309 {
310     return currentIndex_;
311 }
312 
SetCurrentIndex(const int index)313 void AccessibilityElementInfo::SetCurrentIndex(const int index)
314 {
315     (void)index;
316 }
317 
GetBeginIndex() const318 int AccessibilityElementInfo::GetBeginIndex() const
319 {
320     return beginIndex_;
321 }
322 
SetBeginIndex(const int index)323 void AccessibilityElementInfo::SetBeginIndex(const int index)
324 {
325     (void)index;
326 }
327 
GetEndIndex() const328 int AccessibilityElementInfo::GetEndIndex() const
329 {
330     return endIndex_;
331 }
332 
SetEndIndex(const int index)333 void AccessibilityElementInfo::SetEndIndex(const int index)
334 {
335     (void)index;
336 }
337 
GetInputType() const338 int AccessibilityElementInfo::GetInputType() const
339 {
340     return inputType_;
341 }
342 
SetInputType(const int inputType)343 void AccessibilityElementInfo::SetInputType(const int inputType)
344 {
345     (void)inputType;
346 }
347 
IsEditable() const348 bool AccessibilityElementInfo::IsEditable() const
349 {
350     return editable_;
351 }
352 
SetEditable(const bool editable)353 void AccessibilityElementInfo::SetEditable(const bool editable)
354 {
355     (void)editable;
356 }
357 
IsPluraLineSupported() const358 bool AccessibilityElementInfo::IsPluraLineSupported() const
359 {
360     return multiLine_;
361 }
362 
SetPluraLineSupported(const bool multiLine)363 void AccessibilityElementInfo::SetPluraLineSupported(const bool multiLine)
364 {
365     (void)multiLine;
366 }
367 
IsPopupSupported() const368 bool AccessibilityElementInfo::IsPopupSupported() const
369 {
370     return popupSupported_;
371 }
372 
SetPopupSupported(const bool supportPopup)373 void AccessibilityElementInfo::SetPopupSupported(const bool supportPopup)
374 {
375     (void)supportPopup;
376 }
377 
IsDeletable() const378 bool AccessibilityElementInfo::IsDeletable() const
379 {
380     return deletable_;
381 }
382 
SetDeletable(const bool deletable)383 void AccessibilityElementInfo::SetDeletable(const bool deletable)
384 {
385     (void)deletable;
386 }
387 
IsEssential() const388 bool AccessibilityElementInfo::IsEssential() const
389 {
390     return isEssential_;
391 }
392 
SetEssential(const bool important)393 void AccessibilityElementInfo::SetEssential(const bool important)
394 {
395     (void)important;
396 }
397 
IsGivingHint() const398 bool AccessibilityElementInfo::IsGivingHint() const
399 {
400     return hint_;
401 }
402 
SetHinting(const bool hinting)403 void AccessibilityElementInfo::SetHinting(const bool hinting)
404 {
405     (void)hinting;
406 }
407 
GetBundleName() const408 std::string AccessibilityElementInfo::GetBundleName() const
409 {
410     GTEST_LOG_(INFO) << "MOCK AccessibilityElementInfo GetBundleName";
411     return bundleName_;
412 }
413 
SetBundleName(const std::string & bundleName)414 void AccessibilityElementInfo::SetBundleName(const std::string &bundleName)
415 {
416     GTEST_LOG_(INFO) << "MOCK AccessibilityElementInfo SetBundleName";
417     bundleName_ = bundleName;
418 }
419 
GetComponentType() const420 std::string AccessibilityElementInfo::GetComponentType() const
421 {
422     return componentType_;
423 }
424 
SetComponentType(const std::string & className)425 void AccessibilityElementInfo::SetComponentType(const std::string &className)
426 {
427     (void)className;
428 }
429 
GetContent() const430 std::string AccessibilityElementInfo::GetContent() const
431 {
432     return text_;
433 }
434 
SetContent(const std::string & text)435 void AccessibilityElementInfo::SetContent(const std::string &text)
436 {
437     (void)text;
438 }
439 
GetAccessibilityContent() const440 std::string AccessibilityElementInfo::GetAccessibilityContent() const
441 {
442     return accessibilityText_;
443 }
444 
SetAccessibilityContent(const std::string & text)445 void AccessibilityElementInfo::SetAccessibilityContent(const std::string &text)
446 {
447     (void)text;
448 }
449 
SetSelectedBegin(const int start)450 void AccessibilityElementInfo::SetSelectedBegin(const int start)
451 {
452     (void)start;
453 }
454 
GetSelectedBegin() const455 int AccessibilityElementInfo::GetSelectedBegin() const
456 {
457     return beginSelected_;
458 }
459 
SetSelectedEnd(const int end)460 void AccessibilityElementInfo::SetSelectedEnd(const int end)
461 {
462     (void)end;
463 }
464 
GetSelectedEnd() const465 int AccessibilityElementInfo::GetSelectedEnd() const
466 {
467     return endSelected_;
468 }
469 
GetAccessibilityDescription() const470 std::string AccessibilityElementInfo::GetAccessibilityDescription() const
471 {
472     return accessibilityDescription_;
473 }
474 
SetAccessibilityDescription(const std::string & text)475 void AccessibilityElementInfo::SetAccessibilityDescription(const std::string &text)
476 {
477     (void)text;
478 }
479 
GetAccessibilityGroup() const480 bool AccessibilityElementInfo::GetAccessibilityGroup() const
481 {
482     return accessibilityGroup_;
483 }
484 
SetAccessibilityGroup(const bool group)485 void AccessibilityElementInfo::SetAccessibilityGroup(const bool group)
486 {
487     (void)group;
488 }
489 
GetHint() const490 std::string AccessibilityElementInfo::GetHint() const
491 {
492     return hintText_;
493 }
494 
SetHint(const std::string & hintText)495 void AccessibilityElementInfo::SetHint(const std::string &hintText)
496 {
497     (void)hintText;
498 }
499 
GetDescriptionInfo() const500 std::string AccessibilityElementInfo::GetDescriptionInfo() const
501 {
502     return contentDescription_;
503 }
504 
SetDescriptionInfo(const std::string contentDescription)505 void AccessibilityElementInfo::SetDescriptionInfo(const std::string contentDescription)
506 {
507     (void)contentDescription;
508 }
509 
SetComponentResourceId(const std::string & viewIdResName)510 void AccessibilityElementInfo::SetComponentResourceId(const std::string &viewIdResName)
511 {
512     (void)viewIdResName;
513 }
514 
GetComponentResourceId() const515 std::string AccessibilityElementInfo::GetComponentResourceId() const
516 {
517     return resourceName_;
518 }
519 
SetLiveRegion(const int liveRegion)520 void AccessibilityElementInfo::SetLiveRegion(const int liveRegion)
521 {
522     (void)liveRegion;
523 }
524 
GetLiveRegion() const525 int AccessibilityElementInfo::GetLiveRegion() const
526 {
527     return liveRegion_;
528 }
529 
SetContentInvalid(const bool contentInvalid)530 void AccessibilityElementInfo::SetContentInvalid(const bool contentInvalid)
531 {
532     (void)contentInvalid;
533 }
534 
GetContentInvalid() const535 bool AccessibilityElementInfo::GetContentInvalid() const
536 {
537     return contentInvalid_;
538 }
539 
SetError(const std::string & error)540 void AccessibilityElementInfo::SetError(const std::string &error)
541 {
542     (void)error;
543 }
544 
GetError() const545 std::string AccessibilityElementInfo::GetError() const
546 {
547     return error_;
548 }
549 
SetLabeled(const int componentId)550 void AccessibilityElementInfo::SetLabeled(const int componentId)
551 {
552     (void)componentId;
553 }
554 
GetLabeled(AccessibilityElementInfo & elementInfo) const555 bool AccessibilityElementInfo::GetLabeled(AccessibilityElementInfo &elementInfo) const
556 {
557     (void)elementInfo;
558     return true;
559 }
560 
GetLabeledAccessibilityId() const561 int AccessibilityElementInfo::GetLabeledAccessibilityId() const
562 {
563     return labeled_;
564 }
565 
GetChannelId() const566 int AccessibilityElementInfo::GetChannelId() const
567 {
568     return channelId_;
569 }
570 
SetChannelId(const int channelId)571 void AccessibilityElementInfo::SetChannelId(const int channelId)
572 {
573     (void)channelId;
574 }
575 
SetAccessibilityId(const int componentId)576 void AccessibilityElementInfo::SetAccessibilityId(const int componentId)
577 {
578     (void)componentId;
579 }
580 
GetAccessibilityId() const581 int AccessibilityElementInfo::GetAccessibilityId() const
582 {
583     return elementId_;
584 }
585 
GetRange() const586 RangeInfo AccessibilityElementInfo::GetRange() const
587 {
588     return rangeInfo_;
589 }
590 
SetRange(RangeInfo & rangeInfo)591 void AccessibilityElementInfo::SetRange(RangeInfo &rangeInfo)
592 {
593     (void)rangeInfo;
594 }
595 
GetGrid() const596 GridInfo AccessibilityElementInfo::GetGrid() const
597 {
598     return grid_;
599 }
600 
SetGrid(const GridInfo & grid)601 void AccessibilityElementInfo::SetGrid(const GridInfo &grid)
602 {
603     (void)grid;
604 }
605 
GetGridItem() const606 GridItemInfo AccessibilityElementInfo::GetGridItem() const
607 {
608     return gridItem_;
609 }
610 
SetGridItem(const GridItemInfo & gridItem)611 void AccessibilityElementInfo::SetGridItem(const GridItemInfo &gridItem)
612 {
613     (void)gridItem;
614 }
615 
AccessibilityElementInfo()616 AccessibilityElementInfo::AccessibilityElementInfo()
617 {}
618 
ReadFromParcel(Parcel & parcel)619 bool AccessibleAction::ReadFromParcel(Parcel &parcel)
620 {
621     (void)parcel;
622     return true;
623 }
624 
Marshalling(Parcel & parcel) const625 bool AccessibleAction::Marshalling(Parcel &parcel) const
626 {
627     (void)parcel;
628     return true;
629 };
630 
Unmarshalling(Parcel & parcel)631 sptr<AccessibleAction> AccessibleAction::Unmarshalling(Parcel& parcel)
632 {
633     (void)parcel;
634     return nullptr;
635 }
636 
AccessibleAction(ActionType operationType,std::string description)637 AccessibleAction::AccessibleAction(ActionType operationType, std::string description)
638 {
639     (void)operationType;
640     (void)description;
641 }
642 
GetActionType() const643 ActionType AccessibleAction::GetActionType() const
644 {
645     return actionType_;
646 }
647 
GetDescriptionInfo() const648 std::string AccessibleAction::GetDescriptionInfo() const
649 {
650     return description_;
651 }
652 
ReadFromParcel(Parcel & parcel)653 bool RangeInfo::ReadFromParcel(Parcel &parcel)
654 {
655     (void)parcel;
656     return true;
657 }
658 
Marshalling(Parcel & parcel) const659 bool RangeInfo::Marshalling(Parcel &parcel) const
660 {
661     (void)parcel;
662     return true;
663 };
664 
Unmarshalling(Parcel & parcel)665 sptr<RangeInfo> RangeInfo::Unmarshalling(Parcel& parcel)
666 {
667     (void)parcel;
668     return nullptr;
669 }
670 
RangeInfo(int min,int max,int current)671 RangeInfo::RangeInfo(int min, int max, int current)
672 {
673     (void)min;
674     (void)max;
675     (void)current;
676 }
677 
GetMin() const678 int RangeInfo::GetMin() const
679 {
680     return min_;
681 }
682 
GetMax() const683 int RangeInfo::GetMax() const
684 {
685     return max_;
686 }
687 
GetCurrent() const688 int RangeInfo::GetCurrent() const
689 {
690     return current_;
691 }
692 
SetMin(int min)693 void RangeInfo::SetMin(int min)
694 {
695     (void)min;
696 }
697 
SetMax(int max)698 void RangeInfo::SetMax(int max)
699 {
700     (void)max;
701 }
702 
SetCurrent(int current)703 void RangeInfo::SetCurrent(int current)
704 {
705     (void)current;
706 }
707 
ReadFromParcel(Parcel & parcel)708 bool GridInfo::ReadFromParcel(Parcel &parcel)
709 {
710     (void)parcel;
711     return true;
712 }
713 
Marshalling(Parcel & parcel) const714 bool GridInfo::Marshalling(Parcel &parcel) const
715 {
716     (void)parcel;
717     return true;
718 };
719 
Unmarshalling(Parcel & parcel)720 sptr<GridInfo> GridInfo::Unmarshalling(Parcel& parcel)
721 {
722     (void)parcel;
723     return nullptr;
724 }
725 
GridInfo(int rowCount,int columnCount,int mode)726 GridInfo::GridInfo(int rowCount, int columnCount, int mode)
727 {
728     (void)rowCount;
729     (void)columnCount;
730     (void)mode;
731 }
732 
SetGrid(int rowCount,int columnCount,int mode)733 void GridInfo::SetGrid(int rowCount, int columnCount, int mode)
734 {
735     (void)rowCount;
736     (void)columnCount;
737     (void)mode;
738 }
739 
SetGrid(GridInfo other)740 void GridInfo::SetGrid(GridInfo other)
741 {
742     (void)other;
743 }
744 
GetRowCount() const745 int GridInfo::GetRowCount() const
746 {
747     return rowCount_;
748 }
749 
GetColumnCount() const750 int GridInfo::GetColumnCount() const
751 {
752     return columnCount_;
753 }
754 
GetSelectionMode() const755 int GridInfo::GetSelectionMode() const
756 {
757     return selectionMode_;
758 }
759 
ReadFromParcel(Parcel & parcel)760 bool GridItemInfo::ReadFromParcel(Parcel &parcel)
761 {
762     (void)parcel;
763     return true;
764 }
765 
Marshalling(Parcel & parcel) const766 bool GridItemInfo::Marshalling(Parcel &parcel) const
767 {
768     (void)parcel;
769     return true;
770 };
771 
Unmarshalling(Parcel & parcel)772 sptr<GridItemInfo> GridItemInfo::Unmarshalling(Parcel& parcel)
773 {
774     (void)parcel;
775     return nullptr;
776 }
777 
GridItemInfo(int rowIndex,int rowSpan,int columnIndex,int columnSpan,bool heading,bool selected)778 GridItemInfo::GridItemInfo(int rowIndex, int rowSpan, int columnIndex, int columnSpan, bool heading, bool selected)
779 {
780     (void)rowIndex;
781     (void)rowSpan;
782     (void)columnIndex;
783     (void)columnSpan;
784     (void)heading;
785     (void)selected;
786 }
787 
SetGridItemInfo(GridItemInfo other)788 void GridItemInfo::SetGridItemInfo(GridItemInfo other)
789 {
790     (void)other;
791 }
792 
SetGridItemInfo(int rowIndex,int rowSpan,int columnIndex,int columnSpan,bool heading,bool selected)793 void GridItemInfo::SetGridItemInfo(int rowIndex, int rowSpan,
794     int columnIndex, int columnSpan, bool heading, bool selected)
795 {
796     (void)rowIndex;
797     (void)rowSpan;
798     (void)columnIndex;
799     (void)columnSpan;
800     (void)heading;
801     (void)selected;
802 }
803 
GetColumnIndex() const804 int GridItemInfo::GetColumnIndex() const
805 {
806     return columnIndex_;
807 }
808 
GetRowIndex() const809 int GridItemInfo::GetRowIndex() const
810 {
811     return rowIndex_;
812 }
813 
GetColumnSpan() const814 int GridItemInfo::GetColumnSpan() const
815 {
816     return columnSpan_;
817 }
818 
GetRowSpan() const819 int GridItemInfo::GetRowSpan() const
820 {
821     return rowSpan_;
822 }
823 
IsHeading() const824 bool GridItemInfo::IsHeading() const
825 {
826     return heading_;
827 }
828 
IsSelected() const829 bool GridItemInfo::IsSelected() const
830 {
831     return selected_;
832 }
833 
ReadFromParcel(Parcel & parcel)834 bool Rect::ReadFromParcel(Parcel &parcel)
835 {
836     (void)parcel;
837     return true;
838 }
839 
Marshalling(Parcel & parcel) const840 bool Rect::Marshalling(Parcel &parcel) const
841 {
842     (void)parcel;
843     return true;
844 };
845 
Unmarshalling(Parcel & parcel)846 sptr<Rect> Rect::Unmarshalling(Parcel& parcel)
847 {
848     (void)parcel;
849     sptr<Rect> rect = new Rect();
850     return rect;
851 }
852 } // namespace Accessibility
853 } // namespace OHOS