2 ** Copyright 2009, The Android Open Source Project
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
8 ** http://www.apache.org/licenses/LICENSE-2.0
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.
17 package android.view.accessibility;
19 import android.accessibilityservice.AccessibilityServiceInfo;
20 import android.accessibilityservice.IAccessibilityServiceConnection;
21 import android.accessibilityservice.IAccessibilityServiceClient;
22 import android.content.ComponentName;
23 import android.view.accessibility.AccessibilityEvent;
24 import android.view.accessibility.AccessibilityNodeInfo;
25 import android.view.accessibility.IAccessibilityInteractionConnection;
26 import android.view.accessibility.IAccessibilityManagerClient;
27 import android.view.IWindow;
30 * Interface implemented by the AccessibilityManagerService called by
31 * the AccessibilityManagers.
35 interface IAccessibilityManager {
37 oneway void interrupt(int userId);
39 oneway void sendAccessibilityEvent(in AccessibilityEvent uiEvent, int userId);
41 long addClient(IAccessibilityManagerClient client, int userId);
43 List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(int userId);
45 List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList(int feedbackType, int userId);
47 int addAccessibilityInteractionConnection(IWindow windowToken,
48 in IAccessibilityInteractionConnection connection, String packageName, int userId);
50 void removeAccessibilityInteractionConnection(IWindow windowToken);
52 void setPictureInPictureActionReplacingConnection(
53 in IAccessibilityInteractionConnection connection);
55 void registerUiTestAutomationService(IBinder owner, IAccessibilityServiceClient client,
56 in AccessibilityServiceInfo info, int flags);
58 void unregisterUiTestAutomationService(IAccessibilityServiceClient client);
60 void temporaryEnableAccessibilityStateUntilKeyguardRemoved(in ComponentName service,
61 boolean touchExplorationEnabled);
63 IBinder getWindowToken(int windowId, int userId);
65 void notifyAccessibilityButtonClicked();
67 void notifyAccessibilityButtonVisibilityChanged(boolean available);
69 // Requires WRITE_SECURE_SETTINGS
70 void performAccessibilityShortcut();
72 // System process only
73 boolean sendFingerprintGesture(int gestureKeyCode);