Home
last modified time | relevance | path

Searched refs:icon (Results 1 – 25 of 96) sorted by relevance

1234

/packages/apps/Launcher/src/com/android/launcher/
DLiveFolderAdapter.java71 holder.icon = (ImageView) view.findViewById(R.id.icon); in newView()
93 final Drawable icon = loadIcon(context, cursor, holder); in bindView() local
98 holder.name.setCompoundDrawablesWithIntrinsicBounds(null, icon, null, null); in bindView()
100 final boolean hasIcon = icon != null; in bindView()
101 holder.icon.setVisibility(hasIcon ? View.VISIBLE : View.GONE); in bindView()
102 if (hasIcon) holder.icon.setImageDrawable(icon); in bindView()
129 Drawable icon = null; in loadIcon() local
139 icon = reference.get(); in loadIcon()
142 if (icon == null) { in loadIcon()
144 icon = new FastBitmapDrawable(Utilities.createBitmapThumbnail(bitmap, mContext)); in loadIcon()
[all …]
DUtilities.java61 static Drawable createIconThumbnail(Drawable icon, Context context) { in createIconThumbnail() argument
71 if (icon instanceof PaintDrawable) { in createIconThumbnail()
72 PaintDrawable painter = (PaintDrawable) icon; in createIconThumbnail()
75 } else if (icon instanceof BitmapDrawable) { in createIconThumbnail()
77 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconThumbnail()
83 int iconWidth = icon.getIntrinsicWidth(); in createIconThumbnail()
84 int iconHeight = icon.getIntrinsicHeight(); in createIconThumbnail()
96 final Bitmap.Config c = icon.getOpacity() != PixelFormat.OPAQUE ? in createIconThumbnail()
106 sOldBounds.set(icon.getBounds()); in createIconThumbnail()
109 icon.setBounds(x, y, x + width, y + height); in createIconThumbnail()
[all …]
DFolderIcon.java47 FolderIcon icon = (FolderIcon) LayoutInflater.from(launcher).inflate(resId, group, false); in fromXml() local
52 icon.mCloseIcon = d; in fromXml()
53 icon.mOpenIcon = resources.getDrawable(R.drawable.ic_launcher_folder_open); in fromXml()
54 icon.setCompoundDrawablesWithIntrinsicBounds(null, d, null, null); in fromXml()
55 icon.setText(folderInfo.title); in fromXml()
56 icon.setTag(folderInfo); in fromXml()
57 icon.setOnClickListener(launcher); in fromXml()
58 icon.mInfo = folderInfo; in fromXml()
59 icon.mLauncher = launcher; in fromXml()
61 return icon; in fromXml()
DLiveFolderIcon.java38 LiveFolderIcon icon = (LiveFolderIcon) in fromXml() local
42 Drawable d = folderInfo.icon; in fromXml()
48 icon.setCompoundDrawablesWithIntrinsicBounds(null, d, null, null); in fromXml()
49 icon.setText(folderInfo.title); in fromXml()
50 icon.setTag(folderInfo); in fromXml()
51 icon.setOnClickListener(launcher); in fromXml()
53 return icon; in fromXml()
DApplicationInfo.java44 Drawable icon; field in ApplicationInfo
76 icon = info.icon; in ApplicationInfo()
109 Bitmap bitmap = ((FastBitmapDrawable) icon).getBitmap(); in onAddToDatabase()
DApplicationsAdapter.java48 info.icon = Utilities.createIconThumbnail(info.icon, getContext()); in getView()
53 textView.setCompoundDrawablesWithIntrinsicBounds(null, info.icon, null, null); in getView()
/packages/apps/Launcher2/src/com/android/launcher2/
DLiveFolderAdapter.java71 holder.icon = (ImageView) view.findViewById(R.id.icon); in newView()
93 final Drawable icon = loadIcon(context, cursor, holder); in bindView() local
98 holder.name.setCompoundDrawablesWithIntrinsicBounds(null, icon, null, null); in bindView()
100 final boolean hasIcon = icon != null; in bindView()
101 holder.icon.setVisibility(hasIcon ? View.VISIBLE : View.GONE); in bindView()
102 if (hasIcon) holder.icon.setImageDrawable(icon); in bindView()
129 Drawable icon = null; in loadIcon() local
139 icon = reference.get(); in loadIcon()
142 if (icon == null) { in loadIcon()
144 icon = new FastBitmapDrawable(Utilities.createBitmapThumbnail(bitmap, mContext)); in loadIcon()
[all …]
DActivityPicker.java152 Drawable icon = null; in getItems() local
159 icon = res.getDrawable(res.getIdentifier( in getItems()
165 items.add(new PickAdapter.Item(this, label, icon)); in getItems()
213 Drawable icon; field in ActivityPicker.PickAdapter.Item
221 Item(Context context, CharSequence label, Drawable icon) { in Item() argument
223 this.icon = getResizer(context).createIconThumbnail(icon); in Item()
236 icon = getResizer(context).createIconThumbnail(resolveInfo.loadIcon(pm)); in Item()
304 textView.setCompoundDrawablesWithIntrinsicBounds(item.icon, null, null, null); in getView()
343 public Drawable createIconThumbnail(Drawable icon) { in createIconThumbnail() argument
347 if (icon == null) { in createIconThumbnail()
[all …]
DUtilities.java101 static Drawable createIconThumbnail(Drawable icon, Context context) { in createIconThumbnail() argument
110 if (icon instanceof PaintDrawable) { in createIconThumbnail()
111 PaintDrawable painter = (PaintDrawable) icon; in createIconThumbnail()
114 } else if (icon instanceof BitmapDrawable) { in createIconThumbnail()
116 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconThumbnail()
122 int iconWidth = icon.getIntrinsicWidth(); in createIconThumbnail()
123 int iconHeight = icon.getIntrinsicHeight(); in createIconThumbnail()
135 final Bitmap.Config c = icon.getOpacity() != PixelFormat.OPAQUE ? in createIconThumbnail()
145 sOldBounds.set(icon.getBounds()); in createIconThumbnail()
148 icon.setBounds(x, y, x + width, y + height); in createIconThumbnail()
[all …]
DFolderIcon.java47 FolderIcon icon = (FolderIcon) LayoutInflater.from(launcher).inflate(resId, group, false); in fromXml() local
52 icon.mCloseIcon = d; in fromXml()
53 icon.mOpenIcon = resources.getDrawable(R.drawable.ic_launcher_folder_open); in fromXml()
54 icon.setCompoundDrawablesWithIntrinsicBounds(null, d, null, null); in fromXml()
55 icon.setText(folderInfo.title); in fromXml()
56 icon.setTag(folderInfo); in fromXml()
57 icon.setOnClickListener(launcher); in fromXml()
58 icon.mInfo = folderInfo; in fromXml()
59 icon.mLauncher = launcher; in fromXml()
61 return icon; in fromXml()
DLiveFolderIcon.java38 LiveFolderIcon icon = (LiveFolderIcon) in fromXml() local
42 Drawable d = folderInfo.icon; in fromXml()
48 icon.setCompoundDrawablesWithIntrinsicBounds(null, d, null, null); in fromXml()
49 icon.setText(folderInfo.title); in fromXml()
50 icon.setTag(folderInfo); in fromXml()
51 icon.setOnClickListener(launcher); in fromXml()
53 return icon; in fromXml()
DApplicationsAdapter.java50 if (info.icon == null) { in getView()
51 info.icon = AppInfoCache.getIconDrawable(mPackageManager, info); in getView()
54 info.icon = Utilities.createIconThumbnail(info.icon, getContext()); in getView()
59 textView.setCompoundDrawablesWithIntrinsicBounds(null, info.icon, null, null); in getView()
DApplicationInfo.java49 Drawable icon; field in ApplicationInfo
86 icon = info.icon; in ApplicationInfo()
119 Bitmap bitmap = ((FastBitmapDrawable) icon).getBitmap(); in onAddToDatabase()
141 icon.setCallback(null); in unbind()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java154 Drawable icon = null; in getItems() local
161 icon = res.getDrawable(res.getIdentifier( in getItems()
166 items.add(new PickAdapter.Item(this, label, icon)); in getItems()
214 Drawable icon; field in ActivityPicker.PickAdapter.Item
222 Item(Context context, CharSequence label, Drawable icon) { in Item() argument
224 this.icon = getResizer(context).createIconThumbnail(icon); in Item()
237 icon = getResizer(context).createIconThumbnail(resolveInfo.loadIcon(pm)); in Item()
310 textView.setCompoundDrawablesWithIntrinsicBounds(item.icon, null, null, null); in getView()
348 public Drawable createIconThumbnail(Drawable icon) { in createIconThumbnail() argument
352 if (icon == null) { in createIconThumbnail()
[all …]
DAppWidgetPickActivity.java175 Drawable icon = null; in putAppWidgetItems() local
177 if (info.icon != 0) { in putAppWidgetItems()
178 icon = mPackageManager.getDrawable(info.provider.getPackageName(), info.icon, null); in putAppWidgetItems()
179 if (icon == null) { in putAppWidgetItems()
180 Log.w(TAG, "Can't load icon drawable 0x" + Integer.toHexString(info.icon) in putAppWidgetItems()
185 PickAdapter.Item item = new PickAdapter.Item(this, label, icon); in putAppWidgetItems()
/packages/inputmethods/LatinIME/src/com/android/inputmethod/latin/
DLatinKeyboard.java83 mEnterKey.icon = null; in setImeOptions()
88 mEnterKey.icon = null; in setImeOptions()
93 mEnterKey.icon = null; in setImeOptions()
99 mEnterKey.icon = res.getDrawable( in setImeOptions()
105 mEnterKey.icon = null; in setImeOptions()
110 mEnterKey.icon = null; in setImeOptions()
118 mEnterKey.icon = res.getDrawable( in setImeOptions()
140 mOldShiftIcon = mShiftKey.icon; in enableShiftLock()
149 mShiftKey.icon = mShiftLockIcon; in setShiftLocked()
153 mShiftKey.icon = mShiftLockIcon; in setShiftLocked()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DPackageUtil.java98 Drawable icon = appInfo.loadIcon(pm); in initSnippetForInstalledApp() local
99 ((ImageView)appSnippet.findViewById(R.id.app_icon)).setImageDrawable(icon); in initSnippetForInstalledApp()
137 Drawable icon = null; in initSnippetForNewApp() local
140 if (appInfo.icon != 0) { in initSnippetForNewApp()
142 icon = res.getDrawable(appInfo.icon); in initSnippetForNewApp()
146 if (icon == null) { in initSnippetForNewApp()
147 icon = pContext.getPackageManager().getDefaultActivityIcon(); in initSnippetForNewApp()
149 ((ImageView)appSnippet.findViewById(R.id.app_icon)).setImageDrawable(icon); in initSnippetForNewApp()
/packages/apps/Launcher2/res/raw/
Drollo.c218 draw_page(int icon, int lastIcon, float centerAngle, float scale) in draw_page() argument
239 for (row=0; row<ROWS_PER_PAGE && icon<=lastIcon; row++) { in draw_page()
251 for (col=0; col<COLUMNS_PER_PAGE && icon<=lastIcon; col++) { in draw_page()
269 if (state->selectedIconIndex == icon) { in draw_page()
277 bindTexture(NAMED_PFTexLinear, 0, loadI32(ALLOC_ICON_IDS, icon)); in draw_page()
289 bindTexture(NAMED_PFTexLinear, 0, loadI32(ALLOC_LABEL_IDS, icon)); in draw_page()
295 icon++; in draw_page()
390 int icon = clamp(iconsPerPage * page, 0, lastIcon); in main() local
395 draw_page(icon, lastIcon, -pageAngle*currentPagePosition, scale); in main()
396 draw_page(icon+iconsPerPage, lastIcon, (-pageAngle*currentPagePosition)+pageAngle, scale); in main()
/packages/apps/Stk/src/com/android/stk/
DStkMenuAdapter.java54 if (!mIcosSelfExplanatory || (mIcosSelfExplanatory && item.icon == null)) { in getView()
57 ImageView imageView = ((ImageView) convertView.findViewById(R.id.icon)); in getView()
58 if (item.icon == null) { in getView()
61 imageView.setImageBitmap(item.icon); in getView()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSkbTemplate.java29 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()
DSoftKeyboardView.java257 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()
/packages/providers/GoogleSubscribedFeedsProvider/src/com/android/settings/
DAccountPreference.java48 public AccountPreference(Context context, Account account, Drawable icon, in AccountPreference() argument
53 mProviderIcon = icon; in AccountPreference()
83 public void setProviderIcon(Drawable icon) { in setProviderIcon() argument
84 mProviderIcon = icon; in setProviderIcon()
86 mProviderIconView.setImageDrawable(icon); in setProviderIcon()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerGaugePreference.java45 public PowerGaugePreference(Context context, Drawable icon, BatterySipper info) { in PowerGaugePreference() argument
48 mIcon = icon; in PowerGaugePreference()
71 void setIcon(Drawable icon) { in setIcon() argument
72 mIcon = icon; in setIcon()
/packages/apps/Browser/src/com/android/browser/
DDownloadTouchIcon.java86 Bitmap icon = BitmapFactory.decodeStream( in doInBackground() local
88 return icon; in doInBackground()
110 public void onPostExecute(Bitmap icon) { in onPostExecute() argument
117 if (icon == null || mCursor == null || isCancelled()) { in onPostExecute()
122 icon.compress(Bitmap.CompressFormat.PNG, 100, os); in onPostExecute()
/packages/apps/Phone/src/com/android/phone/
DInCallMenuItemView.java105 public void setIcon(Drawable icon) { in setIcon() argument
106 if (DBG) log("setIcon(" + icon + ")..."); in setIcon()
107 mIcon = icon; in setIcon()
111 if (icon != null) setSingleLineMarquee(); in setIcon()

1234