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 memberFuncMap_.clear();
36 }
37
OnRemoteRequest(uint32_t code,MessageParcel & data,MessageParcel & reply,MessageOption & option)38 int AccessibilityElementOperatorStub::OnRemoteRequest(
39 uint32_t code, MessageParcel& data, MessageParcel& reply, MessageOption& option)
40 {
41 (void)code;
42 (void)data;
43 (void)reply;
44 (void)option;
45 return 0;
46 }
47
HandleSearchElementInfoByAccessibilityId(MessageParcel & data,MessageParcel & reply)48 ErrCode AccessibilityElementOperatorStub::HandleSearchElementInfoByAccessibilityId(
49 MessageParcel& data, MessageParcel& reply)
50 {
51 (void)data;
52 (void)reply;
53 return NO_ERROR;
54 }
55
HandleSearchElementInfosByText(MessageParcel & data,MessageParcel & reply)56 ErrCode AccessibilityElementOperatorStub::HandleSearchElementInfosByText(MessageParcel& data, MessageParcel& reply)
57 {
58 (void)data;
59 (void)reply;
60 return NO_ERROR;
61 }
62
HandleFindFocusedElementInfo(MessageParcel & data,MessageParcel & reply)63 ErrCode AccessibilityElementOperatorStub::HandleFindFocusedElementInfo(MessageParcel& data, MessageParcel& reply)
64 {
65 (void)data;
66 (void)reply;
67 return NO_ERROR;
68 }
69
HandleFocusFind(MessageParcel & data,MessageParcel & reply)70 ErrCode AccessibilityElementOperatorStub::HandleFocusFind(MessageParcel& data, MessageParcel& reply)
71 {
72 (void)data;
73 (void)reply;
74 return NO_ERROR;
75 }
76
HandleExecuteAction(MessageParcel & data,MessageParcel & reply)77 ErrCode AccessibilityElementOperatorStub::HandleExecuteAction(MessageParcel& data, MessageParcel& reply)
78 {
79 (void)data;
80 (void)reply;
81 return NO_ERROR;
82 }
83
HandleClearFocus(MessageParcel & data,MessageParcel & reply)84 ErrCode AccessibilityElementOperatorStub::HandleClearFocus(MessageParcel& data, MessageParcel& reply)
85 {
86 (void)data;
87 (void)reply;
88 return NO_ERROR;
89 }
90
HandleOutsideTouch(MessageParcel & data,MessageParcel & reply)91 ErrCode AccessibilityElementOperatorStub::HandleOutsideTouch(MessageParcel& data, MessageParcel& reply)
92 {
93 (void)data;
94 (void)reply;
95 return NO_ERROR;
96 }
97 } // namespace Accessibility
98 } // namespace OHOS