/frameworks/base/core/java/android/widget/ |
H A D | RelativeLayout.java | 1108 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { argument 1120 && view.dispatchPopulateAccessibilityEvent(event)) { 1131 public void onInitializeAccessibilityEvent(AccessibilityEvent event) { argument 1132 super.onInitializeAccessibilityEvent(event); 1133 event.setClassName(RelativeLayout.class.getName());
|
H A D | SimpleMonthView.java | 228 public boolean dispatchHoverEvent(MotionEvent event) { argument 230 if (mTouchHelper.dispatchHoverEvent(event)) { 233 return super.dispatchHoverEvent(event); 237 public boolean onTouchEvent(MotionEvent event) { argument 238 switch (event.getAction()) { 240 final int day = getDayFromLocation(event.getX(), event.getY()); 498 * @param x The x position of the touch event 619 protected void onPopulateEventForVirtualView(int virtualViewId, AccessibilityEvent event) { argument 620 event [all...] |
H A D | SlidingDrawer.java | 375 public boolean onInterceptTouchEvent(MotionEvent event) { argument 380 final int action = event.getAction(); 382 float x = event.getX(); 383 float y = event.getY(); 414 mVelocityTracker.addMovement(event); 421 public boolean onTouchEvent(MotionEvent event) { argument 427 mVelocityTracker.addMovement(event); 428 final int action = event.getAction(); 431 moveHandle((int) (mVertical ? event.getY() : event 841 onInitializeAccessibilityEvent(AccessibilityEvent event) argument [all...] |
H A D | Spinner.java | 497 public boolean onTouchEvent(MotionEvent event) { argument 498 if (mForwardingListener != null && mForwardingListener.onTouch(this, event)) { 502 return super.onTouchEvent(event); 696 public void onInitializeAccessibilityEvent(AccessibilityEvent event) { argument 697 super.onInitializeAccessibilityEvent(event); 698 event.setClassName(Spinner.class.getName());
|
H A D | Switch.java | 669 public void onPopulateAccessibilityEvent(AccessibilityEvent event) { argument 670 super.onPopulateAccessibilityEvent(event); 674 event.getText().add(text); 802 // Commit the change if the event is up and not canceled and the switch 1184 public void onInitializeAccessibilityEvent(AccessibilityEvent event) { argument 1185 super.onInitializeAccessibilityEvent(event); 1186 event.setClassName(Switch.class.getName());
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | AlertController.java | 423 public boolean onKeyDown(int keyCode, KeyEvent event) { argument 424 return mScrollView != null && mScrollView.executeKeyEvent(event); 428 public boolean onKeyUp(int keyCode, KeyEvent event) { argument 429 return mScrollView != null && mScrollView.executeKeyEvent(event);
|
H A D | ToolbarActionBar.java | 457 public boolean onMenuKeyEvent(KeyEvent event) { argument 458 if (event.getAction() == KeyEvent.ACTION_UP) {
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | MenuBuilder.java | 685 public boolean isShortcutKey(int keyCode, KeyEvent event) { argument 686 return findItemWithShortcutForKey(keyCode, event) != null; 765 * Dispatch a mode change event to this menu's callback. 784 public boolean performShortcut(int keyCode, KeyEvent event, int flags) { argument 785 final MenuItemImpl item = findItemWithShortcutForKey(keyCode, event); 806 void findItemsWithShortcutForKey(List<MenuItemImpl> items, int keyCode, KeyEvent event) { argument 808 final int metaState = event.getMetaState(); 811 final boolean isKeyCodeMapped = event.getKeyData(possibleChars); 822 ((MenuBuilder)item.getSubMenu()).findItemsWithShortcutForKey(items, keyCode, event); 848 MenuItemImpl findItemWithShortcutForKey(int keyCode, KeyEvent event) { argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AutoScrollHelper.java | 174 /** Whether to send a cancel motion event to the target view. */ 454 public boolean onTouch(View v, MotionEvent event) { argument 459 final int action = event.getActionMasked(); 467 HORIZONTAL, event.getX(), v.getWidth(), mTarget.getWidth()); 469 VERTICAL, event.getY(), v.getHeight(), mTarget.getHeight()); 672 * Sends a {@link MotionEvent#ACTION_CANCEL} event to the target view,
|
H A D | LockPatternView.java | 694 public boolean onHoverEvent(MotionEvent event) { argument 696 final int action = event.getAction(); 699 event.setAction(MotionEvent.ACTION_DOWN); 702 event.setAction(MotionEvent.ACTION_MOVE); 705 event.setAction(MotionEvent.ACTION_UP); 708 onTouchEvent(event); 709 event.setAction(action); 711 return super.onHoverEvent(event); 715 public boolean onTouchEvent(MotionEvent event) { argument 720 switch(event 747 handleActionMove(MotionEvent event) argument 815 handleActionUp(MotionEvent event) argument 843 handleActionDown(MotionEvent event) argument [all...] |
H A D | ResolverDrawerLayout.java | 596 public void onInitializeAccessibilityEvent(AccessibilityEvent event) { argument 597 super.onInitializeAccessibilityEvent(event); 598 event.setClassName(ResolverDrawerLayout.class.getName());
|
H A D | SlidingTab.java | 513 public boolean onInterceptTouchEvent(MotionEvent event) { argument 514 final int action = event.getAction(); 515 final float x = event.getX(); 516 final float y = event.getY(); 584 public boolean onTouchEvent(MotionEvent event) { argument 586 final int action = event.getAction(); 587 final float x = event.getX(); 588 final float y = event.getY(); 626 return mTracking || super.onTouchEvent(event); 835 * Registers a callback to be invoked when the user triggers an event [all...] |
/frameworks/base/core/jni/ |
H A D | android_media_AudioTrack.cpp | 47 jmethodID postNativeEventInJava; //... event post callback method 112 static void audioCallback(int event, void* user, void *info) { argument 123 switch (event) { 130 callbackInfo->audioTrack_ref, event, 0,0, NULL); 144 callbackInfo->audioTrack_ref, event, 0,0, NULL);
|
H A D | android_view_MotionEvent.cpp | 75 MotionEvent* event) { 77 reinterpret_cast<jlong>(event)); 80 jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* event) { argument 84 ALOGE("An exception occurred while obtaining a motion event."); 96 destEvent->copyFrom(event, true); 103 ALOGW("An exception occurred while recycling a motion event."); 347 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 348 if (!event) { 349 event = new MotionEvent(); 372 event 74 android_view_MotionEvent_setNativePtr(JNIEnv* env, jobject eventObj, MotionEvent* event) argument 398 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 405 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 430 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 436 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 442 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 448 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 454 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 460 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 466 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 472 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 478 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 484 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 490 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 496 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 502 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 508 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 514 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 520 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 526 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 532 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 538 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 544 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 550 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 560 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 570 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 576 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 582 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 596 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 615 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 634 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 657 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 670 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 677 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 694 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local 714 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); local [all...] |
H A D | android_view_ThreadedRenderer.cpp | 74 static void callOnFinished(OnFinishedEvent& event) { argument 75 event.listener->onAnimationFinished(event.animator.get()); 175 OnFinishedEvent event(animator, listener); 176 mOnFinishedEvents.push_back(event);
|
/frameworks/base/drm/jni/ |
H A D | android_drm_DrmManagerClient.cpp | 140 void onInfo(const DrmInfoEvent& event); 166 void JNIOnInfoListener::onInfo(const DrmInfoEvent& event) { argument 167 jint uniqueId = event.getUniqueId(); 168 jint type = event.getType(); 170 jstring message = env->NewStringUTF(event.getMessage().string()); 171 ALOGV("JNIOnInfoListener::onInfo => %d | %d | %s", uniqueId, type, event.getMessage().string());
|
/frameworks/base/media/java/android/media/ |
H A D | MediaDrm.java | 228 * Register a callback to be invoked when an event occurs 238 * Interface definition for a callback to be invoked when a drm event 244 * Called when an event occurs that requires the app to be notified 246 * @param md the MediaDrm object on which the event occurred 247 * @param sessionId the DRM session ID on which the event occurred 248 * @param event indicates the event type 250 * @param data optional byte array of data that may be associated with the event 252 void onEvent(MediaDrm md, byte[] sessionId, int event, int extra, byte[] data); argument 256 * This event typ [all...] |
/frameworks/base/media/java/android/media/session/ |
H A D | MediaController.java | 122 * Send the specified media button event to the session. Only media keys can 125 * @param keyEvent The media button event to dispatch. 126 * @return true if the event was sent to the session, false otherwise. 523 * @param event The event from the session. 524 * @param extras Optional parameters for the event, may be null. 526 public void onSessionEvent(@NonNull String event, @Nullable Bundle extras) { argument 898 public void onEvent(String event, Bundle extras) { argument 901 controller.postMessage(MSG_EVENT, event, extras);
|
/frameworks/base/media/java/android/media/tv/ |
H A D | TvInputService.java | 297 * Dispatches an event to the application using this session. 299 * @param eventType The type of the event. 300 * @param eventArgs Optional arguments of the event. 317 Log.w(TAG, "error in sending event (event=" + eventType + ")"); 756 * KeyEvent.Callback.onKeyDown()}: always returns false (doesn't handle the event). 759 * If you return true, the application will not process the event itself. If you return 761 * event at all. 763 * @param keyCode The value in event.getKeyCode(). 764 * @param event Descriptio 769 onKeyDown(int keyCode, KeyEvent event) argument 789 onKeyLongPress(int keyCode, KeyEvent event) argument 810 onKeyMultiple(int keyCode, int count, KeyEvent event) argument 829 onKeyUp(int keyCode, KeyEvent event) argument 841 onTouchEvent(MotionEvent event) argument 853 onTrackballEvent(MotionEvent event) argument 865 onGenericMotionEvent(MotionEvent event) argument 1073 dispatchInputEvent(InputEvent event, InputEventReceiver receiver) argument [all...] |
H A D | TvView.java | 146 InputEvent event = (InputEvent) token; 147 if (dispatchUnhandledInputEvent(event)) { 152 viewRootImpl.dispatchUnhandledInputEvent(event); 174 * Sets the callback to be invoked when an event is dispatched to this TvView. 285 * @param params Extra parameters which might be handled with the tune event. 450 * Dispatches an unhandled input event to the next receiver. 453 * asynchronously from where the event is dispatched. It gives the host application a chance to 456 * @param event The input event. 457 * @return {@code true} if the event wa 459 dispatchUnhandledInputEvent(InputEvent event) argument 476 onUnhandledInputEvent(InputEvent event) argument 490 dispatchKeyEvent(KeyEvent event) argument 505 dispatchTouchEvent(MotionEvent event) argument 520 dispatchTrackballEvent(MotionEvent event) argument 535 dispatchGenericMotionEvent(MotionEvent event) argument 864 onUnhandledInputEvent(InputEvent event) argument [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardHostView.java | 1098 public void onExternalMotionEvent(MotionEvent event) { argument 1099 mAppWidgetContainer.handleExternalCameraEvent(event);
|
H A D | KeyguardWidgetPager.java | 177 AccessibilityEvent event = AccessibilityEvent.obtain( 179 onInitializeAccessibilityEvent(event); 180 onPopulateAccessibilityEvent(event); 181 mParent.requestSendAccessibilityEvent(this, event); 945 public void handleExternalCameraEvent(MotionEvent event) { argument 950 switch (event.getAction()) { 953 // to keep event dispatch happy. 962 dispatchTouchEvent(event);
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsProvider.java | 350 public void onEvent(int event, String path) { argument 360 + "; event=" + event);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
H A D | RecentsPanelView.java | 402 public boolean dispatchHoverEvent(MotionEvent event) { argument 406 final int x = (int) event.getX(); 407 final int y = (int) event.getY(); 409 return super.dispatchHoverEvent(event);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskStackView.java | 544 public void onInitializeAccessibilityEvent(AccessibilityEvent event) { argument 545 super.onInitializeAccessibilityEvent(event); 550 event.setFromIndex(mStack.indexOfTask(backMostTask.getTask())); 551 event.setToIndex(mStack.indexOfTask(frontMostTask.getTask())); 552 event.setContentDescription(frontMostTask.getTask().activityLabel); 554 event.setItemCount(mStack.getTaskCount()); 555 event.setScrollY(mStackScroller.mScroller.getCurrY()); 556 event.setMaxScrollY(mStackScroller.progressToScrollRange(mLayoutAlgorithm.mMaxScrollP));
|