Lines Matching defs:this
5 * you may not use this file except in compliance with the License.
103 private static final long INVALID_EVENT_ID = -1; //This is used for remembering a null event
133 * This is used to prevent popping up multiple quick views for the same event, especially
134 * during calendar syncs. This becomes valid when an event is selected, either by default
165 // Make this visible within the package for more informative debugging
202 String tz = Utils.getTimeZone(mContext, this);
216 DayView.this.invalidate();
225 mController.sendEventRelatedEvent(this, EventType.VIEW_EVENT, mClickedEvent.id,
227 DayView.this.getWidth() / 2, mClickedYLocation,
231 DayView.this.invalidate();
243 synchronized (this) {
255 .ofInt(DayView.this, "animateTodayAlpha", 255, 0);
258 mTodayAnimator.addListener(this);
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
305 * reloaded. To force a reload, set this to zero (this is set to zero
336 // This encloses the more allDay events icon
363 // This is the standard height of an allday event with no restrictions
366 * This is the minimum desired height of a allday event.
367 * When unexpanded, allday events will use this height.
369 * events at this height.
373 * This is how big the unexpanded allday height is allowed to be.
379 * This is the minimum size reserved for displaying regular events.
380 * The expanded allDay region can't expand into this.
404 // More events text will transition between invisible and this alpha
525 * Max of all day events in a given day in this view.
581 * The initial state of the touch mode when we enter this view.
762 mScaleGestureDetector = new ScaleGestureDetector(getContext(), this);
794 setOnCreateContextMenuListener(this);
895 mPopupView.setOnClickListener(this);
897 setOnLongClickListener(this);
916 * This is called when the popup window is pressed.
991 * local time. The derived class must ensure that this is consistent
1060 ValueAnimator scrollAnim = ObjectAnimator.ofInt(this, "viewStartY", mViewStartY, gotoY);
1073 mTodayAnimator = ObjectAnimator.ofInt(this, "animateTodayAlpha",
1138 mController.sendEvent(this, EventType.UPDATE_TITLE, start, end, null, -1, ViewType.CURRENT,
1228 // This would be about 1 day worth in a 7 day view
1239 * loading new events. This can change if there are all-day events.
1388 // so the selection box in this view may no longer be visible.
1405 // This is the Week view.
1418 mController.sendEventRelatedEventWithExtra(this, EventType.CREATE_EVENT, -1,
1425 mController.sendEventRelatedEvent(this, EventType.VIEW_EVENT, selectedEvent.id,
1430 // This was a touch selection. If the touch selected a single
1437 mController.sendEventRelatedEvent(this, EventType.VIEW_EVENT, selectedEvent.id,
1443 // This is the Day view.
1454 mController.sendEventRelatedEventWithExtra(this, EventType.CREATE_EVENT, -1,
1460 mController.sendEventRelatedEvent(this, EventType.VIEW_EVENT, selectedEvent.id,
1480 // This was the first press when there was nothing selected.
1489 // Check the duration to determine if this was a short press
1516 // on this key press.
1522 // on this key press.
1634 mController.sendEvent(this, EventType.GO_TO, date, end, -1, ViewType.CURRENT);
1641 mController.sendEvent(this, EventType.GO_TO, date, date, -1, ViewType.CURRENT);
1804 mController.sendEvent(this, EventType.GO_TO, mStart, mEnd, null, -1,
1898 // This is called after scrolling stops to move the selected hour
2002 // Protect against this being called before this view has been
2074 ObjectAnimator.ofInt(DayView.this, "EventsAlpha", 0, 255);
2209 // Move it back for this view
2266 // This isn't really the upper-left corner. It's the square area just
2467 // TODO Wow, this needs cleanup. drawEvents loop through all the
2470 // If this is today
2947 // check if we should skip this event. We skip if it starts
2967 // Check if this all-day event intersects the selected day
3050 // its neighbors in the up and down directions. This could be done
3315 // This neighbor is entirely above me.
3346 // This neighbor is entirely below me.
3379 // This neighbor is entirely to the right of me.
3403 // This neighbor is entirely to the left of me.
3487 // If this event is selected, then use the selection color
3578 // + 2 is small workaround when the font is slightly bigger then the rect. This will
3594 // There's a bug somewhere. If this rect is outside of a previous
3595 // cliprect, this becomes a no-op. What happens is that the text draw
3603 // This is to replace p.setStyle(Style.STROKE); canvas.drawRect() since it
3677 mPopup.showAtLocation(this, Gravity.BOTTOM | Gravity.LEFT, mHoursWidth, 5);
3743 mMoreAlldayEventsAnimator = ObjectAnimator.ofInt(this,
3755 // This is the only animator that can return null, so check it
3798 ObjectAnimator animator = ObjectAnimator.ofInt(this, "animateDayEventHeight",
3817 ObjectAnimator animator = ObjectAnimator.ofInt(this, "animateDayHeight",
3825 // when finished, set this to 0 to signify not animating
3884 mController.sendEvent(this, EventType.GO_TO, null, null, selectedTime, -1,
3902 mController.sendEventRelatedEventWithExtra(this, EventType.CREATE_EVENT, -1,
3924 this.postDelayed(mClearClick, clearDelay);
3926 this.post(mClearClick);
3939 mController.sendEvent(this, EventType.GO_TO, startTime, endTime, -1, ViewType.CURRENT,
4027 // Increasing/decrease this will scroll the calendar grid up/down.
4270 if (DEBUG) Log.e(TAG, "ACTION_MOVE Cnt=" + ev.getPointerCount() + DayView.this);
4320 // This case isn't expected to happen.
4386 // them to create an event. They can also do this by tapping.
4437 mController.sendEventRelatedEvent(this, EventType.VIEW_EVENT_DETAILS,
4445 mController.sendEventRelatedEvent(this, EventType.EDIT_EVENT,
4452 mController.sendEvent(this, EventType.GO_TO, getSelectedTime(), null, -1,
4457 mController.sendEvent(this, EventType.GO_TO, getSelectedTime(), null, -1,
4464 mController.sendEventRelatedEvent(this, EventType.CREATE_EVENT, -1,
4474 mController.sendEventRelatedEvent(this, EventType.DELETE_EVENT, id, begin,
4492 // Get the calendar id for this event
4542 * If the touch position is not within the displayed grid, then this
4558 // Store selection info and restore it at the end. This way, we can invoke the
4798 mHandler.post(this);
4829 this.removeCallbacks(mClearClick);
4830 this.removeCallbacks(mSetClick);
4882 if (!DayView.this.mPaused) {
4895 DayView.this.doSingleTapUp(ev);
4902 DayView.this.doLongPress(ev);
4916 // don't scroll vertically if this started in the allday area
4919 DayView.this.doScroll(e1, e2, distanceX, distanceY);
4931 // don't fling vertically if this started in the allday area
4934 DayView.this.doFling(e1, e2, velocityX, velocityY);
4941 DayView.this.doDown(ev);
4966 mController.sendEventRelatedEventWithExtra(this,
4975 // The rest of this file was borrowed from Launcher2 - PagedView.java
4997 * the overall snap duration. This is a function of the actual distance
4998 * that needs to be traveled; we keep this value close to half screen
5028 * distance that the screen has to travel, however, we don't want this
5029 * duration to be effected in a purely linear fashion. Instead, we use this