Searched defs:icon (Results 1 - 25 of 52) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/net/
H A DUidDetail.java24 public Drawable icon; field in class:UidDetail
/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));
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPendingAddItemInfo.java37 int icon; field in class:PendingAddWidgetInfo
50 icon = i.icon;
H A DIconCache.java40 public Bitmap icon; field in class:IconCache.CacheEntry
63 // We'll need to use a denser icon, or some sort of a mipmap
69 // need to set mIconDpi before getting default icon
152 * Fill in "application" with the icon and label for "info."
160 application.iconBitmap = entry.icon;
174 return entry.icon;
186 return entry.icon;
190 public boolean isDefaultIcon(Bitmap icon) { argument
191 return mDefaultIcon == icon;
215 entry.icon
[all...]
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;
86 return createIconBitmap(new BitmapDrawable(icon), context);
93 static Bitmap createIconBitmap(Drawable icon, Context context) { argument
102 if (icon instanceof PaintDrawable) {
103 PaintDrawable painter = (PaintDrawable) icon;
[all...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/preferences/
H A DSearchableItemPreference.java28 * A CheckBoxPreference with an icon added.
39 public void setIcon(Drawable icon) { argument
40 mIcon = icon;
46 ImageView icon = (ImageView) view.findViewById(R.id.icon);
47 icon.setImageDrawable(mIcon);
/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 DAccountPreference.java31 * AccountPreference is used to display a username, status and provider icon for an account on
46 public AccountPreference(Context context, Account account, Drawable icon, argument
51 mProviderIcon = icon;
77 public void setProviderIcon(Drawable icon) { argument
78 mProviderIcon = icon;
80 mProviderIconView.setImageDrawable(icon);
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
349 createIconThumbnail(Drawable icon) argument
[all...]
H A DDeviceAdminSettings.java117 ImageView icon; field in class:DeviceAdminSettings.ViewHolder
169 h.icon = (ImageView)v.findViewById(R.id.icon);
181 vh.icon.setImageDrawable(item.loadIcon(activity.getPackageManager()));
/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
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DIcon.java33 public Icon(Context context, BasicTexture icon, int width, int height) { argument
34 mIcon = icon;
53 // Draw the icon in the center of the space
H A DIconDrawer.java67 ResourceTexture icon = getIcon(dataSourceType);
69 if (icon != null) {
70 IconDimension id = getIconDimension(icon, width, height);
71 icon.draw(canvas, id.x, id.y, id.width, id.height);
78 ResourceTexture icon = null;
81 icon = mLocalSetIcon;
84 icon = mPicasaIcon;
87 icon = mCameraIcon;
90 icon = mMtpIcon;
96 return icon;
99 getIconDimension(ResourceTexture icon, int width, int height) argument
[all...]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DPowerGaugePreference.java29 * Custom preference for displaying power consumption as a bar and an icon on
37 public PowerGaugePreference(Context context, Drawable icon, BatterySipper info) { argument
40 setIcon(icon);
/packages/apps/Browser/src/com/android/browser/
H A DDownloadTouchIcon.java50 private final String mUserAgent; // Sites may serve a different icon to different UAs
57 * Use this ctor to store the touch icon in the bookmarks database for
72 * Use this ctor to download the touch icon and update the bookmarks database
88 * Use this ctor to not store the touch icon in a database, rather add it to
134 Bitmap icon = BitmapFactory.decodeStream(
137 storeIcon(icon);
140 b.putParcelable(BrowserContract.Bookmarks.TOUCH_ICON, icon);
174 private void storeIcon(Bitmap icon) { argument
177 // Remove the touch icon loader from the BrowserActivity.
181 if (icon
[all...]
H A DNavigationBarTablet.java208 public void setFavicon(Bitmap icon) { argument
209 mFaviconDrawable = mBaseUi.getFaviconDrawable(icon);
H A DSnapshotBar.java200 public void setFavicon(Bitmap icon) { argument
202 mFavicon.setImageDrawable(mTitleBar.getUi().getFaviconDrawable(icon));
H A DXLargeUi.java370 public Drawable getFaviconDrawable(Bitmap icon) { argument
373 if (icon == null) {
376 array[1] = new BitmapDrawable(mActivity.getResources(), icon);
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DResolveCache.java99 * MIME-type, along with a {@link SoftReference} to its icon.
103 public Drawable icon; field in class:ResolveCache.Entry
144 final Drawable icon = bestResolve.loadIcon(mPackageManager);
147 entry.icon = icon;
160 * <strong>only</strong> used for selecting a default icon for
217 * Return the best icon for the given {@link Action}, which is usually
222 return getEntry(action).icon;
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
H A DPackageUtil.java81 public static View initSnippet(View snippetView, CharSequence label, Drawable icon) { argument
82 ((ImageView)snippetView.findViewById(R.id.app_icon)).setImageDrawable(icon);
119 ((ImageView)appSnippet.findViewById(R.id.app_icon)).setImageDrawable(as.icon);
139 Drawable icon; field in class:PackageUtil.AppSnippet
140 public AppSnippet(CharSequence label, Drawable icon) { argument
142 this.icon = icon;
172 Drawable icon = null;
173 // Try to load the icon from the package's resources. If an app has not explicitly
174 // specified any resource, just use the default icon fo
[all...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DCorpusView.java63 public void setIcon(Drawable icon) { argument
64 mIcon.setImageDrawable(icon);
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
216 handleNewDrawable(Drawable icon, String id, Source source) argument
227 setDrawable(Drawable icon, String id) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardIconsSet.java34 private static final int ICON_SETTINGS_KEY = 3; // This is also represented as "@icon/3" in XML.
38 private static final int ICON_TAB_KEY = 7; // This is also represented as "@icon/7" in XML.
88 Log.w(TAG, "Drawable resource for icon #" + iconId + " not found");
98 throw new IllegalArgumentException("icon id is out of range: " + iconId);
102 private static Drawable setDefaultBounds(final Drawable icon) { argument
103 if (icon != null) {
104 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight());
106 return icon;
[all...]
/packages/apps/Browser/tests/src/com/android/browser/
H A DTestWebChromeClient.java60 public void onReceivedIcon(WebView view, Bitmap icon) { argument
61 mWrappedClient.onReceivedIcon(view, icon);
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactListFilter.java56 public final Drawable icon; field in class:ContactListFilter
60 Drawable icon) {
65 this.icon = icon;
73 String dataSet, Drawable icon) {
75 accountName, dataSet, icon);
263 builder.append(", icon: " + icon + "]");
59 ContactListFilter(int filterType, String accountType, String accountName, String dataSet, Drawable icon) argument
72 createAccountFilter(String accountType, String accountName, String dataSet, Drawable icon) argument

Completed in 1688 milliseconds

123