Home
last modified time | relevance | path

Searched refs:model (Results 1 – 25 of 446) sorted by relevance

12345678910>>...18

/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventHelper.java254 public EditEventHelper(Context context, CalendarEventModel model) { in EditEventHelper() argument
268 public boolean saveEvent(CalendarEventModel model, CalendarEventModel originalModel, in saveEvent() argument
273 Log.d(TAG, "Saving event model: " + model); in saveEvent()
285 if (model == null) { in saveEvent()
289 if (!model.isValid()) { in saveEvent()
293 if (originalModel != null && !isSameEvent(model, originalModel)) { in saveEvent()
298 if (originalModel != null && model.isUnchanged(originalModel)) { in saveEvent()
305 ContentValues values = getContentValuesFromModel(model); in saveEvent()
307 if (model.mUri != null && originalModel == null) { in saveEvent()
312 if (model.mUri != null) { in saveEvent()
[all …]
DEditEventView.java993 CalendarEventModel model = mModel; in prepareReminders() local
1014 if (model.mHasAlarm) { in prepareReminders()
1015 ArrayList<ReminderEntry> reminders = model.mReminders; in prepareReminders()
1054 public void setModel(CalendarEventModel model) { in setModel() argument
1055 mModel = model; in setModel()
1063 if (model == null) { in setModel()
1070 boolean canRespond = EditEventHelper.canRespond(model); in setModel()
1072 long begin = model.mStart; in setModel()
1073 long end = model.mEnd; in setModel()
1074 mTimezone = model.mTimezone; // this will be UTC for all day events in setModel()
[all …]
/packages/apps/Contacts/
Dproguard.flags1 -keep class com.android.contacts.model.Sources {
37 -keep class com.android.contacts.model.account.AccountDisplayInfo { *; }
38 -keep class com.android.contacts.model.account.AccountDisplayInfoFactory { *; }
39 -keep class com.android.contacts.model.account.AccountInfo { *; }
40 -keep class com.android.contacts.model.account.AccountType { *; }
41 -keep class com.android.contacts.model.account.AccountType$* { *; }
42 -keep class com.android.contacts.model.account.AccountTypeWithDataSet { *; }
43 -keep class com.android.contacts.model.account.AccountWithDataSet { *; }
44 -keep class com.android.contacts.model.account.BaseAccountType { *; }
45 -keep class com.android.contacts.model.account.BaseAccountType$* { *; }
[all …]
/packages/apps/Calendar/src/com/android/calendar/recurrencepicker/
DRecurrencePickerDialog.java418 RecurrenceModel model) { in copyEventRecurrenceToModel() argument
422 model.freq = RecurrenceModel.FREQ_DAILY; in copyEventRecurrenceToModel()
425 model.freq = RecurrenceModel.FREQ_MONTHLY; in copyEventRecurrenceToModel()
428 model.freq = RecurrenceModel.FREQ_YEARLY; in copyEventRecurrenceToModel()
431 model.freq = RecurrenceModel.FREQ_WEEKLY; in copyEventRecurrenceToModel()
439 model.interval = er.interval; in copyEventRecurrenceToModel()
444 model.endCount = er.count; in copyEventRecurrenceToModel()
445 if (model.endCount > 0) { in copyEventRecurrenceToModel()
446 model.end = RecurrenceModel.END_BY_COUNT; in copyEventRecurrenceToModel()
451 if (model.endDate == null) { in copyEventRecurrenceToModel()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEnv.java65 public final TestModel model; field in TestEnv
81 model = new TestModel(authority, features); in TestEnv()
93 model); in TestEnv()
125 model.reset(); in clear()
126 model.update(); in clear()
130 model.reset(); in reset()
131 FOLDER_0 = model.createFolder("folder 0"); in reset()
132 FOLDER_1 = model.createFolder("folder 1"); in reset()
133 FOLDER_2 = model.createFolder("folder 2"); in reset()
134 FILE_TXT = model.createFile("woowoo.txt"); in reset()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDirectoryAddonsAdapterTest.java59 mEnv.model.addUpdateListener(mAdapter.getModelUpdateListener()); in setUp()
66 assertEquals(mEnv.model.getItemCount() + 1, mAdapter.getItemCount()); in testItemCount_mixed()
73 mEnv.model.createFolder(name); in testItemCount_allDirs()
75 mEnv.model.update(); in testItemCount_allDirs()
76 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount_allDirs()
83 mEnv.model.createFile(name); in testItemCount_allFiles()
85 mEnv.model.update(); in testItemCount_allFiles()
86 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount_allFiles()
92 mEnv.model.createFile(name); in testAddsInfoMessage_WithDirectoryChildren()
96 mEnv.model.setCursorExtras(bundle); in testAddsInfoMessage_WithDirectoryChildren()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DModelTest.java72 private Model model; field in ModelTest
98 model = new Model(features); in setUp()
100 model.addUpdateListener(new TestEventListener<>()); in setUp()
101 model.update(r); in setUp()
107 assertEquals(ITEM_COUNT, model.getItemCount()); in testItemCount()
135 model.update(r); in testModelIdIsUnique()
137 assertEquals(ITEM_COUNT * 2, model.getItemCount()); in testModelIdIsUnique()
141 for (String id: model.getModelIds()) { in testModelIdIsUnique()
142 Cursor cOut = model.getItem(id); in testModelIdIsUnique()
166 String[] ids = model.getModelIds(); in testGetItem()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuations.java78 public SpacingAndPunctuations(final SpacingAndPunctuations model, in SpacingAndPunctuations() argument
80 mSortedSymbolsPrecededBySpace = model.mSortedSymbolsPrecededBySpace; in SpacingAndPunctuations()
81 mSortedSymbolsFollowedBySpace = model.mSortedSymbolsFollowedBySpace; in SpacingAndPunctuations()
82 mSortedSymbolsClusteringTogether = model.mSortedSymbolsClusteringTogether; in SpacingAndPunctuations()
83 mSortedWordConnectors = model.mSortedWordConnectors; in SpacingAndPunctuations()
85 mSortedSentenceTerminators = model.mSortedSentenceTerminators; in SpacingAndPunctuations()
86 mSuggestPuncList = model.mSuggestPuncList; in SpacingAndPunctuations()
87 mSentenceSeparator = model.mSentenceSeparator; in SpacingAndPunctuations()
88 mAbbreviationMarker = model.mAbbreviationMarker; in SpacingAndPunctuations()
89 mSentenceSeparatorAndSpace = model.mSentenceSeparatorAndSpace; in SpacingAndPunctuations()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/
DBandController_GridModelTest.java41 private GridModel model; field in BandController_GridModelTest
73 model = new GridModel(env, (int pos) -> true, adapter); in initData()
74 model.addOnSelectionChangedListener( in initData()
90 model = null; in tearDown()
100 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testSelectionLeftOfItems()
108 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testSelectionRightOfItems()
116 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testSelectionAboveItems()
124 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testSelectionBelowItems()
132 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testVerticalSelectionBetweenItems()
140 assertEquals(NOT_SET, model.getPositionNearestOrigin()); in testHorizontalSelectionBetweenItems()
[all …]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DInvisibleContactUtil.java10 import com.android.contacts.model.AccountTypeManager;
11 import com.android.contacts.model.Contact;
12 import com.android.contacts.model.RawContact;
13 import com.android.contacts.model.RawContactDelta;
14 import com.android.contacts.model.RawContactDeltaList;
15 import com.android.contacts.model.RawContactModifier;
16 import com.android.contacts.model.ValuesDelta;
17 import com.android.contacts.model.account.AccountType;
18 import com.android.contacts.model.dataitem.DataItem;
19 import com.android.contacts.model.dataitem.DataKind;
[all …]
DDataAction.java36 import com.android.contacts.model.account.AccountType.EditType;
37 import com.android.contacts.model.dataitem.DataItem;
38 import com.android.contacts.model.dataitem.DataKind;
39 import com.android.contacts.model.dataitem.EmailDataItem;
40 import com.android.contacts.model.dataitem.ImDataItem;
41 import com.android.contacts.model.dataitem.PhoneDataItem;
42 import com.android.contacts.model.dataitem.SipAddressDataItem;
43 import com.android.contacts.model.dataitem.StructuredPostalDataItem;
44 import com.android.contacts.model.dataitem.WebsiteDataItem;
/packages/apps/Calendar/tests/src/com/android/calendar/event/
DEditEventHelperTest.java1536 CalendarEventModel model = new CalendarEventModel(); in buildTestModel() local
1537 model.mId = TEST_EVENT_ID; in buildTestModel()
1538 model.mTitle = "The_Question"; in buildTestModel()
1539 model.mDescription = "Evaluating_Life_the_Universe_and_Everything"; in buildTestModel()
1540 model.mLocation = "Earth_Mk2"; in buildTestModel()
1541 model.mAllDay = true; in buildTestModel()
1542 model.mHasAlarm = false; in buildTestModel()
1543 model.mCalendarId = 2; in buildTestModel()
1544 model.mStart = TEST_START; // Monday, May 3rd, local Time in buildTestModel()
1545 model.mDuration = "P3652421990D"; in buildTestModel()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java42 import com.android.launcher3.model.AddWorkspaceItemsTask;
43 import com.android.launcher3.model.BgDataModel;
44 import com.android.launcher3.model.CacheDataUpdatedTask;
45 import com.android.launcher3.model.BaseModelUpdateTask;
46 import com.android.launcher3.model.LoaderResults;
47 import com.android.launcher3.model.LoaderTask;
48 import com.android.launcher3.model.ModelWriter;
49 import com.android.launcher3.model.PackageInstallStateChangedTask;
50 import com.android.launcher3.model.PackageItemInfo;
51 import com.android.launcher3.model.PackageUpdatedTask;
[all …]
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java45 import com.android.contacts.model.AccountTypeManager;
46 import com.android.contacts.model.Contact;
47 import com.android.contacts.model.ContactLoader;
48 import com.android.contacts.model.RawContactDelta;
49 import com.android.contacts.model.RawContactDeltaList;
50 import com.android.contacts.model.RawContactModifier;
51 import com.android.contacts.model.ValuesDelta;
52 import com.android.contacts.model.account.AccountInfo;
53 import com.android.contacts.model.account.AccountType;
54 import com.android.contacts.model.account.AccountWithDataSet;
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockAccountTypeManager.java20 import com.android.contacts.model.AccountTypeManager;
21 import com.android.contacts.model.account.AccountInfo;
22 import com.android.contacts.model.account.AccountType;
23 import com.android.contacts.model.account.AccountTypeWithDataSet;
24 import com.android.contacts.model.account.AccountWithDataSet;
25 import com.android.contacts.model.account.BaseAccountType;
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java1 package com.android.launcher3.model;
58 public LauncherModel model; field in BaseModelUpdateTaskTestCase
76 model = mock(LauncherModel.class); in setUp()
79 when(appState.getModel()).thenReturn(model); in setUp()
80 when(model.getWriter(anyBoolean())).thenReturn(modelWriter); in setUp()
81 when(model.getCallback()).thenReturn(callbacks); in setUp()
100 when(model.isModelLoaded()).thenReturn(true); in executeTaskForTest()
104 task.init(appState, model, bgDataModel, allAppsList, mockExecutor); in executeTaskForTest()
/packages/apps/Contacts/src/com/android/contacts/util/
DAccountFilterUtil.java41 import com.android.contacts.model.AccountTypeManager;
42 import com.android.contacts.model.Contact;
43 import com.android.contacts.model.account.AccountDisplayInfo;
44 import com.android.contacts.model.account.AccountDisplayInfoFactory;
45 import com.android.contacts.model.account.AccountInfo;
46 import com.android.contacts.model.account.AccountType;
47 import com.android.contacts.model.account.AccountWithDataSet;
/packages/apps/Calendar/src/com/android/calendar/
DDeleteEventHelper.java257 public void delete(long begin, long end, CalendarEventModel model, int which) { in delete() argument
261 mModel = model; in delete()
262 mSyncId = model.mSyncId; in delete()
267 String rRule = model.mRrule; in delete()
268 String originalEvent = model.mOriginalSyncId; in delete()
306 if (!model.mIsOrganizer) { in delete()
311 } else if (!model.mIsOrganizer) { in delete()
325 mContext.getString(R.string.delete_recurring_event_title,model.mTitle)) in delete()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPickRawContactDialogFragment.java27 import com.android.contacts.model.AccountTypeManager;
28 import com.android.contacts.model.account.AccountDisplayInfo;
29 import com.android.contacts.model.account.AccountDisplayInfoFactory;
30 import com.android.contacts.model.account.AccountInfo;
31 import com.android.contacts.model.account.AccountType;
32 import com.android.contacts.model.account.AccountWithDataSet;
33 import com.android.contacts.model.account.GoogleAccountType;
DKindSectionData.java21 import com.android.contacts.model.RawContactDelta;
22 import com.android.contacts.model.ValuesDelta;
23 import com.android.contacts.model.account.AccountType;
24 import com.android.contacts.model.account.AccountType.EditField;
25 import com.android.contacts.model.dataitem.DataKind;
DStructuredNameEditorView.java28 import com.android.contacts.model.RawContactDelta;
29 import com.android.contacts.model.ValuesDelta;
30 import com.android.contacts.model.dataitem.DataItem;
31 import com.android.contacts.model.dataitem.DataKind;
32 import com.android.contacts.model.dataitem.StructuredNameDataItem;
/packages/apps/Dialer/java/com/android/contacts/common/model/
DAccountTypeManager.java17 package com.android.contacts.common.model;
47 import com.android.contacts.common.model.account.AccountType;
48 import com.android.contacts.common.model.account.AccountTypeWithDataSet;
49 import com.android.contacts.common.model.account.AccountWithDataSet;
50 import com.android.contacts.common.model.account.ExchangeAccountType;
51 import com.android.contacts.common.model.account.ExternalAccountType;
52 import com.android.contacts.common.model.account.FallbackAccountType;
53 import com.android.contacts.common.model.account.GoogleAccountType;
54 import com.android.contacts.common.model.account.SamsungAccountType;
55 import com.android.contacts.common.model.dataitem.DataKind;
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFocusManager.java497 mScope.model.addUpdateListener(mModelListener); in search()
542 mScope.model.removeUpdateListener(mModelListener); in endSearch()
562 Cursor cursor = mScope.model.getItem(modelId); in buildIndex()
640 public FocusManager reset(RecyclerView view, Model model) { in reset() argument
642 assert (model != null); in reset()
646 mScope.model = model; in reset()
658 private @Nullable Model model; field in FocusManager.ContentScope
/packages/apps/Contacts/src/com/android/contacts/model/
DAccountTypeManager.java17 package com.android.contacts.model;
43 import com.android.contacts.model.account.AccountInfo;
44 import com.android.contacts.model.account.AccountType;
45 import com.android.contacts.model.account.AccountTypeProvider;
46 import com.android.contacts.model.account.AccountTypeWithDataSet;
47 import com.android.contacts.model.account.AccountWithDataSet;
48 import com.android.contacts.model.account.FallbackAccountType;
49 import com.android.contacts.model.account.GoogleAccountType;
50 import com.android.contacts.model.dataitem.DataKind;
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DAccountTypeManagerTest.java17 package com.android.contacts.model;
25 import com.android.contacts.model.account.AccountType;
26 import com.android.contacts.model.account.AccountTypeWithDataSet;
27 import com.android.contacts.model.account.AccountWithDataSet;
28 import com.android.contacts.model.account.GoogleAccountType;

12345678910>>...18