Searched refs:icon (Results 1 - 25 of 163) sorted by relevance

1234567

/packages/apps/Settings/src/com/android/settings/net/
H A DUidDetail.java24 public Drawable icon; field in class:UidDetail
H A DUidDetailProvider.java95 detail.icon = pm.getDefaultActivityIcon();
101 detail.icon = pm.getDefaultActivityIcon();
107 detail.icon = pm.getDefaultActivityIcon();
113 detail.icon = pm.getDefaultActivityIcon();
124 detail.icon = UserUtils.getUserIcon(mContext, um, info, res);
136 detail.icon = info.loadIcon(pm);
148 detail.icon = appInfo.loadIcon(pm);
/packages/apps/Settings/src/com/android/settings/
H A DIconPreferenceScreen.java32 // Whether or not the text and icon should be highlighted (as selected)
50 ImageView imageView = (ImageView) view.findViewById(R.id.icon);
58 * Sets the icon for this Preference with a Drawable.
60 * @param icon The icon for this Preference
62 public void setIcon(Drawable icon) { argument
63 if ((icon == null && mIcon != null) || (icon != null && !icon.equals(mIcon))) {
64 mIcon = icon;
[all...]
H A DActivityPicker.java154 Drawable icon = null;
157 // Try loading icon from requested package
161 icon = res.getDrawable(res.getIdentifier(
167 items.add(new PickAdapter.Item(this, label, icon));
217 Drawable icon; field in class:ActivityPicker.PickAdapter.Item
223 * Create a list item from given label and icon.
225 Item(Context context, CharSequence label, Drawable icon) { argument
227 this.icon = getResizer(context).createIconThumbnail(icon);
240 icon
353 createIconThumbnail(Drawable icon) argument
[all...]
H A DAppWidgetPickActivity.java98 Drawable icon = null;
100 if (info.icon != 0) {
123 icon = packageResources.getDrawableForDensity(info.icon, iconDensity);
125 Log.w(TAG, "Can't load icon drawable 0x" + Integer.toHexString(info.icon)
128 if (icon == null) {
129 Log.w(TAG, "Can't load icon drawable 0x" + Integer.toHexString(info.icon)
134 PickAdapter.Item item = new PickAdapter.Item(context, label, icon);
[all...]
/packages/apps/Settings/src/com/android/settings/users/
H A DUserUtils.java30 Bitmap icon = um.getUserIcon(user.id);
31 if (icon == null) return null;
32 return CircleFramedDrawable.getInstance(context, icon);
/packages/apps/Settings/src/com/android/settings/accounts/
H A DProviderPreference.java35 Context context, String accountType, Drawable icon, CharSequence providerName) {
38 setIcon(icon);
34 ProviderPreference( Context context, String accountType, Drawable icon, CharSequence providerName) argument
H A DAuthenticatorHelper.java60 * Gets an icon associated with a particular account type. If none found, return null.
62 * @return a drawable for the icon or null if one cannot be found.
65 Drawable icon = null;
75 icon = authContext.getResources().getDrawable(desc.iconId);
77 mAccTypeIconCache.put(accountType, icon);
83 if (icon == null) {
84 icon = context.getPackageManager().getDefaultActivityIcon();
86 return icon;
104 Log.w(TAG, "No label icon for account type " + accountType);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DUtilities.java67 * icon bitmaps that are stored in the database (which were 74x74 pixels at hdpi size)
70 static Bitmap createIconBitmap(Bitmap icon, Context context) { argument
73 int sourceWidth = icon.getWidth();
74 int sourceHeight = icon.getHeight();
77 return Bitmap.createBitmap(icon,
83 return icon;
87 return createIconBitmap(new BitmapDrawable(resources, icon), context);
94 static Bitmap createIconBitmap(Drawable icon, Context context) { argument
103 if (icon instanceof PaintDrawable) {
104 PaintDrawable painter = (PaintDrawable) icon;
[all...]
H A DPendingAddItemInfo.java56 int icon; field in class:PendingAddWidgetInfo
75 icon = i.icon;
89 icon = copy.icon;
H A DIconCache.java43 public Bitmap icon; field in class:IconCache.CacheEntry
62 // need to set mIconDpi before getting default icon
150 * Fill in "application" with the icon and label for "info."
158 application.iconBitmap = entry.icon;
172 return entry.icon;
184 return entry.icon;
188 public boolean isDefaultIcon(Bitmap icon) { argument
189 return mDefaultIcon == icon;
213 entry.icon = Utilities.createIconBitmap(
224 set.put(cn, e.icon);
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DUtilities.java69 * Returns a FastBitmapDrawable with the icon, accurately sized.
71 static Drawable createIconDrawable(Bitmap icon) { argument
72 FastBitmapDrawable d = new FastBitmapDrawable(icon);
79 * Resizes an icon drawable to the correct icon size.
81 static void resizeIconDrawable(Drawable icon) { argument
82 icon.setBounds(0, 0, sIconTextureWidth, sIconTextureHeight);
87 * icon bitmaps that are stored in the database (which were 74x74 pixels at hdpi size)
90 static Bitmap createIconBitmap(Bitmap icon, Context context) { argument
93 int sourceWidth = icon
114 createIconBitmap(Drawable icon, Context context) argument
[all...]
H A DPendingAddItemInfo.java56 int icon; field in class:PendingAddWidgetInfo
75 icon = i.icon;
89 icon = copy.icon;
H A DIconCache.java45 public Bitmap icon; field in class:IconCache.CacheEntry
64 // need to set mIconDpi before getting default icon
159 if (e.icon.getWidth() != grid.iconSizePx || e.icon.getHeight() != grid.iconSizePx) {
167 * Fill in "application" with the icon and label for "info."
175 application.iconBitmap = entry.icon;
189 return entry.icon;
201 return entry.icon;
205 public boolean isDefaultIcon(Bitmap icon) { argument
206 return mDefaultIcon == icon;
[all...]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatterySipper.java34 * Contains information about package name, icon image, power usage about an
44 Drawable icon; field in class:BatterySipper
68 Drawable icon; field in class:BatterySipper.UidToDetail
81 icon = mContext.getResources().getDrawable(iconId);
99 return icon;
137 icon = utd.icon;
142 icon = pm.getDefaultActivityIcon();
151 icon = mContext.getResources().getDrawable(iconId);
168 * Loads the app label and icon imag
[all...]
H A DPowerGaugePreference.java30 * Custom preference for displaying power consumption as a bar and an icon on
38 public PowerGaugePreference(Context context, Drawable icon, BatterySipper info) { argument
41 setIcon(icon != null ? icon : new ColorDrawable(0));
/packages/apps/Stk/src/com/android/stk/
H A DStkMenuAdapter.java54 if (!mIcosSelfExplanatory || (mIcosSelfExplanatory && item.icon == null)) {
57 ImageView imageView = ((ImageView) convertView.findViewById(R.id.icon));
58 if (item.icon == null) {
61 imageView.setImageBitmap(item.icon);
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
H A DPackageUtil.java84 public static View initSnippet(View snippetView, CharSequence label, Drawable icon) { argument
85 ((ImageView)snippetView.findViewById(R.id.app_icon)).setImageDrawable(icon);
122 ((ImageView)appSnippet.findViewById(R.id.app_icon)).setImageDrawable(as.icon);
142 Drawable icon; field in class:PackageUtil.AppSnippet
143 public AppSnippet(CharSequence label, Drawable icon) { argument
145 this.icon = icon;
176 Drawable icon = null;
177 // Try to load the icon from the package's resources. If an app has not explicitly
178 // specified any resource, just use the default icon fo
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardIconsSet.java38 // Icon name to icon id map.
85 final Drawable icon = keyboardAttrs.getDrawable(attrId);
86 setDefaultBounds(icon);
88 mIcons[iconId] = icon;
90 Log.w(TAG, "Drawable resource for icon #"
110 throw new RuntimeException("unknown icon name: " + name);
117 throw new RuntimeException("unknown icon id: " + getIconName(iconId));
120 private static void setDefaultBounds(final Drawable icon) { argument
121 if (icon != null) {
122 icon
[all...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DDefaultSuggestionView.java73 // override default icon (when no other available) with default source icon
150 // Set the icon even if the drawable is null, since we need to clear any
151 // previous icon.
186 if (DBG) Log.d(TAG, "getting icon Id=" + uniqueIconId);
187 NowOrLater<Drawable> icon = source.getIcon(sourceIconId);
188 if (icon.haveNow()) {
190 handleNewDrawable(icon.getNow(), uniqueIconId, source);
192 // make sure old icon is not visible while new one is loaded
195 icon
217 handleNewDrawable(Drawable icon, String id, Source source) argument
228 setDrawable(Drawable icon, String id) argument
[all...]
H A DCorpusView.java63 public void setIcon(Drawable icon) { argument
64 mIcon.setImageDrawable(icon);
/packages/apps/Settings/src/com/android/settings/applications/
H A DProcessStatsPreference.java34 public ProcessStatsPreference(Context context, Drawable icon, ProcStatsEntry entry) { argument
38 setIcon(icon != null ? icon : new ColorDrawable(0));
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
H A DSkbTemplate.java24 * Key icon definition. It is defined in soft keyboard template. A soft keyboard
25 * can refer to such an icon in its xml file directly to improve performance.
29 Drawable icon; field in class:KeyIconRecord
60 * Default key icon list. It is only for keys which do not have popup icons.
125 public void addDefaultKeyIcons(int keyCode, Drawable icon, argument
127 if (null == icon || null == iconPopup) return;
130 iconRecord.icon = icon;
153 return iconRecord.icon;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DIconFactory.java31 * Builds an icon with the dimensions iconWidth:iconHeight. If scale is set
35 * @param sourceImage image to create an icon from.
36 * @param iconWidth width of the icon bitmap.
37 * @param iconHeight height of the icon bitmap.
38 * @param scale if true, stretch sourceImage to fit the icon dimensions.
39 * @return an icon bitmap with the dimensions iconWidth:iconHeight.
54 Bitmap icon = Bitmap.createBitmap(iconWidth, iconHeight,
56 drawIcon(icon, sourceImage, scale);
57 return icon;
61 * Draws an icon i
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppLiveFolder.java68 private static Intent createLiveFolder(Context context, Uri uri, String name, int icon) { argument
76 .fromContext(context, icon));

Completed in 547 milliseconds

1234567