IAccessibilityServiceConnection.aidl revision a8918f23c712e97fa1dc4911f64827d64fc906e5
1/* 2 * Copyright (C) 2009 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 17package android.accessibilityservice; 18 19import android.accessibilityservice.AccessibilityServiceInfo; 20import android.content.pm.ParceledListSlice; 21import android.graphics.Region; 22import android.os.Bundle; 23import android.view.MagnificationSpec; 24import android.view.MotionEvent; 25import android.view.accessibility.AccessibilityNodeInfo; 26import android.view.accessibility.IAccessibilityInteractionConnectionCallback; 27import android.view.accessibility.AccessibilityWindowInfo; 28 29/** 30 * Interface given to an AccessibilitySerivce to talk to the AccessibilityManagerService. 31 * 32 * @hide 33 */ 34interface IAccessibilityServiceConnection { 35 36 void setServiceInfo(in AccessibilityServiceInfo info); 37 38 boolean findAccessibilityNodeInfoByAccessibilityId(int accessibilityWindowId, 39 long accessibilityNodeId, int interactionId, 40 IAccessibilityInteractionConnectionCallback callback, int flags, long threadId); 41 42 boolean findAccessibilityNodeInfosByText(int accessibilityWindowId, long accessibilityNodeId, 43 String text, int interactionId, IAccessibilityInteractionConnectionCallback callback, 44 long threadId); 45 46 boolean findAccessibilityNodeInfosByViewId(int accessibilityWindowId, 47 long accessibilityNodeId, String viewId, int interactionId, 48 IAccessibilityInteractionConnectionCallback callback, long threadId); 49 50 boolean findFocus(int accessibilityWindowId, long accessibilityNodeId, int focusType, 51 int interactionId, IAccessibilityInteractionConnectionCallback callback, long threadId); 52 53 boolean focusSearch(int accessibilityWindowId, long accessibilityNodeId, int direction, 54 int interactionId, IAccessibilityInteractionConnectionCallback callback, long threadId); 55 56 boolean performAccessibilityAction(int accessibilityWindowId, long accessibilityNodeId, 57 int action, in Bundle arguments, int interactionId, 58 IAccessibilityInteractionConnectionCallback callback, long threadId); 59 60 AccessibilityWindowInfo getWindow(int windowId); 61 62 List<AccessibilityWindowInfo> getWindows(); 63 64 AccessibilityServiceInfo getServiceInfo(); 65 66 boolean performGlobalAction(int action); 67 68 void disableSelf(); 69 70 oneway void setOnKeyEventResult(boolean handled, int sequence); 71 72 float getMagnificationScale(); 73 74 float getMagnificationCenterX(); 75 76 float getMagnificationCenterY(); 77 78 Region getMagnificationRegion(); 79 80 boolean resetMagnification(boolean animate); 81 82 boolean setMagnificationScaleAndCenter(float scale, float centerX, float centerY, 83 boolean animate); 84 85 void setMagnificationCallbackEnabled(boolean enabled); 86 87 boolean setSoftKeyboardShowMode(int showMode); 88 89 void setSoftKeyboardCallbackEnabled(boolean enabled); 90 91 void sendGesture(int sequence, in ParceledListSlice gestureSteps); 92} 93