IAccessibilityInteractionConnection.aidl revision aa780c110922148a6a4ba06734bb2b0bb8c98f93
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
31021078554b902179442a345a9d080a165c3b5139Svetoslav Ganov    void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, int interactionId,
324213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
334213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov        long interrogatingTid);
348643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
3579311c4af8b54d3cd47ab37a120c648bfc990511Svetoslav Ganov    void findAccessibilityNodeInfoByViewId(long accessibilityNodeId, int id, int interactionId,
364213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
374213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov        long interrogatingTid);
388643aa0179e598e78d938c59035389054535a229Svetoslav Ganov
3979311c4af8b54d3cd47ab37a120c648bfc990511Svetoslav Ganov    void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, int interactionId,
404213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
414213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov        long interrogatingTid);
424213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov
434213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov    void findFocus(long accessibilityNodeId, int interactionId, int focusType,
444213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
454213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov        long interrogatingTid);
464213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov
474213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov    void focusSearch(long accessibilityNodeId, int interactionId, int direction,
484213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov        IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid,
4979311c4af8b54d3cd47ab37a120c648bfc990511Svetoslav 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