Searched refs:event (Results 1 - 25 of 495) sorted by relevance

1234567891011>>

/frameworks/support/v4/eclair/android/support/v4/view/
H A DMotionEventCompatEclair.java22 * Implementation of motion event compatibility that can call Eclair APIs.
25 public static int findPointerIndex(MotionEvent event, int pointerId) { argument
26 return event.findPointerIndex(pointerId);
28 public static int getPointerId(MotionEvent event, int pointerIndex) { argument
29 return event.getPointerId(pointerIndex);
31 public static float getX(MotionEvent event, int pointerIndex) { argument
32 return event.getX(pointerIndex);
34 public static float getY(MotionEvent event, int pointerIndex) { argument
35 return event.getY(pointerIndex);
37 public static int getPointerCount(MotionEvent event) { argument
[all...]
/frameworks/support/v4/java/android/support/v4/view/
H A DMotionEventCompat.java30 public int findPointerIndex(MotionEvent event, int pointerId); argument
31 public int getPointerId(MotionEvent event, int pointerIndex); argument
32 public float getX(MotionEvent event, int pointerIndex); argument
33 public float getY(MotionEvent event, int pointerIndex); argument
34 public int getPointerCount(MotionEvent event); argument
42 public int findPointerIndex(MotionEvent event, int pointerId) { argument
50 public int getPointerId(MotionEvent event, int pointerIndex) { argument
58 public float getX(MotionEvent event, int pointerIndex) { argument
60 return event.getX();
65 public float getY(MotionEvent event, in argument
72 getPointerCount(MotionEvent event) argument
82 findPointerIndex(MotionEvent event, int pointerId) argument
86 getPointerId(MotionEvent event, int pointerIndex) argument
90 getX(MotionEvent event, int pointerIndex) argument
94 getY(MotionEvent event, int pointerIndex) argument
98 getPointerCount(MotionEvent event) argument
182 getActionMasked(MotionEvent event) argument
190 getActionIndex(MotionEvent event) argument
200 findPointerIndex(MotionEvent event, int pointerId) argument
209 getPointerId(MotionEvent event, int pointerIndex) argument
218 getX(MotionEvent event, int pointerIndex) argument
227 getY(MotionEvent event, int pointerIndex) argument
235 getPointerCount(MotionEvent event) argument
[all...]
H A DAccessibilityDelegateCompat.java37 AccessibilityEvent event);
39 AccessibilityEvent event);
43 AccessibilityEvent event);
45 AccessibilityEvent event);
48 AccessibilityEvent event);
67 AccessibilityEvent event) {
73 AccessibilityEvent event) {
85 AccessibilityEvent event) {
91 AccessibilityEvent event) {
102 AccessibilityEvent event) {
36 dispatchPopulateAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
38 onInitializeAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
42 onPopulateAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
44 onRequestSendAccessibilityEvent(Object delegate, ViewGroup host, View child, AccessibilityEvent event) argument
47 sendAccessibilityEventUnchecked(Object delegate, View host, AccessibilityEvent event) argument
66 dispatchPopulateAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
72 onInitializeAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
84 onPopulateAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
90 onRequestSendAccessibilityEvent(Object delegate, ViewGroup host, View child, AccessibilityEvent event) argument
101 sendAccessibilityEventUnchecked(Object delegate, View host, AccessibilityEvent event) argument
170 dispatchPopulateAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
177 onInitializeAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
190 onPopulateAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
196 onRequestSendAccessibilityEvent(Object delegate, ViewGroup host, View child, AccessibilityEvent event) argument
208 sendAccessibilityEventUnchecked(Object delegate, View host, AccessibilityEvent event) argument
357 sendAccessibilityEventUnchecked(View host, AccessibilityEvent event) argument
378 dispatchPopulateAccessibilityEvent(View host, AccessibilityEvent event) argument
398 onPopulateAccessibilityEvent(View host, AccessibilityEvent event) argument
418 onInitializeAccessibilityEvent(View host, AccessibilityEvent event) argument
460 onRequestSendAccessibilityEvent(ViewGroup host, View child, AccessibilityEvent event) argument
[all...]
H A DViewGroupCompat.java32 AccessibilityEvent event);
37 ViewGroup group, View child, AccessibilityEvent event) {
45 ViewGroup group, View child, AccessibilityEvent event) {
46 return ViewGroupCompatIcs.onRequestSendAccessibilityEvent(group, child, event);
68 * gives an opportunity to its parent to augment the event.
77 * @param child The child which requests sending the event.
78 * @param event The event to be sent.
79 * @return True if the event should be sent.
82 AccessibilityEvent event) {
31 onRequestSendAccessibilityEvent(ViewGroup group, View child, AccessibilityEvent event) argument
36 onRequestSendAccessibilityEvent( ViewGroup group, View child, AccessibilityEvent event) argument
44 onRequestSendAccessibilityEvent( ViewGroup group, View child, AccessibilityEvent event) argument
81 onRequestSendAccessibilityEvent(ViewGroup group, View child, AccessibilityEvent event) argument
[all...]
/frameworks/support/v4/ics/android/support/v4/view/accessibility/
H A DAccessibilityEventCompatIcs.java27 public static int getRecordCount(AccessibilityEvent event) { argument
28 return event.getRecordCount();
31 public static void appendRecord(AccessibilityEvent event, Object record) { argument
32 event.appendRecord((AccessibilityRecord) record);
35 public static Object getRecord(AccessibilityEvent event, int index) { argument
36 return event.getRecord(index);
/frameworks/base/core/java/android/view/
H A DFallbackEventHandler.java24 public void preDispatchKeyEvent(KeyEvent event); argument
25 public boolean dispatchKeyEvent(KeyEvent event); argument
H A DInputEventConsistencyVerifier.java26 * When a problem is detected, the event is tainted. This mechanism prevents the same
56 // The most recently checked event and the nesting level at which it was checked.
58 // so that the verifier can detect when it has been asked to verify the same event twice.
59 // It does not make sense to examine the contents of the last event since it may have
70 // Current event and its type.
90 // Set to true when we discover that the touch event stream is inconsistent.
94 // Set to true if the touch event stream is partially unhandled.
104 * Indicates that the verifier is intended to act on raw device input event streams.
140 * Resets the state of the input event consistency verifier.
160 * Checks an arbitrary input event
168 onInputEvent(InputEvent event, int nestingLevel) argument
193 onKeyEvent(KeyEvent event, int nestingLevel) argument
255 onTrackballEvent(MotionEvent event, int nestingLevel) argument
318 onTouchEvent(MotionEvent event, int nestingLevel) argument
459 onGenericMotionEvent(MotionEvent event, int nestingLevel) argument
520 onUnhandledEvent(InputEvent event, int nestingLevel) argument
558 ensurePointerCountIsOneForThisAction(MotionEvent event) argument
566 ensureHistorySizeIsZeroForThisAction(MotionEvent event) argument
574 startEvent(InputEvent event, int nestingLevel, String eventType) argument
646 appendEvent(StringBuilder message, int index, InputEvent event, boolean unhandled) argument
[all...]
H A DInputFilter.java50 * input event.</li>
53 * <h3>The importance of input event consistency</h3>
71 * the source of the event and its semantics. There are be multiple sources of keys,
79 * The early policy interception decides whether an input event should be delivered
83 * the fact that the policy intends to drop the event, clean up its state, and
149 * Called to enqueue the input event for filtering.
150 * The event will be recycled after the input filter processes it.
153 * @param event The input event to enqueue.
155 final public void filterInputEvent(InputEvent event, in argument
165 sendInputEvent(InputEvent event, int policyFlags) argument
195 onInputEvent(InputEvent event, int policyFlags) argument
[all...]
H A DIInputFilterHost.aidl27 void sendInputEvent(in InputEvent event, int policyFlags);
/frameworks/base/libs/androidfw/tests/
H A DInputEvent_test.cpp177 KeyEvent event; local
182 event.initialize(2, AINPUT_SOURCE_GAMEPAD, AKEY_EVENT_ACTION_DOWN,
186 ASSERT_EQ(AINPUT_EVENT_TYPE_KEY, event.getType());
187 ASSERT_EQ(2, event.getDeviceId());
188 ASSERT_EQ(AINPUT_SOURCE_GAMEPAD, event.getSource());
189 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, event.getAction());
190 ASSERT_EQ(AKEY_EVENT_FLAG_FROM_SYSTEM, event.getFlags());
191 ASSERT_EQ(AKEYCODE_BUTTON_X, event.getKeyCode());
192 ASSERT_EQ(121, event.getScanCode());
193 ASSERT_EQ(AMETA_ALT_ON, event
222 initializeEventWithHistory(MotionEvent* event) argument
300 assertEqualsEventWithHistory(const MotionEvent* event) argument
428 MotionEvent event; local
448 MotionEvent event; local
458 MotionEvent event; local
476 MotionEvent event; local
486 MotionEvent event; local
546 MotionEvent event; local
[all...]
/frameworks/support/v4/ics/android/support/v4/view/
H A DAccessibilityDelegateCompatIcs.java31 public boolean dispatchPopulateAccessibilityEvent(View host, AccessibilityEvent event); argument
32 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event); argument
34 public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event); argument
36 AccessibilityEvent event);
38 public void sendAccessibilityEventUnchecked(View host, AccessibilityEvent event); argument
48 public boolean dispatchPopulateAccessibilityEvent(View host, AccessibilityEvent event) {
49 return bridge.dispatchPopulateAccessibilityEvent(host, event);
53 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) {
54 bridge.onInitializeAccessibilityEvent(host, event);
63 public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event) {
35 onRequestSendAccessibilityEvent(ViewGroup host, View child, AccessibilityEvent event) argument
85 dispatchPopulateAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
90 onInitializeAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
100 onPopulateAccessibilityEvent(Object delegate, View host, AccessibilityEvent event) argument
105 onRequestSendAccessibilityEvent(Object delegate, ViewGroup host, View child, AccessibilityEvent event) argument
115 sendAccessibilityEventUnchecked(Object delegate, View host, AccessibilityEvent event) argument
[all...]
H A DViewGroupCompatIcs.java28 AccessibilityEvent event) {
29 return group.onRequestSendAccessibilityEvent(child, event);
27 onRequestSendAccessibilityEvent(ViewGroup group, View child, AccessibilityEvent event) argument
/frameworks/support/v4/java/android/support/v4/view/accessibility/
H A DAccessibilityEventCompat.java29 public int getRecordCount(AccessibilityEvent event); argument
30 public void appendRecord(AccessibilityEvent event, Object record); argument
31 public Object getRecord(AccessibilityEvent event, int index); argument
37 public void appendRecord(AccessibilityEvent event, Object record) { argument
42 public Object getRecord(AccessibilityEvent event, int index) { argument
47 public int getRecordCount(AccessibilityEvent event) { argument
55 public void appendRecord(AccessibilityEvent event, Object record) { argument
56 AccessibilityEventCompatIcs.appendRecord(event, record);
60 public Object getRecord(AccessibilityEvent event, int index) { argument
61 return AccessibilityEventCompatIcs.getRecord(event, inde
65 getRecordCount(AccessibilityEvent event) argument
193 getRecordCount(AccessibilityEvent event) argument
205 appendRecord(AccessibilityEvent event, AccessibilityRecordCompat record) argument
215 getRecord(AccessibilityEvent event, int index) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DCloseDragHandle.java38 public boolean onTouchEvent(MotionEvent event) { argument
39 if (event.getAction() == MotionEvent.ACTION_DOWN) {
42 mService.interceptTouchEvent(event);
48 public boolean onInterceptTouchEvent(MotionEvent event) { argument
49 return mService.interceptTouchEvent(event)
50 ? true : super.onInterceptTouchEvent(event);
/frameworks/base/core/java/android/hardware/display/
H A DIDisplayManagerCallback.aidl21 oneway void onDisplayEvent(int displayId, int event);
/frameworks/base/core/java/android/hardware/
H A DSensorEventListener.java32 * {@link android.hardware.SensorEvent event}
37 * @param event the {@link android.hardware.SensorEvent SensorEvent}.
39 public void onSensorChanged(SensorEvent event); argument
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityEventSource.java33 * the event type. The method must first check if accessibility is on
35 * obtain an {@link AccessibilityEvent} from the event pool through calling
37 * event, and send it for dispatch via calling
44 * @param eventType The event type.
51 * sending the event for dispatch. It is responsibility of the caller
58 * @param event The event.
60 public void sendAccessibilityEventUnchecked(AccessibilityEvent event); argument
/frameworks/base/core/java/android/text/method/
H A DMovementMethod.java37 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event); argument
38 public boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event); argument
45 public boolean onKeyOther(TextView view, Spannable text, KeyEvent event); argument
48 public boolean onTrackballEvent(TextView widget, Spannable text, MotionEvent event); argument
49 public boolean onTouchEvent(TextView widget, Spannable text, MotionEvent event); argument
50 public boolean onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event); argument
/frameworks/base/core/java/com/android/internal/app/
H A DAlertActivity.java78 public boolean onKeyDown(int keyCode, KeyEvent event) { argument
79 if (mAlert.onKeyDown(keyCode, event)) return true;
80 return super.onKeyDown(keyCode, event);
84 public boolean onKeyUp(int keyCode, KeyEvent event) { argument
85 if (mAlert.onKeyUp(keyCode, event)) return true;
86 return super.onKeyUp(keyCode, event);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneFallbackEventHandler.java58 public void preDispatchKeyEvent(KeyEvent event) { argument
59 getAudioManager().preDispatchKeyEvent(event, AudioManager.USE_DEFAULT_STREAM_TYPE);
62 public boolean dispatchKeyEvent(KeyEvent event) { argument
64 final int action = event.getAction();
65 final int keyCode = event.getKeyCode();
68 return onKeyDown(keyCode, event);
70 return onKeyUp(keyCode, event);
74 boolean onKeyDown(int keyCode, KeyEvent event) { argument
85 getAudioManager().handleKeyDown(event, AudioManager.USE_DEFAULT_STREAM_TYPE);
96 return true; // suppress key event
185 onKeyUp(int keyCode, KeyEvent event) argument
[all...]
/frameworks/support/v4/jellybean/android/support/v4/view/
H A DAccessibilityDelegateCompatJellyBean.java33 public boolean dispatchPopulateAccessibilityEvent(View host, AccessibilityEvent event); argument
34 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event); argument
36 public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event); argument
38 AccessibilityEvent event);
40 public void sendAccessibilityEventUnchecked(View host, AccessibilityEvent event); argument
50 public boolean dispatchPopulateAccessibilityEvent(View host, AccessibilityEvent event) {
51 return bridge.dispatchPopulateAccessibilityEvent(host, event);
55 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) {
56 bridge.onInitializeAccessibilityEvent(host, event);
65 public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event) {
37 onRequestSendAccessibilityEvent(ViewGroup host, View child, AccessibilityEvent event) argument
[all...]
/frameworks/base/services/java/com/android/server/accessibility/
H A DTouchExplorer.java47 * transforms the motion event stream by modifying, adding, replacing,
132 // Command for delayed sending of a hover enter event.
135 // Command for delayed sending of a hover exit event.
181 // The X of the previous event.
184 // The Y of the previous event.
253 // If we have not received an event then we are in initial
255 MotionEvent event = mReceivedPointerTracker.getLastReceivedEvent();
256 if (event != null) {
265 private void clear(MotionEvent event, int policyFlags) { argument
274 sendUpForInjectedDownPointers(event, policyFlag
316 onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
343 onAccessibilityEvent(AccessibilityEvent event) argument
390 handleMotionEventStateTouchExploring(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
665 handleMotionEventStateDragging(MotionEvent event, int policyFlags) argument
768 handleMotionEventStateDelegating(MotionEvent event, int policyFlags) argument
807 handleMotionEventGestureDetecting(MotionEvent event, int policyFlags) argument
1158 onMotionEvent(MotionEvent event, int policyFlags) argument
1308 isDraggingGesture(MotionEvent event) argument
1627 onMotionEvent(MotionEvent event) argument
1811 onMotionEvent(MotionEvent event) argument
1999 handleReceivedPointerDown(int pointerIndex, MotionEvent event) argument
2033 handleReceivedPointerMove(MotionEvent event) argument
2043 handleReceivedPointerUp(int pointerIndex, MotionEvent event) argument
2072 detectActivePointers(MotionEvent event) argument
2118 computePointerDeltaMove(int pointerIndex, MotionEvent event) argument
[all...]
H A DEventStreamTransformation.java32 * of the event stream, an instance should work against the event stream
36 * It is a responsibility of each handler that decides to react to an event
38 * the appropriate cancel event given it has delegated a part of the events
41 * see a consistent event stream.
43 * For example, to cancel a {@link KeyEvent} the handler has to emit an event
46 * has to send an event with action {@link MotionEvent#ACTION_CANCEL}.
48 * It is a responsibility of each handler that received a cancel event to clear its
49 * internal state and to propagate the event to the next one to enable subsequent
53 * after an event tha
68 onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
75 onAccessibilityEvent(AccessibilityEvent event) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_KeyEvent.h30 extern jobject android_view_KeyEvent_fromNative(JNIEnv* env, const KeyEvent* event);
35 KeyEvent* event);
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
H A DUiAutomatorBridge.java50 // Poll time used to check for last accessibility event time
73 public void onAccessibilityEvent(AccessibilityEvent event); argument
91 public void onAccessibilityEvent(AccessibilityEvent event) { argument
92 super.onAccessibilityEvent(event);
93 Log.d(LOGTAG, event.toString());
96 AccessibilityEvent clone = AccessibilityEvent.obtain(event);
106 notifyListeners(event);
114 private void notifyListeners(AccessibilityEvent event) { argument
116 listener.onAccessibilityEvent(event);
168 // Prepare to wait for an event
[all...]

Completed in 323 milliseconds

1234567891011>>