18643aa0179e598e78d938c59035389054535a229Svetoslav Ganov/*
28643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * Copyright (C) 2011 The Android Open Source Project
38643aa0179e598e78d938c59035389054535a229Svetoslav Ganov *
48643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * Licensed under the Apache License, Version 2.0 (the "License");
58643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * you may not use this file except in compliance with the License.
68643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * You may obtain a copy of the License at
78643aa0179e598e78d938c59035389054535a229Svetoslav Ganov *
88643aa0179e598e78d938c59035389054535a229Svetoslav Ganov *      http://www.apache.org/licenses/LICENSE-2.0
98643aa0179e598e78d938c59035389054535a229Svetoslav Ganov *
108643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * Unless required by applicable law or agreed to in writing, software
118643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * distributed under the License is distributed on an "AS IS" BASIS,
128643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
138643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * See the License for the specific language governing permissions and
148643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * limitations under the License.
158643aa0179e598e78d938c59035389054535a229Svetoslav Ganov */
168643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
178643aa0179e598e78d938c59035389054535a229Svetoslav Ganovpackage android.view.accessibility;
188643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
19aa780c110922148a6a4ba06734bb2b0bb8c98f93Svetoslav Ganovimport android.os.Bundle;
208643aa0179e598e78d938c59035389054535a229Svetoslav Ganovimport android.view.accessibility.AccessibilityNodeInfo;
218643aa0179e598e78d938c59035389054535a229Svetoslav Ganovimport android.view.accessibility.IAccessibilityInteractionConnectionCallback;
228643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
238643aa0179e598e78d938c59035389054535a229Svetoslav Ganov/**
248643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * Interface for interaction between the AccessibilityManagerService
258643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * and the ViewRoot in a given window.
268643aa0179e598e78d938c59035389054535a229Svetoslav Ganov *
278643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * @hide
288643aa0179e598e78d938c59035389054535a229Svetoslav Ganov */
298643aa0179e598e78d938c59035389054535a229Svetoslav Ganovoneway interface IAccessibilityInteractionConnection {
308643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
31c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov    void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, int interactionId,
32c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
33c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        long interrogatingTid);
348643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
35c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov    void findAccessibilityNodeInfoByViewId(long accessibilityNodeId, int viewId, int interactionId,
36c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
37c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        long interrogatingTid);
388643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
39c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov    void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, int interactionId,
40c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
41c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        long interrogatingTid);
424213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov
43c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov    void findFocus(long accessibilityNodeId, int focusType, int interactionId,
44c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
45c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        long interrogatingTid);
464213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov
47c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov    void focusSearch(long accessibilityNodeId, int direction, int interactionId,
48c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
49c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        long interrogatingTid);
508643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
51aa780c110922148a6a4ba06734bb2b0bb8c98f93Svetoslav Ganov    void performAccessibilityAction(long accessibilityNodeId, int action, in Bundle arguments,
52aa780c110922148a6a4ba06734bb2b0bb8c98f93Svetoslav Ganov        int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags,
53aa780c110922148a6a4ba06734bb2b0bb8c98f93Svetoslav Ganov        int interrogatingPid, long interrogatingTid);
548643aa0179e598e78d938c59035389054535a229Svetoslav Ganov}
55