Lines Matching refs:event
43 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()
457 mViewType = event.viewType; in sendEvent()
459 if (event.viewType == ViewType.AGENDA || event.viewType == ViewType.DAY in sendEvent()
460 || (Utils.getAllowWeekForDetailView() && event.viewType == ViewType.WEEK)) { in sendEvent()
467 Log.d(TAG, "Start " + (event.startTime == null ? "null" : event.startTime.toString())); in sendEvent()
468 Log.d(TAG, "End " + (event.endTime == null ? "null" : event.endTime.toString())); in sendEvent()
469 … Log.d(TAG, "Select " + (event.selectedTime == null ? "null" : event.selectedTime.toString())); in sendEvent()
474 if (event.startTime != null) { in sendEvent()
475 startMillis = event.startTime.toMillis(false); in sendEvent()
479 if (event.selectedTime != null && event.selectedTime.toMillis(false) != 0) { in sendEvent()
480 mTime.set(event.selectedTime); in sendEvent()
487 || (event.endTime != null && mtimeMillis > event.endTime.toMillis(false))) { in sendEvent()
488 mTime.set(event.startTime); in sendEvent()
491 event.selectedTime = mTime; in sendEvent()
494 if (event.eventType == EventType.UPDATE_TITLE) { in sendEvent()
495 mDateFlags = event.extraLong; in sendEvent()
500 event.startTime = mTime; in sendEvent()
503 Log.d(TAG, "Start " + (event.startTime == null ? "null" : event.startTime.toString())); in sendEvent()
504 Log.d(TAG, "End " + (event.endTime == null ? "null" : event.endTime.toString())); in sendEvent()
505 … Log.d(TAG, "Select " + (event.selectedTime == null ? "null" : event.selectedTime.toString())); in sendEvent()
511 if ((event.eventType in sendEvent()
514 if (event.id > 0) { in sendEvent()
515 mEventId = event.id; in sendEvent()
532 if (handler != null && (handler.getSupportedEventTypes() & event.eventType) != 0 in sendEvent()
534 handler.handleEvent(event); in sendEvent()
548 && (eventHandler.getSupportedEventTypes() & event.eventType) != 0) { in sendEvent()
552 eventHandler.handleEvent(event); in sendEvent()
586 if (event.eventType == EventType.LAUNCH_SETTINGS) { in sendEvent()
592 if (event.eventType == EventType.LAUNCH_SELECT_VISIBLE_CALENDARS) { in sendEvent()
598 long endTime = (event.endTime == null) ? -1 : event.endTime.toMillis(false); in sendEvent()
599 if (event.eventType == EventType.CREATE_EVENT) { in sendEvent()
600 launchCreateEvent(event.startTime.toMillis(false), endTime, in sendEvent()
601 event.extraLong == EXTRA_CREATE_ALL_DAY, event.eventTitle, in sendEvent()
602 event.calendarId); in sendEvent()
604 } else if (event.eventType == EventType.VIEW_EVENT) { in sendEvent()
605 launchViewEvent(event.id, event.startTime.toMillis(false), endTime, in sendEvent()
606 event.getResponse()); in sendEvent()
608 } else if (event.eventType == EventType.EDIT_EVENT) { in sendEvent()
609 launchEditEvent(event.id, event.startTime.toMillis(false), endTime, true); in sendEvent()
611 } else if (event.eventType == EventType.VIEW_EVENT_DETAILS) { in sendEvent()
612 launchEditEvent(event.id, event.startTime.toMillis(false), endTime, false); in sendEvent()
614 } else if (event.eventType == EventType.DELETE_EVENT) { in sendEvent()
615 launchDeleteEvent(event.id, event.startTime.toMillis(false), endTime); in sendEvent()
617 } else if (event.eventType == EventType.SEARCH) { in sendEvent()
618 launchSearch(event.id, event.query, event.componentName); in sendEvent()