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.os.Bundle; 20 import android.view.MagnificationSpec; 21 import android.view.accessibility.AccessibilityNodeInfo; 22 import android.view.accessibility.IAccessibilityInteractionConnectionCallback; 23 24 /** 25 * Interface for interaction between the AccessibilityManagerService 26 * and the ViewRoot in a given window. 27 * 28 * @hide 29 */ 30 oneway interface IAccessibilityInteractionConnection { 31 32 void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, int interactionId, 33 IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, 34 long interrogatingTid, in MagnificationSpec spec); 35 36 void findAccessibilityNodeInfosByViewId(long accessibilityNodeId, String viewId, 37 int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, 38 int interrogatingPid, long interrogatingTid, in MagnificationSpec spec); 39 40 void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, int interactionId, 41 IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, 42 long interrogatingTid, in MagnificationSpec spec); 43 44 void findFocus(long accessibilityNodeId, int focusType, int interactionId, 45 IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, 46 long interrogatingTid, in MagnificationSpec spec); 47 48 void focusSearch(long accessibilityNodeId, int direction, int interactionId, 49 IAccessibilityInteractionConnectionCallback callback, int flags, int interrogatingPid, 50 long interrogatingTid, in MagnificationSpec spec); 51 52 void performAccessibilityAction(long accessibilityNodeId, int action, in Bundle arguments, 53 int interactionId, IAccessibilityInteractionConnectionCallback callback, int flags, 54 int interrogatingPid, long interrogatingTid); 55 } 56