Home
last modified time | relevance | path

Searched refs:itemType (Results 1 – 25 of 51) sorted by relevance

123

/packages/apps/Launcher3/robolectric_tests/resources/
Dcache_data_updated_task_data.txt8 bgItem s itemType=0 title=app1-class1 intent=component=app1/class1 id=1
9 bgItem s itemType=0 title=app1-class2 intent=component=app1/class2 id=2
10 bgItem s itemType=0 title=app2-class1 intent=component=app2/class1 id=3
11 bgItem s itemType=0 title=app2-class2 intent=component=app2/class2 id=4
14 bgItem s itemType=0 status=2 title=app3-class1 intent=component=app3/class1 id=5
15 bgItem s itemType=0 status=2 title=app3-class2 intent=component=app3/class2 id=6
18 bgItem s itemType=1 title=app1-shrt intent=component=app1/class3 id=7
19 bgItem s itemType=1 title=app4-shrt intent=component=app4/class1 id=8
22 bgItem s itemType=1 status=1 title=app3-shrt intent=component=app3/class3 id=9
23 bgItem s itemType=1 status=1 title=app5-shrt intent=component=app5/class1 id=10
Dpackage_install_state_change_task_data.txt9 bgItem s itemType=0 title=app1-class1 intent=component=app1/class1 id=1
10 bgItem s itemType=0 title=app1-class2 intent=component=app1/class2 id=2
11 bgItem s itemType=0 title=app2-class1 intent=component=app2/class1 id=3
12 bgItem s itemType=0 title=app2-class2 intent=component=app2/class2 id=4
15 bgItem s itemType=0 status=2 title=app3-class1 intent=component=app3/class1 id=5
16 bgItem s itemType=0 status=2 title=app3-class2 intent=component=app3/class2 id=6
17 bgItem s itemType=1 status=1 title=app3-shrt intent=component=app3/class3 id=7
20 bgItem s itemType=1 status=1 title=app4-shrt intent=component=app4/class1 id=8
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DLoggerUtils.java131 String typeStr = getFieldName(t.itemType, ItemType.class); in getItemStr()
141 if (t.itemType == ItemType.FOLDER_ICON) { in getItemStr()
144 && t.itemType != ItemType.TASK) { in getItemStr()
151 if (t.itemType == ItemType.TASK) { in getItemStr()
157 public static Target newItemTarget(int itemType) { in newItemTarget() argument
159 t.itemType = itemType; in newItemTarget()
171 switch (info.itemType) { in newItemTarget()
173 t.itemType = (instantAppResolver != null && info instanceof AppInfo in newItemTarget()
180 t.itemType = ItemType.SHORTCUT; in newItemTarget()
184 t.itemType = ItemType.FOLDER_ICON; in newItemTarget()
[all …]
DDumpTargetWrapper.java84 switch (info.itemType) { in newItemTarget()
86 dt.itemType = ItemType.APP_ICON; in newItemTarget()
89 dt.itemType = ItemType.WIDGET; in newItemTarget()
93 dt.itemType = ItemType.SHORTCUT; in newItemTarget()
96 dt.itemType = ItemType.UNKNOWN_ITEMTYPE; in newItemTarget()
134 String typeStr = LoggerUtils.getFieldName(t.itemType, ItemType.class); in getItemStr()
DUserEventDispatcher.java167 event.srcTarget[0].itemType = LauncherLogProto.ItemType.TASK; in logTaskLaunchOrDismiss()
342 public void logActionOnItem(int action, int dir, int itemType) { in logActionOnItem() argument
343 logActionOnItem(action, dir, itemType, null, null); in logActionOnItem()
355 public void logActionOnItem(int touchAction, int dir, int itemType, in logActionOnItem() argument
358 itemTarget.itemType = itemType; in logActionOnItem()
/packages/apps/Launcher3/src/com/android/launcher3/
DItemInfo.java49 public int itemType; field in ItemInfo
129 itemType = info.itemType; in copyFrom()
150 writer.put(LauncherSettings.Favorites.ITEM_TYPE, itemType) in writeToValues()
161 itemType = values.getAsInteger(LauncherSettings.Favorites.ITEM_TYPE); in readFromValues()
191 + " type=" + LauncherSettings.Favorites.itemTypeToString(itemType) in dumpProperties()
DWorkspaceItemInfo.java106 itemType = LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT; in WorkspaceItemInfo()
131 itemType = Favorites.ITEM_TYPE_DEEP_SHORTCUT; in WorkspaceItemInfo()
202 return itemType == Favorites.ITEM_TYPE_DEEP_SHORTCUT ? in getDeepShortcutId()
214 if (cn == null && (itemType == Favorites.ITEM_TYPE_SHORTCUT in getTargetComponent()
DLauncherAppWidgetInfo.java119 itemType = LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; in LauncherAppWidgetInfo()
121 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in LauncherAppWidgetInfo()
135 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in LauncherAppWidgetInfo()
DBaseDraggingActivity.java157 && (item.itemType == Favorites.ITEM_TYPE_SHORTCUT in startActivitySafely()
158 || item.itemType == Favorites.ITEM_TYPE_DEEP_SHORTCUT) in startActivitySafely()
195 if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) { in startShortcutIntentSafely()
DUtilities.java528 if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) { in getFullDrawable()
534 } else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) { in getFullDrawable()
552 } else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_FOLDER) { in getFullDrawable()
575 if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) { in getBadge()
591 } else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_FOLDER) { in getBadge()
DWorkspace.java334 boolean isWidget = itemInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in estimateItemSize()
402 if (dragObject.dragInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET in onDragStart()
1646 (info.itemType == ITEM_TYPE_APPLICATION || in willCreateUserFolder()
1647 info.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT || in willCreateUserFolder()
1648 info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT); in willCreateUserFolder()
1931 boolean isWidget = info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET in onDrop()
1932 || info.itemType == LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; in onDrop()
2474 if (pendingInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) {
2521 … boolean isWidget = pendingInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET
2522 … || pendingInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET;
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderCursor.java95 public int itemType; field in LoaderCursor
127 itemType = getInt(itemTypeIndex); in moveToNext()
152 info.itemType = itemType; in loadSimpleWorkspaceItem()
177 if (itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) { in loadIcon()
239 info.itemType = itemType; in getRestoredItemInfo()
271 info.itemType = LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; in getAppShortcutInfo()
DGridSizeMigrationTask.java624 entry.itemType = c.getInt(indexItemType);
634 switch (entry.itemType) {
639 entry.weight = entry.itemType == Favorites.ITEM_TYPE_APPLICATION ?
700 entry.itemType = c.getInt(indexItemType);
709 switch (entry.itemType) {
714 entry.weight = entry.itemType == Favorites.ITEM_TYPE_APPLICATION ?
838 if (itemType == Favorites.ITEM_TYPE_APPWIDGET) {
839 if (another.itemType == Favorites.ITEM_TYPE_APPWIDGET) {
844 } else if (another.itemType == Favorites.ITEM_TYPE_APPWIDGET) {
DLoaderTask.java356 switch (c.itemType) { in loadWorkspace()
372 if (c.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) { in loadWorkspace()
382 c.itemType != LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) { in loadWorkspace()
393 if (cn != null && validTarget && c.itemType in loadWorkspace()
475 } else if (c.itemType == in loadWorkspace()
479 } else if (c.itemType == in loadWorkspace()
586 boolean customWidget = c.itemType == in loadWorkspace()
780 && info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION in loadWorkspace()
DPackageItemInfo.java34 this.itemType = LauncherSettings.Favorites.ITEM_TYPE_NON_ACTIONABLE; in PackageItemInfo()
39 this.itemType = LauncherSettings.Favorites.ITEM_TYPE_NON_ACTIONABLE; in PackageItemInfo()
/packages/apps/Launcher3/
Dprint_db.py128 itemType = cell["itemType"]
129 if itemType == 0:
133 elif itemType == 1:
137 elif itemType == 2:
139 elif itemType == 4:
142 out.write("<b>unknown type: %d</b>" % itemType)
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DKeyInputHandler.java65 int itemType = details.getItemViewType(); in onKey() local
66 if (itemType == DocumentsAdapter.ITEM_TYPE_HEADER_MESSAGE in onKey()
67 || itemType == DocumentsAdapter.ITEM_TYPE_INFLATED_MESSAGE in onKey()
68 || itemType == DocumentsAdapter.ITEM_TYPE_SECTION_BREAK) { in onKey()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DShortcutUtil.java60 return info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT in isDeepShortcut()
71 return info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; in isApp()
75 return info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT in isPinnedShortcut()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/
DLocalePreferenceProviderTest.java61 Pair(int itemType, LocaleStore.LocaleInfo localeInfo) { in Pair() argument
62 mItemType = itemType; in Pair()
173 int itemType = entry.mItemType; in prepareSuggestedLocaleAdapterMock() local
176 when(mSuggestedLocaleAdapter.getItemViewType(i)).thenReturn(itemType); in prepareSuggestedLocaleAdapterMock()
/packages/apps/Gallery2/src/com/android/photos/
DSelectionManager.java78 int itemType, int itemSupportedOperations, boolean selected) { in onItemSelectedStateChanged() argument
104 if (itemType == FileColumns.MEDIA_TYPE_IMAGE) { in onItemSelectedStateChanged()
106 } else if (itemType == FileColumns.MEDIA_TYPE_VIDEO) { in onItemSelectedStateChanged()
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/
DTaskAdapter.java125 int itemType = getItemViewType(position); in onBindViewHolderInternal() local
126 switch (itemType) { in onBindViewHolderInternal()
158 throw new IllegalArgumentException("No known holder for item type: " + itemType); in onBindViewHolderInternal()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAddWidgetInfo.java39 itemType = LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; in PendingAddWidgetInfo()
41 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in PendingAddWidgetInfo()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderIcon.java226 final int itemType = item.itemType; in willAcceptItem() local
227 return ((itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION || in willAcceptItem()
228 itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT || in willAcceptItem()
229 itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) && in willAcceptItem()
DFolderNameProvider.java50 if (workspaceItemInfos.get(0).itemType == Favorites.ITEM_TYPE_APPLICATION) { in getSuggestedFolderName()
52 } else if (wInfo1.itemType == Favorites.ITEM_TYPE_APPLICATION) { in getSuggestedFolderName()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DLoaderCursorTest.java90 private void initCursor(int itemType, String title) { in initCursor() argument
94 .add(ITEM_TYPE, itemType) in initCursor()
144 assertEquals(ITEM_TYPE_SHORTCUT, info.itemType); in loadSimpleShortcut()

123