/packages/apps/Settings/src/com/android/settings/ |
D | ActivityPicker.java | 154 Drawable icon = null; in getItems() local 161 icon = res.getDrawable(res.getIdentifier( in getItems() 167 items.add(new PickAdapter.Item(this, label, icon)); in getItems() 217 Drawable icon; field in ActivityPicker.PickAdapter.Item 225 Item(Context context, CharSequence label, Drawable icon) { in Item() argument 227 this.icon = getResizer(context).createIconThumbnail(icon); in Item() 240 icon = getResizer(context).createIconThumbnail(resolveInfo.loadIcon(pm)); in Item() 314 textView.setCompoundDrawablesWithIntrinsicBounds(item.icon, null, null, null); in getView() 353 public Drawable createIconThumbnail(Drawable icon) { in createIconThumbnail() argument 357 if (icon == null) { in createIconThumbnail() [all …]
|
D | AppHeader.java | 40 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, in createAppHeader() argument 42 createAppHeader(fragment, icon, label, pkgName, uid, 0, null); in createAppHeader() 45 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, in createAppHeader() argument 47 createAppHeader(fragment, icon, label, pkgName, uid, 0, externalSettings); in createAppHeader() 50 public static void createAppHeader(Activity activity, Drawable icon, CharSequence label, in createAppHeader() argument 54 setupHeaderView(activity, icon, label, pkgName, uid, false, 0, bar, null); in createAppHeader() 58 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, in createAppHeader() argument 60 createAppHeader(fragment, icon, label, pkgName, uid, tintColorRes, null); in createAppHeader() 63 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, in createAppHeader() argument 67 setupHeaderView(fragment.getActivity(), icon, label, pkgName, uid, includeAppInfo(fragment), in createAppHeader() local [all …]
|
D | AppWidgetPickActivity.java | 98 Drawable icon = null; in createItem() local 100 if (info.icon != 0) { in createItem() 123 icon = packageResources.getDrawableForDensity(info.icon, iconDensity); in createItem() 125 Log.w(TAG, "Can't load icon drawable 0x" + Integer.toHexString(info.icon) in createItem() 128 if (icon == null) { in createItem() 129 Log.w(TAG, "Can't load icon drawable 0x" + Integer.toHexString(info.icon) in createItem() 134 PickAdapter.Item item = new PickAdapter.Item(context, label, icon); in createItem()
|
D | IconPreferenceScreen.java | 50 ImageView imageView = (ImageView) view.findViewById(R.id.icon); in onBindViewHolder() 62 public void setIcon(Drawable icon) { in setIcon() argument 63 if ((icon == null && mIcon != null) || (icon != null && !icon.equals(mIcon))) { in setIcon() 64 mIcon = icon; in setIcon()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageUtil.java | 61 public static View initSnippet(View snippetView, CharSequence label, Drawable icon) { in initSnippet() argument 62 ((ImageView)snippetView.findViewById(R.id.app_icon)).setImageDrawable(icon); in initSnippet() 96 Drawable icon = appInfo.loadIcon(pm); in initSnippetForInstalledApp() local 98 icon = pContext.getPackageManager().getUserBadgedIcon(icon, user); in initSnippetForInstalledApp() 103 icon); in initSnippetForInstalledApp() 119 ((ImageView)appSnippet.findViewById(R.id.app_icon)).setImageDrawable(as.icon); in initSnippetForNewApp() 139 Drawable icon; field in PackageUtil.AppSnippet 140 public AppSnippet(CharSequence label, Drawable icon) { in AppSnippet() argument 142 this.icon = icon; in AppSnippet() 173 Drawable icon = null; in getAppSnippet() local [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Utilities.java | 70 static Bitmap createIconBitmap(Bitmap icon, Context context) { in createIconBitmap() argument 73 int sourceWidth = icon.getWidth(); in createIconBitmap() 74 int sourceHeight = icon.getHeight(); in createIconBitmap() 77 return Bitmap.createBitmap(icon, in createIconBitmap() 83 return icon; in createIconBitmap() 87 return createIconBitmap(new BitmapDrawable(resources, icon), context); in createIconBitmap() 94 static Bitmap createIconBitmap(Drawable icon, Context context) { in createIconBitmap() argument 103 if (icon instanceof PaintDrawable) { in createIconBitmap() 104 PaintDrawable painter = (PaintDrawable) icon; in createIconBitmap() 107 } else if (icon instanceof BitmapDrawable) { in createIconBitmap() [all …]
|
D | FolderIcon.java | 133 FolderIcon icon = (FolderIcon) LayoutInflater.from(launcher).inflate(resId, group, false); in fromXml() local 135 icon.mFolderName = (BubbleTextView) icon.findViewById(R.id.folder_icon_name); in fromXml() 136 icon.mFolderName.setText(folderInfo.title); in fromXml() 137 icon.mPreviewBackground = (ImageView) icon.findViewById(R.id.preview_background); in fromXml() 139 icon.setTag(folderInfo); in fromXml() 140 icon.setOnClickListener(launcher); in fromXml() 141 icon.mInfo = folderInfo; in fromXml() 142 icon.mLauncher = launcher; in fromXml() 143 icon.setContentDescription(String.format(launcher.getString(R.string.folder_name_format), in fromXml() 147 folder.setFolderIcon(icon); in fromXml() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryEntry.java | 119 public Drawable icon; field in BatteryEntry 126 Drawable icon; field in BatteryEntry.UidToDetail 168 icon = Utils.getUserIcon(context, um, info); in BatteryEntry() 171 icon = null; in BatteryEntry() 190 icon = context.getDrawable(iconId); in BatteryEntry() 198 return icon; in getIcon() 214 icon = utd.icon; in getQuickNameIconForUid() 218 icon = pm.getDefaultActivityIcon(); in getQuickNameIconForUid() 228 icon = context.getDrawable(iconId); in getQuickNameIconForUid() 270 if (ai.icon != 0) { in loadNameAndIcon() [all …]
|
D | PowerGaugePreference.java | 41 public PowerGaugePreference(Context context, Drawable icon, CharSequence contentDescription, in PowerGaugePreference() argument 44 setIcon(icon != null ? icon : new ColorDrawable(0)); in PowerGaugePreference() 68 ImageView icon = (ImageView) view.findViewById(android.R.id.icon); in onBindViewHolder() local 69 icon.setLayoutParams(new LinearLayout.LayoutParams(mIconSize, mIconSize)); in onBindViewHolder()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | BaseDialogFragment.java | 103 int iconResourceId, Uri iconResourceUri, final ImageView icon, final TextView title, in performEntryTransition() argument 159 if (icon != null) { in performEntryTransition() 164 if (icon.getVisibility() != View.VISIBLE) { in performEntryTransition() 165 icon.setImageDrawable(src.getBitmap()); in performEntryTransition() 166 int intrinsicWidth = icon.getDrawable().getIntrinsicWidth(); in performEntryTransition() 167 LayoutParams lp = icon.getLayoutParams(); in performEntryTransition() 168 lp.height = lp.width * icon.getDrawable().getIntrinsicHeight() in performEntryTransition() 170 icon.setVisibility(View.VISIBLE); in performEntryTransition() 172 icon.setAlpha(1f); in performEntryTransition() 180 icon.setAlpha(0f); in performEntryTransition() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | IconCache.java | 81 public Bitmap icon; field in IconCache.CacheEntry 377 if (entry == null || entry.isLowResIcon || entry.icon == null) { in updateCacheAndGetContentValues() 383 entry.icon = Utilities.createBadgedIconBitmap( in updateCacheAndGetContentValues() 390 return newContentValues(entry.icon, entry.title.toString(), mActivityBgColor); in updateCacheAndGetContentValues() 427 return entry.icon == null ? getDefaultIcon(user) : entry.icon; in getNonNullIcon() 450 if (entry.icon != null && !isDefaultIcon(entry.icon, application.user)) { in updateTitleAndIcon() 452 application.iconBitmap = entry.icon; in updateTitleAndIcon() 471 return entry.icon; in getIcon() 503 shortcutInfo.usingFallbackIcon = isDefaultIcon(entry.icon, user); in getTitleAndIcon() 527 public boolean isDefaultIcon(Bitmap icon, UserHandleCompat user) { in isDefaultIcon() argument [all …]
|
D | FolderIcon.java | 155 FolderIcon icon = (FolderIcon) LayoutInflater.from(launcher).inflate(resId, group, false); in fromXml() local 156 icon.setClipToPadding(false); in fromXml() 157 icon.mFolderName = (BubbleTextView) icon.findViewById(R.id.folder_icon_name); in fromXml() 158 icon.mFolderName.setText(folderInfo.title); in fromXml() 159 icon.mFolderName.setCompoundDrawablePadding(0); in fromXml() 160 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) icon.mFolderName.getLayoutParams(); in fromXml() 164 icon.mPreviewBackground = (ImageView) icon.findViewById(R.id.preview_background); in fromXml() 165 lp = (FrameLayout.LayoutParams) icon.mPreviewBackground.getLayoutParams(); in fromXml() 170 icon.setTag(folderInfo); in fromXml() 171 icon.setOnClickListener(launcher); in fromXml() [all …]
|
D | Utilities.java | 194 public static Bitmap createIconBitmap(Bitmap icon, Context context) { in createIconBitmap() argument 196 if (iconBitmapSize == icon.getWidth() && iconBitmapSize == icon.getHeight()) { in createIconBitmap() 197 return icon; in createIconBitmap() 199 return createIconBitmap(new BitmapDrawable(context.getResources(), icon), context); in createIconBitmap() 208 Drawable icon, UserHandleCompat user, Context context) { in createBadgedIconBitmap() argument 210 IconNormalizer.getInstance().getScale(icon) : 1; in createBadgedIconBitmap() 211 Bitmap bitmap = createIconBitmap(icon, context, scale); in createBadgedIconBitmap() 230 public static Bitmap createIconBitmap(Drawable icon, Context context) { in createIconBitmap() argument 231 return createIconBitmap(icon, context, 1.0f /* scale */); in createIconBitmap() 237 public static Bitmap createIconBitmap(Drawable icon, Context context, float scale) { in createIconBitmap() argument [all …]
|
D | WidgetPreviewLoader.java | 413 Drawable icon = mWidgetManager.loadIcon(info, mIconCache); in generateWidgetPreview() local 414 if (icon != null) { in generateWidgetPreview() 415 icon = mutateOnMainThread(icon); in generateWidgetPreview() 418 icon.setBounds(hoffset, yoffset, in generateWidgetPreview() 421 icon.draw(c); in generateWidgetPreview() 446 Drawable icon = mutateOnMainThread(mIconCache.getFullResIcon(info.activityInfo)); in generateShortcutPreview() local 447 icon.setFilterBitmap(true); in generateShortcutPreview() 452 icon.setColorFilter(new ColorMatrixColorFilter(colorMatrix)); in generateShortcutPreview() 453 icon.setAlpha((int) (255 * 0.06f)); in generateShortcutPreview() 460 icon.setBounds(paddingLeft, paddingTop, in generateShortcutPreview() [all …]
|
D | LauncherBackupHelper.java | 595 Bitmap icon = mIconCache.getIcon(intent, myUserHandle); in backupIcons() local 596 if (icon != null && !mIconCache.isDefaultIcon(icon, myUserHandle)) { in backupIcons() 597 writeRowToBackup(key, packIcon(dpi, icon), data); in backupIcons() 637 Bitmap icon = BitmapFactory.decodeByteArray(res.data, 0, res.data.length); in restoreIcon() local 638 if (icon == null) { in restoreIcon() 642 mIconCache.preloadIcon(ComponentName.unflattenFromString(key.name), icon, res.dpi, in restoreIcon() local 725 if (widget.icon.data != null) { in restoreWidget() 726 Bitmap icon = BitmapFactory in restoreWidget() local 727 .decodeByteArray(widget.icon.data, 0, widget.icon.data.length); in restoreWidget() 728 if (icon == null) { in restoreWidget() [all …]
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/ |
D | PermissionGroups.java | 145 Drawable icon = loadItemInfoIcon(groupInfo); in loadInBackground() local 149 groupInfo.packageName, label, icon); in loadInBackground() 193 Drawable icon = loadItemInfoIcon(permissionInfo); in loadInBackground() local 197 permissionInfo.packageName, label, icon); in loadInBackground() 215 Drawable icon = null; in loadItemInfoIcon() local 216 if (itemInfo.icon > 0) { in loadItemInfoIcon() 217 icon = Utils.loadDrawable(getContext().getPackageManager(), in loadItemInfoIcon() 218 itemInfo.packageName, itemInfo.icon); in loadItemInfoIcon() 220 if (icon == null) { in loadItemInfoIcon() 221 icon = getContext().getDrawable(R.drawable.ic_perm_device_info); in loadItemInfoIcon() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | DefaultSuggestionView.java | 187 NowOrLater<Drawable> icon = source.getIcon(sourceIconId); in set() local 188 if (icon.haveNow()) { in set() 190 handleNewDrawable(icon.getNow(), uniqueIconId, source); in set() 195 icon.getLater(new Consumer<Drawable>(){ in set() 197 public boolean consume(Drawable icon) { in set() 204 handleNewDrawable(icon, uniqueIconId, source); in set() 217 private void handleNewDrawable(Drawable icon, String id, Source source) { in handleNewDrawable() argument 218 if (icon == null) { in handleNewDrawable() 223 icon = getFallbackIcon(source); in handleNewDrawable() 225 setDrawable(icon, id); in handleNewDrawable() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsGridAdapter.java | 519 BubbleTextView icon = (BubbleTextView) mLayoutInflater.inflate( in onCreateViewHolder() local 521 icon.setOnTouchListener(mTouchListener); in onCreateViewHolder() 522 icon.setOnClickListener(mIconClickListener); in onCreateViewHolder() 523 icon.setOnLongClickListener(mIconLongClickListener); in onCreateViewHolder() 524 icon.setLongPressTimeout(ViewConfiguration.get(parent.getContext()) in onCreateViewHolder() 526 icon.setFocusable(true); in onCreateViewHolder() 527 return new ViewHolder(icon); in onCreateViewHolder() 530 BubbleTextView icon = (BubbleTextView) mLayoutInflater.inflate( in onCreateViewHolder() local 532 icon.setOnTouchListener(mTouchListener); in onCreateViewHolder() 533 icon.setOnClickListener(mIconClickListener); in onCreateViewHolder() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | CursorIconInfo.java | 46 Bitmap icon = null; in loadIcon() local 56 icon = Utilities.createIconBitmap(packageName, resourceName, context); in loadIcon() 58 if (icon == null) { in loadIcon() 60 icon = Utilities.createIconBitmap(c, iconIndex, context); in loadIcon() 64 icon = Utilities.createIconBitmap(c, iconIndex, context); in loadIcon() 65 info.customIcon = icon != null; in loadIcon() 68 return icon; in loadIcon()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | LauncherActivityInfoCompatV16.java | 66 Drawable icon = null; in getIcon() local 71 icon = resources.getDrawableForDensity(iconRes, density); in getIcon() 76 if (icon == null) { in getIcon() 77 icon = mResolveInfo.loadIcon(mPm); in getIcon() 79 if (icon == null) { in getIcon() 81 icon = resources.getDrawableForDensity(android.R.mipmap.sym_def_app_icon, density); in getIcon() 83 return icon; in getIcon()
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | SubRatingsFragment.java | 84 Drawable icon = mRating.getIcon(); in onBind() local 85 ImageView imageView = (ImageView) view.findViewById(R.id.icon); in onBind() 86 if (icon != null) { in onBind() 88 imageView.setImageDrawable(icon); in onBind() 145 Drawable icon = mSubRating.getIcon(); in onBind() local 146 ImageView imageView = (ImageView) view.findViewById(R.id.icon); in onBind() 147 if (icon != null) { in onBind() 149 imageView.setImageDrawable(icon); in onBind()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardIconsSet.java | 116 final Drawable icon = keyboardAttrs.getDrawable(attrId); in loadIcons() local 117 setDefaultBounds(icon); in loadIcons() 119 mIcons[iconId] = icon; in loadIcons() 162 private static void setDefaultBounds(final Drawable icon) { in setDefaultBounds() argument 163 if (icon != null) { in setDefaultBounds() 164 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in setDefaultBounds()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageVolumePreference.java | 61 Drawable icon; in StorageVolumePreference() local 63 icon = context.getDrawable(R.drawable.ic_settings_storage); in StorageVolumePreference() 65 icon = context.getDrawable(R.drawable.ic_sim_sd); in StorageVolumePreference() 84 icon = context.getDrawable(R.drawable.ic_warning_24dp); in StorageVolumePreference() 92 icon.mutate(); in StorageVolumePreference() 93 icon.setTint(mColor); in StorageVolumePreference() 94 setIcon(icon); in StorageVolumePreference()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/ |
D | AllAppPermissionsFragment.java | 104 final Drawable icon = appInfo.loadIcon(pm); in updateUi() local 112 setHeader(icon, label, infoIntent); in updateUi() 190 Drawable icon = null; in getPreference() local 191 if (perm.icon != 0) { in getPreference() 192 icon = perm.loadIcon(pm); in getPreference() 193 } else if (group != null && group.icon != 0) { in getPreference() 194 icon = group.loadIcon(pm); in getPreference() 196 icon = getContext().getDrawable(R.drawable.ic_perm_device_info); in getPreference() 198 pref.setIcon(Utils.applyTint(getContext(), icon, android.R.attr.colorControlNormal)); in getPreference() local
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppPreference.java | 48 Drawable icon = null; in AppPreference() local 58 icon = pkgInfo.applicationInfo.loadIcon(pm); in AppPreference() 64 if (icon == null) { in AppPreference() 65 icon = pm.getDefaultActivityIcon(); in AppPreference() 73 setIcon(icon); in AppPreference()
|