1 /* 2 * Copyright (C) 2011 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.view.accessibility; 18 19 import android.graphics.Region; 20 import android.graphics.Point; 21 import android.os.Bundle; 22 import android.view.MagnificationSpec; 23 import android.view.accessibility.AccessibilityNodeInfo; 24 import android.view.accessibility.IAccessibilityInteractionConnectionCallback; 25 26 /** 27 * Interface for interaction between the AccessibilityManagerService 28 * and the ViewRoot in a given window. 29 * 30 * @hide 31 */ 32 oneway interface IAccessibilityInteractionConnection { 33 findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, long interrogatingTid, in MagnificationSpec spec, in Bundle arguments)34 void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds, 35 int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, 36 int interrogatingPid, long interrogatingTid, in MagnificationSpec spec, 37 in Bundle arguments); 38 findAccessibilityNodeInfosByViewId(long accessibilityNodeId, String viewId, in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, long interrogatingTid, in MagnificationSpec spec)39 void findAccessibilityNodeInfosByViewId(long accessibilityNodeId, String viewId, 40 in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, 41 int flags, int interrogatingPid, long interrogatingTid, in MagnificationSpec spec); 42 findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, long interrogatingTid, in MagnificationSpec spec)43 void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds, 44 int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, 45 int interrogatingPid, long interrogatingTid, in MagnificationSpec spec); 46 findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, long interrogatingTid, in MagnificationSpec spec)47 void findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId, 48 IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, 49 long interrogatingTid, in MagnificationSpec spec); 50 focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, long interrogatingTid, in MagnificationSpec spec)51 void focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId, 52 IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, 53 long interrogatingTid, in MagnificationSpec spec); 54 performAccessibilityAction(long accessibilityNodeId, int action, in Bundle arguments, int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, long interrogatingTid)55 void performAccessibilityAction(long accessibilityNodeId, int action, in Bundle arguments, 56 int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, 57 int interrogatingPid, long interrogatingTid); 58 } 59