Home
last modified time | relevance | path

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

12345678910>>...29

/packages/apps/Contacts/
Dproguard.flags1 -keep class com.android.contacts.model.Sources {
40 -keep class com.android.contacts.model.account.AccountDisplayInfo { *; }
41 -keep class com.android.contacts.model.account.AccountDisplayInfoFactory { *; }
42 -keep class com.android.contacts.model.account.AccountInfo { *; }
43 -keep class com.android.contacts.model.account.AccountType { *; }
44 -keep class com.android.contacts.model.account.AccountType$* { *; }
45 -keep class com.android.contacts.model.account.AccountTypeWithDataSet { *; }
46 -keep class com.android.contacts.model.account.AccountWithDataSet { *; }
47 -keep class com.android.contacts.model.account.BaseAccountType { *; }
48 -keep class com.android.contacts.model.account.BaseAccountType$* { *; }
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDirectoryAddonsAdapterTest.java61 mEnv.model.addUpdateListener(mAdapter.getModelUpdateListener()); in setUp()
68 assertEquals(mEnv.model.getItemCount() + 1, mAdapter.getItemCount()); in testItemCount_mixed()
72 mEnv.model.createFolder("a"); // id will be "1"...derived from insert position. in testGetPosition()
73 mEnv.model.createFile("b"); // id will be "2" in testGetPosition()
74 mEnv.model.update(); in testGetPosition()
86 mEnv.model.createFolder(name); in testItemCount_allDirs()
88 mEnv.model.update(); in testItemCount_allDirs()
89 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount_allDirs()
96 mEnv.model.createFile(name); in testItemCount_allFiles()
98 mEnv.model.update(); in testItemCount_allFiles()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEnv.java68 public final TestModel model; field in TestEnv
82 model = new TestModel(authority, features); in TestEnv()
94 model); in TestEnv()
142 model.reset(); in clear()
143 model.update(); in clear()
147 model.reset(); in reset()
148 FOLDER_0 = model.createFolder("folder 0"); in reset()
149 FOLDER_1 = model.createFolder("folder 1"); in reset()
150 FOLDER_2 = model.createFolder("folder 2"); in reset()
151 FILE_TXT = model.createFile("woowoo.txt"); in reset()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DColorOptionsProvider.java16 package com.android.customization.model.theme.custom;
18 import static com.android.customization.model.ResourceConstants.ACCENT_COLOR_DARK_NAME;
19 import static com.android.customization.model.ResourceConstants.ACCENT_COLOR_LIGHT_NAME;
20 import static com.android.customization.model.ResourceConstants.ANDROID_PACKAGE;
21 import static com.android.customization.model.ResourceConstants.ICONS_FOR_PREVIEW;
22 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ANDROID_THEME;
23 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_COLOR;
24 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_ANDROID;
25 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_SHAPE;
26 import static com.android.customization.model.ResourceConstants.PATH_SIZE;
[all …]
DIconOptionsProvider.java16 package com.android.customization.model.theme.custom;
18 import static com.android.customization.model.ResourceConstants.ANDROID_PACKAGE;
19 import static com.android.customization.model.ResourceConstants.ICONS_FOR_PREVIEW;
20 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_ANDROID;
21 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_LAUNCHER;
22 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_SETTINGS;
23 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_SYSUI;
24 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_THEMEPICKER;
34 import com.android.customization.model.ResourceConstants;
35 import com.android.customization.model.theme.OverlayManagerCompat;
[all …]
DFontOptionsProvider.java16 package com.android.customization.model.theme.custom;
18 import static com.android.customization.model.ResourceConstants.ANDROID_PACKAGE;
19 import static com.android.customization.model.ResourceConstants.CONFIG_BODY_FONT_FAMILY;
20 import static com.android.customization.model.ResourceConstants.CONFIG_HEADLINE_FONT_FAMILY;
21 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_FONT;
31 import com.android.customization.model.ResourceConstants;
32 import com.android.customization.model.theme.OverlayManagerCompat;
33 import com.android.customization.model.theme.custom.ThemeComponentOption.FontOption;
DShapeOptionsProvider.java16 package com.android.customization.model.theme.custom;
18 import static com.android.customization.model.ResourceConstants.ANDROID_PACKAGE;
19 import static com.android.customization.model.ResourceConstants.CONFIG_CORNERRADIUS;
20 import static com.android.customization.model.ResourceConstants.CONFIG_ICON_MASK;
21 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_SHAPE;
22 import static com.android.customization.model.ResourceConstants.PATH_SIZE;
40 import com.android.customization.model.ResourceConstants;
41 import com.android.customization.model.theme.OverlayManagerCompat;
42 import com.android.customization.model.theme.custom.ThemeComponentOption.ShapeOption;
DThemeComponentOption.java16 package com.android.customization.model.theme.custom;
18 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_COLOR;
19 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_FONT;
20 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_ANDROID;
21 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_LAUNCHER;
22 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_SETTINGS;
23 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_SYSUI;
24 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_THEMEPICKER;
25 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_SHAPE;
55 import com.android.customization.model.CustomizationManager;
[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/
DModelTest.java73 private Model model; field in ModelTest
99 model = new Model(features); in setUp()
101 model.addUpdateListener(new TestEventListener<>()); in setUp()
102 model.update(r); in setUp()
108 assertEquals(ITEM_COUNT, model.getItemCount()); in testItemCount()
136 model.update(r); in testModelIdIsUnique()
138 assertEquals(ITEM_COUNT * 2, model.getItemCount()); in testModelIdIsUnique()
142 for (String id: model.getModelIds()) { in testModelIdIsUnique()
143 Cursor cOut = model.getItem(id); in testModelIdIsUnique()
167 String[] ids = model.getModelIds(); in testGetItem()
[all …]
DGlobalSearchLoaderTest.java71 final DocumentInfo doc = mEnv.model.createFile(SEARCH_STRING + ".jpg", FILE_FLAG); in setUp()
143 final DocumentInfo doc = mEnv.model.createFolder(SEARCH_STRING); in testSearchResult_includeDirectory()
175 final DocumentInfo pdfDoc = mEnv.model.createFile(SEARCH_STRING + ".pdf"); in testSearchResult_includeSearchString()
178 final DocumentInfo apkDoc = mEnv.model.createFile(SEARCH_STRING + ".apk"); in testSearchResult_includeSearchString()
181 final DocumentInfo testApkDoc = mEnv.model.createFile("test.apk"); in testSearchResult_includeSearchString()
206 final DocumentInfo pdfDoc = mEnv.model.createFile(SEARCH_STRING + ".pdf"); in testSearchResult_includeDifferentRoot()
209 final DocumentInfo apkDoc = mEnv.model.createFile(SEARCH_STRING + ".apk"); in testSearchResult_includeDifferentRoot()
212 final DocumentInfo testApkDoc = mEnv.model.createFile("test.apk"); in testSearchResult_includeDifferentRoot()
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/model/theme/
DThemeManagerTest.java16 package com.android.customization.model.theme;
18 import static com.android.customization.model.ResourceConstants.ANDROID_PACKAGE;
19 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_COLOR;
20 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_FONT;
21 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_ANDROID;
22 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_SETTINGS;
23 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_SYSUI;
24 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_SHAPE;
25 import static com.android.customization.model.ResourceConstants.SETTINGS_PACKAGE;
26 import static com.android.customization.model.ResourceConstants.SYSUI_PACKAGE;
[all …]
/packages/apps/ThemePicker/src/com/android/customization/picker/theme/
DCustomThemeActivity.java33 import com.android.customization.model.CustomizationManager.Callback;
34 import com.android.customization.model.theme.DefaultThemeProvider;
35 import com.android.customization.model.theme.OverlayManagerCompat;
36 import com.android.customization.model.theme.ThemeBundle;
37 import com.android.customization.model.theme.ThemeBundleProvider;
38 import com.android.customization.model.theme.ThemeManager;
39 import com.android.customization.model.theme.custom.ColorOptionsProvider;
40 import com.android.customization.model.theme.custom.CustomTheme;
41 import com.android.customization.model.theme.custom.CustomThemeManager;
42 import com.android.customization.model.theme.custom.FontOptionsProvider;
[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.java35 import com.android.contacts.model.account.AccountType.EditType;
36 import com.android.contacts.model.dataitem.DataItem;
37 import com.android.contacts.model.dataitem.DataKind;
38 import com.android.contacts.model.dataitem.EmailDataItem;
39 import com.android.contacts.model.dataitem.ImDataItem;
40 import com.android.contacts.model.dataitem.PhoneDataItem;
41 import com.android.contacts.model.dataitem.SipAddressDataItem;
42 import com.android.contacts.model.dataitem.StructuredPostalDataItem;
43 import com.android.contacts.model.dataitem.WebsiteDataItem;
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DThemeManager.java16 package com.android.customization.model.theme;
18 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_COLOR;
19 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_FONT;
20 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_ANDROID;
21 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_LAUNCHER;
22 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_SETTINGS;
23 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_SYSUI;
24 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_THEMEPICKER;
25 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_SHAPE;
33 import com.android.customization.model.CustomizationManager;
[all …]
DDefaultThemeProvider.java16 package com.android.customization.model.theme;
20 import static com.android.customization.model.ResourceConstants.ANDROID_PACKAGE;
21 import static com.android.customization.model.ResourceConstants.ICONS_FOR_PREVIEW;
22 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_COLOR;
23 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_FONT;
24 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_ANDROID;
25 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_LAUNCHER;
26 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_SETTINGS;
27 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_SYSUI;
28 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_ICON_THEMEPICKER;
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultCategoryProvider.java23 import com.android.wallpaper.model.Category;
24 import com.android.wallpaper.model.CategoryProvider;
25 import com.android.wallpaper.model.CategoryReceiver;
26 import com.android.wallpaper.model.DefaultWallpaperInfo;
27 import com.android.wallpaper.model.DesktopCustomCategory;
28 import com.android.wallpaper.model.ImageCategory;
29 import com.android.wallpaper.model.LegacyPartnerWallpaperInfo;
30 import com.android.wallpaper.model.LiveWallpaperCategory;
31 import com.android.wallpaper.model.LiveWallpaperInfo;
32 import com.android.wallpaper.model.PartnerWallpaperInfo;
[all …]
/packages/apps/Dialer/java/com/android/dialer/rootcomponentgenerator/
DComponentGeneratingStep.java21 import static javax.lang.model.element.Modifier.ABSTRACT;
22 import static javax.lang.model.element.Modifier.PUBLIC;
23 import static javax.lang.model.element.Modifier.STATIC;
24 import static javax.lang.model.util.ElementFilter.typesIn;
46 import javax.lang.model.element.AnnotationMirror;
47 import javax.lang.model.element.AnnotationValue;
48 import javax.lang.model.element.Element;
49 import javax.lang.model.element.ExecutableElement;
50 import javax.lang.model.element.TypeElement;
51 import javax.lang.model.element.VariableElement;
[all …]
/packages/apps/ThemePicker/src/com/android/customization/picker/
DCustomizationPickerActivity.java37 import com.android.customization.model.CustomizationManager;
38 import com.android.customization.model.CustomizationOption;
39 import com.android.customization.model.clock.ClockManager;
40 import com.android.customization.model.clock.Clockface;
41 import com.android.customization.model.clock.ContentProviderClockProvider;
42 import com.android.customization.model.grid.GridOption;
43 import com.android.customization.model.grid.GridOptionsManager;
44 import com.android.customization.model.grid.LauncherGridOptionsProvider;
45 import com.android.customization.model.theme.DefaultThemeProvider;
46 import com.android.customization.model.theme.OverlayManagerCompat;
[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/src/com/android/launcher3/
DLauncherModel.java40 import com.android.launcher3.model.AddWorkspaceItemsTask;
41 import com.android.launcher3.model.BaseModelUpdateTask;
42 import com.android.launcher3.model.BgDataModel;
43 import com.android.launcher3.model.CacheDataUpdatedTask;
44 import com.android.launcher3.model.LoaderResults;
45 import com.android.launcher3.model.LoaderTask;
46 import com.android.launcher3.model.ModelWriter;
47 import com.android.launcher3.model.PackageInstallStateChangedTask;
48 import com.android.launcher3.model.PackageUpdatedTask;
49 import com.android.launcher3.model.ShortcutsChangedTask;
[all …]
/packages/apps/ThemePicker/src/com/android/customization/module/
DStatsLogUserEventLogger.java24 import com.android.customization.model.clock.Clockface;
25 import com.android.customization.model.grid.GridOption;
26 import com.android.customization.model.theme.ThemeBundle;
32 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_COLOR;
33 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_FONT;
34 import static com.android.customization.model.ResourceConstants.OVERLAY_CATEGORY_SHAPE;
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java1 package com.android.launcher3.model;
63 public LauncherModel model; field in BaseModelUpdateTaskTestCase
80 model = mock(LauncherModel.class); in setUp()
83 when(appState.getModel()).thenReturn(model); in setUp()
84 when(model.getWriter(anyBoolean(), anyBoolean())).thenReturn(modelWriter); in setUp()
85 when(model.getCallback()).thenReturn(callbacks); in setUp()
106 when(model.isModelLoaded()).thenReturn(true); in executeTaskForTest()
110 task.init(appState, model, bgDataModel, allAppsList, mockExecutor); in executeTaskForTest()

12345678910>>...29