/packages/apps/Launcher3/quickstep/src/com/android/quickstep/logging/ |
D | StatsLogCompatManager.java | 46 import com.android.launcher3.model.data.ItemInfo; 121 ArrayList<ItemInfo> workspaceItems = (ArrayList) dataModel.workspaceItems.clone(); in execute() 123 for (ItemInfo info : workspaceItems) { in execute() 124 LauncherAtom.ItemInfo atomInfo = info.buildProto(null); in execute() 131 for (ItemInfo info : folderContents) { in execute() 132 LauncherAtom.ItemInfo atomInfo = info.buildProto(fInfo); in execute() 137 for (ItemInfo info : appWidgets) { in execute() 138 LauncherAtom.ItemInfo atomInfo = info.buildProto(null); in execute() 144 private static void writeSnapshot(LauncherAtom.ItemInfo info, InstanceId instanceId) { in writeSnapshot() 177 private static final ItemInfo DEFAULT_ITEM_INFO = new ItemInfo(); [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTask.java | 33 import com.android.launcher3.model.data.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 | 41 import com.android.launcher3.model.data.ItemInfo; 85 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() 103 public void addOrMoveItemInDatabase(ItemInfo item, in addOrMoveItemInDatabase() 105 if (item.id == ItemInfo.NO_ID) { in addOrMoveItemInDatabase() 114 private void checkItemInfoLocked(int itemId, ItemInfo item, StackTraceElement[] stackTrace) { in checkItemInfoLocked() 115 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 | BgDataModel.java | 35 import com.android.launcher3.model.data.ItemInfo; 72 public final IntSparseArrayMap<ItemInfo> itemsIdMap = new IntSparseArrayMap<>(); 78 public final ArrayList<ItemInfo> workspaceItems = new ArrayList<>(); 139 for (ItemInfo item: itemsIdMap) { in collectWorkspaceScreens() 179 public synchronized void removeItem(Context context, ItemInfo... items) { in removeItem() 183 public synchronized void removeItem(Context context, Iterable<? extends ItemInfo> items) { in removeItem() 184 for (ItemInfo item : items) { in removeItem() 189 for (ItemInfo info : itemsIdMap) { in removeItem() 225 public synchronized void addItem(Context context, ItemInfo item, boolean newItem) { in addItem() 365 void bindItems(List<ItemInfo> shortcuts, boolean forceAnimateIcons); in bindItems() [all …]
|
D | BaseLoaderResults.java | 31 import com.android.launcher3.model.data.ItemInfo; 76 ArrayList<ItemInfo> workspaceItems = new ArrayList<>(); in bindWorkspace() 135 private final ArrayList<ItemInfo> mWorkspaceItems; 145 ArrayList<ItemInfo> workspaceItems, in WorkspaceBinder() 175 ArrayList<ItemInfo> currentWorkspaceItems = new ArrayList<>(); in bind() 176 ArrayList<ItemInfo> otherWorkspaceItems = new ArrayList<>(); in bind() 234 final ArrayList<ItemInfo> workspaceItems, final Executor executor) { in bindWorkspaceItems() 250 final ItemInfo widget = appWidgets.get(i); in bindAppWidgets()
|
D | FirstScreenBroadcast.java | 28 import com.android.launcher3.model.data.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()
|
D | ModelUtils.java | 21 import com.android.launcher3.model.data.ItemInfo; 40 public static <T extends ItemInfo> void filterCurrentWorkspaceItems(int currentScreenId, in filterCurrentWorkspaceItems() 47 ItemInfo i = iter.next(); in filterCurrentWorkspaceItems() 84 ArrayList<ItemInfo> workspaceItems) { in sortWorkspaceItemsSpatially() 119 public static IntArray getMissingHotseatRanks(List<ItemInfo> items, int len) { in getMissingHotseatRanks()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ShortcutUtil.java | 21 import com.android.launcher3.model.data.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 | 24 import com.android.launcher3.model.data.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.model.data.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/model/data/ |
D | ItemInfo.java | 63 public class ItemInfo { class 151 public ItemInfo() { in ItemInfo() method in ItemInfo 155 protected ItemInfo(ItemInfo info) { in ItemInfo() method in ItemInfo 159 public void copyFrom(ItemInfo info) { in copyFrom() 262 public void setItemBuilder(LauncherAtom.ItemInfo.Builder builder) { in setItemBuilder() 268 public LauncherAtom.ItemInfo buildProto() { in buildProto() 275 public LauncherAtom.ItemInfo buildProto(FolderInfo fInfo) { in buildProto() 276 LauncherAtom.ItemInfo.Builder itemBuilder = getDefaultItemInfoBuilder(); in buildProto() 341 LauncherAtom.ItemInfo.Builder getDefaultItemInfoBuilder() { in getDefaultItemInfoBuilder() 342 LauncherAtom.ItemInfo.Builder itemBuilder = LauncherAtom.ItemInfo.newBuilder(); in getDefaultItemInfoBuilder() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeleteDropTarget.java | 35 import com.android.launcher3.model.data.ItemInfo; 77 public boolean supportsAccessibilityDrop(ItemInfo info, View view) { in supportsAccessibilityDrop() 93 protected boolean supportsDrop(ItemInfo info) { in supportsDrop() 100 private void setTextBasedOnDragSource(ItemInfo item) { in setTextBasedOnDragSource() 110 private boolean canRemove(ItemInfo item) { in canRemove() 111 return item.id != ItemInfo.NO_ID; in canRemove() 117 private void setControlTypeBasedOnDragSource(ItemInfo item) { in setControlTypeBasedOnDragSource() 118 mControlType = item.id != ItemInfo.NO_ID ? ControlType.REMOVE_TARGET in setControlTypeBasedOnDragSource() 136 ItemInfo item = d.dragInfo; in completeDrop() 155 public void onAccessibilityDrop(View view, ItemInfo item) { in onAccessibilityDrop()
|
D | SecondaryDropTarget.java | 43 import com.android.launcher3.model.data.ItemInfo; 152 protected boolean supportsDrop(ItemInfo info) { in supportsDrop() 157 public boolean supportsAccessibilityDrop(ItemInfo info, View view) { in supportsAccessibilityDrop() 198 private ComponentName getUninstallTarget(ItemInfo item) { in getUninstallTarget() 245 private View getViewUnderDrag(ItemInfo info) { in getViewUnderDrag() 277 protected ComponentName performDropAction(View view, ItemInfo info) { in performDropAction() 313 public void onAccessibilityDrop(View view, ItemInfo item) { in onAccessibilityDrop() 341 public void fillInLogContainerData(ItemInfo childInfo, Target child, in fillInLogContainerData()
|
D | Workspace.java | 91 import com.android.launcher3.model.data.ItemInfo; 329 public int[] estimateItemSize(ItemInfo itemInfo) { in estimateItemSize() 1437 if (!(dragObject instanceof ItemInfo)) { in beginDragShared() 1443 beginDragShared(child, null, source, (ItemInfo) dragObject, in beginDragShared() 1452 ItemInfo dragObject, DragPreviewProvider previewProvider, DragOptions dragOptions) { in beginDragShared() 1591 boolean willCreateUserFolder(ItemInfo info, CellLayout target, int[] targetCell, in willCreateUserFolder() 1598 boolean willCreateUserFolder(ItemInfo info, View dropOverView, boolean considerTimeout) { in willCreateUserFolder() 1626 boolean willAddToExistingUserFolder(ItemInfo dragInfo, CellLayout target, int[] targetCell, in willAddToExistingUserFolder() 1633 boolean willAddToExistingUserFolder(ItemInfo dragInfo, View dropOverView) { in willAddToExistingUserFolder() 1790 ItemInfo item = d.dragInfo; in onDrop() [all …]
|
D | WorkspaceLayoutManager.java | 24 import com.android.launcher3.model.data.ItemInfo; 40 default void addInScreenFromBind(View child, ItemInfo info) { in addInScreenFromBind() 56 default void addInScreen(View child, ItemInfo info) { in addInScreen() 121 ItemInfo info = (ItemInfo) child.getTag(); in addInScreen()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/ |
D | HotseatEduController.java | 33 import com.android.launcher3.model.data.ItemInfo; 61 private ArrayList<ItemInfo> mNewItems = new ArrayList<>(); 103 ItemInfo info = (ItemInfo) view.getTag(); in migrateToFolder() 114 ItemInfo firstItem = putIntoFolder.get(0); in migrateToFolder() 121 ItemInfo item = folderInfo.contents.get(i); in migrateToFolder() 202 ItemInfo tag = (ItemInfo) child.getTag(); in migrateHotseatWhole() 215 ArrayList<ItemInfo> animated = new ArrayList<>(); in moveHotseatItems() 216 ArrayList<ItemInfo> nonAnimated = new ArrayList<>(); in moveHotseatItems() 218 for (ItemInfo info : mNewItems) { in moveHotseatItems() 255 return v != null && v.getTag() != null && ((ItemInfo) v.getTag()).container in showEdu()
|
D | HotseatPredictionModel.java | 34 import com.android.launcher3.model.data.ItemInfo; 66 ArrayList<ItemInfo> workspaceItems = new ArrayList<>(dataModel.workspaceItems); in createBundle() 68 for (ItemInfo item : workspaceItems) { in createBundle() 74 for (ItemInfo itemInfo : dataModel.cachedPredictedItems) { in createBundle() 89 public AppTarget getAppTargetFromInfo(ItemInfo info) { in getAppTargetFromInfo() 120 public AppTargetEvent wrapAppTargetWithLocation(AppTarget target, int action, ItemInfo info) { in wrapAppTargetWithLocation() 131 public static boolean isTrackedForPrediction(ItemInfo info) { in isTrackedForPrediction()
|
D | HotseatPredictionController.java | 63 import com.android.launcher3.model.data.ItemInfo; 404 public void pinPrediction(ItemInfo info) { in pinPrediction() 468 ItemInfo draggedInfo) { in removePredictedApps() 520 public void folderCreatedFromWorkspaceItem(ItemInfo itemInfo, FolderInfo folderInfo) { in folderCreatedFromWorkspaceItem() 539 public void folderConvertedToWorkspaceItem(ItemInfo itemInfo, FolderInfo folderInfo) { in folderConvertedToWorkspaceItem() 558 ItemInfo dragInfo = mDragObject.dragInfo; in onDragEnd() 581 ItemInfo itemInfo) { in getShortcut() 628 public void fillInLogContainerData(ItemInfo childInfo, LauncherLogProto.Target child, in fillInLogContainerData() 636 public void logLaunchedAppRankingInfo(@NonNull ItemInfo itemInfo, InstanceId instanceId) { in logLaunchedAppRankingInfo() 662 ItemInfo info = (ItemInfo) icon.getTag(); in logLaunchedAppRankingInfo() [all …]
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | CacheDataUpdatedTaskTest.java | 25 import com.android.launcher3.model.data.ItemInfo; 59 CachingLogic<ItemInfo> dummyLogic = new CachingLogic<ItemInfo>() { in setup() 61 public ComponentName getComponent(ItemInfo info) { in setup() 66 public UserHandle getUser(ItemInfo info) { in setup() 71 public CharSequence getLabel(ItemInfo info) { in setup() 77 public BitmapInfo loadIcon(Context context, ItemInfo info) { in setup() 83 for (ItemInfo info : mModelHelper.getBgDataModel().itemsIdMap) { in setup() 137 for (ItemInfo info : mModelHelper.getBgDataModel().itemsIdMap) { in verifyUpdate()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 39 import com.android.launcher3.model.data.ItemInfo; 76 public ItemInfo info; 121 if (!(host.getTag() instanceof ItemInfo)) return; in addSupportedActions() 122 ItemInfo item = (ItemInfo) host.getTag(); in addSupportedActions() 164 private boolean itemSupportsLongClick(View host, ItemInfo info) { in itemSupportsLongClick() 169 private boolean itemSupportsAccessibleDrag(ItemInfo item) { in itemSupportsAccessibleDrag() 180 if ((host.getTag() instanceof ItemInfo) in performAccessibilityAction() 181 && performAction(host, (ItemInfo) host.getTag(), action)) { in performAccessibilityAction() 187 public boolean performAction(final View host, final ItemInfo item, int action) { in performAction() 222 ArrayList<ItemInfo> itemList = new ArrayList<>(); in performAction() [all …]
|
D | WorkspaceAccessibilityHelper.java | 33 import com.android.launcher3.model.data.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/Launcher3/src/com/android/launcher3/popup/ |
D | SystemShortcut.java | 22 import com.android.launcher3.model.data.ItemInfo; 40 public abstract class SystemShortcut<T extends BaseDraggingActivity> extends ItemInfo 48 protected final ItemInfo mItemInfo; 50 public SystemShortcut(int iconResId, int labelResId, T target, ItemInfo itemInfo) { in SystemShortcut() 94 @Nullable SystemShortcut<T> getShortcut(T activity, ItemInfo itemInfo); in getShortcut() 109 public Widgets(Launcher target, ItemInfo itemInfo) { in Widgets() 131 public AppInfo(BaseDraggingActivity target, ItemInfo itemInfo) { in AppInfo() 168 public Install(BaseDraggingActivity target, ItemInfo itemInfo) { in Install()
|
D | PopupContainerWithArrow.java | 63 import com.android.launcher3.model.data.ItemInfo; 193 public static boolean canShow(View icon, ItemInfo item) { in canShow() 208 ItemInfo item = (ItemInfo) icon.getTag(); in showForIcon() 320 ItemInfo originalItemInfo = (ItemInfo) originalIcon.getTag(); in populateAndShow() 502 public void fillInLogContainerData(ItemInfo childInfo, Target child, 562 ItemInfo itemInfo = (ItemInfo) mOriginalIcon.getTag(); 604 ItemInfo itemInfo = (ItemInfo) mOriginalIcon.getTag(); 617 ItemInfo originalInfo = (ItemInfo) mOriginalIcon.getTag();
|
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/ |
D | SecondaryDisplayLauncher.java | 39 import com.android.launcher3.model.data.ItemInfo; 196 public void bindItems(List<ItemInfo> shortcuts, boolean forceAnimateIcons) { } in bindItems() 218 public void bindAppsAdded(IntArray newScreens, ArrayList<ItemInfo> addNotAnimated, in bindAppsAdded() 219 ArrayList<ItemInfo> addAnimated) { } in bindAppsAdded() 233 public void bindRestoreItemsChange(HashSet<ItemInfo> updates) { } in bindRestoreItemsChange() 318 if (tag instanceof ItemInfo) { in onIconClicked() 319 ItemInfo item = (ItemInfo) tag; in onIconClicked()
|
/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
|