/packages/apps/Calendar/src/com/android/calendar/month/ |
H A D | MonthWeekEventsView.java | 112 // This is for drawing the outlines around event chips and supports up to 10 694 Event event = iter.next(); 695 int newY = drawEvent(canvas, event, xSquare, ySquare, rightEdge, iter.hasNext()); 737 * Attempts to draw the given event. Returns the y for the next event or the 738 * original y if the event will not fit. An event is considered to not fit 739 * if the event and its extras won't fit or if there are more events and the 740 * more events line would not fit after drawing this event. 742 * @param event th 747 drawEvent( Canvas canvas, Event event, int x, int y, int rightEdge, boolean moreEvents) argument 897 onHoverEvent(MotionEvent event) argument [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/event/ |
H A D | EditEventHelperTest.java | 17 package com.android.calendar.event; 81 "UTC", // 10 event timezone 176 // new recurring event 180 // update to recurring event 184 // replace recurring event with non-recurring event 188 // update non-recurring event with recurring event 196 // update to single instance of recurring event 200 // update all following with non-recurring event [all...] |
/packages/apps/Contacts/src/com/android/contacts/dialpad/ |
H A D | DialpadFragment.java | 661 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); 662 mDigits.onKeyDown(keyCode, event); 671 public boolean onKey(View view, int keyCode, KeyEvent event) { argument
|
/packages/apps/Email/src/com/android/email/activity/ |
H A D | MailboxListFragment.java | 239 * @param nestedNavigation {@code true} if the event is caused by nested mailbox navigation, 964 private void onDragLocation(DragEvent event) { argument 974 final int rawTouchX = (int) event.getX(); 975 final int rawTouchY = (int) event.getY(); 991 // In any event, we're no longer dragging in the list view if newTarget is null 1088 private boolean onDragStarted(DragEvent event) { argument 1092 ClipDescription description = event.getClipDescription(); 1126 private boolean onDrop(DragEvent event) { argument 1133 ClipData clipData = event.getClipData(); 1156 public boolean onDrag(View view, DragEvent event) { argument [all...] |
H A D | MessageListFragment.java | 618 /** The x location of any touch event; used to ensure the drag overlay is drawn correctly */ 704 public boolean onDrag(View view, DragEvent event) { argument 705 switch(event.getAction()) { 707 if (event.getResult()) { 717 public boolean onTouch(View v, MotionEvent event) { argument 718 if (event.getAction() == MotionEvent.ACTION_DOWN) { 720 ShadowBuilder.sTouchX = (int)event.getX(); 722 // don't do anything, let the system process the event
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ViewImage.java | 301 // pass the event to the gesture detector to detect double tap. 303 public boolean onTouch(View v, MotionEvent event) { 310 public boolean onTouch(View v, MotionEvent event) { 311 buttonListener.onTouch(v, event); 312 mGestureDetector.onTouchEvent(event); 316 // the "up" event if we return false for the "down" event. 1113 public boolean onKeyDown(int keyCode, KeyEvent event) { argument 1120 return super.onKeyDown(keyCode, event); 1140 if (getScale() <= 1F && event [all...] |
H A D | GridViewSpecial.java | 579 public boolean onKeyDown(int keyCode, KeyEvent event) { argument 603 if (event.getRepeatCount() == 0) { 610 return super.onKeyDown(keyCode, event); 629 return super.onKeyDown(keyCode, event); 637 public boolean onKeyUp(int keyCode, KeyEvent event) { argument 653 return super.onKeyUp(keyCode, event);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | CropView.java | 255 protected boolean onTouch(MotionEvent event) { argument 256 float x = event.getX(); 257 float y = event.getY(); 258 switch (event.getAction()) { 449 private void moveEdges(MotionEvent event) { argument 451 float dx = (event.getX() - mReferenceX) / scale / mImageWidth; 452 float dy = (event.getY() - mReferenceY) / scale / mImageHeight; 453 mReferenceX = event.getX(); 454 mReferenceY = event.getY(); 521 private void setMovingEdges(MotionEvent event) { argument 568 onTouch(MotionEvent event) argument [all...] |
H A D | PhotoView.java | 276 protected boolean onTouch(MotionEvent event) { argument 277 mGestureDetector.onTouchEvent(event); 278 mScaleDetector.onTouchEvent(event); 279 mDownUpDetector.onTouchEvent(event); 516 // We need to ignore the next UP event.
|
H A D | SlotView.java | 225 protected boolean onTouch(MotionEvent event) { argument 227 mGestureDetector.onTouchEvent(event); 228 switch (event.getAction()) { 653 // call the listener's onUp() when we receive any further event.
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | Folder.java | 269 public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { argument 302 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { argument 444 AccessibilityEvent event = AccessibilityEvent.obtain(type); 445 onInitializeAccessibilityEvent(event); 446 event.getText().add(text); 447 AccessibilityManager.getInstance(mContext).sendAccessibilityEvent(event);
|
H A D | AppsCustomizePagedView.java | 523 public boolean onKey(View v, int keyCode, KeyEvent event) { argument 524 return FocusHelper.handleAppsCustomizeKeyEvent(v, keyCode, event);
|
H A D | PagedView.java | 922 // event. in that case, treat the first occurence of a move event as a ACTION_DOWN 1013 * of the down event. 1158 // Remember where the motion event started 1170 // Scroll to follow the motion event 1289 public boolean onGenericMotionEvent(MotionEvent event) { argument 1290 if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) { 1291 switch (event.getAction()) { 1296 if ((event.getMetaState() & KeyEvent.META_SHIFT_ON) != 0) { 1298 hscroll = event 1894 onInitializeAccessibilityEvent(AccessibilityEvent event) argument 1911 onHoverEvent(android.view.MotionEvent event) argument [all...] |
/packages/apps/Music/src/com/android/music/ |
H A D | MediaPlaybackActivity.java | 174 public boolean onTouch(View v, MotionEvent event) { argument 175 int action = event.getAction(); 182 mInitialX = mLastX = (int) event.getX(); 194 int x = (int) event.getX(); 213 int delta = mInitialX - (int) event.getX(); 381 // trackball event, allow progress updates 753 public boolean onKeyUp(int keyCode, KeyEvent event) { argument 770 scanBackward(-1, event.getEventTime() - event.getDownTime()); 787 scanForward(-1, event 811 onKeyDown(int keyCode, KeyEvent event) argument [all...] |
H A D | TrackBrowserActivity.java | 775 public boolean dispatchKeyEvent(KeyEvent event) { argument 776 if (mPlaylist != null && event.getMetaState() != 0 && 777 event.getAction() == KeyEvent.ACTION_DOWN) { 778 switch (event.getKeyCode()) { 791 return super.dispatchKeyEvent(event);
|
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/ |
H A D | ProgressBar.java | 1101 public void onInitializeAccessibilityEvent(AccessibilityEvent event) { argument 1102 super.onInitializeAccessibilityEvent(event); 1103 event.setItemCount(mMax); 1104 event.setCurrentItemIndex(mProgress); 1108 * Schedule a command for sending an accessibility event. 1124 * Command for sending an accessibility event.
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | PhoneUtils.java | 103 /** Phone state changed event*/ 1096 public boolean onKey(View v, int keyCode, KeyEvent event) { 1100 if(event.getAction() == KeyEvent.ACTION_DOWN) { 1747 * event. 1925 * @return true if we consumed the event. 1927 /* package */ static boolean handleHeadsetHook(Phone phone, KeyEvent event) { argument 1928 if (DBG) log("handleHeadsetHook()..." + event.getAction() + " " + event.getRepeatCount()); 1941 // And in any case we *always* consume this event; this means 1950 event [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
H A D | SearchActivityView.java | 402 public boolean dispatchKeyEventPreIme(KeyEvent event) { argument 404 if (activity != null && event.getKeyCode() == KeyEvent.KEYCODE_BACK 408 if (event.getAction() == KeyEvent.ACTION_DOWN 409 && event.getRepeatCount() == 0) { 410 state.startTracking(event, this); 412 } else if (event.getAction() == KeyEvent.ACTION_UP 413 && !event.isCanceled() && state.isTracking(event)) { 420 return super.dispatchKeyEventPreIme(event); 468 long suggestionId, int keyCode, KeyEvent event) { 467 onSuggestionKeyDown(SuggestionsAdapter<?> adapter, long suggestionId, int keyCode, KeyEvent event) argument 519 onKey(View v, int keyCode, KeyEvent event) argument 556 onEditorAction(TextView v, int actionId, KeyEvent event) argument 576 onKey(View v, int keyCode, KeyEvent event) argument 581 forwardKeyToQueryTextView(int keyCode, KeyEvent event) argument [all...] |
/packages/apps/Settings/src/com/android/settings/ |
H A D | AccessibilityTutorialActivity.java | 212 public boolean onHover(View v, MotionEvent event) { 214 return mHoverListener.onHover(v, event); 346 public boolean onHover(View v, MotionEvent event) { argument 350 && (event.getAction() == MotionEvent.ACTION_HOVER_ENTER)) { 365 && (event.getAction() == MotionEvent.ACTION_HOVER_ENTER)) { 368 } else if (event.getAction() == MotionEvent.ACTION_HOVER_EXIT) {
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | ChartSweepView.java | 415 public boolean onTouchEvent(MotionEvent event) { argument 419 switch (event.getAction()) { 426 acceptDrag = event.getX() > getWidth() - (mSweepPadding.right * 8); 427 acceptLabel = mLabelLayout != null ? event.getX() < mLabelLayout.getWidth() 430 acceptDrag = event.getY() > getHeight() - (mSweepPadding.bottom * 8); 431 acceptLabel = mLabelLayout != null ? event.getY() < mLabelLayout.getHeight() 435 final MotionEvent eventInParent = event.copy(); 438 // ignore event when closer to a neighbor 451 mTracking = event.copy(); 484 + (event [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
H A D | MediaLinearLayout.java | 1581 public boolean onDragEvent(DragEvent event) { argument 1583 switch (event.getAction()) { 1587 Log.v(TAG, "ACTION_DRAG_STARTED: " + event); 1590 mDragMediaItemId = (String)event.getLocalState(); 1607 Log.v(TAG, "ACTION_DRAG_ENTERED: " + event); 1625 Log.v(TAG, "ACTION_DRAG_EXITED: " + event); 1636 Log.v(TAG, "ACTION_DRAG_ENDED: " + event); 1656 Log.v(TAG, "ACTION_DRAG_LOCATION: " + event); 1659 moveToPosition(event.getX()); 1667 Log.v(TAG, "ACTION_DROP: " + event); [all...] |
/packages/apps/Browser/src/com/android/browser/ |
H A D | Tab.java | 887 public boolean shouldOverrideKeyEvent(WebView view, KeyEvent event) { 891 return mWebViewController.shouldOverrideKeyEvent(event); 895 public void onUnhandledKeyEvent(WebView view, KeyEvent event) { 899 mWebViewController.onUnhandledKeyEvent(event); 1350 android.view.KeyEvent event) { 1351 return mClient.shouldOverrideKeyEvent(view, event); 1355 android.view.KeyEvent event) { 1356 mClient.onUnhandledKeyEvent(view, event); 1349 shouldOverrideKeyEvent(WebView view, android.view.KeyEvent event) argument 1354 onUnhandledKeyEvent(WebView view, android.view.KeyEvent event) argument
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | EventInfoFragment.java | 27 import com.android.calendar.event.AttendeesView; 28 import com.android.calendar.event.EditEventActivity; 29 import com.android.calendar.event.EditEventHelper; 30 import com.android.calendar.event.EventViewUtils; 270 // Used to prevent saving changes in event if it is being deleted. 301 * with any additional values that were already associated with the event. 357 // The cursor is empty. This can happen if the event was 555 // If this is not a repeating event, then don't display the dialog 568 // This is a repeating event. We need to ask the user if they mean to 620 // restore event I 1689 handleEvent(EventInfo event) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
H A D | PeopleActivity.java | 1565 public boolean onKeyDown(int keyCode, KeyEvent event) { argument 1583 final int unicodeChar = event.getUnicodeChar(); 1595 return super.onKeyDown(keyCode, event);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ContactEntryListFragment.java | 859 public boolean onTouch(View view, MotionEvent event) { argument
|