Lines Matching refs:Event
43 // TODO: should Event be Parcelable so it can be passed via Intents?
44 public class Event implements Cloneable {
140 // The coordinates of the event rectangle drawn on the screen.
148 public Event nextRight;
149 public Event nextLeft;
150 public Event nextUp;
151 public Event nextDown;
156 Event e = new Event();
177 public final void copyTo(Event dest) {
196 public static final Event newInstance() {
197 Event e = new Event();
220 public static void loadEvents(Context context, ArrayList<Event> events, int startDay, int days,
339 ArrayList<Event> events, Cursor cEvents, Context context, int startDay, int endDay) {
357 Event e = generateEventFromCursor(cEvents);
366 * @param cEvents Cursor pointing at event
367 * @return An event created from the cursor
369 private static Event generateEventFromCursor(Cursor cEvents) {
370 Event e = new Event();
403 // Check if this is a repeating event
417 * Computes a position for each event. Each event is displayed
421 event is assigned two numbers: N, and
422 * Max, that specify that this event is the Nth event of Max number of
428 * @param minimumDurationMillis minimum duration acceptable as cell height of each event
431 /* package */ static void computePositions(ArrayList<Event> eventsList,
442 private static void doComputePositions(ArrayList<Event> eventsList,
444 final ArrayList<Event> activeList = new ArrayList<Event>();
445 final ArrayList<Event> groupList = new ArrayList<Event>();
453 for (Event event : eventsList) {
455 if (event.drawAsAllday() != doAlldayEvents)
460 event, activeList.iterator(), minimumDurationMillis, colMask);
462 colMask = removeAlldayActiveEvents(event, activeList.iterator(), colMask);
468 for (Event ev : groupList) {
482 event.setColumn(col);
483 activeList.add(event);
484 groupList.add(event);
489 for (Event ev : groupList) {
494 private static long removeAlldayActiveEvents(Event event, Iterator<Event> iter, long colMask) {
495 // Remove the inactive allday events. An event on the active list
496 // becomes inactive when the end day is less than the current event's
499 final Event active = iter.next();
500 if (active.endDay < event.startDay) {
509 Event event, Iterator<Event> iter, long minDurationMillis, long colMask) {
510 long start = event.getStartMillis();
511 // Remove the inactive events. An event on the active list
513 // the current event's start time.
515 final Event active = iter.next();
564 // An event that ends at the start minute should not be considered
581 * Returns the event title and location separated by a comma. If the
585 * @return the event title and location as a String