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_element_operator_callback_proxy.h"
17 #include "accessibility_element_operator_callback_stub.h"
18 #include "accessibility_element_operator_stub.h"
19 #include "accessibility_system_ability_client.h"
20 #include "hilog_wrapper.h"
21 #include "iremote_object.h"
22 #include "ipc_skeleton.h"
23 #include "ipc_types.h"
24 #include "parcel_util.h"
25
26 namespace OHOS {
27 namespace Accessibility {
28 using AccessibilityElementOperatorCallbacks =
29 std::map<const int32_t, const sptr<IAccessibilityElementOperatorCallback>>;
AccessibilityElementOperatorStub()30 AccessibilityElementOperatorStub::AccessibilityElementOperatorStub()
31 {}
32
~AccessibilityElementOperatorStub()33 AccessibilityElementOperatorStub::~AccessibilityElementOperatorStub()
34 {
35 }
36
OnRemoteRequest(uint32_t code,MessageParcel & data,MessageParcel & reply,MessageOption & option)37 int AccessibilityElementOperatorStub::OnRemoteRequest(
38 uint32_t code, MessageParcel& data, MessageParcel& reply, MessageOption& option)
39 {
40 (void)code;
41 (void)data;
42 (void)reply;
43 (void)option;
44 return 0;
45 }
46
HandleSearchElementInfoByAccessibilityId(MessageParcel & data,MessageParcel & reply)47 ErrCode AccessibilityElementOperatorStub::HandleSearchElementInfoByAccessibilityId(
48 MessageParcel& data, MessageParcel& reply)
49 {
50 (void)data;
51 (void)reply;
52 return NO_ERROR;
53 }
54
HandleSearchElementInfosByText(MessageParcel & data,MessageParcel & reply)55 ErrCode AccessibilityElementOperatorStub::HandleSearchElementInfosByText(MessageParcel& data, MessageParcel& reply)
56 {
57 (void)data;
58 (void)reply;
59 return NO_ERROR;
60 }
61
HandleFindFocusedElementInfo(MessageParcel & data,MessageParcel & reply)62 ErrCode AccessibilityElementOperatorStub::HandleFindFocusedElementInfo(MessageParcel& data, MessageParcel& reply)
63 {
64 (void)data;
65 (void)reply;
66 return NO_ERROR;
67 }
68
HandleFocusFind(MessageParcel & data,MessageParcel & reply)69 ErrCode AccessibilityElementOperatorStub::HandleFocusFind(MessageParcel& data, MessageParcel& reply)
70 {
71 (void)data;
72 (void)reply;
73 return NO_ERROR;
74 }
75
HandleExecuteAction(MessageParcel & data,MessageParcel & reply)76 ErrCode AccessibilityElementOperatorStub::HandleExecuteAction(MessageParcel& data, MessageParcel& reply)
77 {
78 (void)data;
79 (void)reply;
80 return NO_ERROR;
81 }
82
HandleGetCursorPosition(MessageParcel & data,MessageParcel & reply)83 ErrCode AccessibilityElementOperatorStub::HandleGetCursorPosition(MessageParcel& data, MessageParcel& reply)
84 {
85 (void)data;
86 (void)reply;
87 return NO_ERROR;
88 }
89
HandleClearFocus(MessageParcel & data,MessageParcel & reply)90 ErrCode AccessibilityElementOperatorStub::HandleClearFocus(MessageParcel& data, MessageParcel& reply)
91 {
92 (void)data;
93 (void)reply;
94 return NO_ERROR;
95 }
96
HandleOutsideTouch(MessageParcel & data,MessageParcel & reply)97 ErrCode AccessibilityElementOperatorStub::HandleOutsideTouch(MessageParcel& data, MessageParcel& reply)
98 {
99 (void)data;
100 (void)reply;
101 return NO_ERROR;
102 }
103 } // namespace Accessibility
104 } // namespace OHOS