/packages/apps/Calendar/src/com/android/calendar/ |
D | EventGeometry.java | 48 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 …]
|
D | CalendarController.java | 23 import com.android.calendar.event.EditEventActivity; 203 void handleEvent(EventInfo event); in handleEvent() argument 338 public void sendEvent(Object sender, final EventInfo event) { in sendEvent() argument 342 Log.d(TAG, eventInfoToString(event)); in sendEvent() 346 if (filteredTypes != null && (filteredTypes.longValue() & event.eventType) != 0) { in sendEvent() 357 if (event.viewType == ViewType.DETAIL) { in sendEvent() 358 event.viewType = mDetailViewType; in sendEvent() 360 } else if (event.viewType == ViewType.CURRENT) { in sendEvent() 361 event.viewType = mViewType; in sendEvent() 362 } else if (event.viewType != ViewType.EDIT) { in sendEvent() [all …]
|
D | Utils.java | 688 Event event = new Event(); in createDNAStrands() local 700 currEvent.copyTo(event); in createDNAStrands() 701 if (event.startDay < firstJulianDay) { in createDNAStrands() 702 event.startDay = firstJulianDay; in createDNAStrands() 703 event.startTime = 0; in createDNAStrands() 707 if (event.startTime > DAY_IN_MINUTES - minOtherMinutes) { in createDNAStrands() 708 event.startTime = DAY_IN_MINUTES - minOtherMinutes; in createDNAStrands() 710 if (event.endDay > lastJulianDay) { in createDNAStrands() 711 event.endDay = lastJulianDay; in createDNAStrands() 712 event.endTime = DAY_IN_MINUTES - 1; in createDNAStrands() [all …]
|
D | SearchActivity.java | 46 import com.android.calendar.event.EditEventActivity; 170 private void showEventInfo(EventInfo event) { in showEventInfo() argument 175 mEventInfoFragment = new EventInfoFragment(this, event.id, in showEventInfo() 176 event.startTime.toMillis(false), event.endTime.toMillis(false), in showEventInfo() 177 (int) event.extraLong, false); in showEventInfo() 183 Uri eventUri = ContentUris.withAppendedId(Events.CONTENT_URI, event.id); in showEventInfo() 187 event.startTime != null ? event.startTime.toMillis(true) : -1); in showEventInfo() 189 … EXTRA_EVENT_END_TIME, event.endTime != null ? event.endTime.toMillis(true) : -1); in showEventInfo() 192 mCurrentEventId = event.id; in showEventInfo() 319 public void handleEvent(EventInfo event) { in handleEvent() argument [all …]
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | ICalendarTest.java | 156 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 …]
|
D | CalendarSyncTestingBase.java | 95 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/Contacts/src/com/android/contacts/dialpad/ |
D | DigitsEditText.java | 48 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument 49 final boolean ret = super.onTouchEvent(event); in onTouchEvent() 60 public void sendAccessibilityEventUnchecked(AccessibilityEvent event) { in sendAccessibilityEventUnchecked() argument 61 if (event.getEventType() == AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED) { in sendAccessibilityEventUnchecked() 64 final int added = event.getAddedCount(); in sendAccessibilityEventUnchecked() 65 final int removed = event.getRemovedCount(); in sendAccessibilityEventUnchecked() 66 final int length = event.getBeforeText().length(); in sendAccessibilityEventUnchecked() 68 event.setRemovedCount(0); in sendAccessibilityEventUnchecked() 69 event.setAddedCount(1); in sendAccessibilityEventUnchecked() 70 event.setFromIndex(length); in sendAccessibilityEventUnchecked() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaFragment.java | 253 private void goTo(EventInfo event, boolean animate) { in goTo() argument 257 mTime.set(event.startTime); in goTo() 262 if (event.startTime != null in goTo() 263 && (mTime.before(event.startTime) || event.endTime == null || mTime in goTo() 264 .after(event.endTime))) { in goTo() 265 mTime.set(event.startTime); in goTo() 267 mAgendaListView.goTo(mTime, event.id, mQuery, false); in goTo() 269 showEventInfo(event, vh != null ? vh.allDay : false); in goTo() 297 public void handleEvent(EventInfo event) { in handleEvent() argument 298 if (event.eventType == EventType.GO_TO) { in handleEvent() [all …]
|
D | AgendaListView.java | 214 EventInfo event = mWindowAdapter.getEventByPosition(position); in onItemClick() local 222 if (event != null && (oldInstanceId != mWindowAdapter.getSelectedInstanceId() || in onItemClick() 225 controller.sendEventRelatedEvent(this, EventType.VIEW_EVENT, event.id, event.begin, in onItemClick() 226 event.end, 0, 0, controller.getTime()); in onItemClick() 255 EventInfo event = mWindowAdapter.getEventByPosition(position); in deleteSelectedEvent() local 256 if (event != null) { in deleteSelectedEvent() 257 mDeleteEventHelper.delete(event.begin, event.end, event.id, -1); in deleteSelectedEvent() 295 EventInfo event = mWindowAdapter.getEventByPosition(position); in getSelectedTime() local 296 if (event != null) { in getSelectedTime() 297 return event.begin; in getSelectedTime() [all …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | DTMFTwelveKeyDialer.java | 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() 237 if (event.getRepeatCount() == 0 && c != 0) { in onKeyDown() [all …]
|
D | DTMFTwelveKeyDialerView.java | 67 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent() argument 68 if (DBG) log("dispatchKeyEvent(" + event + ")..."); in dispatchKeyEvent() 70 int keyCode = event.getKeyCode(); in dispatchKeyEvent() 75 return event.isDown() ? mDialer.onKeyDown(keyCode, event) : in dispatchKeyEvent() 76 mDialer.onKeyUp(keyCode, event); in dispatchKeyEvent() 81 return super.dispatchKeyEvent(event); in dispatchKeyEvent()
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | InLineSettingKnob.java | 62 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 …]
|
D | IndicatorControlWheelContainer.java | 70 public void onIndicatorEvent(int event) { in onIndicatorEvent() argument 71 switch (event) { in onIndicatorEvent() 86 public boolean dispatchTouchEvent(MotionEvent event) { in dispatchTouchEvent() argument 87 if (!onFilterTouchEventForSecurity(event)) return false; in dispatchTouchEvent() 89 int action = event.getAction(); in dispatchTouchEvent() 91 double dx = event.getX() - mCenterX; in dispatchTouchEvent() 92 double dy = mCenterY - event.getY(); in dispatchTouchEvent() 100 return mZoomControlWheel.dispatchTouchEvent(event); in dispatchTouchEvent() 103 return mShutterButton.dispatchTouchEvent(event); in dispatchTouchEvent() 110 event.setAction(MotionEvent.ACTION_CANCEL); in dispatchTouchEvent() [all …]
|
D | SecondLevelIndicatorControlBar.java | 93 public boolean dispatchTouchEvent(MotionEvent event) { in dispatchTouchEvent() argument 94 if (!onFilterTouchEventForSecurity(event)) return false; in dispatchTouchEvent() 96 int action = event.getAction(); in dispatchTouchEvent() 99 double x = (double) event.getX(); in dispatchTouchEvent() 100 double y = (double) event.getY(); in dispatchTouchEvent() 109 b.dispatchTouchEvent(event); in dispatchTouchEvent() 114 event.setAction(MotionEvent.ACTION_CANCEL); in dispatchTouchEvent() 115 c.dispatchTouchEvent(event); in dispatchTouchEvent() 120 event.setAction(MotionEvent.ACTION_DOWN); in dispatchTouchEvent() 121 b.dispatchTouchEvent(event); in dispatchTouchEvent()
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
D | CalendarSyncAdapterTests.java | 344 TestEvent event = new TestEvent(); in testAddEvent() local 345 event.setupPreAttendees(); in testAddEvent() 346 event.start(Tags.CALENDAR_ATTENDEES); in testAddEvent() 347 addAttendeesToSerializer(event, 10); in testAddEvent() 348 event.end(); // CALENDAR_ATTENDEES in testAddEvent() 349 event.setupPostAttendees(); in testAddEvent() 351 EasCalendarSyncParser p = event.getParser(); in testAddEvent() 363 TestEvent event = new TestEvent(); in testAddEventIllegal() local 364 event.start(Tags.SYNC_APPLICATION_DATA); in testAddEventIllegal() 365 event.data(Tags.CALENDAR_TIME_ZONE, TEST_TIME_ZONE); in testAddEventIllegal() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AccessibleTabView.java | 41 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 42 return FocusHelper.handleTabKeyEvent(this, keyCode, event) in onKeyDown() 43 || super.onKeyDown(keyCode, event); in onKeyDown() 47 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 48 return FocusHelper.handleTabKeyEvent(this, keyCode, event) in onKeyUp() 49 || super.onKeyUp(keyCode, event); in onKeyUp()
|
/packages/apps/Music/src/com/android/music/ |
D | RepeatingImageButton.java | 72 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument 73 if (event.getAction() == MotionEvent.ACTION_UP) { in onTouchEvent() 81 return super.onTouchEvent(event); in onTouchEvent() 85 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 91 super.onKeyDown(keyCode, event); in onKeyDown() 94 return super.onKeyDown(keyCode, event); in onKeyDown() 98 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 109 return super.onKeyUp(keyCode, event); in onKeyUp()
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserActivity.java | 214 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 215 return mController.onKeyDown(keyCode, event) || in onKeyDown() 216 super.onKeyDown(keyCode, event); in onKeyDown() 220 public boolean onKeyLongPress(int keyCode, KeyEvent event) { in onKeyLongPress() argument 221 return mController.onKeyLongPress(keyCode, event) || in onKeyLongPress() 222 super.onKeyLongPress(keyCode, event); in onKeyLongPress() 226 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 227 return mController.onKeyUp(keyCode, event) || in onKeyUp() 228 super.onKeyUp(keyCode, event); in onKeyUp() 255 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent() argument [all …]
|
D | UrlBarAutoShowManager.java | 98 public boolean onTouch(View v, MotionEvent event) { in onTouch() argument 99 if (event.getPointerCount() > 1) { in onTouch() 102 switch (event.getAction()) { in onTouch() 104 if (!mIsTracking && event.getPointerCount() == 1) { in onTouch() 110 mStartTouchY = event.getY(); in onTouch() 111 mStartTouchX = event.getX(); in onTouch() 119 float dy = event.getY() - mStartTouchY; in onTouch() 121 float adx = Math.abs(event.getX() - mStartTouchX); in onTouch()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | AccessibilityUtils.java | 107 public boolean isTouchExplorationEvent(MotionEvent event) { in isTouchExplorationEvent() argument 108 final int action = event.getAction(); in isTouchExplorationEvent() 146 final AccessibilityEvent event = AccessibilityEvent in speak() local 149 event.setPackageName(PACKAGE); in speak() 150 event.setClassName(CLASS); in speak() 151 event.setEventTime(SystemClock.uptimeMillis()); in speak() 152 event.setEnabled(true); in speak() 153 event.getText().add(text); in speak() 155 mAccessibilityManager.sendAccessibilityEvent(event); in speak()
|
D | AccessibleKeyboardViewProxy.java | 83 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event, in dispatchPopulateAccessibilityEvent() argument 90 switch (event.getEventType()) { in dispatchPopulateAccessibilityEvent() 106 event.getText().add(description); in dispatchPopulateAccessibilityEvent() 121 public boolean dispatchHoverEvent(MotionEvent event, PointerTracker tracker) { in dispatchHoverEvent() argument 122 if (mGestureDetector.onHoverEvent(event, this, tracker)) in dispatchHoverEvent() 125 return onHoverEventInternal(event, tracker); in dispatchHoverEvent() 134 /*package*/ boolean onHoverEventInternal(MotionEvent event, PointerTracker tracker) { in onHoverEventInternal() argument 135 final int x = (int) event.getX(); in onHoverEventInternal() 136 final int y = (int) event.getY(); in onHoverEventInternal() 138 switch (event.getAction()) { in onHoverEventInternal() [all …]
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | SkbContainer.java | 427 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/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | SearchActivityView.java | 402 public boolean dispatchKeyEventPreIme(KeyEvent event) { in dispatchKeyEventPreIme() argument 404 if (activity != null && event.getKeyCode() == KeyEvent.KEYCODE_BACK in dispatchKeyEventPreIme() 408 if (event.getAction() == KeyEvent.ACTION_DOWN in dispatchKeyEventPreIme() 409 && event.getRepeatCount() == 0) { in dispatchKeyEventPreIme() 410 state.startTracking(event, this); in dispatchKeyEventPreIme() 412 } else if (event.getAction() == KeyEvent.ACTION_UP in dispatchKeyEventPreIme() 413 && !event.isCanceled() && state.isTracking(event)) { in dispatchKeyEventPreIme() 420 return super.dispatchKeyEventPreIme(event); in dispatchKeyEventPreIme() 468 long suggestionId, int keyCode, KeyEvent event) { in onSuggestionKeyDown() argument 519 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument [all …]
|
/packages/experimental/UiAutomation/service/src/com/android/testing/uiautomation/ |
D | InteractionProvider.java | 28 MotionEvent event = MotionEvent.obtain( in tap() local 34 mWm.injectPointerEvent(event, false); in tap() 40 event.setAction(MotionEvent.ACTION_UP); in tap() 42 mWm.injectPointerEvent(event, false); in tap() 68 public boolean sendKey(KeyEvent event) { in sendKey() argument 71 mWm.injectKeyEvent(event, false); in sendKey()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | WarnOfStorageLimitsActivity.java | 115 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 116 if (mAlert.onKeyDown(keyCode, event)) return true; in onKeyDown() 117 return super.onKeyDown(keyCode, event); in onKeyDown() 121 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 122 if (mAlert.onKeyUp(keyCode, event)) return true; in onKeyUp() 123 return super.onKeyUp(keyCode, event); in onKeyUp()
|