Lines Matching defs:mModel
108 CalendarEventModel mModel;
188 EditEventHelper.setModelFromCursor(mModel, cursor);
193 mModel.mUri = mUri.toString();
194 mModel.mOriginalStart = mBegin;
195 mModel.mOriginalEnd = mEnd;
196 mModel.mIsFirstEventInSeries = mBegin == mOriginalModel.mStart;
197 mModel.mStart = mBegin;
198 mModel.mEnd = mEnd;
200 mModel.setEventColor(mEventColor);
202 eventId = mModel.mId;
205 if (mModel.mHasAttendeeData && eventId != -1) {
219 if (mModel.mHasAlarm && mReminders == null) {
236 mModel.mReminders =
243 Long.toString(mModel.mCalendarId)
266 mModel.mOrganizer = email;
267 mModel.mIsOrganizer = mModel.mOwnerAccount
275 mModel.mOrganizerDisplayName = mModel.mOrganizer;
279 mModel.mOrganizerDisplayName = name;
285 if (mModel.mOwnerAccount != null &&
286 mModel.mOwnerAccount.equalsIgnoreCase(email)) {
289 mModel.mOwnerAttendeeId = attendeeId;
290 mModel.mSelfAttendeeStatus = status;
298 mModel.addAttendee(attendee);
314 mModel.mReminders.add(re);
319 Collections.sort(mModel.mReminders);
329 if (mModel.mId == -1) {
340 EditEventHelper.setModelFromCalendarCursor(mModel, cursor);
365 mModel.mEventColorCache = cache;
375 if (mModel.mCalendarAccountName == null
376 || mModel.mCalendarAccountType == null) {
379 mView.setColorPickerButtonStates(mModel.getCalendarEventColors());
395 int[] colors = mModel.getCalendarEventColors();
398 mModel.getEventColor(), mModel.getCalendarColor(), mView.mIsMultipane);
401 mColorPickerDialog.setCalendarColor(mModel.getCalendarColor());
402 mColorPickerDialog.setColors(colors, mModel.getEventColor());
417 mModel = mRestoreModel;
420 if (!TextUtils.isEmpty(mModel.mRrule)) {
427 mView.setModel(mModel);
467 mModel.mId = mEvent.id;
471 mModel.mAllDay = mEvent.extraLong == CalendarController.EXTRA_CREATE_ALL_DAY;
484 mModel.mId = mEventBundle.id;
492 mModel.mReminders = mReminders;
496 mModel.setEventColor(mEventColor);
511 mModel.mCalendarAccessLevel = Calendars.CAL_ACCESS_NONE;
523 mModel.mOriginalStart = mBegin;
524 mModel.mOriginalEnd = mEnd;
525 mModel.mStart = mBegin;
526 mModel.mEnd = mEnd;
527 mModel.mCalendarId = mCalendarId;
528 mModel.mSelfAttendeeStatus = Attendees.ATTENDEE_STATUS_ACCEPTED;
552 mModel = new CalendarEventModel(activity, mIntent);
657 if (EditEventHelper.canModifyEvent(mModel) || EditEventHelper.canRespond(mModel)) {
668 } else if (EditEventHelper.canAddReminders(mModel) && mModel.mId != -1
686 boolean changed = EditEventHelper.saveReminders(ops, mModel.mId, mModel.mReminders,
696 Uri uri = ContentUris.withAppendedId(Events.CONTENT_URI, mModel.mId);
697 int len = mModel.mReminders.size();
710 final boolean notSynced = TextUtils.isEmpty(mModel.mSyncId);
711 boolean isFirstEventInSeries = mModel.mIsFirstEventInSeries;
755 mModel.mOriginalSyncId = notSynced ? null : mModel.mSyncId;
756 mModel.mOriginalId = mModel.mId;
800 if ((mCode & Utils.DONE_SAVE) != 0 && mModel != null
801 && (EditEventHelper.canRespond(mModel)
802 || EditEventHelper.canModifyEvent(mModel))
805 && mModel.normalizeReminders()
806 && mHelper.saveEvent(mModel, mOriginalModel, mModification)) {
808 if (!mModel.mAttendeesList.isEmpty()) {
809 if (mModel.mUri != null) {
815 if (mModel.mUri != null) {
822 } else if ((mCode & Utils.DONE_SAVE) != 0 && mModel != null && isEmptyNewEvent()) {
828 long begin = mModel.mStart;
829 long end = mModel.mEnd;
852 long start = mModel.mStart;
853 long end = mModel.mEnd;
854 if (mModel.mAllDay) {
894 if (mModel.mOriginalStart != mModel.mStart || mModel.mOriginalEnd != mModel.mEnd) {
898 if (!mModel.mAttendeesList.isEmpty()) {
902 return mModel.isEmpty();
936 outState.putSerializable(BUNDLE_KEY_MODEL, mModel);
985 if (!mModel.isEventColorInitialized() || mModel.getEventColor() != color) {
986 mModel.setEventColor(color);
987 mView.updateHeadlineColor(mModel, color);