Home
last modified time | relevance | path

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

12345678910>>...31

/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/
DFormattedStringModelTest.java34 private FormattedStringModel model; field in FormattedStringModelTest
39 model = new FormattedStringModel(context); in setUp()
44 model = null; in tearDown()
49 assertEquals("0", model.getFormattedNumber(0)); in positiveFormattedNumberWithNoPadding()
50 assertEquals("9", model.getFormattedNumber(9)); in positiveFormattedNumberWithNoPadding()
51 assertEquals("10", model.getFormattedNumber(10)); in positiveFormattedNumberWithNoPadding()
52 assertEquals("99", model.getFormattedNumber(99)); in positiveFormattedNumberWithNoPadding()
53 assertEquals("100", model.getFormattedNumber(100)); in positiveFormattedNumberWithNoPadding()
58 assertEquals("0", model.getFormattedNumber(false, 0, 1)); in positiveFormattedNumber()
59 assertEquals("00", model.getFormattedNumber(false, 0, 2)); in positiveFormattedNumber()
[all …]
/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/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 …]
/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/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/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/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunInterface.java67 String model = in scanDevices() local
69 if (model == null) { in scanDevices()
73 Log.d(TAG, "Fetch Device Model: " + model); in scanDevices()
76 if (model != null && model.contains("cablecard")) { in scanDevices()
88 model)); in scanDevices()
124 String model = controlSock.get("/sys/model"); in fetchDeviceModel() local
125 if (model != null) { in fetchDeviceModel()
126 return model; in fetchDeviceModel()
/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/Launcher3/src/com/android/launcher3/
DLauncherModel.java42 import com.android.launcher3.model.AddWorkspaceItemsTask;
43 import com.android.launcher3.model.AllAppsList;
44 import com.android.launcher3.model.BaseModelUpdateTask;
45 import com.android.launcher3.model.BgDataModel;
46 import com.android.launcher3.model.BgDataModel.Callbacks;
47 import com.android.launcher3.model.CacheDataUpdatedTask;
48 import com.android.launcher3.model.LoaderResults;
49 import com.android.launcher3.model.LoaderTask;
50 import com.android.launcher3.model.ModelWriter;
51 import com.android.launcher3.model.PackageInstallStateChangedTask;
[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/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/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/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java1 package com.android.launcher3.model;
24 import com.android.launcher3.model.BgDataModel.Callbacks;
62 public LauncherModel model; field in BaseModelUpdateTaskTestCase
79 model = mock(LauncherModel.class); in setUp()
82 when(appState.getModel()).thenReturn(model); in setUp()
83 when(model.getWriter(anyBoolean(), anyBoolean())).thenReturn(modelWriter); in setUp()
84 when(model.getCallback()).thenReturn(callbacks); in setUp()
105 when(model.isModelLoaded()).thenReturn(true); in executeTaskForTest()
109 task.init(appState, model, bgDataModel, allAppsList, mockExecutor); in executeTaskForTest()

12345678910>>...31