/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTask.java | 28 import com.android.launcher3.ItemInfo; 49 private final List<Pair<ItemInfo, Object>> mItemList; 54 public AddWorkspaceItemsTask(List<Pair<ItemInfo, Object>> itemList) { in AddWorkspaceItemsTask() argument 64 final ArrayList<ItemInfo> addedItemsFinal = new ArrayList<>(); in execute() 70 List<ItemInfo> filteredItems = new ArrayList<>(); in execute() 71 for (Pair<ItemInfo, Object> entry : mItemList) { in execute() 72 ItemInfo item = entry.first; in execute() 100 for (ItemInfo item : filteredItems) { in execute() 106 ItemInfo itemInfo; in execute() 174 final ArrayList<ItemInfo> addAnimated = new ArrayList<>(); in execute() [all …]
|
D | ModelWriter.java | 31 import com.android.launcher3.ItemInfo; 86 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() 104 public void addOrMoveItemInDatabase(ItemInfo item, in addOrMoveItemInDatabase() 106 if (item.id == ItemInfo.NO_ID) { in addOrMoveItemInDatabase() 115 private void checkItemInfoLocked(int itemId, ItemInfo item, StackTraceElement[] stackTrace) { in checkItemInfoLocked() 116 ItemInfo modelItem = mBgDataModel.itemsIdMap.get(itemId); in checkItemInfoLocked() 154 public void moveItemInDatabase(final ItemInfo item, in moveItemInDatabase() 170 public void moveItemsInDatabase(final ArrayList<ItemInfo> items, int container, int screen) { in moveItemsInDatabase() 175 ItemInfo item = items.get(i); in moveItemsInDatabase() 193 public void modifyItemInDatabase(final ItemInfo item, in modifyItemInDatabase() [all …]
|
D | BaseLoaderResults.java | 26 import com.android.launcher3.ItemInfo; 90 ArrayList<ItemInfo> workspaceItems = new ArrayList<>(); in bindWorkspace() 117 ArrayList<ItemInfo> currentWorkspaceItems = new ArrayList<>(); in bindWorkspace() 118 ArrayList<ItemInfo> otherWorkspaceItems = new ArrayList<>(); in bindWorkspace() 175 public static <T extends ItemInfo> void filterCurrentWorkspaceItems(int currentScreenId, in filterCurrentWorkspaceItems() 182 ItemInfo i = iter.next(); in filterCurrentWorkspaceItems() 219 protected void sortWorkspaceItemsSpatially(ArrayList<ItemInfo> workspaceItems) { in sortWorkspaceItemsSpatially() 223 Collections.sort(workspaceItems, new Comparator<ItemInfo>() { in sortWorkspaceItemsSpatially() 225 public int compare(ItemInfo lhs, ItemInfo rhs) { in sortWorkspaceItemsSpatially() 255 protected void bindWorkspaceItems(final ArrayList<ItemInfo> workspaceItems, in bindWorkspaceItems() [all …]
|
D | BgDataModel.java | 28 import com.android.launcher3.ItemInfo; 74 public final IntSparseArrayMap<ItemInfo> itemsIdMap = new IntSparseArrayMap<>(); 80 public final ArrayList<ItemInfo> workspaceItems = new ArrayList<>(); 134 for (ItemInfo item: itemsIdMap) { in collectWorkspaceScreens() 208 ItemInfo info = workspaceItems.get(i); in dumpProto() 221 ItemInfo info = appWidgets.get(i); in dumpProto() 261 public synchronized void removeItem(Context context, ItemInfo... items) { in removeItem() 265 public synchronized void removeItem(Context context, Iterable<? extends ItemInfo> items) { in removeItem() 266 for (ItemInfo item : items) { in removeItem() 271 for (ItemInfo info : itemsIdMap) { in removeItem() [all …]
|
D | FirstScreenBroadcast.java | 25 import com.android.launcher3.ItemInfo; 90 public void sendBroadcasts(Context context, List<ItemInfo> firstScreenItems) { in sendBroadcasts() 102 List<String> packages, List<ItemInfo> firstScreenItems) { in sendBroadcastToInstaller() 108 for (ItemInfo info : firstScreenItems) { in sendBroadcastToInstaller() 112 for (ItemInfo folderItemInfo : folderInfo.contents) { in sendBroadcastToInstaller() 151 private static String getPackageName(ItemInfo info) { in getPackageName()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ShortcutUtil.java | 18 import com.android.launcher3.ItemInfo; 29 public static boolean supportsShortcuts(ItemInfo info) { in supportsShortcuts() 36 public static boolean supportsDeepShortcuts(ItemInfo info) { in supportsDeepShortcuts() 43 public static String getShortcutIdIfPinnedShortcut(ItemInfo info) { in getShortcutIdIfPinnedShortcut() 51 public static String[] getPersonKeysIfPinnedShortcut(ItemInfo info) { in getPersonKeysIfPinnedShortcut() 59 public static boolean isDeepShortcut(ItemInfo info) { in isDeepShortcut() 64 private static boolean isActive(ItemInfo info) { in isActive() 70 private static boolean isApp(ItemInfo info) { in isApp() 74 private static boolean isPinnedShortcut(ItemInfo info) { in isPinnedShortcut() 76 && info.container != ItemInfo.NO_ID in isPinnedShortcut()
|
D | ItemInfoMatcher.java | 23 import com.android.launcher3.ItemInfo; 36 boolean matches(ItemInfo info, ComponentName cn); in matches() 41 default HashSet<ItemInfo> filterItemInfos(Iterable<ItemInfo> infos) { in filterItemInfos() 42 HashSet<ItemInfo> filtered = new HashSet<>(); in filterItemInfos() 43 for (ItemInfo i : infos) { in filterItemInfos()
|
D | PendingRequestArgs.java | 23 import com.android.launcher3.ItemInfo; 30 public class PendingRequestArgs extends ItemInfo implements Parcelable { 40 public PendingRequestArgs(ItemInfo info) { in PendingRequestArgs() 97 int appWidgetId, WidgetAddFlowHandler widgetHandler, ItemInfo info) { in forWidgetInfo() 104 public static PendingRequestArgs forIntent(int requestCode, Intent intent, ItemInfo info) { in forIntent()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeleteDropTarget.java | 67 public boolean supportsAccessibilityDrop(ItemInfo info, View view) { in supportsAccessibilityDrop() 83 protected boolean supportsDrop(ItemInfo info) { in supportsDrop() 90 private void setTextBasedOnDragSource(ItemInfo item) { in setTextBasedOnDragSource() 100 private boolean canRemove(ItemInfo item) { in canRemove() 101 return item.id != ItemInfo.NO_ID; in canRemove() 107 private void setControlTypeBasedOnDragSource(ItemInfo item) { in setControlTypeBasedOnDragSource() 108 mControlType = item.id != ItemInfo.NO_ID ? ControlType.REMOVE_TARGET in setControlTypeBasedOnDragSource() 122 ItemInfo item = d.dragInfo; in completeDrop() 140 public void onAccessibilityDrop(View view, ItemInfo item) { in onAccessibilityDrop()
|
D | Workspace.java | 329 public int[] estimateItemSize(ItemInfo itemInfo) { in estimateItemSize() 1463 if (!(dragObject instanceof ItemInfo)) { in beginDragShared() 1469 beginDragShared(child, source, (ItemInfo) dragObject, in beginDragShared() 1473 public DragView beginDragShared(View child, DragSource source, ItemInfo dragObject, in beginDragShared() 1620 boolean willCreateUserFolder(ItemInfo info, CellLayout target, int[] targetCell, in willCreateUserFolder() 1627 boolean willCreateUserFolder(ItemInfo info, View dropOverView, boolean considerTimeout) { in willCreateUserFolder() 1653 boolean willAddToExistingUserFolder(ItemInfo dragInfo, CellLayout target, int[] targetCell, in willAddToExistingUserFolder() 1660 boolean willAddToExistingUserFolder(ItemInfo dragInfo, View dropOverView) { in willAddToExistingUserFolder() 1816 ItemInfo item = d.dragInfo; in onDrop() 1861 final ItemInfo info = (ItemInfo) cell.getTag(); in onDrop() [all …]
|
D | ItemInfo.java | 32 public class ItemInfo { class 113 public ItemInfo() { in ItemInfo() method in ItemInfo 117 ItemInfo(ItemInfo info) { in ItemInfo() method in ItemInfo 121 public void copyFrom(ItemInfo info) { in copyFrom()
|
D | SecondaryDropTarget.java | 109 protected boolean supportsDrop(ItemInfo info) { in supportsDrop() 114 public boolean supportsAccessibilityDrop(ItemInfo info, View view) { in supportsAccessibilityDrop() 151 private ComponentName getUninstallTarget(ItemInfo item) { in getUninstallTarget() 191 private View getViewUnderDrag(ItemInfo info) { in getViewUnderDrag() 223 protected ComponentName performDropAction(View view, ItemInfo info) { in performDropAction() 254 public void onAccessibilityDrop(View view, ItemInfo item) { in onAccessibilityDrop() 282 public void fillInLogContainerData(View v, ItemInfo info, Target target, in fillInLogContainerData()
|
D | WorkspaceLayoutManager.java | 39 default void addInScreenFromBind(View child, ItemInfo info) { in addInScreenFromBind() 54 default void addInScreen(View child, ItemInfo info) { in addInScreen() 118 ItemInfo info = (ItemInfo) child.getTag(); in addInScreen()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | PopupContainerWithArrow.java | 52 import com.android.launcher3.ItemInfo; 208 ItemInfo itemInfo = (ItemInfo) icon.getTag(); in showForIcon() 242 BubbleTextView icon, ItemInfo item, SystemShortcutFactory factory) { in populateAndShow() 305 ItemInfo originalItemInfo = (ItemInfo) originalIcon.getTag(); in populateAndShow() 384 ItemInfo itemInfo = (ItemInfo) mOriginalIcon.getTag(); in onWidgetsBound() 434 (ItemInfo) mOriginalIcon.getTag())); in initializeSystemShortcut() 497 ItemInfo itemInfo = (ItemInfo) mOriginalIcon.getTag(); 518 ItemInfo originalInfo = (ItemInfo) mOriginalIcon.getTag(); 559 public void fillInLogContainerData(View v, ItemInfo info, Target target, Target targetParent) {
|
D | SystemShortcut.java | 18 import com.android.launcher3.ItemInfo; 43 extends ItemInfo { 127 public abstract View.OnClickListener getOnClickListener(T activity, ItemInfo itemInfo); in getOnClickListener() 137 final ItemInfo itemInfo) { in getOnClickListener() 164 BaseDraggingActivity activity, ItemInfo itemInfo) { in getOnClickListener() 183 BaseDraggingActivity activity, ItemInfo itemInfo) { 199 BaseDraggingActivity activity, ItemInfo itemInfo) { 215 public View.OnClickListener getOnClickListener(Launcher activity, ItemInfo itemInfo) {
|
D | PopupDataProvider.java | 23 import com.android.launcher3.ItemInfo; 163 public int getShortcutCountForItem(ItemInfo info) { in getShortcutCountForItem() 176 public @Nullable DotInfo getDotInfoForItem(@NonNull ItemInfo info) { in getDotInfoForItem() 192 public @NonNull List<NotificationKeyData> getNotificationKeysForItem(ItemInfo info) { in getNotificationKeysForItem() 248 @NonNull ItemInfo info, @NonNull List<NotificationKeyData> notifications) { in getNotificationsForItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 28 import com.android.launcher3.ItemInfo; 73 public ItemInfo info; 116 if (!(host.getTag() instanceof ItemInfo)) return; in addSupportedActions() 117 ItemInfo item = (ItemInfo) host.getTag(); in addSupportedActions() 150 private boolean itemSupportsAccessibleDrag(ItemInfo item) { in itemSupportsAccessibleDrag() 161 if ((host.getTag() instanceof ItemInfo) in performAccessibilityAction() 162 && performAction(host, (ItemInfo) host.getTag(), action)) { in performAccessibilityAction() 168 public boolean performAction(final View host, final ItemInfo item, int action) { in performAction() 191 ArrayList<ItemInfo> itemList = new ArrayList<>(); in performAction() 223 ArrayList<ItemInfo> itemList = new ArrayList<>(); in performAction() [all …]
|
D | WorkspaceAccessibilityHelper.java | 27 import com.android.launcher3.ItemInfo; 107 ItemInfo info = (ItemInfo) child.getTag(); in intersectsValidDropTarget() 127 ItemInfo info = (ItemInfo) child.getTag(); in getConfirmationForIconDrop() 172 ItemInfo info = (ItemInfo) overChild.getTag(); in getDescriptionForDropOver()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DirectoryItemAnimator.java | 81 ItemInfo info = (ItemInfo) super.recordPreLayoutInformation(state, in recordPreLayoutInformation() 91 ItemInfo info = (ItemInfo) super.recordPostLayoutInformation(state, in recordPostLayoutInformation() 99 return new ItemInfo(); in obtainHolderInfo() 107 class ItemInfo extends DefaultItemAnimator.ItemHolderInfo { class in DirectoryItemAnimator
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | ItemClickHandler.java | 46 import com.android.launcher3.ItemInfo; 158 UserHandle user = v.getTag() instanceof ItemInfo in onClickPendingAppItem() 159 ? ((ItemInfo) v.getTag()).user : Process.myUserHandle(); in onClickPendingAppItem() 172 ItemInfo item = (ItemInfo) v.getTag(); in startMarketIntentForPackage() 242 private static void startAppShortcutOrInfoActivity(View v, ItemInfo item, Launcher launcher, in startAppShortcutOrInfoActivity()
|
D | ItemLongClickListener.java | 32 import com.android.launcher3.ItemInfo; 56 if (!(v.getTag() instanceof ItemInfo)) return false; in onWorkspaceItemLongClick() 59 beginDrag(v, launcher, (ItemInfo) v.getTag(), new DragOptions()); in onWorkspaceItemLongClick() 63 public static void beginDrag(View v, Launcher launcher, ItemInfo info, in beginDrag()
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | UserEventDispatcher.java | 44 import com.android.launcher3.ItemInfo; 106 if (v == null || !(v.getTag() instanceof ItemInfo) || provider == null) { in fillInLogContainerData() 109 final ItemInfo itemInfo = (ItemInfo) v.getTag(); in fillInLogContainerData() 118 @NonNull ItemInfo itemInfo, @NonNull Target target, @NonNull Target targetParent) { } in onFillInLogContainerData() 368 if (icon == null || !(icon.getTag() instanceof ItemInfo || provider == null)) { in logDeepShortcutsOpen() 371 ItemInfo info = (ItemInfo) icon.getTag(); in logDeepShortcutsOpen()
|
D | DumpTargetWrapper.java | 24 import com.android.launcher3.ItemInfo; 54 public DumpTargetWrapper(ItemInfo info) { in DumpTargetWrapper() 78 public DumpTarget newItemTarget(ItemInfo info) { in newItemTarget() 145 public DumpTarget writeToDumpTarget(ItemInfo info) { in writeToDumpTarget()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsStore.java | 26 import com.android.launcher3.ItemInfo; 128 if (child.getTag() instanceof ItemInfo) { in updateNotificationDots() 129 ItemInfo info = (ItemInfo) child.getTag(); in updateNotificationDots()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | ActivityContext.java | 24 import com.android.launcher3.ItemInfo; 38 default DotInfo getDotInfoForItem(ItemInfo info) { in getDotInfoForItem() 47 default void invalidateParent(ItemInfo info) { } in invalidateParent()
|