Home
last modified time | relevance | path

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

12

/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.java130 String typeStr = getFieldName(t.itemType, ItemType.class); in getItemStr()
141 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()
172 switch (info.itemType) { in newItemTarget()
174 t.itemType = (instantAppResolver != null && info instanceof AppInfo in newItemTarget()
181 t.itemType = ItemType.SHORTCUT; in newItemTarget()
184 t.itemType = ItemType.FOLDER_ICON; in newItemTarget()
187 t.itemType = ItemType.WIDGET; in newItemTarget()
[all …]
DDumpTargetWrapper.java77 switch (info.itemType) { in newItemTarget()
79 dt.itemType = ItemType.APP_ICON; in newItemTarget()
82 dt.itemType = ItemType.UNKNOWN_ITEMTYPE; in newItemTarget()
85 dt.itemType = ItemType.WIDGET; in newItemTarget()
88 dt.itemType = ItemType.SHORTCUT; in newItemTarget()
123 String typeStr = LoggerUtils.getFieldName(t.itemType, ItemType.class); in getItemStr()
DUserEventDispatcher.java152 event.srcTarget[0].itemType = LauncherLogProto.ItemType.TASK; in logTaskLaunchOrDismiss()
319 public void logActionOnItem(int action, int dir, int itemType) { in logActionOnItem() argument
321 itemTarget.itemType = itemType; in logActionOnItem()
/packages/apps/Launcher3/src/com/android/launcher3/
DItemInfo.java47 public int itemType; field in ItemInfo
127 itemType = info.itemType; in copyFrom()
147 writer.put(LauncherSettings.Favorites.ITEM_TYPE, itemType) in writeToValues()
158 itemType = values.getAsInteger(LauncherSettings.Favorites.ITEM_TYPE); in readFromValues()
188 + " type=" + LauncherSettings.Favorites.itemTypeToString(itemType) in dumpProperties()
DWorkspaceItemInfo.java91 itemType = LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT; in WorkspaceItemInfo()
115 itemType = Favorites.ITEM_TYPE_DEEP_SHORTCUT; in WorkspaceItemInfo()
182 return itemType == Favorites.ITEM_TYPE_DEEP_SHORTCUT ? in getDeepShortcutId()
189 if (cn == null && (itemType == Favorites.ITEM_TYPE_SHORTCUT in getTargetComponent()
DLauncherAppWidgetInfo.java111 itemType = LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; in LauncherAppWidgetInfo()
113 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in LauncherAppWidgetInfo()
127 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()
199 if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) { in startShortcutIntentSafely()
DWorkspace.java336 boolean isWidget = itemInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in estimateItemSize()
408 if (dragObject.dragInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET in onDragStart()
1634 (info.itemType == ITEM_TYPE_APPLICATION || in willCreateUserFolder()
1635 info.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT || in willCreateUserFolder()
1636 info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT); in willCreateUserFolder()
1916 boolean isWidget = info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET in onDrop()
1917 || info.itemType == LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; in onDrop()
2456 if (pendingInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) {
2503 … boolean isWidget = pendingInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET
2504 … || pendingInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET;
[all …]
DUtilities.java665 if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) { in getFullDrawable()
671 } else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) { in getFullDrawable()
689 } else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_FOLDER) { in getFullDrawable()
712 if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) { in getBadge()
728 } else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_FOLDER) { in getBadge()
/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.java622 entry.itemType = c.getInt(indexItemType);
632 switch (entry.itemType) {
637 entry.weight = entry.itemType == Favorites.ITEM_TYPE_APPLICATION ?
698 entry.itemType = c.getInt(indexItemType);
707 switch (entry.itemType) {
712 entry.weight = entry.itemType == Favorites.ITEM_TYPE_APPLICATION ?
836 if (itemType == Favorites.ITEM_TYPE_APPWIDGET) {
837 if (another.itemType == Favorites.ITEM_TYPE_APPWIDGET) {
842 } else if (another.itemType == Favorites.ITEM_TYPE_APPWIDGET) {
DLoaderTask.java351 switch (c.itemType) { in loadWorkspace()
367 if (c.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) { in loadWorkspace()
377 c.itemType != LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) { in loadWorkspace()
467 } else if (c.itemType == in loadWorkspace()
471 } else if (c.itemType == in loadWorkspace()
577 boolean customWidget = c.itemType == in loadWorkspace()
761 && info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION in loadWorkspace()
DAddWorkspaceItemsTask.java70 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION || in execute()
71 item.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) { in execute()
78 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) { in execute()
/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/UnifiedEmail/src/com/android/mail/browse/
DConversationContainer.java222 int itemType; field in ConversationContainer.OverlayView
224 public OverlayView(View view, int itemType) { in OverlayView() argument
226 this.itemType = itemType; in OverlayView()
688 mScrapViews.add(overlay.itemType, overlay.view); in detachOverlay()
848 final int itemType = mOverlayAdapter.getItemViewType(adapterIndex); in addOverlayView() local
849 final View convertView = mScrapViews.poll(itemType); in addOverlayView()
852 mOverlayViews.put(adapterIndex, new OverlayView(view, itemType)); in addOverlayView()
1009 index, overlayView.itemType, overlayView.view); in removeViewAtAdapterIndex()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/
DLocalePreferenceProviderTest.java56 Pair(int itemType, LocaleStore.LocaleInfo localeInfo) { in Pair() argument
57 mItemType = itemType; in Pair()
162 int itemType = entry.mItemType; in prepareSuggestedLocaleAdapterMock() local
165 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/folder/
DFolderIcon.java221 final int itemType = item.itemType; in willAcceptItem() local
222 return ((itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION || in willAcceptItem()
223 itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT || in willAcceptItem()
224 itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) && in willAcceptItem()
/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/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()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrItemPresenter.java71 Class<T> itemType = (Class<T>) item.getClass(); in onBindViewHolder() local
72 dvrItem = itemType.cast(item); in onBindViewHolder()

12