/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 | 24 import com.android.calendar.event.EditEventActivity; 266 void handleEvent(EventInfo event); in handleEvent() argument 400 public void sendEvent(Object sender, final EventInfo event) { in sendEvent() argument 404 Log.d(TAG, eventInfoToString(event)); in sendEvent() 408 if (filteredTypes != null && (filteredTypes.longValue() & event.eventType) != 0) { in sendEvent() 419 if (event.viewType == ViewType.DETAIL) { in sendEvent() 420 event.viewType = mDetailViewType; in sendEvent() 422 } else if (event.viewType == ViewType.CURRENT) { in sendEvent() 423 event.viewType = mViewType; in sendEvent() 424 } else if (event.viewType != ViewType.EDIT) { in sendEvent() [all …]
|
D | SearchActivity.java | 184 private void showEventInfo(EventInfo event) { in showEventInfo() argument 189 mEventInfoFragment = new EventInfoFragment(this, event.id, in showEventInfo() 190 event.startTime.toMillis(false), event.endTime.toMillis(false), in showEventInfo() 191 event.getResponse(), false, EventInfoFragment.DIALOG_WINDOW_STYLE); in showEventInfo() 197 Uri eventUri = ContentUris.withAppendedId(Events.CONTENT_URI, event.id); in showEventInfo() 201 event.startTime != null ? event.startTime.toMillis(true) : -1); in showEventInfo() 203 … EXTRA_EVENT_END_TIME, event.endTime != null ? event.endTime.toMillis(true) : -1); in showEventInfo() 206 mCurrentEventId = event.id; in showEventInfo() 354 public void handleEvent(EventInfo event) { in handleEvent() argument 355 long endTime = (event.endTime == null) ? -1 : event.endTime.toMillis(false); in handleEvent() [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 | 49 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument 50 final boolean ret = super.onTouchEvent(event); in onTouchEvent() 61 public void sendAccessibilityEventUnchecked(AccessibilityEvent event) { in sendAccessibilityEventUnchecked() argument 62 if (event.getEventType() == AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED) { in sendAccessibilityEventUnchecked() 65 final int added = event.getAddedCount(); in sendAccessibilityEventUnchecked() 66 final int removed = event.getRemovedCount(); in sendAccessibilityEventUnchecked() 67 final int length = event.getBeforeText().length(); in sendAccessibilityEventUnchecked() 69 event.setRemovedCount(0); in sendAccessibilityEventUnchecked() 70 event.setAddedCount(1); in sendAccessibilityEventUnchecked() 71 event.setFromIndex(length); in sendAccessibilityEventUnchecked() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | AccessibleKeyboardViewProxy.java | 114 public boolean dispatchTouchEvent(MotionEvent event) { in dispatchTouchEvent() argument 127 public boolean dispatchHoverEvent(MotionEvent event, PointerTracker tracker) { in dispatchHoverEvent() argument 128 final int x = (int) event.getX(); in dispatchHoverEvent() 129 final int y = (int) event.getY(); in dispatchHoverEvent() 141 switch (event.getAction()) { in dispatchHoverEvent() 150 return onHoverKey(key, event); in dispatchHoverEvent() 153 return onTransitionKey(key, previousKey, event); in dispatchHoverEvent() 155 return onHoverKey(key, event); in dispatchHoverEvent() 199 private boolean onTransitionKey(Key currentKey, Key previousKey, MotionEvent event) { in onTransitionKey() argument 200 final int savedAction = event.getAction(); in onTransitionKey() [all …]
|
D | AccessibilityUtils.java | 108 public boolean isTouchExplorationEvent(MotionEvent event) { in isTouchExplorationEvent() argument 109 final int action = event.getAction(); in isTouchExplorationEvent() 158 final AccessibilityEvent event = AccessibilityEvent.obtain(); in announceForAccessibility() local 160 event.setPackageName(PACKAGE); in announceForAccessibility() 161 event.setClassName(CLASS); in announceForAccessibility() 162 event.setEventTime(SystemClock.uptimeMillis()); in announceForAccessibility() 163 event.setEnabled(true); in announceForAccessibility() 164 event.getText().add(text); in announceForAccessibility() 168 event.setEventType(AccessibilityEventCompat.TYPE_ANNOUNCEMENT); in announceForAccessibility() 170 event.setEventType(AccessibilityEvent.TYPE_VIEW_FOCUSED); in announceForAccessibility() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaFragment.java | 316 private void goTo(EventInfo event, boolean animate) { in goTo() argument 317 if (event.selectedTime != null) { in goTo() 318 mTime.set(event.selectedTime); in goTo() 319 } else if (event.startTime != null) { in goTo() 320 mTime.set(event.startTime); in goTo() 327 mAgendaListView.goTo(mTime, event.id, mQuery, false, in goTo() 328 ((event.extraLong & CalendarController.EXTRA_GOTO_TODAY) != 0 && in goTo() 332 showEventInfo(event, vh != null ? vh.allDay : false, mForceReplace); in goTo() 363 public void handleEvent(EventInfo event) { in handleEvent() argument 364 if (event.eventType == EventType.GO_TO) { in handleEvent() [all …]
|
D | AgendaListView.java | 175 EventInfo event = mWindowAdapter.getEventByPosition(position); in onItemClick() local 182 if (event != null && (oldInstanceId != mWindowAdapter.getSelectedInstanceId() || in onItemClick() 184 long startTime = event.begin; in onItemClick() 185 long endTime = event.end; in onItemClick() 195 if (event.allDay) { in onItemClick() 201 controller.sendEventRelatedEventWithExtra(this, EventType.VIEW_EVENT, event.id, in onItemClick() 203 Attendees.ATTENDEE_STATUS_NONE, event.allDay), holderStartTime); in onItemClick() 233 EventInfo event = mWindowAdapter.getEventByPosition(position); in deleteSelectedEvent() local 234 if (event != null) { in deleteSelectedEvent() 235 mDeleteEventHelper.delete(event.begin, event.end, event.id, -1); in deleteSelectedEvent() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
D | FeedbackLayout.java | 45 public boolean dispatchKeyEventPreIme(KeyEvent event) { in dispatchKeyEventPreIme() argument 46 if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) { in dispatchKeyEventPreIme() 49 if (event.getAction() == KeyEvent.ACTION_DOWN in dispatchKeyEventPreIme() 50 && event.getRepeatCount() == 0) { in dispatchKeyEventPreIme() 51 state.startTracking(event, this); in dispatchKeyEventPreIme() 53 } else if (event.getAction() == KeyEvent.ACTION_UP in dispatchKeyEventPreIme() 54 && !event.isCanceled() && state.isTracking(event)) { in dispatchKeyEventPreIme() 60 return super.dispatchKeyEventPreIme(event); in dispatchKeyEventPreIme()
|
/packages/apps/Phone/src/com/android/phone/ |
D | DTMFTwelveKeyDialer.java | 183 KeyEvent event) { in backspace() argument 209 int keyCode, KeyEvent event) { in onKeyDown() argument 213 char c = (char) lookup(event, content); in onKeyDown() 216 if (event.getRepeatCount() == 0 && super.onKeyDown(view, content, keyCode, event)) { in onKeyDown() 239 int keyCode, KeyEvent event) { in onKeyUp() argument 242 super.onKeyUp(view, content, keyCode, event); in onKeyUp() 245 char c = (char) lookup(event, content); in onKeyUp() 261 public boolean onKeyDown(KeyEvent event) { in onKeyDown() argument 262 char c = lookup(event); in onKeyDown() 266 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/LegacyCamera/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 | SecondLevelIndicatorControlBar.java | 90 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 …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 296 StackEvent event = (StackEvent) message.obj; in processMessage() local 298 log("event type: " + event.type); in processMessage() 300 switch (event.type) { in processMessage() 302 processConnectionEvent(event.valueInt, event.device); in processMessage() 305 Log.e(TAG, "Unexpected stack event: " + event.type); in processMessage() 427 StackEvent event = (StackEvent) message.obj; in processMessage() local 429 log("event type: " + event.type); in processMessage() 431 switch (event.type) { in processMessage() 434 processConnectionEvent(event.valueInt, event.device); in processMessage() 437 Log.e(TAG, "Unexpected event: " + event.type); in processMessage() [all …]
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
D | CalendarSyncAdapterTests.java | 348 TestEvent event = new TestEvent(); in testAddEvent() local 349 event.setupPreAttendees(); in testAddEvent() 350 event.start(Tags.CALENDAR_ATTENDEES); in testAddEvent() 351 addAttendeesToSerializer(event, 10); in testAddEvent() 352 event.end(); // CALENDAR_ATTENDEES in testAddEvent() 353 event.setupPostAttendees(); in testAddEvent() 355 EasCalendarSyncParser p = event.getParser(); in testAddEvent() 367 TestEvent event = new TestEvent(); in testAddEventIllegal() local 368 event.start(Tags.SYNC_APPLICATION_DATA); in testAddEventIllegal() 369 event.data(Tags.CALENDAR_TIME_ZONE, TEST_TIME_ZONE); in testAddEventIllegal() [all …]
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/ |
D | CalendarSyncAdapterTests.java | 348 TestEvent event = new TestEvent(); in testAddEvent() local 349 event.setupPreAttendees(); in testAddEvent() 350 event.start(Tags.CALENDAR_ATTENDEES); in testAddEvent() 351 addAttendeesToSerializer(event, 10); in testAddEvent() 352 event.end(); // CALENDAR_ATTENDEES in testAddEvent() 353 event.setupPostAttendees(); in testAddEvent() 355 EasCalendarSyncParser p = event.getParser(); in testAddEvent() 367 TestEvent event = new TestEvent(); in testAddEventIllegal() local 368 event.start(Tags.SYNC_APPLICATION_DATA); in testAddEventIllegal() 369 event.data(Tags.CALENDAR_TIME_ZONE, TEST_TIME_ZONE); in testAddEventIllegal() [all …]
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/ |
D | ExifParserTest.java | 56 int event = parser.next(); in testParse() local 57 while (event != ExifParser.EVENT_END) { in testParse() 58 switch (event) { in testParse() 79 event = parser.next(); in testParse() 112 int event = parser.next(); in parseOneIfd() local 113 while(event != ExifParser.EVENT_END) { in parseOneIfd() 114 switch (event) { in parseOneIfd() 138 fail("Invalid Event type: " + event); in parseOneIfd() 141 event = parser.next(); in parseOneIfd() 165 int event = parser.next(); in testOnlyReadSomeTag() local [all …]
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserActivity.java | 237 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 …]
|
D | UrlBarAutoShowManager.java | 99 public boolean onTouch(View v, MotionEvent event) { in onTouch() argument 100 if (event.getPointerCount() > 1) { in onTouch() 103 switch (event.getAction()) { in onTouch() 105 if (!mIsTracking && event.getPointerCount() == 1) { in onTouch() 111 mStartTouchY = event.getY(); in onTouch() 112 mStartTouchX = event.getX(); in onTouch() 120 float dy = event.getY() - mStartTouchY; in onTouch() 122 float adx = Math.abs(event.getX() - mStartTouchX); in onTouch()
|
/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/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/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 …]
|