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
199ae9ed24aa252acbc2e6288068b991dd5291967bSvetoslavimport android.graphics.Region;
207498efdc5e163d6b4a11db941c7d13c169d37284Svet Ganovimport android.graphics.Point;
21aa780c110922148a6a4ba06734bb2b0bb8c98f93Svetoslav Ganovimport android.os.Bundle;
22152e9bb81aa5b2ab4637f4b2dae04b3ce89fa891Svetoslav Ganovimport android.view.MagnificationSpec;
238643aa0179e598e78d938c59035389054535a229Svetoslav Ganovimport android.view.accessibility.AccessibilityNodeInfo;
248643aa0179e598e78d938c59035389054535a229Svetoslav Ganovimport android.view.accessibility.IAccessibilityInteractionConnectionCallback;
258643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
268643aa0179e598e78d938c59035389054535a229Svetoslav Ganov/**
278643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * Interface for interaction between the AccessibilityManagerService
288643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * and the ViewRoot in a given window.
298643aa0179e598e78d938c59035389054535a229Svetoslav Ganov *
308643aa0179e598e78d938c59035389054535a229Svetoslav Ganov * @hide
318643aa0179e598e78d938c59035389054535a229Svetoslav Ganov */
328643aa0179e598e78d938c59035389054535a229Svetoslav Ganovoneway interface IAccessibilityInteractionConnection {
338643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
349ae9ed24aa252acbc2e6288068b991dd5291967bSvetoslav    void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds,
359ae9ed24aa252acbc2e6288068b991dd5291967bSvetoslav        int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags,
36c2e28932d22faece6e7179c78d4e7656dc63052cPhil Weaver        int interrogatingPid, long interrogatingTid, in MagnificationSpec spec,
37c2e28932d22faece6e7179c78d4e7656dc63052cPhil Weaver        in Bundle arguments);
388643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
3980943d8daa6ab31ab5c486d57aea406aa0730d58Svetoslav Ganov    void findAccessibilityNodeInfosByViewId(long accessibilityNodeId, String viewId,
409ae9ed24aa252acbc2e6288068b991dd5291967bSvetoslav        in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback,
419ae9ed24aa252acbc2e6288068b991dd5291967bSvetoslav        int flags, int interrogatingPid, long interrogatingTid, in MagnificationSpec spec);
429ae9ed24aa252acbc2e6288068b991dd5291967bSvetoslav
439ae9ed24aa252acbc2e6288068b991dd5291967bSvetoslav    void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds,
4480943d8daa6ab31ab5c486d57aea406aa0730d58Svetoslav Ganov        int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags,
4580943d8daa6ab31ab5c486d57aea406aa0730d58Svetoslav Ganov        int interrogatingPid, long interrogatingTid, in MagnificationSpec spec);
468643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
479ae9ed24aa252acbc2e6288068b991dd5291967bSvetoslav    void findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId,
48c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
49152e9bb81aa5b2ab4637f4b2dae04b3ce89fa891Svetoslav Ganov        long interrogatingTid, in MagnificationSpec spec);
504213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov
519ae9ed24aa252acbc2e6288068b991dd5291967bSvetoslav    void focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId,
52c9c9a48e7bafae63cb35a9aa69255e80aba83988Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
53152e9bb81aa5b2ab4637f4b2dae04b3ce89fa891Svetoslav Ganov        long interrogatingTid, in MagnificationSpec spec);
548643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
55aa780c110922148a6a4ba06734bb2b0bb8c98f93Svetoslav Ganov    void performAccessibilityAction(long accessibilityNodeId, int action, in Bundle arguments,
56aa780c110922148a6a4ba06734bb2b0bb8c98f93Svetoslav Ganov        int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags,
57aa780c110922148a6a4ba06734bb2b0bb8c98f93Svetoslav Ganov        int interrogatingPid, long interrogatingTid);
588643aa0179e598e78d938c59035389054535a229Svetoslav Ganov}
59