Lines Matching refs:Event
40 // TODO: should Event be Parcelable so it can be passed via Intents?
41 public class Event implements Cloneable {
143 // The coordinates of the event rectangle drawn on the screen.
151 public Event nextRight;
152 public Event nextLeft;
153 public Event nextUp;
154 public Event nextDown;
159 Event e = new Event();
180 public final void copyTo(Event dest) {
199 public static final Event newInstance() {
200 Event e = new Event();
223 public static void loadEvents(Context context, ArrayList<Event> events, int startDay, int days,
342 ArrayList<Event> events, Cursor cEvents, Context context, int startDay, int endDay) {
361 Event e = generateEventFromCursor(cEvents);
370 * @param cEvents Cursor pointing at event
371 * @return An event created from the cursor
373 private static Event generateEventFromCursor(Cursor cEvents) {
374 Event e = new Event();
407 // Check if this is a repeating event
421 * Computes a position for each event. Each event is displayed
425 * the top. In both cases, each event is assigned two numbers: N, and
426 * Max, that specify that this event is the Nth event of Max number of
432 * @param minimumDurationMillis minimum duration acceptable as cell height of each event
435 /* package */ static void computePositions(ArrayList<Event> eventsList,
446 private static void doComputePositions(ArrayList<Event> eventsList,
448 final ArrayList<Event> activeList = new ArrayList<Event>();
449 final ArrayList<Event> groupList = new ArrayList<Event>();
457 for (Event event : eventsList) {
459 if (event.drawAsAllday() != doAlldayEvents)
464 event, activeList.iterator(), minimumDurationMillis, colMask);
466 colMask = removeAlldayActiveEvents(event, activeList.iterator(), colMask);
472 for (Event ev : groupList) {
486 event.setColumn(col);
487 activeList.add(event);
488 groupList.add(event);
493 for (Event ev : groupList) {
498 private static long removeAlldayActiveEvents(Event event, Iterator<Event> iter, long colMask) {
499 // Remove the inactive allday events. An event on the active list
500 // becomes inactive when the end day is less than the current event's
503 final Event active = iter.next();
504 if (active.endDay < event.startDay) {
513 Event event, Iterator<Event> iter, long minDurationMillis, long colMask) {
514 long start = event.getStartMillis();
515 // Remove the inactive events. An event on the active list
517 // the current event's start time.
519 final Event active = iter.next();
568 // An event that ends at the start minute should not be considered
585 * Returns the event title and location separated by a comma. If the
589 * @return the event title and location as a String