/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 | 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 | NotificationStation.java | 188 public Drawable icon; field in NotificationStation.HistoricalNotificationInfo 211 info.icon = loadIconDrawable(info.pkg, info.user, sbn.getNotification().icon); in loadNotifications() 267 Drawable icon = null; in loadPackageIconDrawable() local 269 icon = mPm.getApplicationIcon(pkg); in loadPackageIconDrawable() 273 return icon; in loadPackageIconDrawable() 320 if (info.icon != null) { in getView() 321 ((ImageView) row.findViewById(android.R.id.icon)).setImageDrawable(info.icon); in getView()
|
D | Settings.java | 585 ImageView icon; field in Settings.HeaderAdapter.HeaderViewHolder 661 holder.icon = (ImageView) view.findViewById(R.id.icon); in getView() 673 holder.icon = (ImageView) view.findViewById(R.id.icon); in getView() 707 ViewGroup.LayoutParams lp = holder.icon.getLayoutParams(); in getView() 711 holder.icon.setLayoutParams(lp); in getView() 712 Drawable icon = mAuthHelper.getDrawableForType(getContext(), accType); in getView() local 713 holder.icon.setImageDrawable(icon); in getView() 715 holder.icon.setImageResource(header.iconRes); in getView()
|
D | IconPreferenceScreen.java | 50 ImageView imageView = (ImageView) view.findViewById(R.id.icon); in onBindView() 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/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 …]
|
D | LauncherModel.java | 2149 Bitmap icon = null; in getShortcutInfo() local 2196 icon = mIconCache.getIcon(componentName, resolveInfo, labelCache); in getShortcutInfo() 2199 if (icon == null) { in getShortcutInfo() 2201 icon = getIconFromCursor(c, iconIndex, context); in getShortcutInfo() 2205 if (icon == null) { in getShortcutInfo() 2206 icon = getFallbackIcon(); in getShortcutInfo() 2209 info.setIcon(icon); in getShortcutInfo() 2262 Bitmap icon = null; in getShortcutInfo() local 2282 icon = Utilities.createIconBitmap( in getShortcutInfo() 2289 if (icon == null) { in getShortcutInfo() [all …]
|
D | IconCache.java | 43 public Bitmap icon; field in IconCache.CacheEntry 158 application.iconBitmap = entry.icon; in getTitleAndIcon() 172 return entry.icon; in getIcon() 184 return entry.icon; in getIcon() 188 public boolean isDefaultIcon(Bitmap icon) { in isDefaultIcon() argument 189 return mDefaultIcon == icon; in isDefaultIcon() 213 entry.icon = Utilities.createIconBitmap( in cacheLocked() 224 set.put(cn, e.icon); in getAllIcons()
|
D | AppsCustomizePagedView.java | 738 createWidgetInfo.previewImage, createWidgetInfo.icon, spanX, spanY, in beginDraggingWidget() 755 Drawable icon = mIconCache.getFullResIcon(createShortcutInfo.shortcutActivityInfo); in beginDraggingWidget() local 756 preview = Bitmap.createBitmap(icon.getIntrinsicWidth(), in beginDraggingWidget() 757 icon.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in beginDraggingWidget() 761 WidgetPreviewLoader.renderDrawableToBitmap(icon, preview, 0, 0, in beginDraggingWidget() 762 icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in beginDraggingWidget() 1035 PagedViewIcon icon = (PagedViewIcon) mLayoutInflater.inflate( in syncAppsPageItems() local 1037 icon.applyFromApplicationInfo(info, true, this); in syncAppsPageItems() 1038 icon.setOnClickListener(this); in syncAppsPageItems() 1039 icon.setOnLongClickListener(this); in syncAppsPageItems() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatterySipper.java | 40 Drawable icon; field in BatterySipper 61 Drawable icon; field in BatterySipper.UidToDetail 74 icon = mContext.getResources().getDrawable(iconId); in BatterySipper() 92 return icon; in getIcon() 107 icon = utd.icon; in getQuickNameIconForUid() 112 icon = pm.getDefaultActivityIcon(); in getQuickNameIconForUid() 121 icon = mContext.getResources().getDrawable(iconId); in getQuickNameIconForUid() 159 if (ai.icon != 0) { in getNameIcon() 161 icon = ai.loadIcon(pm); in getNameIcon() 167 if (icon == null) icon = defaultActivityIcon; in getNameIcon() [all …]
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageUtil.java | 84 public static View initSnippet(View snippetView, CharSequence label, Drawable icon) { in initSnippet() argument 85 ((ImageView)snippetView.findViewById(R.id.app_icon)).setImageDrawable(icon); in initSnippet() 122 ((ImageView)appSnippet.findViewById(R.id.app_icon)).setImageDrawable(as.icon); in initSnippetForNewApp() 142 Drawable icon; field in PackageUtil.AppSnippet 143 public AppSnippet(CharSequence label, Drawable icon) { in AppSnippet() argument 145 this.icon = icon; in AppSnippet() 176 Drawable icon = null; in getAppSnippet() local 179 if (appInfo.icon != 0) { in getAppSnippet() 181 icon = res.getDrawable(appInfo.icon); in getAppSnippet() 185 if (icon == null) { in getAppSnippet() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardView.java | 356 final Drawable icon = key.getIcon(mKeyboard.mIconsSet, params.mAnimAlpha); in onDrawKeyTopVisuals() local 382 } else if (key.hasLabelWithIconLeft() && icon != null) { in onDrawKeyTopVisuals() 383 labelWidth = TypefaceUtils.getLabelWidth(label, paint) + icon.getIntrinsicWidth() in onDrawKeyTopVisuals() 387 } else if (key.hasLabelWithIconRight() && icon != null) { in onDrawKeyTopVisuals() 388 labelWidth = TypefaceUtils.getLabelWidth(label, paint) + icon.getIntrinsicWidth() in onDrawKeyTopVisuals() 415 if (icon != null) { in onDrawKeyTopVisuals() 416 final int iconWidth = icon.getIntrinsicWidth(); in onDrawKeyTopVisuals() 417 final int iconHeight = icon.getIntrinsicHeight(); in onDrawKeyTopVisuals() 421 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals() 424 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals() [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() 196 public boolean consume(Drawable icon) { in set() 203 handleNewDrawable(icon, uniqueIconId, source); in set() 216 private void handleNewDrawable(Drawable icon, String id, Source source) { in handleNewDrawable() argument 217 if (icon == null) { in handleNewDrawable() 222 icon = getFallbackIcon(source); in handleNewDrawable() 224 setDrawable(icon, id); in handleNewDrawable() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
D | IconButton.java | 166 Bitmap icon = null; in makeImageIcon() local 167 icon = GalleryBitmapPool.getInstance().get(width, height); in makeImageIcon() 168 if (icon == null) { in makeImageIcon() 169 icon = IconFactory.createIcon(image, width, height, false); in makeImageIcon() 171 assert(icon.getWidth() == width && icon.getHeight() == height); in makeImageIcon() 172 icon.eraseColor(Color.TRANSPARENT); in makeImageIcon() 173 IconFactory.drawIcon(icon, image, false); in makeImageIcon() 175 return icon; in makeImageIcon()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardIconsSet.java | 84 final Drawable icon = keyboardAttrs.getDrawable(attrId); in loadIcons() local 85 setDefaultBounds(icon); in loadIcons() 87 mIcons[iconId] = icon; in loadIcons() 119 private static void setDefaultBounds(final Drawable icon) { in setDefaultBounds() argument 120 if (icon != null) { in setDefaultBounds() 121 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in setDefaultBounds()
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | SoftKeyboardView.java | 257 Drawable icon = mSoftKeyDown.getKeyIcon(); in onKeyPress() local 258 if (null != icon) { in onKeyPress() 259 mBalloonOnKey.setBalloonConfig(icon, desired_width, in onKeyPress() 457 Drawable icon = keyIcon; in drawSoftKey() local 458 int marginLeft = (softKey.width() - icon.getIntrinsicWidth()) / 2; in drawSoftKey() 459 int marginRight = softKey.width() - icon.getIntrinsicWidth() in drawSoftKey() 461 int marginTop = (softKey.height() - icon.getIntrinsicHeight()) / 2; in drawSoftKey() 462 int marginBottom = softKey.height() - icon.getIntrinsicHeight() in drawSoftKey() 464 icon.setBounds(softKey.mLeft + marginLeft, in drawSoftKey() 467 icon.draw(canvas); in drawSoftKey()
|
D | SkbTemplate.java | 29 Drawable icon; field in KeyIconRecord 125 public void addDefaultKeyIcons(int keyCode, Drawable icon, in addDefaultKeyIcons() argument 127 if (null == icon || null == iconPopup) return; in addDefaultKeyIcons() 130 iconRecord.icon = icon; in addDefaultKeyIcons() 153 return iconRecord.icon; in getDefaultKeyIcon()
|
/packages/apps/Settings/src/com/android/settings/net/ |
D | UidDetailProvider.java | 95 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail() 101 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail() 107 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail() 113 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail() 124 detail.icon = UserUtils.getUserIcon(um, info, res); in buildUidDetail() 136 detail.icon = info.loadIcon(pm); in buildUidDetail() 148 detail.icon = appInfo.loadIcon(pm); in buildUidDetail()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ShortcutIntentBuilder.java | 274 final Bitmap icon = generateQuickContactIcon(bitmap); in createContactShortcutIntent() local 277 intent.putExtra(Intent.EXTRA_SHORTCUT_ICON, icon); in createContactShortcutIntent() 330 Bitmap icon = Bitmap.createBitmap(mIconSize, mIconSize, Bitmap.Config.ARGB_8888); in generateQuickContactIcon() local 331 Canvas canvas = new Canvas(icon); in generateQuickContactIcon() 350 return icon; in generateQuickContactIcon() 366 Bitmap icon = Bitmap.createBitmap(mIconSize, mIconSize, Bitmap.Config.ARGB_8888); in generatePhoneNumberIcon() local 367 Canvas canvas = new Canvas(icon); in generatePhoneNumberIcon() 411 int iconWidth = icon.getWidth(); in generatePhoneNumberIcon() 419 return icon; in generatePhoneNumberIcon()
|
D | ContactListFilter.java | 58 public final Drawable icon; field in ContactListFilter 62 Drawable icon) { in ContactListFilter() argument 67 this.icon = icon; in ContactListFilter() 75 String dataSet, Drawable icon) { in createAccountFilter() argument 77 accountName, dataSet, icon); in createAccountFilter() 282 builder.append(", icon: " + icon + "]"); in toDebugString()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AuthenticatorHelper.java | 54 Drawable icon = null; in getDrawableForType() local 62 icon = authContext.getResources().getDrawable(desc.iconId); in getDrawableForType() 63 mAccTypeIconCache.put(accountType, icon); in getDrawableForType() 68 if (icon == null) { in getDrawableForType() 69 icon = context.getPackageManager().getDefaultActivityIcon(); in getDrawableForType() 71 return icon; in getDrawableForType()
|
/packages/apps/Browser/src/com/android/browser/ |
D | DownloadTouchIcon.java | 134 Bitmap icon = BitmapFactory.decodeStream( in doInBackground() local 137 storeIcon(icon); in doInBackground() 140 b.putParcelable(BrowserContract.Bookmarks.TOUCH_ICON, icon); in doInBackground() 174 private void storeIcon(Bitmap icon) { in storeIcon() argument 181 if (icon == null || mCursor == null || isCancelled()) { in storeIcon() 187 icon.compress(Bitmap.CompressFormat.PNG, 100, os); in storeIcon()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | CircleFramedDrawable.java | 58 public static CircleFramedDrawable getInstance(Context context, Bitmap icon) { in getInstance() argument 67 CircleFramedDrawable instance = new CircleFramedDrawable(icon, in getInstance() 73 public CircleFramedDrawable(Bitmap icon, int size, in CircleFramedDrawable() argument 88 final int width = icon.getWidth(); in CircleFramedDrawable() 89 final int height = icon.getHeight(); in CircleFramedDrawable() 111 canvas.drawBitmap(icon, cropRect, circleRect, mPaint); in CircleFramedDrawable()
|
/packages/apps/Music/src/com/android/music/ |
D | ArtistAlbumBrowserActivity.java | 574 ImageView icon; field in ArtistAlbumBrowserActivity.ArtistAlbumListAdapter.ViewHolder 637 ImageView iv = (ImageView) v.findViewById(R.id.icon); in newGroupView() 645 vh.icon = (ImageView) v.findViewById(R.id.icon); in newGroupView() 646 vh.icon.setPadding(0, 0, 1, 0); in newGroupView() 659 vh.icon = (ImageView) v.findViewById(R.id.icon); in newChildView() 660 vh.icon.setBackgroundDrawable(mDefaultAlbumIcon); in newChildView() 661 vh.icon.setPadding(0, 0, 1, 0); in newChildView() 735 ImageView iv = vh.icon; in bindChildView()
|