Lines Matching refs:info
227 public void applyFromWorkspaceItem(WorkspaceItemInfo info) { in applyFromWorkspaceItem() argument
228 applyFromWorkspaceItem(info, false); in applyFromWorkspaceItem()
243 public void applyFromWorkspaceItem(WorkspaceItemInfo info, boolean promiseStateChanged) { in applyFromWorkspaceItem() argument
244 applyIconAndLabel(info); in applyFromWorkspaceItem()
245 setTag(info); in applyFromWorkspaceItem()
246 if (promiseStateChanged || (info.hasPromiseIconUi())) { in applyFromWorkspaceItem()
250 applyDotState(info, false /* animate */); in applyFromWorkspaceItem()
253 public void applyFromApplicationInfo(AppInfo info) { in applyFromApplicationInfo() argument
254 applyIconAndLabel(info); in applyFromApplicationInfo()
257 super.setTag(info); in applyFromApplicationInfo()
262 if (info instanceof PromiseAppInfo) { in applyFromApplicationInfo()
263 PromiseAppInfo promiseAppInfo = (PromiseAppInfo) info; in applyFromApplicationInfo()
266 applyDotState(info, false /* animate */); in applyFromApplicationInfo()
269 public void applyFromPackageItemInfo(PackageItemInfo info) { in applyFromPackageItemInfo() argument
270 applyIconAndLabel(info); in applyFromPackageItemInfo()
272 super.setTag(info); in applyFromPackageItemInfo()
278 private void applyIconAndLabel(ItemInfoWithIcon info) { in applyIconAndLabel() argument
280 .newIcon(getContext(), info); in applyIconAndLabel()
281 mDotParams.color = IconPalette.getMutedColor(info.iconColor, 0.54f); in applyIconAndLabel()
284 setText(info.title); in applyIconAndLabel()
285 if (info.contentDescription != null) { in applyIconAndLabel()
286 setContentDescription(info.isDisabled() in applyIconAndLabel()
287 ? getContext().getString(R.string.disabled_app_label, info.contentDescription) in applyIconAndLabel()
288 : info.contentDescription); in applyIconAndLabel()
480 ItemInfo info = tag instanceof ItemInfo ? (ItemInfo) tag : null; in shouldTextBeVisible() local
481 return info == null || info.container != LauncherSettings.Favorites.CONTAINER_HOTSEAT; in shouldTextBeVisible()
519 WorkspaceItemInfo info = (WorkspaceItemInfo) getTag(); in applyPromiseState() local
520 final boolean isPromise = info.hasPromiseIconUi(); in applyPromiseState()
522 ((info.hasStatusFlag(WorkspaceItemInfo.FLAG_INSTALL_SESSION_ACTIVE) ? in applyPromiseState()
523 info.getInstallProgress() : 0)) : 100; in applyPromiseState()
534 ItemInfoWithIcon info = (ItemInfoWithIcon) getTag(); in applyProgressLevel() local
536 setContentDescription(info.contentDescription != null in applyProgressLevel()
537 ? info.contentDescription : ""); in applyProgressLevel()
540 .getString(R.string.app_downloading_title, info.title, in applyProgressLevel()
544 .getString(R.string.app_waiting_download_title, info.title)); in applyProgressLevel()
553 .newPendingIcon(getContext(), info); in applyProgressLevel()
639 public void reapplyItemInfo(ItemInfoWithIcon info) { in reapplyItemInfo() argument
640 if (getTag() == info) { in reapplyItemInfo()
645 info.iconBitmap.prepareToDraw(); in reapplyItemInfo()
647 if (info instanceof AppInfo) { in reapplyItemInfo()
648 applyFromApplicationInfo((AppInfo) info); in reapplyItemInfo()
649 } else if (info instanceof WorkspaceItemInfo) { in reapplyItemInfo()
650 applyFromWorkspaceItem((WorkspaceItemInfo) info); in reapplyItemInfo()
651 mActivity.invalidateParent(info); in reapplyItemInfo()
652 } else if (info instanceof PackageItemInfo) { in reapplyItemInfo()
653 applyFromPackageItemInfo((PackageItemInfo) info); in reapplyItemInfo()
669 ItemInfoWithIcon info = (ItemInfoWithIcon) getTag(); in verifyHighRes() local
670 if (info.usingLowResIcon()) { in verifyHighRes()
672 .updateIconInBackground(BubbleTextView.this, info); in verifyHighRes()