/packages/apps/Browser/src/com/android/browser/ |
H A D | AddBookmarkPage.java | 184 public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { argument 189 if (event.getAction() == KeyEvent.ACTION_UP) {
|
/packages/apps/Browser/src/com/android/browser/view/ |
H A D | ScrollerView.java | 76 * Position of the last motion event. 87 * The child to give focus to in the event that a child has requested focus while the 244 * an arrow event. 397 public boolean dispatchKeyEvent(KeyEvent event) { argument 399 return super.dispatchKeyEvent(event) || executeKeyEvent(event); 404 * scrolling from a key event, just as if the event had been dispatched to 407 * @param event The key event t 410 executeKeyEvent(KeyEvent event) argument 807 onGenericMotionEvent(MotionEvent event) argument 891 onInitializeAccessibilityEvent(AccessibilityEvent event) argument 897 dispatchPopulateAccessibilityEvent(AccessibilityEvent event) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | AllInOneActivity.java | 268 // Calendar event changes. 425 // the list of event handlers in it's handle method. This affects who 537 // the list of event handlers in it's handle method. This affects who 673 Log.d(TAG, "Create new event"); 1001 private void setTitleInActionBar(EventInfo event) { argument 1002 if (event.eventType != EventType.UPDATE_TITLE || mActionBar == null) { 1006 final long start = event.startTime.toMillis(false /* use isDst */); 1008 if (event.endTime != null) { 1009 end = event.endTime.toMillis(false /* use isDst */); 1014 final String msg = Utils.formatDateRange(this, start, end, (int) event 1091 handleEvent(EventInfo event) argument [all...] |
H A D | CalendarController.java | 24 import com.android.calendar.event.EditEventActivity; 104 * One of the event types that are sent to or from the controller 109 // Simple view of an event 162 public long id; // event id 173 * It is the default attendee response and an all day event indicator. 176 * To signal the event is an all-day event, "or" ALL_DAY_MASK with the response. 180 * Set to {@link #EXTRA_CREATE_ALL_DAY} for creating an all-day event. 195 Log.wtf(TAG, "illegal call to isAllDay , wrong event type " + eventType); 203 Log.wtf(TAG, "illegal call to getResponse , wrong event typ 266 handleEvent(EventInfo event) argument 400 sendEvent(Object sender, final EventInfo event) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/event/ |
H A D | EditEventHelper.java | 17 package com.android.calendar.event; 139 // This allows us to flag the event if something is wrong with it, right now 140 // if an uri is provided for an event that doesn't exist in the db. 155 * default for the new event should be an all-day event. 222 * Saves the event. Returns true if the event was successfully saved, false 225 * @param model The event model to save 226 * @param originalModel A model of the original event if it exists 228 * @return true if the event wa [all...] |
H A D | EditEventView.java | 17 package com.android.calendar.event; 80 import com.android.calendar.event.EditEventHelper.EditDoneRunnable; 164 * with any additional values that were already associated with the event. 325 // Do not allow an event to have an end time before the start 430 // the recurrence functionality of the event. Only display every weekday 431 // if the event starts on a weekday. 630 * Does prep steps for saving a calendar event. 632 * This triggers a parse of the attendees list and checks if the event is 633 * ready to be saved. An event is ready to be saved so long as a model 635 * an existing event o [all...] |
/packages/apps/Calendar/src/com/android/calendar/month/ |
H A D | MonthWeekEventsView.java | 115 // This is for drawing the outlines around event chips and supports up to 10 748 Event event = iter.next(); 749 int newY = drawEvent(canvas, event, xSquare, yTest, rightEdge, iter.hasNext(), 761 Event event = iter.next(); 762 int newY = drawEvent(canvas, event, xSquare, ySquare, rightEdge, iter.hasNext(), 805 * Attempts to draw the given event. Returns the y for the next event or the 806 * original y if the event will not fit. An event is considered to not fit 807 * if the event an 822 drawEvent(Canvas canvas, Event event, int x, int y, int rightEdge, boolean moreEvents, boolean showTimes, boolean doDraw) argument 1055 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; 82 "UTC", // 10 event timezone 177 // new recurring event 181 // update to recurring event 185 // replace recurring event with non-recurring event 189 // update non-recurring event with recurring event 197 // update to single instance of recurring event 201 // update all following with non-recurring event [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | CallDetailActivity.java | 364 public boolean onKeyDown(int keyCode, KeyEvent event) { argument 378 return super.onKeyDown(keyCode, event);
|
/packages/apps/Contacts/src/com/android/contacts/dialpad/ |
H A D | DialpadFragment.java | 761 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); 762 mDigits.onKeyDown(keyCode, event); 772 public boolean onKey(View view, int keyCode, KeyEvent event) { argument 786 * immediately. When a key is released, we stop the tone. Note that the "key press" event will 844 Log.wtf(TAG, "Unexpected onTouch(ACTION_DOWN) event from: " + view); 855 // "up" event is thrown. 857 // while it still gets press-up event here. 886 Log.wtf(TAG, "Unexpected onClick() event from: " + view); 919 // '1' may be already entered since we rely on onTouch() event for numeric buttons. 972 // This event shoul [all...] |
/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 | MessageListItem.java | 538 public boolean onTouchEvent(MotionEvent event) { argument 542 int touchX = (int) event.getX(); 547 switch (event.getAction()) { 578 handled = super.onTouchEvent(event); 585 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { argument 586 event.setClassName(getClass().getName()); 587 event.setPackageName(getContext().getPackageName()); 588 event.setEnabled(true); 589 event.setContentDescription(getContentDescription());
|
/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...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | CropView.java | 257 protected boolean onTouch(MotionEvent event) { argument 258 float x = event.getX(); 259 float y = event.getY(); 260 switch (event.getAction()) { 451 private void moveEdges(MotionEvent event) { argument 453 float dx = (event.getX() - mReferenceX) / scale / mImageWidth; 454 float dy = (event.getY() - mReferenceY) / scale / mImageHeight; 455 mReferenceX = event.getX(); 456 mReferenceY = event.getY(); 523 private void setMovingEdges(MotionEvent event) { argument 570 onTouch(MotionEvent event) argument [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | DragController.java | 78 /** X coordinate of the down event. */ 81 /** Y coordinate of the down event. */ 301 * public boolean dispatchKeyEvent(KeyEvent event) { 302 * return mDragController.dispatchKeyEvent(this, event) 303 * || super.dispatchKeyEvent(event); 306 public boolean dispatchKeyEvent(KeyEvent event) { argument 567 // Remember where the motion event started 582 // Ensure that we've processed a move event at the current pointer location.
|
H A D | DragLayer.java | 103 public boolean dispatchKeyEvent(KeyEvent event) { argument 104 return mDragController.dispatchKeyEvent(event) || super.dispatchKeyEvent(event); 215 AccessibilityEvent event = AccessibilityEvent.obtain( 217 onInitializeAccessibilityEvent(event); 218 event.getText().add(getContext().getString(stringId)); 219 accessibilityManager.sendAccessibilityEvent(event); 226 // in onInterceptHoverEvent. Return true to consume the event. 705 // landscape for the overscroll event.
|
H A D | Folder.java | 272 public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { argument 305 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { argument 462 AccessibilityEvent event = AccessibilityEvent.obtain(type); 463 onInitializeAccessibilityEvent(event); 464 event.getText().add(text); 465 accessibilityManager.sendAccessibilityEvent(event);
|
H A D | FolderIcon.java | 608 public boolean onTouchEvent(MotionEvent event) { argument 611 boolean result = super.onTouchEvent(event); 613 switch (event.getAction()) {
|
/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...] |
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/ |
H A D | ProgressBar.java | 1125 public void onInitializeAccessibilityEvent(AccessibilityEvent event) { argument 1126 super.onInitializeAccessibilityEvent(event); 1127 event.setItemCount(mMax); 1128 event.setCurrentItemIndex(mProgress); 1132 * Schedule a command for sending an accessibility event. 1148 * Command for sending an accessibility event.
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | PhoneUtils.java | 110 /** Phone state changed event*/ 1176 public boolean onKey(View v, int keyCode, KeyEvent event) { 1180 if(event.getAction() == KeyEvent.ACTION_DOWN) { 1907 * event. 2085 * @return true if we consumed the event. 2087 /* package */ static boolean handleHeadsetHook(Phone phone, KeyEvent event) { argument 2088 if (DBG) log("handleHeadsetHook()..." + event.getAction() + " " + event.getRepeatCount()); 2101 // And in any case we *always* consume this event; this means 2110 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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | LatinKeyboardView.java | 657 // TODO: cleanup this code into a multi-touch to single-touch event converter class? 713 // event (UP or DOWN) is non-modifier key. 717 // Up event will pass through. 720 // TODO: cleanup this code into a multi-touch to single-touch event converter class? 721 // Translate mutli-touch event to single-touch events on the device that has no distinct 728 // Send a down event for the latest pointer if the key is different from the 738 // Send an up event for the last pointer. 823 * @param event The motion event to be dispatched. 824 * @return {@code true} if the event wa 828 dispatchHoverEvent(MotionEvent event) argument [all...] |