Searched refs:event (Results 1 - 25 of 836) 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/base/core/java/android/view/
H A DFallbackEventHandler.java24 public void preDispatchKeyEvent(KeyEvent event); argument
25 public boolean dispatchKeyEvent(KeyEvent event); argument
/frameworks/base/services/core/java/com/android/server/
H A DNativeDaemonTimeoutException.java24 public NativeDaemonTimeoutException(String command, NativeDaemonEvent event) { argument
25 super(command, event);
/frameworks/support/v4/gingerbread/android/support/v4/view/
H A DMotionEventCompatGingerbread.java22 * Motion event compatibility class for API 8+.
25 public static int getSource(MotionEvent event) { argument
26 return event.getSource();
/frameworks/support/v4/ics/android/support/v4/view/
H A DMotionEventCompatICS.java22 public static int getButtonState(MotionEvent event) { argument
23 return event.getButtonState();
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/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/support/v4/java/android/support/v4/view/accessibility/
H A DAccessibilityEventCompat.java29 int getRecordCount(AccessibilityEvent event); argument
30 void appendRecord(AccessibilityEvent event, Object record); argument
31 Object getRecord(AccessibilityEvent event, int index); argument
32 void setContentChangeTypes(AccessibilityEvent event, int types); argument
33 int getContentChangeTypes(AccessibilityEvent event); argument
39 public void appendRecord(AccessibilityEvent event, Object record) { argument
44 public Object getRecord(AccessibilityEvent event, int index) { argument
49 public void setContentChangeTypes(AccessibilityEvent event, int types) { argument
54 public int getRecordCount(AccessibilityEvent event) { argument
59 public int getContentChangeTypes(AccessibilityEvent event) { argument
67 appendRecord(AccessibilityEvent event, Object record) argument
72 getRecord(AccessibilityEvent event, int index) argument
77 getRecordCount(AccessibilityEvent event) argument
85 setContentChangeTypes(AccessibilityEvent event, int types) argument
90 getContentChangeTypes(AccessibilityEvent event) argument
244 getRecordCount(AccessibilityEvent event) argument
256 appendRecord(AccessibilityEvent event, AccessibilityRecordCompat record) argument
266 getRecord(AccessibilityEvent event, int index) argument
283 asRecord(AccessibilityEvent event) argument
295 setContentChangeTypes(AccessibilityEvent event, int changeTypes) argument
312 getContentChangeTypes(AccessibilityEvent event) argument
[all...]
/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.java26 * Called when there is a new sensor event. Note that "on changed"
36 * {@link android.hardware.SensorEvent event}
41 * @param event the {@link android.hardware.SensorEvent SensorEvent}.
43 public void onSensorChanged(SensorEvent event); argument
/frameworks/support/v4/honeycomb_mr1/android/support/v4/view/
H A DMotionEventCompatHoneycombMr1.java22 * Motion event compatibility class for API 12+.
25 static float getAxisValue(MotionEvent event, int axis) { argument
26 return event.getAxisValue(axis);
29 static float getAxisValue(MotionEvent event, int axis, int pointerIndex) { argument
30 return event.getAxisValue(axis, pointerIndex);
/frameworks/support/v4/kitkat/android/support/v4/view/accessibility/
H A DAccessibilityEventCompatKitKat.java22 public static void setContentChangeTypes(AccessibilityEvent event, int changeTypes) { argument
23 event.setContentChangeTypes(changeTypes);
26 public static int getContentChangeTypes(AccessibilityEvent event) { argument
27 return event.getContentChangeTypes();
/frameworks/support/v4/java/android/support/v4/view/
H A DMotionEventCompat.java31 public int findPointerIndex(MotionEvent event, int pointerId); argument
32 public int getPointerId(MotionEvent event, int pointerIndex); argument
33 public float getX(MotionEvent event, int pointerIndex); argument
34 public float getY(MotionEvent event, int pointerIndex); argument
35 public int getPointerCount(MotionEvent event); argument
36 public int getSource(MotionEvent event); argument
37 float getAxisValue(MotionEvent event, int axis); argument
38 float getAxisValue(MotionEvent event, int axis, int pointerIndex); argument
39 int getButtonState(MotionEvent event); argument
47 public int findPointerIndex(MotionEvent event, in argument
55 getPointerId(MotionEvent event, int pointerIndex) argument
63 getX(MotionEvent event, int pointerIndex) argument
70 getY(MotionEvent event, int pointerIndex) argument
77 getPointerCount(MotionEvent event) argument
82 getSource(MotionEvent event) argument
87 getAxisValue(MotionEvent event, int axis) argument
92 getAxisValue(MotionEvent event, int axis, int pointerIndex) argument
97 getButtonState(MotionEvent event) argument
107 findPointerIndex(MotionEvent event, int pointerId) argument
111 getPointerId(MotionEvent event, int pointerIndex) argument
115 getX(MotionEvent event, int pointerIndex) argument
119 getY(MotionEvent event, int pointerIndex) argument
123 getPointerCount(MotionEvent event) argument
133 getSource(MotionEvent event) argument
144 getAxisValue(MotionEvent event, int axis) argument
149 getAxisValue(MotionEvent event, int axis, int pointerIndex) argument
160 getButtonState(MotionEvent event) argument
459 getActionMasked(MotionEvent event) argument
467 getActionIndex(MotionEvent event) argument
477 findPointerIndex(MotionEvent event, int pointerId) argument
486 getPointerId(MotionEvent event, int pointerIndex) argument
495 getX(MotionEvent event, int pointerIndex) argument
504 getY(MotionEvent event, int pointerIndex) argument
512 getPointerCount(MotionEvent event) argument
521 getSource(MotionEvent event) argument
530 isFromSource(MotionEvent event, int source) argument
543 getAxisValue(MotionEvent event, int axis) argument
559 getAxisValue(MotionEvent event, int axis, int pointerIndex) argument
568 getButtonState(MotionEvent 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/core/java/com/android/internal/midi/
H A DMidiEventScheduler.java41 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp);
42 if (event != null) {
43 add(event);
80 * Create an event that contains the message.
84 MidiEvent event;
86 event = new MidiEvent(msg, offset, count, timestamp);
88 event = (MidiEvent) removeEventfromPool();
89 if (event == null) {
90 event = new MidiEvent(POOL_EVENT_SIZE);
92 System.arraycopy(msg, offset, event
105 addEventToPool(SchedulableEvent event) argument
[all...]
H A DEventScheduler.java51 FastEventQueue(SchedulableEvent event) { argument
52 mFirst = event;
63 * Do not call this unless there is more than one event
65 * @return first event in the list
68 // Take first event.
70 SchedulableEvent event = mFirst;
71 mFirst = event.mNext;
72 event.mNext = null;
73 return event;
77 * @param event
79 add(SchedulableEvent event) argument
135 addEventToPool(SchedulableEvent event) argument
151 add(SchedulableEvent event) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DProximityClassifier.java43 public void onSensorChanged(SensorEvent event) { argument
44 if (event.sensor.getType() == Sensor.TYPE_PROXIMITY) {
45 update(event.values[0] < event.sensor.getMaximumRange(), event.timestamp);
50 public void onTouchEvent(MotionEvent event) { argument
51 int action = event.getActionMasked();
54 mGestureStartTimeNano = event.getEventTimeNano();
55 mNearStartTimeNano = event.getEventTimeNano();
60 update(mNear, event
[all...]
H A DClassifierData.java37 public void update(MotionEvent event) { argument
39 int action = event.getActionMasked();
44 for (int i = 0; i < event.getPointerCount(); i++) {
45 int id = event.getPointerId(i);
47 mCurrentStrokes.put(id, new Stroke(event.getEventTimeNano(), mDpi));
49 mCurrentStrokes.get(id).addPoint(event.getX(i), event.getY(i),
50 event.getEventTimeNano());
53 || (action == MotionEvent.ACTION_POINTER_UP && i == event.getActionIndex())) {
59 public void cleanUp(MotionEvent event) { argument
[all...]
/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/services/accessibility/java/com/android/server/accessibility/
H A DTouchExplorer.java39 * transforms the motion event stream by modifying, adding, replacing,
111 // Command for delayed sending of a hover enter and move event.
114 // Command for delayed sending of a hover exit event.
211 // If we have not received an event then we are in initial
213 MotionEvent event = mReceivedPointerTracker.getLastReceivedEvent();
214 if (event != null) {
219 private void clear(MotionEvent event, int policyFlags) { argument
228 sendUpForInjectedDownPointers(event, policyFlags);
232 sendUpForInjectedDownPointers(event, policyFlags);
265 public void onMotionEvent(MotionEvent event, MotionEven argument
313 onKeyEvent(KeyEvent event, int policyFlags) argument
320 onAccessibilityEvent(AccessibilityEvent event) argument
361 onDoubleTapAndHold(MotionEvent event, int policyFlags) argument
393 onDoubleTap(MotionEvent event, int policyFlags) argument
467 onGestureCancelled(MotionEvent event, int policyFlags) argument
496 handleMotionEventStateTouchExploring(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
650 handleMotionEventStateDragging(MotionEvent event, int policyFlags) argument
752 handleMotionEventStateDelegating(MotionEvent event, int policyFlags) argument
983 offsetEvent(MotionEvent event, int offsetX, int offsetY) argument
1048 isDraggingGesture(MotionEvent event) argument
1143 post(MotionEvent event, boolean touchExplorationInProgress, int pointerIdBits, int policyFlags) argument
1152 addEvent(MotionEvent event) argument
1332 onMotionEvent(MotionEvent event) argument
1485 onMotionEvent(MotionEvent event) argument
1604 handleReceivedPointerDown(int pointerIndex, MotionEvent event) argument
1628 handleReceivedPointerUp(int pointerIndex, MotionEvent event) argument
[all...]
H A DAccessibilityGestureDetector.java52 * MotionEvent in the context of these functions is the event passed into
60 * @param event The most recent MotionEvent received.
61 * @param policyFlags The policy flags of the most recent event.
63 void onDoubleTapAndHold(MotionEvent event, int policyFlags); argument
69 * @param event The most recent MotionEvent received.
70 * @param policyFlags The policy flags of the most recent event.
72 * @return true if the event is consumed, else false
74 boolean onDoubleTap(MotionEvent event, int policyFlags); argument
77 * Called when the system has decided the event stream is a gesture.
79 * @return true if the event i
101 onGestureCancelled(MotionEvent event, int policyFlags) argument
207 onMotionEvent(MotionEvent event, int policyFlags) argument
357 onSingleTapUp(MotionEvent event) argument
363 onSingleTapConfirmed(MotionEvent event) argument
369 onDoubleTap(MotionEvent event) argument
376 maybeSendLongPress(MotionEvent event, int policyFlags) argument
386 finishDoubleTap(MotionEvent event, int policyFlags) argument
398 recognizeGesture(MotionEvent event, int policyFlags) argument
422 mapSecondPointerToFirstPointer(MotionEvent event) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DAlertActivity.java69 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { argument
70 event.setClassName(Dialog.class.getName());
71 event.setPackageName(getPackageName());
76 event.setFullScreen(isFullScreen);
94 public boolean onKeyDown(int keyCode, KeyEvent event) { argument
95 if (mAlert.onKeyDown(keyCode, event)) return true;
96 return super.onKeyDown(keyCode, event);
100 public boolean onKeyUp(int keyCode, KeyEvent event) { argument
101 if (mAlert.onKeyUp(keyCode, event)) return true;
102 return super.onKeyUp(keyCode, event);
[all...]

Completed in 546 milliseconds

1234567891011>>