Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/packages/apps/Calendar/src/com/android/calendar/
DCalendarController.java43 import com.android.calendar.event.EditEventActivity;
268 void handleEvent(EventInfo event); in handleEvent() argument
432 public void sendEvent(Object sender, final EventInfo event) { in sendEvent() argument
436 Log.d(TAG, eventInfoToString(event)); in sendEvent()
440 if (filteredTypes != null && (filteredTypes.longValue() & event.eventType) != 0) { in sendEvent()
451 if (event.viewType == ViewType.DETAIL) { in sendEvent()
452 event.viewType = mDetailViewType; in sendEvent()
454 } else if (event.viewType == ViewType.CURRENT) { in sendEvent()
455 event.viewType = mViewType; in sendEvent()
456 } else if (event.viewType != ViewType.EDIT) { in sendEvent()
[all …]
DEventGeometry.java48 public boolean computeEventRect(int date, int left, int top, int cellWidth, Event event) { in computeEventRect() argument
49 if (event.drawAsAllday()) { in computeEventRect()
54 int startDay = event.startDay; in computeEventRect()
55 int endDay = event.endDay; in computeEventRect()
61 int startTime = event.startTime; in computeEventRect()
62 int endTime = event.endTime; in computeEventRect()
76 int col = event.getColumn(); in computeEventRect()
77 int maxCols = event.getMaxColumns(); in computeEventRect()
87 event.top = top; in computeEventRect()
88 event.top += (int) (startTime * cellMinuteHeight); in computeEventRect()
[all …]
DAllInOneActivity.java998 private void setTitleInActionBar(EventInfo event) { in setTitleInActionBar() argument
999 if (event.eventType != EventType.UPDATE_TITLE || mActionBar == null) { in setTitleInActionBar()
1003 final long start = event.startTime.toMillis(false /* use isDst */); in setTitleInActionBar()
1005 if (event.endTime != null) { in setTitleInActionBar()
1006 end = event.endTime.toMillis(false /* use isDst */); in setTitleInActionBar()
1011 final String msg = Utils.formatDateRange(this, start, end, (int) event.extraLong); in setTitleInActionBar()
1014 updateSecondaryTitleFields(event.selectedTime != null ? event.selectedTime.toMillis(true) in setTitleInActionBar()
1088 public void handleEvent(EventInfo event) { in handleEvent() argument
1090 if (event.eventType == EventType.GO_TO) { in handleEvent()
1091 if ((event.extraLong & CalendarController.EXTRA_GOTO_BACK_TO_PREVIOUS) != 0) { in handleEvent()
[all …]
DDayView.java1468 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
1470 long duration = event.getEventTime() - event.getDownTime(); in onKeyUp()
1506 return super.onKeyUp(keyCode, event); in onKeyUp()
1510 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
1553 if (event.getRepeatCount() == 0) { in onKeyDown()
1554 event.startTracking(); in onKeyDown()
1557 return super.onKeyDown(keyCode, event); in onKeyDown()
1615 return super.onKeyDown(keyCode, event); in onKeyDown()
1653 return super.onKeyDown(keyCode, event); in onKeyDown()
1658 public boolean onHoverEvent(MotionEvent event) { in onHoverEvent() argument
[all …]
DUtils.java968 Event event = new Event(); in createDNAStrands() local
980 currEvent.copyTo(event); in createDNAStrands()
981 if (event.startDay < firstJulianDay) { in createDNAStrands()
982 event.startDay = firstJulianDay; in createDNAStrands()
983 event.startTime = 0; in createDNAStrands()
987 if (event.startTime > DAY_IN_MINUTES - minOtherMinutes) { in createDNAStrands()
988 event.startTime = DAY_IN_MINUTES - minOtherMinutes; in createDNAStrands()
990 if (event.endDay > lastJulianDay) { in createDNAStrands()
991 event.endDay = lastJulianDay; in createDNAStrands()
992 event.endTime = DAY_IN_MINUTES - 1; in createDNAStrands()
[all …]
DSearchActivity.java187 private void showEventInfo(EventInfo event) { in showEventInfo() argument
192 mEventInfoFragment = new EventInfoFragment(this, event.id, in showEventInfo()
193 event.startTime.toMillis(false), event.endTime.toMillis(false), in showEventInfo()
194 event.getResponse(), false, EventInfoFragment.DIALOG_WINDOW_STYLE, in showEventInfo()
200 Uri eventUri = ContentUris.withAppendedId(Events.CONTENT_URI, event.id); in showEventInfo()
204 event.startTime != null ? event.startTime.toMillis(true) : -1); in showEventInfo()
206 … EXTRA_EVENT_END_TIME, event.endTime != null ? event.endTime.toMillis(true) : -1); in showEventInfo()
209 mCurrentEventId = event.id; in showEventInfo()
356 public void handleEvent(EventInfo event) { in handleEvent() argument
357 long endTime = (event.endTime == null) ? -1 : event.endTime.toMillis(false); in handleEvent()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DICalendarTest.java156 ICalendar.Component event = ICalendar.parseEvent(text); in testParseBareEvent() local
158 assertEquals("VEVENT", event.getName()); in testParseBareEvent()
159 assertNull(event.getComponents()); in testParseBareEvent()
160 assertEquals(0, event.getPropertyNames().size()); in testParseBareEvent()
171 ICalendar.Component event = ICalendar.parseEvent(text); in testParseEvent1() local
173 assertEquals("VEVENT", event.getName()); in testParseEvent1()
174 assertNull(event.getComponents()); in testParseEvent1()
175 assertEquals(3, event.getPropertyNames().size()); in testParseEvent1()
176 assertEquals(1, event.getProperties("DTSTART").size()); in testParseEvent1()
177 assertEquals("19970714T170000Z", event.getFirstProperty("DTSTART").getValue()); in testParseEvent1()
[all …]
DCalendarSyncTestingBase.java95 protected Uri insertEvent(EventInfo event) throws Exception { in insertEvent() argument
96 return insertEvent(getDefaultCalendarId(), event); in insertEvent()
106 protected Uri insertEvent(int calendarId, EventInfo event) throws Exception{ in insertEvent() argument
109 m.put(CalendarContract.Events.TITLE, event.mTitle); in insertEvent()
110 m.put(CalendarContract.Events.DTSTART, event.mDtstart); in insertEvent()
111 m.put(CalendarContract.Events.ALL_DAY, event.mAllDay ? 1 : 0); in insertEvent()
113 if (event.mRrule == null) { in insertEvent()
115 m.put(CalendarContract.Events.DTEND, event.mDtend); in insertEvent()
118 m.put(CalendarContract.Events.RRULE, event.mRrule); in insertEvent()
119 m.put(CalendarContract.Events.DURATION, event.mDuration); in insertEvent()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java303 StackEvent event = (StackEvent) message.obj; in processMessage() local
305 log("event type: " + event.type); in processMessage()
307 switch (event.type) { in processMessage()
309 processConnectionEvent(event.valueInt, event.device); in processMessage()
312 Log.e(TAG, "Unexpected stack event: " + event.type); in processMessage()
431 StackEvent event = (StackEvent) message.obj; in processMessage() local
433 log("event type: " + event.type); in processMessage()
435 switch (event.type) { in processMessage()
438 processConnectionEvent(event.valueInt, event.device); in processMessage()
441 Log.e(TAG, "Unexpected event: " + event.type); in processMessage()
[all …]
/packages/apps/InCallUI/src/com/android/incallui/
DDialpadFragment.java96 public boolean onHoverEvent(MotionEvent event) { in onHoverEvent() argument
154 KeyEvent event) { in backspace() argument
180 int keyCode, KeyEvent event) { in onKeyDown() argument
184 char c = (char) lookup(event, content); in onKeyDown()
187 if (event.getRepeatCount() == 0 && super.onKeyDown(view, content, keyCode, event)) { in onKeyDown()
210 int keyCode, KeyEvent event) { in onKeyUp() argument
213 super.onKeyUp(view, content, keyCode, event); in onKeyUp()
216 char c = (char) lookup(event, content); in onKeyUp()
232 public boolean onKeyDown(KeyEvent event) { in onKeyDown() argument
233 char c = lookup(event); in onKeyDown()
[all …]
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaFragment.java317 private void goTo(EventInfo event, boolean animate) { in goTo() argument
318 if (event.selectedTime != null) { in goTo()
319 mTime.set(event.selectedTime); in goTo()
320 } else if (event.startTime != null) { in goTo()
321 mTime.set(event.startTime); in goTo()
328 mAgendaListView.goTo(mTime, event.id, mQuery, false, in goTo()
329 ((event.extraLong & CalendarController.EXTRA_GOTO_TODAY) != 0 && in goTo()
334 showEventInfo(event, vh != null ? vh.allDay : false, mForceReplace); in goTo()
365 public void handleEvent(EventInfo event) { in handleEvent() argument
366 if (event.eventType == EventType.GO_TO) { in handleEvent()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
DGlowPadView.java749 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
750 final int action = event.getActionMasked(); in onTouchEvent()
756 handleDown(event); in onTouchEvent()
757 handleMove(event); in onTouchEvent()
763 handleMove(event); in onTouchEvent()
770 handleMove(event); in onTouchEvent()
771 handleUp(event); in onTouchEvent()
777 handleMove(event); in onTouchEvent()
778 handleCancel(event); in onTouchEvent()
783 return handled ? true : super.onTouchEvent(event); in onTouchEvent()
[all …]
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DGlowPadView.java777 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
778 final int action = event.getActionMasked(); in onTouchEvent()
784 handleDown(event); in onTouchEvent()
785 handleMove(event); in onTouchEvent()
791 handleMove(event); in onTouchEvent()
798 handleMove(event); in onTouchEvent()
799 handleUp(event); in onTouchEvent()
805 handleMove(event); in onTouchEvent()
806 handleCancel(event); in onTouchEvent()
811 return handled ? true : super.onTouchEvent(event); in onTouchEvent()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSearchActivityView.java313 public boolean dispatchKeyEventPreIme(KeyEvent event) { in dispatchKeyEventPreIme() argument
315 if (activity != null && event.getKeyCode() == KeyEvent.KEYCODE_BACK in dispatchKeyEventPreIme()
319 if (event.getAction() == KeyEvent.ACTION_DOWN in dispatchKeyEventPreIme()
320 && event.getRepeatCount() == 0) { in dispatchKeyEventPreIme()
321 state.startTracking(event, this); in dispatchKeyEventPreIme()
323 } else if (event.getAction() == KeyEvent.ACTION_UP in dispatchKeyEventPreIme()
324 && !event.isCanceled() && state.isTracking(event)) { in dispatchKeyEventPreIme()
331 return super.dispatchKeyEventPreIme(event); in dispatchKeyEventPreIme()
367 long suggestionId, int keyCode, KeyEvent event) { in onSuggestionKeyDown() argument
422 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java198 StackEvent event = (StackEvent) message.obj; in processMessage() local
199 switch (event.type) { in processMessage()
201 processConnectionEvent(event.valueInt, event.device); in processMessage()
204 loge("Unexpected stack event: " + event.type); in processMessage()
312 StackEvent event = (StackEvent) message.obj; in processMessage() local
313 switch (event.type) { in processMessage()
316 processConnectionEvent(event.valueInt, event.device); in processMessage()
319 loge("Unexpected stack event: " + event.type); in processMessage()
516 StackEvent event = (StackEvent) message.obj; in processMessage() local
517 switch (event.type) { in processMessage()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DDragGestureDetector.java44 private void computeAveragePosition(MotionEvent event, float[] position) { in computeAveragePosition() argument
45 computeAveragePosition(event, position, -1); in computeAveragePosition()
48 private void computeAveragePosition(MotionEvent event, float[] position, int ignore) { in computeAveragePosition() argument
49 final int pointerCount = event.getPointerCount(); in computeAveragePosition()
55 position[0] += event.getX(p); in computeAveragePosition()
56 position[1] += event.getY(p); in computeAveragePosition()
64 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
65 int index = event.getActionIndex(); in onTouchEvent()
66 switch (event.getActionMasked()) { in onTouchEvent()
68 computeAveragePosition(event, mLast); in onTouchEvent()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DAccessibleKeyboardViewProxy.java213 public boolean dispatchTouchEvent(final MotionEvent event) { in dispatchTouchEvent() argument
225 public boolean dispatchHoverEvent(final MotionEvent event, final PointerTracker tracker) { in dispatchHoverEvent() argument
230 final int x = (int) event.getX(); in dispatchHoverEvent()
231 final int y = (int) event.getY(); in dispatchHoverEvent()
242 switch (event.getAction()) { in dispatchHoverEvent()
251 return onHoverKey(key, event); in dispatchHoverEvent()
254 return onTransitionKey(key, previousKey, event); in dispatchHoverEvent()
256 return onHoverKey(key, event); in dispatchHoverEvent()
297 final MotionEvent event) { in onTransitionKey() argument
298 final int savedAction = event.getAction(); in onTransitionKey()
[all …]
DAccessibilityUtils.java119 public boolean isTouchExplorationEvent(final MotionEvent event) { in isTouchExplorationEvent() argument
120 final int action = event.getAction(); in isTouchExplorationEvent()
213 final AccessibilityEvent event = AccessibilityEvent.obtain(); in announceForAccessibility() local
215 event.setPackageName(PACKAGE); in announceForAccessibility()
216 event.setClassName(CLASS); in announceForAccessibility()
217 event.setEventTime(SystemClock.uptimeMillis()); in announceForAccessibility()
218 event.setEnabled(true); in announceForAccessibility()
219 event.getText().add(text); in announceForAccessibility()
224 event.setEventType(AccessibilityEventCompat.TYPE_ANNOUNCEMENT); in announceForAccessibility()
226 event.setEventType(AccessibilityEvent.TYPE_VIEW_FOCUSED); in announceForAccessibility()
[all …]
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSkbContainer.java427 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
428 super.onTouchEvent(event); in onTouchEvent()
435 int x = (int) event.getX(); in onTouchEvent()
436 int y = (int) event.getY(); in onTouchEvent()
441 if (event.getAction() == MotionEvent.ACTION_MOVE) { in onTouchEvent()
452 if (mGestureDetector.onTouchEvent(event)) { in onTouchEvent()
459 switch (event.getAction()) { in onTouchEvent()
545 public boolean onTouch(View v, MotionEvent event) { in onTouch() argument
547 MotionEvent newEv = MotionEvent.obtain(event.getDownTime(), event in onTouch()
548 .getEventTime(), event.getAction(), event.getX() + mPopupX, in onTouch()
[all …]
/packages/apps/Browser/src/com/android/browser/
DBrowserActivity.java237 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
238 return mController.onKeyDown(keyCode, event) || in onKeyDown()
239 super.onKeyDown(keyCode, event); in onKeyDown()
243 public boolean onKeyLongPress(int keyCode, KeyEvent event) { in onKeyLongPress() argument
244 return mController.onKeyLongPress(keyCode, event) || in onKeyLongPress()
245 super.onKeyLongPress(keyCode, event); in onKeyLongPress()
249 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
250 return mController.onKeyUp(keyCode, event) || in onKeyUp()
251 super.onKeyUp(keyCode, event); in onKeyUp()
278 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent() argument
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DSecondLevelIndicatorControlBar.java90 private void dispatchRelativeTouchEvent(View view, MotionEvent event) { in dispatchRelativeTouchEvent() argument
91 event.offsetLocation(-view.getLeft(), -view.getTop()); in dispatchRelativeTouchEvent()
92 view.dispatchTouchEvent(event); in dispatchRelativeTouchEvent()
93 event.offsetLocation(view.getLeft(), view.getTop()); in dispatchRelativeTouchEvent()
97 public boolean dispatchTouchEvent(MotionEvent event) { in dispatchTouchEvent() argument
98 if (!onFilterTouchEventForSecurity(event)) return false; in dispatchTouchEvent()
100 int action = event.getAction(); in dispatchTouchEvent()
103 double x = (double) event.getX(); in dispatchTouchEvent()
114 int oldAction = event.getAction(); in dispatchTouchEvent()
115 event.setAction(MotionEvent.ACTION_CANCEL); in dispatchTouchEvent()
[all …]
DInLineSettingKnob.java62 public boolean onTouch(View v, MotionEvent event) {
64 if (event.getAction() == MotionEvent.ACTION_DOWN) {
70 } else if (event.getAction() == MotionEvent.ACTION_UP
71 || event.getAction() == MotionEvent.ACTION_CANCEL) {
79 public boolean onTouch(View v, MotionEvent event) {
81 if (event.getAction() == MotionEvent.ACTION_DOWN) {
87 } else if (event.getAction() == MotionEvent.ACTION_UP
88 || event.getAction() == MotionEvent.ACTION_CANCEL) {
136 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { in dispatchPopulateAccessibilityEvent() argument
137 onPopulateAccessibilityEvent(event); in dispatchPopulateAccessibilityEvent()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageDraw.java139 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
140 if (event.getPointerCount() > 1) { in onTouchEvent()
141 boolean ret = super.onTouchEvent(event); in onTouchEvent()
148 if (event.getAction() != MotionEvent.ACTION_DOWN) { in onTouchEvent()
150 return super.onTouchEvent(event); in onTouchEvent()
154 if (event.getAction() == MotionEvent.ACTION_DOWN) { in onTouchEvent()
156 mTmpPoint[0] = event.getX(); in onTouchEvent()
157 mTmpPoint[1] = event.getY(); in onTouchEvent()
162 if (event.getAction() == MotionEvent.ACTION_MOVE) { in onTouchEvent()
164 int historySize = event.getHistorySize(); in onTouchEvent()
[all …]
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/
DAbsSeekBar.java398 public boolean onTouchEvent(MotionEvent event) {
403 switch (event.getAction()) {
406 mTouchDownX = event.getX();
407 mTouchDownY = event.getY();
414 trackTouchEvent(event);
421 trackTouchEvent(event);
423 final float x = event.getX();
424 final float y = event.getX();
432 trackTouchEvent(event);
440 trackTouchEvent(event);
[all …]
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DHorizontalScrollView.java324 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent() argument
326 return super.dispatchKeyEvent(event) || executeKeyEvent(event); in dispatchKeyEvent()
337 public boolean executeKeyEvent(KeyEvent event) { in executeKeyEvent() argument
353 if (event.getAction() == KeyEvent.ACTION_DOWN) { in executeKeyEvent()
354 switch (event.getKeyCode()) { in executeKeyEvent()
356 if (!event.isAltPressed()) { in executeKeyEvent()
363 if (!event.isAltPressed()) { in executeKeyEvent()
370 pageScroll(event.isShiftPressed() ? View.FOCUS_LEFT : View.FOCUS_RIGHT); in executeKeyEvent()
677 public boolean onGenericMotionEvent(MotionEvent event) { in onGenericMotionEvent() argument
678 if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0) { in onGenericMotionEvent()
[all …]

12345678910>>...18