public class KeyboardInterceptor extends Object
Constructor and Description |
---|
KeyboardInterceptor(AccessibilityManagerService service) |
Modifier and Type | Method and Description |
---|---|
void |
clearEvents(int inputSource)
Clears internal state associated with events from specific input source.
|
void |
onAccessibilityEvent(AccessibilityEvent event)
Receives an accessibility event.
|
void |
onDestroy()
Destroys this transformation.
|
void |
onKeyEvent(KeyEvent event,
int policyFlags)
Receives a key event.
|
void |
onMotionEvent(MotionEvent event,
MotionEvent rawEvent,
int policyFlags)
Receives a motion event.
|
void |
setNext(com.android.server.accessibility.EventStreamTransformation next)
Sets the next transformation.
|
public KeyboardInterceptor(AccessibilityManagerService service)
public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags)
event
- The transformed motion event.rawEvent
- The raw motion event.policyFlags
- Policy flags for the event.public void onKeyEvent(KeyEvent event, int policyFlags)
event
- The key event.policyFlags
- Policy flags for the event.public void onAccessibilityEvent(AccessibilityEvent event)
event
- The accessibility event.public void setNext(com.android.server.accessibility.EventStreamTransformation next)
next
- The next transformation.public void clearEvents(int inputSource)
inputSource
- The input source class for which transformation state should be cleared.public void onDestroy()