Lines Matching refs:Events
43 import android.provider.CalendarContract.Events;
110 // duration for events' cross-fade animation
302 * This variable helps to avoid unnecessarily reloading events by keeping
304 * of events. If the next reload matches this, then the events are not
336 // This encloses the more allDay events icon
367 * When unexpanded, allday events will use this height.
368 * When expanded allDay events will attempt to grow to fit all
369 * events at this height.
379 * This is the minimum size reserved for displaying regular events.
404 // More events text will transition between invisible and this alpha
439 // sizing for "box +n" in allDay events
489 * Flag to decide whether to handle the up event. Cases where up events
497 * The height of the area used for allday events
525 * Max of all day events in a given day in this view.
529 * A count of the number of allday events that were not drawn for each day
533 * The number of allDay events at which point we start hiding allDay events.
547 /** Top of the scrollable region i.e. below date labels and all day events */
624 // Animates the height of events in the allday region
626 // Animates the transparency of the more events text
1239 * loading new events. This can change if there are all-day events.
1242 // Shrink to fit available space but make sure we can display at least two events
1276 // number of all-day events we need to show, up to a limit.
1286 // continues to hide the last event so the more events text can
1290 // Try to fit all the events in
1342 // When we change the base date, the number of all-day events may
1352 //When we get new events we don't want to dismiss the popup unless the event changes
1676 // Mouse also generates hover events
1677 // Send accessibility events if accessibility and exploration are on.
1726 // Read out all the events
1949 // If there are all-days events for the selected day but there
1950 // are no more normal events earlier in the day, then jump to
2023 // Avoid reloading events unnecessarily.
2029 // load events in the background
2031 final ArrayList<Event> events = new ArrayList<Event>();
2032 mEventLoader.loadEventsInBackground(mNumDays, events, mFirstJulianDay, new Runnable() {
2036 mEvents = events;
2044 // Create a shorter array for all day events
2045 for (Event e : events) {
2051 // New events, new layouts
2052 if (mLayouts == null || mLayouts.length < events.size()) {
2053 mLayouts = new StaticLayout[events.size()];
2059 mAllDayLayouts = new StaticLayout[events.size()];
2070 // Start animation to cross fade the events
2110 // Compute the space needed for the all-day events, if any.
2111 // Make a pass over all the events, and keep track of the maximum
2112 // number of all-day events in any one day. Also, keep track of
2115 final ArrayList<Event> events = mEvents;
2116 final int len = events.size();
2117 // Num of all-day-events on each day.
2121 Event event = events.get(ii);
2126 // Count all the events being drawn as allDay events
2468 // events on every call.
2816 // re-layout of events at min height)
2838 case Attendees.ATTENDEE_STATUS_NONE: // Your own events
2890 final ArrayList<Event> events = mAllDayEvents;
2891 int numEvents = events.size();
2892 // Whether or not we should draw the more events text
2896 // max number of events being drawn in one day of the allday area
2898 // Where to cut off drawn allday events
2900 // The number of events that weren't drawn in each day
2904 // We draw one fewer event than will fit so that more events text
2907 // We also clip the events above the more events text
2918 Event event = events.get(i);
2990 // Compute the neighbors for the list of all-day events that
3000 // Helper method for counting the number of allday events skipped on each day
3010 // Draws the "box +n" text for hidden allday events
3105 final ArrayList<Event> events = mEvents;
3106 int numEvents = events.size();
3114 Event event = events.get(i);
3150 // up, down) for each of the events in the mSelectedEvents array.
3228 // all the other events in that list for the nearest neighbor in 4
3462 case Attendees.ATTENDEE_STATUS_NONE: // Your own events
3682 // touch events occur.
3693 // for new events, we need to restore the old info after calling the function.
3763 * Figures out the initial heights for allDay events and space when
3780 // Sets up an animator for changing the height of allday events
3787 // calculate the height of individual events in order to fit
3849 // setter for the height of allday events used by the animator
3916 // view (mViewStartY) and the presence of all day events (mFirstCell)
4493 Cursor cursor = cr.query(ContentUris.withAppendedId(Events.CONTENT_URI, e.id),
4494 new String[] { Events.CALENDAR_ID },
4605 // Log.i("Cal", " num events: " + mSelectedEvents.size() + " event: "
4630 ArrayList<Event> events = mEvents;
4631 int numEvents = events.size();
4648 events = mAllDayEvents;
4649 numEvents = events.size();
4651 Event event = events.get(i);
4654 // Don't check non-allday events or events that aren't shown
4704 Event event = events.get(i);
4717 // If there are any events in the selected region, then assign the