/frameworks/support/v4/java/android/support/v4/view/ |
H A D | KeyEventCompat.java | 34 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/com/android/internal/policy/ |
H A D | PhoneFallbackEventHandler.java | 60 public void preDispatchKeyEvent(KeyEvent event) { argument 61 getAudioManager().preDispatchKeyEvent(event, AudioManager.USE_DEFAULT_STREAM_TYPE); 64 public boolean dispatchKeyEvent(KeyEvent event) { argument 66 final int action = event.getAction(); 67 final int keyCode = event.getKeyCode(); 70 return onKeyDown(keyCode, event); 72 return onKeyUp(keyCode, event); 76 boolean onKeyDown(int keyCode, KeyEvent event) { argument 87 MediaSessionLegacyHelper.getHelper(mContext).sendVolumeKeyEvent(event, false); 98 return true; // suppress key event 203 onKeyUp(int keyCode, KeyEvent event) argument [all...] |
/frameworks/support/v4/jellybean/android/support/v4/view/ |
H A D | AccessibilityDelegateCompatJellyBean.java | 33 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/accessibility/java/com/android/server/accessibility/ |
H A D | TouchExplorer.java | 49 * 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...] |
H A D | EventStreamTransformation.java | 32 * 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/java/android/view/ |
H A D | InputEventConsistencyVerifier.java | 26 * 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. 107 * Indicates that the verifier is intended to act on raw device input event streams. 143 * Resets the state of the input event consistency verifier. 164 * Checks an arbitrary input event 172 onInputEvent(InputEvent event, int nestingLevel) argument 197 onKeyEvent(KeyEvent event, int nestingLevel) argument 259 onTrackballEvent(MotionEvent event, int nestingLevel) argument 322 onTouchEvent(MotionEvent event, int nestingLevel) argument 463 onGenericMotionEvent(MotionEvent event, int nestingLevel) argument 582 onUnhandledEvent(InputEvent event, int nestingLevel) argument 620 ensurePointerCountIsOneForThisAction(MotionEvent event) argument 628 ensureActionButtonIsNonZeroForThisAction(MotionEvent event) argument 637 ensureHistorySizeIsZeroForThisAction(MotionEvent event) argument 645 startEvent(InputEvent event, int nestingLevel, String eventType) argument 717 appendEvent(StringBuilder message, int index, InputEvent event, boolean unhandled) argument [all...] |
H A D | IInputFilterHost.aidl | 27 void sendInputEvent(in InputEvent event, int policyFlags);
|
H A D | TouchDelegate.java | 55 * True if the delegate had been targeted on a down event (intersected mBounds). 100 * Will forward touch events to the delegate view if the event is within the bounds 103 * @param event The touch event to forward 104 * @return True if the event was forwarded to the delegate, false otherwise. 106 public boolean onTouchEvent(MotionEvent event) { argument 107 int x = (int)event.getX(); 108 int y = (int)event.getY(); 113 switch (event.getAction()) { 141 // Offset event coordinate [all...] |
/frameworks/av/include/soundtrigger/ |
H A D | SoundTriggerCallback.h | 32 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 D | IHdmiHotplugEventListener.aidl | 28 void onReceived(in HdmiHotplugEvent event);
|
/frameworks/base/core/java/android/hardware/location/ |
H A D | IActivityRecognitionHardwareSink.aidl | 29 * Activity changed event. 31 void onActivityChanged(in ActivityChangedEvent event);
|
H A D | IGeofenceHardwareMonitorCallback.aidl | 24 void onMonitoringSystemChange(in GeofenceHardwareMonitorEvent event);
|
/frameworks/base/core/jni/ |
H A D | android_view_KeyEvent.h | 30 extern jobject android_view_KeyEvent_fromNative(JNIEnv* env, const KeyEvent* event); 35 KeyEvent* event);
|
H A D | android_util_FileObserver.cpp | 54 struct inotify_event* event; local 61 if (num_bytes < (int)sizeof(*event)) 66 ALOGE("***** ERROR! android_os_fileobserver_observe() got a short event!"); 70 while (num_bytes >= (int)sizeof(*event)) 73 event = (struct inotify_event *)(event_buf + event_pos); 77 if (event->len > 0) 79 path = env->NewStringUTF(event->name); 82 env->CallVoidMethod(object, method_onEvent, event->wd, event->mask, path); 92 event_size = sizeof(*event) [all...] |
H A D | android_view_InputEventSender.cpp | 58 status_t sendKeyEvent(uint32_t seq, const KeyEvent* event); 59 status_t sendMotionEvent(uint32_t seq, const MotionEvent* event); 87 ALOGD("channel '%s' ~ Initializing input event sender.", getInputChannelName()); 104 ALOGD("channel '%s' ~ Disposing input event sender.", getInputChannelName()); 110 status_t NativeInputEventSender::sendKeyEvent(uint32_t seq, const KeyEvent* event) { argument 112 ALOGD("channel '%s' ~ Sending key event, seq=%u.", getInputChannelName(), seq); 117 event->getDeviceId(), event->getSource(), event->getAction(), event 129 sendMotionEvent(uint32_t seq, const MotionEvent* event) argument 276 KeyEvent event; local 286 MotionEvent* event = android_view_MotionEvent_getNativePtr(env, eventObj); local [all...] |
H A D | android_view_MotionEvent.cpp | 77 MotionEvent* event) { 79 reinterpret_cast<jlong>(event)); 82 jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* event) { argument 86 ALOGE("An exception occurred while obtaining a motion event."); 98 destEvent->copyFrom(event, true); 105 ALOGW("An exception occurred while recycling a motion event."); 348 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 349 if (!event) { 350 event = new MotionEvent(); 373 event 76 android_view_MotionEvent_setNativePtr(JNIEnv* env, jobject eventObj, MotionEvent* event) argument 399 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 406 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 431 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 437 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 443 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 449 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 455 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 461 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 467 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 473 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 479 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 485 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 491 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 497 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 503 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 509 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 515 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 521 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 527 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 533 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 539 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 545 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 551 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 557 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 563 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 569 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 579 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 589 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 595 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 601 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 615 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 634 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 653 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 676 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 689 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 696 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 713 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 733 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local [all...] |
/frameworks/base/location/java/android/location/ |
H A D | IGpsMeasurementsListener.aidl | 25 void onGpsMeasurementsReceived(in GpsMeasurementsEvent event);
|
H A D | IGpsNavigationMessageListener.aidl | 25 void onGpsNavigationMessageReceived(in GpsNavigationMessageEvent event);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
H A D | Util.java | 49 // Construct an accessibility event with the minimum recommended 50 // attributes. An event without a class name or package may be dropped. 51 final AccessibilityEvent event = AccessibilityEvent.obtain(eventType); 52 event.getText().add(text); 53 event.setEnabled(view.isEnabled()); 54 event.setClassName(view.getClass().getName()); 55 event.setPackageName(context.getPackageName()); 58 final AccessibilityRecordCompat record = AccessibilityEventCompat.asRecord(event); 62 view.getParent().requestSendAccessibilityEvent(view, event); 64 // Sends the event directl [all...] |
/frameworks/support/v4/ics/android/support/v4/view/ |
H A D | ViewGroupCompatIcs.java | 28 AccessibilityEvent event) { 29 return group.onRequestSendAccessibilityEvent(child, event); 27 onRequestSendAccessibilityEvent(ViewGroup group, View child, AccessibilityEvent event) argument
|
H A D | ViewParentCompatICS.java | 28 ViewParent parent, View child, AccessibilityEvent event) { 29 return parent.requestSendAccessibilityEvent(child, event); 27 requestSendAccessibilityEvent( ViewParent parent, View child, AccessibilityEvent event) argument
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
H A D | AccessibleDateAnimator.java | 40 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { argument 41 if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) { 42 // Clear the event's current text so that only the current date will be spoken. 43 event.getText().clear(); 48 event.getText().add(dateString); 51 return super.dispatchPopulateAccessibilityEvent(event);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NoisyVelocityTracker.java | 59 public void addMovement(MotionEvent event) { argument 63 mEventBuf.add(new MotionEventCopy(event.getX(), event.getY(), event.getEventTime())); 77 final MotionEventCopy event = iter.next(); 79 final float dt = (float) (event.t - last.t) / units; 80 final float dx = (event.x - last.x); 81 final float dy = (event.y - last.y); 85 i, event.t, event [all...] |
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
H A D | SipWakeupTimer.java | 63 * Stops the timer. No event can be scheduled after this method is called. 113 // Determines the period and the trigger time of the new event and insert it 115 private void insertEvent(MyEvent event) { argument 118 event.mTriggerTime = now + event.mPeriod; 119 mEventQueue.add(event); 124 if (minPeriod <= event.mMaxPeriod) { 125 event.mPeriod = event.mMaxPeriod / minPeriod * minPeriod; 126 int interval = event [all...] |
/frameworks/base/tests/AccessibilityEventsLogger/src/com/android/tests/accessibilityeventslogger/ |
H A D | AELogger.java | 44 public void onAccessibilityEvent(AccessibilityEvent event) { argument 45 final String eventClass = event.getClassName().toString(); 46 final String eventText = String.valueOf(event.getText()).toLowerCase(Locale.getDefault()); 47 final String eventType = AccessibilityEvent.eventTypeToString(event.getEventType()); 53 event.getPackageName(), 55 event.getContentDescription() 58 // Show selected event types 59 if (0 != (TOAST_EVENT_TYPES & event.getEventType())) {
|