svetoslavganov | 75986cf | 2009-05-14 22:28:01 -0700 | [diff] [blame] | 1 | /* //device/java/android/android/app/INotificationManager.aidl |
| 2 | ** |
| 3 | ** Copyright 2009, The Android Open Source Project |
| 4 | ** |
| 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | ** you may not use this file except in compliance with the License. |
| 7 | ** You may obtain a copy of the License at |
| 8 | ** |
| 9 | ** http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | ** |
| 11 | ** Unless required by applicable law or agreed to in writing, software |
| 12 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | ** See the License for the specific language governing permissions and |
| 15 | ** limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | package android.view.accessibility; |
| 19 | |
Svetoslav Ganov | cc4053e | 2011-05-23 13:37:44 -0700 | [diff] [blame] | 20 | import android.accessibilityservice.AccessibilityServiceInfo; |
Svetoslav Ganov | 8643aa0 | 2011-04-20 12:12:33 -0700 | [diff] [blame] | 21 | import android.accessibilityservice.IAccessibilityServiceConnection; |
Svetoslav Ganov | 4213804 | 2012-03-20 11:51:39 -0700 | [diff] [blame] | 22 | import android.accessibilityservice.IAccessibilityServiceClient; |
Svetoslav Ganov | 7befb7d | 2012-09-27 16:49:23 -0700 | [diff] [blame] | 23 | import android.content.ComponentName; |
svetoslavganov | 75986cf | 2009-05-14 22:28:01 -0700 | [diff] [blame] | 24 | import android.view.accessibility.AccessibilityEvent; |
Svetoslav Ganov | 8643aa0 | 2011-04-20 12:12:33 -0700 | [diff] [blame] | 25 | import android.view.accessibility.AccessibilityNodeInfo; |
| 26 | import android.view.accessibility.IAccessibilityInteractionConnection; |
svetoslavganov | 75986cf | 2009-05-14 22:28:01 -0700 | [diff] [blame] | 27 | import android.view.accessibility.IAccessibilityManagerClient; |
Svetoslav Ganov | 8643aa0 | 2011-04-20 12:12:33 -0700 | [diff] [blame] | 28 | import android.view.IWindow; |
svetoslavganov | 75986cf | 2009-05-14 22:28:01 -0700 | [diff] [blame] | 29 | |
| 30 | /** |
| 31 | * Interface implemented by the AccessibilityManagerService called by |
Phil Weaver | 65097bf | 2016-10-04 16:38:45 -0700 | [diff] [blame] | 32 | * the AccessibilityManagers. |
svetoslavganov | 75986cf | 2009-05-14 22:28:01 -0700 | [diff] [blame] | 33 | * |
| 34 | * @hide |
| 35 | */ |
| 36 | interface IAccessibilityManager { |
| 37 | |
Phil Weaver | ba6285f | 2016-11-03 09:34:29 -0700 | [diff] [blame] | 38 | oneway void interrupt(int userId); |
svetoslavganov | 75986cf | 2009-05-14 22:28:01 -0700 | [diff] [blame] | 39 | |
Phil Weaver | ba6285f | 2016-11-03 09:34:29 -0700 | [diff] [blame] | 40 | oneway void sendAccessibilityEvent(in AccessibilityEvent uiEvent, int userId); |
| 41 | |
| 42 | int addClient(IAccessibilityManagerClient client, int userId); |
Phil Weaver | 0dbf913 | 2016-08-23 09:27:04 -0700 | [diff] [blame] | 43 | |
Svetoslav Ganov | 58d37b5 | 2012-09-18 12:04:19 -0700 | [diff] [blame] | 44 | List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(int userId); |
svetoslavganov | 75986cf | 2009-05-14 22:28:01 -0700 | [diff] [blame] | 45 | |
Svetoslav Ganov | 58d37b5 | 2012-09-18 12:04:19 -0700 | [diff] [blame] | 46 | List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList(int feedbackType, int userId); |
Svetoslav Ganov | 736c275 | 2011-04-22 18:30:36 -0700 | [diff] [blame] | 47 | |
Svetoslav Ganov | 8643aa0 | 2011-04-20 12:12:33 -0700 | [diff] [blame] | 48 | int addAccessibilityInteractionConnection(IWindow windowToken, |
Svetoslav Ganov | 58d37b5 | 2012-09-18 12:04:19 -0700 | [diff] [blame] | 49 | in IAccessibilityInteractionConnection connection, int userId); |
Svetoslav Ganov | 8643aa0 | 2011-04-20 12:12:33 -0700 | [diff] [blame] | 50 | |
| 51 | void removeAccessibilityInteractionConnection(IWindow windowToken); |
| 52 | |
Svetoslav | 3c55e5c | 2013-02-27 18:24:28 -0800 | [diff] [blame] | 53 | void registerUiTestAutomationService(IBinder owner, IAccessibilityServiceClient client, |
Phil Weaver | 1dd8722 | 2016-01-26 17:15:15 -0800 | [diff] [blame] | 54 | in AccessibilityServiceInfo info, int flags); |
Svetoslav Ganov | 79311c4 | 2012-01-17 20:24:26 -0800 | [diff] [blame] | 55 | |
Svetoslav Ganov | 4213804 | 2012-03-20 11:51:39 -0700 | [diff] [blame] | 56 | void unregisterUiTestAutomationService(IAccessibilityServiceClient client); |
Svetoslav Ganov | 7befb7d | 2012-09-27 16:49:23 -0700 | [diff] [blame] | 57 | |
| 58 | void temporaryEnableAccessibilityStateUntilKeyguardRemoved(in ComponentName service, |
| 59 | boolean touchExplorationEnabled); |
Svetoslav | 1376d60 | 2014-03-13 11:17:26 -0700 | [diff] [blame] | 60 | |
Fyodor Kupolov | e2239c9 | 2016-01-12 16:46:13 -0800 | [diff] [blame] | 61 | IBinder getWindowToken(int windowId, int userId); |
Muyuan Li | 16b8251 | 2016-03-19 15:50:45 -0700 | [diff] [blame] | 62 | |
| 63 | void enableAccessibilityService(in ComponentName service, int userId); |
| 64 | |
| 65 | void disableAccessibilityService(in ComponentName service, int userId); |
svetoslavganov | 75986cf | 2009-05-14 22:28:01 -0700 | [diff] [blame] | 66 | } |