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

1234567891011>>

/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 DInputFilter.java44 * input event.</li>
47 * <h3>The importance of input event consistency</h3>
65 * the source of the event and its semantics. There may be multiple sources of keys,
73 * The early policy interception decides whether an input event should be delivered
77 * the fact that the policy intends to drop the event, clean up its state, and
143 * Called to enqueue the input event for filtering.
144 * The event will be recycled after the input filter processes it.
147 * @param event The input event to enqueue.
149 final public void filterInputEvent(InputEvent event, in argument
159 sendInputEvent(InputEvent event, int policyFlags) argument
189 onInputEvent(InputEvent event, int policyFlags) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DNativeDaemonTimeoutException.java24 public NativeDaemonTimeoutException(String command, NativeDaemonEvent event) { argument
25 super(command, event);
/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/compat/java/android/support/v4/view/accessibility/
H A DAccessibilityEventCompat.java30 public void setContentChangeTypes(AccessibilityEvent event, int types) { argument
33 public int getContentChangeTypes(AccessibilityEvent event) { argument
37 public void setMovementGranularity(AccessibilityEvent event, int granularity) { argument
40 public int getMovementGranularity(AccessibilityEvent event) { argument
44 public void setAction(AccessibilityEvent event, int action) { argument
47 public int getAction(AccessibilityEvent event) { argument
55 public void setMovementGranularity(AccessibilityEvent event, int granularity) { argument
56 event.setMovementGranularity(granularity);
60 public int getMovementGranularity(AccessibilityEvent event) { argument
61 return event
65 setAction(AccessibilityEvent event, int action) argument
70 getAction(AccessibilityEvent event) argument
79 setContentChangeTypes(AccessibilityEvent event, int types) argument
84 getContentChangeTypes(AccessibilityEvent event) argument
277 getRecordCount(AccessibilityEvent event) argument
292 appendRecord(AccessibilityEvent event, AccessibilityRecordCompat record) argument
305 getRecord(AccessibilityEvent event, int index) argument
325 asRecord(AccessibilityEvent event) argument
337 setContentChangeTypes(AccessibilityEvent event, int changeTypes) argument
354 getContentChangeTypes(AccessibilityEvent event) argument
365 setMovementGranularity(AccessibilityEvent event, int granularity) argument
374 getMovementGranularity(AccessibilityEvent event) argument
395 setAction(AccessibilityEvent event, int action) argument
404 getAction(AccessibilityEvent event) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DNetworkEventTest.java32 ConnectEvent event = new ConnectEvent("127.0.0.1", 80, "com.android.whateverdude", 100000);
34 p.writeParcelable(event, 0);
38 assertEquals(event.getInetAddress(), unparceledEvent.getInetAddress());
39 assertEquals(event.getPort(), unparceledEvent.getPort());
40 assertEquals(event.getPackageName(), unparceledEvent.getPackageName());
41 assertEquals(event.getTimestamp(), unparceledEvent.getTimestamp());
48 DnsEvent event = new DnsEvent("d.android.com", new String[]{"192.168.0.1", "127.0.0.1"}, 2,
51 p.writeParcelable(event, 0);
55 assertEquals(event.getHostname(), unparceledEvent.getHostname());
56 assertEquals(event
[all...]
/frameworks/support/compat/java/android/support/v4/view/
H A DMotionEventCompat.java465 public static int getActionMasked(MotionEvent event) { argument
466 return event.getActionMasked();
477 public static int getActionIndex(MotionEvent event) { argument
478 return event.getActionIndex();
488 public static int findPointerIndex(MotionEvent event, int pointerId) { argument
489 return event.findPointerIndex(pointerId);
499 public static int getPointerId(MotionEvent event, int pointerIndex) { argument
500 return event.getPointerId(pointerIndex);
510 public static float getX(MotionEvent event, int pointerIndex) { argument
511 return event
521 getY(MotionEvent event, int pointerIndex) argument
532 getPointerCount(MotionEvent event) argument
544 getSource(MotionEvent event) argument
553 isFromSource(MotionEvent event, int source) argument
570 getAxisValue(MotionEvent event, int axis) argument
590 getAxisValue(MotionEvent event, int axis, int pointerIndex) argument
599 getButtonState(MotionEvent event) argument
[all...]
H A DKeyEventCompat.java62 public static boolean hasModifiers(KeyEvent event, int modifiers) { argument
63 return event.hasModifiers(modifiers);
71 public static boolean hasNoModifiers(KeyEvent event) { argument
72 return event.hasNoModifiers();
80 public static void startTracking(KeyEvent event) { argument
81 event.startTracking();
89 public static boolean isTracking(KeyEvent event) { argument
90 return event.isTracking();
108 public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, argument
110 return event
118 isCtrlPressed(KeyEvent event) argument
[all...]
/frameworks/av/drm/libmediadrm/aidl/android/media/
H A DICasListener.aidl21 void onEvent(int event, int arg, in @nullable byte[] data);
/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/core/java/com/android/internal/app/
H A DAlertActivity.java69 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { argument
70 return dispatchPopulateAccessibilityEvent(this, event);
74 AccessibilityEvent event) {
75 event.setClassName(Dialog.class.getName());
76 event.setPackageName(act.getPackageName());
81 event.setFullScreen(isFullScreen);
98 public boolean onKeyDown(int keyCode, KeyEvent event) { argument
99 if (mAlert.onKeyDown(keyCode, event)) return true;
100 return super.onKeyDown(keyCode, event);
104 public boolean onKeyUp(int keyCode, KeyEvent event) { argument
73 dispatchPopulateAccessibilityEvent(Activity act, AccessibilityEvent 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDoubleTapHelper.java64 public boolean onTouchEvent(MotionEvent event) { argument
65 return onTouchEvent(event, Integer.MAX_VALUE);
68 public boolean onTouchEvent(MotionEvent event, int maxTouchableHeight) { argument
69 int action = event.getActionMasked();
72 mDownX = event.getX();
73 mDownY = event.getY();
80 if (!isWithinTouchSlop(event)) {
86 if (isWithinTouchSlop(event)) {
93 mActivationX = event.getX();
94 mActivationY = event
140 isWithinTouchSlop(MotionEvent event) argument
145 isWithinDoubleTapSlop(MotionEvent event) argument
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DTouchExplorer.java40 * transforms the motion event stream by modifying, adding, replacing,
112 // Command for delayed sending of a hover enter and move event.
115 // Command for delayed sending of a hover exit event.
212 // If we have not received an event then we are in initial
214 MotionEvent event = mReceivedPointerTracker.getLastReceivedEvent();
215 if (event != null) {
220 private void clear(MotionEvent event, int policyFlags) { argument
229 sendUpForInjectedDownPointers(event, policyFlags);
233 sendUpForInjectedDownPointers(event, policyFlags);
266 public void onMotionEvent(MotionEvent event, MotionEven argument
314 onKeyEvent(KeyEvent event, int policyFlags) argument
321 onAccessibilityEvent(AccessibilityEvent event) argument
362 onDoubleTapAndHold(MotionEvent event, int policyFlags) argument
394 onDoubleTap(MotionEvent event, int policyFlags) argument
475 onGestureCancelled(MotionEvent event, int policyFlags) argument
504 handleMotionEventStateTouchExploring(MotionEvent event, MotionEvent rawEvent, int policyFlags) argument
658 handleMotionEventStateDragging(MotionEvent event, int policyFlags) argument
760 handleMotionEventStateDelegating(MotionEvent event, int policyFlags) argument
996 offsetEvent(MotionEvent event, int offsetX, int offsetY) argument
1061 isDraggingGesture(MotionEvent event) argument
1156 post(MotionEvent event, boolean touchExplorationInProgress, int pointerIdBits, int policyFlags) argument
1165 addEvent(MotionEvent event) argument
1345 onMotionEvent(MotionEvent event) argument
1498 onMotionEvent(MotionEvent event) argument
1617 handleReceivedPointerDown(int pointerIndex, MotionEvent event) argument
1641 handleReceivedPointerUp(int pointerIndex, MotionEvent event) argument
[all...]
H A DKeyboardInterceptor.java35 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { argument
37 mNext.onMotionEvent(event, rawEvent, policyFlags);
42 public void onKeyEvent(KeyEvent event, int policyFlags) { argument
43 mAms.notifyKeyEvent(event, policyFlags);
47 public void onAccessibilityEvent(AccessibilityEvent event) { argument
49 mNext.onAccessibilityEvent(event);
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
76 onKeyEvent(KeyEvent event, int policyFlags) argument
83 onAccessibilityEvent(AccessibilityEvent event) argument
[all...]
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/
H A DEmojiKeyListenerTest.java93 final KeyEvent event = zero();
94 assertFalse(mEmojiKeyListener.onKeyDown(null, mEditable, event.getKeyCode(), event));
96 eq(event.getKeyCode()), same(event));
102 final KeyEvent event = fnDel();
103 assertFalse(mEmojiKeyListener.onKeyDown(null, mEditable, event.getKeyCode(), event));
105 eq(event.getKeyCode()), same(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

Completed in 460 milliseconds

1234567891011>>