175986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov/* 275986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** Copyright 2009, The Android Open Source Project 375986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** 475986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** Licensed under the Apache License, Version 2.0 (the "License"); 575986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** you may not use this file except in compliance with the License. 675986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** You may obtain a copy of the License at 775986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** 875986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** http://www.apache.org/licenses/LICENSE-2.0 975986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** 1075986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** Unless required by applicable law or agreed to in writing, software 1175986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** distributed under the License is distributed on an "AS IS" BASIS, 1275986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1375986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** See the License for the specific language governing permissions and 1475986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov** limitations under the License. 1575986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov*/ 1675986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov 1775986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganovpackage android.accessibilityservice; 1875986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov 1975986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganovimport android.accessibilityservice.IAccessibilityServiceConnection; 20214fb68767502f5fede643a062c1dc5975d75b27Alan Viveretteimport android.graphics.Region; 2175986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganovimport android.view.accessibility.AccessibilityEvent; 228e3feb15c5aec2c72b0ef120a1da325e1e8f0ddaSvetoslavimport android.view.accessibility.AccessibilityWindowInfo; 23c4fccd183f1bb47a027bb303af5e65bec2f68b1bSvetoslavimport android.view.KeyEvent; 2475986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov 2575986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov/** 264213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov * Top-level interface to an accessibility service component. 2775986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov * 2875986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov * @hide 2975986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov */ 304213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov oneway interface IAccessibilityServiceClient { 3175986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov 323a5c721072c60c7ed9c8a95d0a65d0e3cb4eb9bbSvetoslav void init(in IAccessibilityServiceConnection connection, int connectionId, IBinder windowToken); 3375986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov 3475986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov void onAccessibilityEvent(in AccessibilityEvent event); 3575986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov 3675986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov void onInterrupt(); 374213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov 387b1e0c7046abefc0b40884b36197c8a803d9cf6dSvetoslav Ganov void onGesture(int gesture); 39152e9bb81aa5b2ab4637f4b2dae04b3ce89fa891Svetoslav Ganov 408e3feb15c5aec2c72b0ef120a1da325e1e8f0ddaSvetoslav void clearAccessibilityCache(); 41c4fccd183f1bb47a027bb303af5e65bec2f68b1bSvetoslav 42c4fccd183f1bb47a027bb303af5e65bec2f68b1bSvetoslav void onKeyEvent(in KeyEvent event, int sequence); 43214fb68767502f5fede643a062c1dc5975d75b27Alan Viverette 44214fb68767502f5fede643a062c1dc5975d75b27Alan Viverette void onMagnificationChanged(in Region region, float scale, float centerX, float centerY); 45a6b64f5099b7be6e8384958d8bcddb97bb06ec93Phil Weaver 469b278112467581e2b8d99f29cf48b9fbef9cc53fAnna Galusza void onSoftKeyboardShowModeChanged(int showMode); 479b278112467581e2b8d99f29cf48b9fbef9cc53fAnna Galusza 48a6b64f5099b7be6e8384958d8bcddb97bb06ec93Phil Weaver void onPerformGestureResult(int sequence, boolean completedSuccessfully); 4975986cf9bc57ef11ad70f36fb77fbbf5d63af6ecsvetoslavganov} 50