Home | History | Annotate | Download | only in event

Lines Matching defs:mModel

173     private CalendarEventModel mModel;
485 if (mModel.mOriginalSyncId != null) {
570 if (mModel == null || (mCalendarsCursor == null && mModel.mUri == null)) {
577 if (mModel == null || (mCalendarsCursor == null && mModel.mUri == null)) {
580 mModel.mReminders = EventViewUtils.reminderItemsToReminders(
582 mModel.mReminders.addAll(mUnsupportedReminders);
583 mModel.normalizeReminders();
587 mModel.mSelfAttendeeStatus = status;
625 EventViewUtils.updateAddReminderButton(mView, mReminderItems, mModel.mCalendarMaxReminders);
671 if (mModel == null) {
674 mModel.mReminders = EventViewUtils.reminderItemsToReminders(mReminderItems,
676 mModel.mReminders.addAll(mUnsupportedReminders);
677 mModel.normalizeReminders();
678 mModel.mHasAlarm = mReminderItems.size() > 0;
679 mModel.mTitle = mTitleTextView.getText().toString();
680 mModel.mAllDay = mAllDayCheckBox.isChecked();
681 mModel.mLocation = mLocationTextView.getText().toString();
682 mModel.mDescription = mDescriptionTextView.getText().toString();
683 if (TextUtils.isEmpty(mModel.mLocation)) {
684 mModel.mLocation = null;
686 if (TextUtils.isEmpty(mModel.mDescription)) {
687 mModel.mDescription = null;
693 mModel.mSelfAttendeeStatus = status;
699 mModel.mAttendeesList.clear();
700 mModel.addAttendees(mAttendeesList.getText().toString(), mEmailValidator);
705 if (mModel.mUri == null) {
706 mModel.mCalendarId = mCalendarsSpinner.getSelectedItemId();
713 mModel.mOwnerAccount = defaultCalendar;
714 mModel.mOrganizer = defaultCalendar;
715 mModel.mCalendarId = mCalendarsCursor.getLong(EditEventHelper.CALENDARS_INDEX_ID);
719 if (mModel.mAllDay) {
727 mModel.mStart = mStartTime.normalize(true);
737 if (normalizedEndTimeMillis < mModel.mStart) {
739 mModel.mEnd = mModel.mStart + DateUtils.DAY_IN_MILLIS;
741 mModel.mEnd = normalizedEndTimeMillis;
746 mModel.mStart = mStartTime.toMillis(true);
747 mModel.mEnd = mEndTime.toMillis(true);
749 mModel.mTimezone = mTimezone;
750 mModel.mAccessLevel = mAccessLevelSpinner.getSelectedItemPosition();
752 mModel.mAvailability = mAvailabilityValues.get(mAvailabilitySpinner
759 mModel.mRrule = null;
761 mModel.mRrule = mRrule;
974 if (mModel.mCalendarAllowedAvailability != null) {
976 mModel.mCalendarAllowedAvailability);
993 CalendarEventModel model = mModel;
1008 if (mModel.mCalendarAllowedReminders != null) {
1010 mModel.mCalendarAllowedReminders);
1043 EventViewUtils.updateAddReminderButton(mView, mReminderItems, mModel.mCalendarMaxReminders);
1055 mModel = model;
1250 if (!am.isEnabled() || mModel == null) {
1305 if (mModel.mAllDay) {
1384 * Updates the view based on {@link #mModification} and {@link #mModel}
1387 if (mModel == null) {
1390 if (EditEventHelper.canModifyEvent(mModel)) {
1399 if (mode == Utils.MODIFY_UNINITIALIZED || !EditEventHelper.canModifyEvent(mModel)) {
1415 if (EditEventHelper.canAddReminders(mModel)) {
1441 if (mModel.mUri == null) {
1448 if (mModel.mOriginalSyncId == null) {
1554 mModel.mCalendarMaxReminders, null);
1560 mModel.mCalendarMaxReminders, null);
1563 EventViewUtils.updateAddReminderButton(mView, mReminderItems, mModel.mCalendarMaxReminders);
1681 if (mModel.mUri == null && !mAvailabilityExplicitlySet) {
1740 if (calendarId == mModel.mCalendarId && mModel.isCalendarColorInitialized() &&
1741 displayColor == mModel.getCalendarColor()) {
1747 mModel.mCalendarId = calendarId;
1748 mModel.setCalendarColor(displayColor);
1749 mModel.mCalendarAccountName = c.getString(EditEventHelper.CALENDARS_INDEX_ACCOUNT_NAME);
1750 mModel.mCalendarAccountType = c.getString(EditEventHelper.CALENDARS_INDEX_ACCOUNT_TYPE);
1751 mModel.setEventColor(mModel.getCalendarColor());
1753 setColorPickerButtonStates(mModel.getCalendarEventColors());
1757 mModel.mCalendarMaxReminders = c.getInt(maxRemindersColumn);
1759 mModel.mCalendarAllowedReminders = c.getString(allowedRemindersColumn);
1761 mModel.mCalendarAllowedAttendeeTypes = c.getString(allowedAttendeeTypesColumn);
1763 mModel.mCalendarAllowedAvailability = c.getString(allowedAvailabilityColumn);
1768 mModel.mReminders.clear();
1769 mModel.mReminders.addAll(mModel.mDefaultReminders);
1770 mModel.mHasAlarm = mModel.mReminders.size() != 0;