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 34 void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds, 35 int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, 36 int interrogatingPid, long interrogatingTid, in MagnificationSpec spec); 37 38 void findAccessibilityNodeInfosByViewId(long accessibilityNodeId, String viewId, 39 in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, 40 int flags, int interrogatingPid, long interrogatingTid, in MagnificationSpec spec); 41 42 void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds, 43 int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, 44 int interrogatingPid, long interrogatingTid, in MagnificationSpec spec); 45 46 void findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId, 47 IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, 48 long interrogatingTid, in MagnificationSpec spec); 49 50 void focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId, 51 IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, 52 long interrogatingTid, in MagnificationSpec spec); 53 54 void performAccessibilityAction(long accessibilityNodeId, int action, in Bundle arguments, 55 int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, 56 int interrogatingPid, long interrogatingTid); 57 } 58