Searched refs:event (Results 1 - 25 of 687) 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...]
H A DKeyEventCompatEclair.java28 public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, argument
30 return event.dispatch(receiver, (KeyEvent.DispatcherState)state, target);
33 public static void startTracking(KeyEvent event) { argument
34 event.startTracking();
37 public static boolean isTracking(KeyEvent event) { argument
38 return event.isTracking();
/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 DKeyEventCompat.java34 public void startTracking(KeyEvent event); argument
35 public boolean isTracking(KeyEvent event); argument
37 public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, argument
98 public void startTracking(KeyEvent event) { argument
102 public boolean isTracking(KeyEvent event) { argument
112 public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, argument
114 return event.dispatch(receiver);
120 public void startTracking(KeyEvent event) { argument
121 KeyEventCompatEclair.startTracking(event);
125 public boolean isTracking(KeyEvent event) { argument
135 dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, Object target) argument
187 hasModifiers(KeyEvent event, int modifiers) argument
191 hasNoModifiers(KeyEvent event) argument
195 startTracking(KeyEvent event) argument
199 isTracking(KeyEvent event) argument
207 dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, Object target) argument
[all...]
/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 may 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...]
/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);
39 public static void setScrollable(AccessibilityEvent event, boolean scrollable) { argument
40 event.setScrollable(scrollable);
/frameworks/native/libs/input/tests/
H A DInputEvent_test.cpp176 KeyEvent event; local
181 event.initialize(2, AINPUT_SOURCE_GAMEPAD, AKEY_EVENT_ACTION_DOWN,
185 ASSERT_EQ(AINPUT_EVENT_TYPE_KEY, event.getType());
186 ASSERT_EQ(2, event.getDeviceId());
187 ASSERT_EQ(AINPUT_SOURCE_GAMEPAD, event.getSource());
188 ASSERT_EQ(AKEY_EVENT_ACTION_DOWN, event.getAction());
189 ASSERT_EQ(AKEY_EVENT_FLAG_FROM_SYSTEM, event.getFlags());
190 ASSERT_EQ(AKEYCODE_BUTTON_X, event.getKeyCode());
191 ASSERT_EQ(121, event.getScanCode());
192 ASSERT_EQ(AMETA_ALT_ON, event
221 initializeEventWithHistory(MotionEvent* event) argument
299 assertEqualsEventWithHistory(const MotionEvent* event) argument
427 MotionEvent event; local
447 MotionEvent event; local
457 MotionEvent event; local
475 MotionEvent event; local
485 MotionEvent event; local
559 MotionEvent event; local
[all...]
/frameworks/base/core/java/android/hardware/
H A DTriggerEventListener.java21 * Trigger Sensors are sensors that trigger an event and are automatically
33 * public void onTrigger(TriggerEvent event) {
74 * @param event The details of the event.
76 public abstract void onTrigger(TriggerEvent event); argument
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/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
232 asRecord(AccessibilityEvent event) argument
[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...]
/frameworks/base/core/java/android/hardware/display/
H A DIDisplayManagerCallback.aidl21 oneway void onDisplayEvent(int displayId, int event);
/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/wifi/java/android/net/wifi/p2p/
H A DWifiP2pProvDiscEvent.java35 public int event; field in class:WifiP2pProvDiscEvent
39 /* Valid when event = SHOW_PIN */
61 throw new IllegalArgumentException("Malformed event " + string);
64 if (tokens[0].endsWith("PBC-REQ")) event = PBC_REQ;
65 else if (tokens[0].endsWith("PBC-RESP")) event = PBC_RSP;
66 else if (tokens[0].endsWith("ENTER-PIN")) event = ENTER_PIN;
67 else if (tokens[0].endsWith("SHOW-PIN")) event = SHOW_PIN;
68 else throw new IllegalArgumentException("Malformed event " + string);
74 if (event == SHOW_PIN) {
82 sbuf.append("\n event
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DAlertActivity.java71 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { argument
72 event.setClassName(Dialog.class.getName());
73 event.setPackageName(getPackageName());
78 event.setFullScreen(isFullScreen);
96 public boolean onKeyDown(int keyCode, KeyEvent event) { argument
97 if (mAlert.onKeyDown(keyCode, event)) return true;
98 return super.onKeyDown(keyCode, event);
102 public boolean onKeyUp(int keyCode, KeyEvent event) { argument
103 if (mAlert.onKeyUp(keyCode, event)) return true;
104 return super.onKeyUp(keyCode, event);
[all...]
/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/services/accessibility/java/com/android/server/accessibility/
H A DAccessibilityInputFilter.java143 public void onInputEvent(InputEvent event, int policyFlags) { argument
145 Slog.d(TAG, "Received event: " + event + ", policyFlags=0x"
148 if (event instanceof MotionEvent
149 && event.isFromSource(InputDevice.SOURCE_TOUCHSCREEN)) {
150 MotionEvent motionEvent = (MotionEvent) event;
152 } else if (event instanceof KeyEvent
153 && event.isFromSource(InputDevice.SOURCE_KEYBOARD)) {
154 KeyEvent keyEvent = (KeyEvent) event;
157 super.onInputEvent(event, policyFlag
161 onMotionEvent(MotionEvent event, int policyFlags) argument
209 onKeyEvent(KeyEvent event, int policyFlags) argument
235 batchMotionEvent(MotionEvent event, int policyFlags) argument
275 handleMotionEvent(MotionEvent event, int policyFlags) argument
296 onAccessibilityEvent(AccessibilityEvent event) argument
325 notifyAccessibilityEvent(AccessibilityEvent event) argument
382 public MotionEvent event; field in class:AccessibilityInputFilter.MotionEventHolder
386 obtain(MotionEvent event, int policyFlags) argument
[all...]
H A DTouchExplorer.java49 * transforms the motion event stream by modifying, adding, replacing,
133 // Command for delayed sending of a hover enter and move event.
136 // Command for delayed sending of a hover exit event.
185 // The X of the previous event.
188 // The Y of the previous event.
257 // If we have not received an event then we are in initial
259 MotionEvent event = mReceivedPointerTracker.getLastReceivedEvent();
260 if (event != null) {
269 private void clear(MotionEvent event, int policyFlags) { argument
278 sendUpForInjectedDownPointers(event, policyFlag
320 onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
347 onAccessibilityEvent(AccessibilityEvent event) argument
394 handleMotionEventStateTouchExploring(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
652 handleMotionEventStateDragging(MotionEvent event, int policyFlags) argument
745 handleMotionEventStateDelegating(MotionEvent event, int policyFlags) argument
782 handleMotionEventGestureDetecting(MotionEvent event, int policyFlags) argument
1028 offsetEvent(MotionEvent event, int offsetX, int offsetY) argument
1091 onMotionEvent(MotionEvent event, int policyFlags) argument
1211 isDraggingGesture(MotionEvent event) argument
1365 post(MotionEvent event, boolean touchExplorationInProgress, int pointerIdBits, int policyFlags) argument
1374 addEvent(MotionEvent event) argument
1554 onMotionEvent(MotionEvent event) argument
1707 onMotionEvent(MotionEvent event) argument
1826 handleReceivedPointerDown(int pointerIndex, MotionEvent event) argument
1850 handleReceivedPointerUp(int pointerIndex, MotionEvent event) argument
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneFallbackEventHandler.java59 public void preDispatchKeyEvent(KeyEvent event) { argument
60 getAudioManager().preDispatchKeyEvent(event, AudioManager.USE_DEFAULT_STREAM_TYPE);
63 public boolean dispatchKeyEvent(KeyEvent event) { argument
65 final int action = event.getAction();
66 final int keyCode = event.getKeyCode();
69 return onKeyDown(keyCode, event);
71 return onKeyUp(keyCode, event);
75 boolean onKeyDown(int keyCode, KeyEvent event) { argument
86 MediaSessionLegacyHelper.getHelper(mContext).sendVolumeKeyEvent(event, false);
97 return true; // suppress key event
187 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/av/include/soundtrigger/
H A DSoundTriggerCallback.h32 virtual void onRecognitionEvent(struct sound_trigger_recognition_event *event) = 0;
34 virtual void onSoundModelEvent(struct sound_trigger_model_event *event) = 0;
/frameworks/base/core/java/android/hardware/hdmi/
H A DIHdmiHotplugEventListener.aidl28 void onReceived(in HdmiHotplugEvent event);

Completed in 602 milliseconds

1234567891011>>