Lines Matching defs:event

112     // This is for drawing the outlines around event chips and supports up to 10
694 Event event = iter.next();
695 int newY = drawEvent(canvas, event, xSquare, ySquare, rightEdge, iter.hasNext());
737 * Attempts to draw the given event. Returns the y for the next event or the
738 * original y if the event will not fit. An event is considered to not fit
739 * if the event and its extras won't fit or if there are more events and the
740 * more events line would not fit after drawing this event.
742 * @param event the event to draw
743 * @param x the top left corner for this event's color chip
744 * @param y the top left corner for this event's color chip
745 * @return the y for the next event or the original y if it won't fit
748 Canvas canvas, Event event, int x, int y, int rightEdge, boolean moreEvents) {
754 if (!event.allDay) {
760 requiredSpace -= EVENT_LINE_PADDING + (event.allDay ? 0 : EVENT_LINE_PADDING);
769 boolean isDeclined = event.selfAttendeeStatus == Attendees.ATTENDEE_STATUS_DECLINED;
770 int color = event.color;
775 Style style = event.selfAttendeeStatus == Attendees.ATTENDEE_STATUS_NONE ? Style.STROKE
784 event.title, mEventPaint, avail, TextUtils.TruncateAt.END);
787 if (!event.allDay) {
790 text = DateUtils.formatDateRange(getContext(), mFormatter, event.startMillis,
791 event.endMillis, DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_ABBREV_ALL,
813 * non-conflicting times in the event color and times with conflicting
819 // Draw event and conflict times
897 public boolean onHoverEvent(MotionEvent event) {
904 return super.onHoverEvent(event);
906 if (event.getAction() != MotionEvent.ACTION_HOVER_EXIT) {
907 Time hover = getDayFromLocation(event.getX());
918 int dayPosition = (int) ((event.getX() - dayStart) * mNumDays / (mWidth