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

123456

/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DAnimatedStateVectorDrawableTest.java29 protected int[] icon = { field in class:AnimatedStateVectorDrawableTest
51 for (int i = 0; i < icon.length; i++) {
55 button.setBackgroundResource(icon[i]);
H A DBitmapDrawableDupe.java30 protected int[] icon = { field in class:BitmapDrawableDupe
65 for (int i = 0; i < icon.length; i++) {
68 button.setBackgroundResource(icon[i]);
75 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms");
H A DVectorCheckbox.java28 int[] icon = { field in class:VectorCheckbox
57 final Button []bArray = new Button[icon.length];
59 for (int i = 0; i < icon.length; i++) {
63 checkBox.setButtonDrawable(icon[i]);
H A DVectorDrawable01.java27 int[] icon = { field in class:VectorDrawable01
56 final Button []bArray = new Button[icon.length];
58 for (int i = 0; i < icon.length; i++) {
62 button.setBackgroundResource(icon[i]);
65 vd.setAlpha((i + 1) * (0xFF / (icon.length + 1)));
H A DAnimatedVectorDrawableDupPerf.java40 protected int[] icon = { field in class:AnimatedVectorDrawableDupPerf
98 AnimatedVectorDrawable []d = new AnimatedVectorDrawable[icon.length];
100 for (int i = 0; i < icon.length; i++) {
101 d[i] = create(res,icon[i]);
106 t.setText("avgL=" + df.format(time / (icon.length * 1000000.)) + " ms");
109 for (int i = 0; i < icon.length; i++) {
112 button.setBackgroundResource(icon[i]);
118 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms");
H A DAnimatedVectorDrawableTest.java28 protected int[] icon = { field in class:AnimatedVectorDrawableTest
50 for (int i = 0; i < icon.length; i++) {
54 button.setBackgroundResource(icon[i]);
H A DScaleDrawableTests.java39 protected int icon = R.drawable.bitmap_drawable01; field in class:ScaleDrawableTests
66 png_view.setImageResource(icon);
H A DVectorDrawablePerformance.java37 protected int[] icon = { field in class:VectorDrawablePerformance
104 VectorDrawable []d = new VectorDrawable[icon.length];
106 for (int i = 0; i < icon.length; i++) {
107 d[i] = create(res,icon[i]);
112 t.setText("avgL=" + df.format(time / (icon.length * 1000000.)) + " ms");
115 for (int i = 0; i < icon.length; i++) {
118 button.setBackgroundResource(icon[i]);
124 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms");
/frameworks/base/core/java/android/view/
H A DContextMenu.java58 * Sets the context menu header's icon to the icon given in <var>iconRes</var>
61 * @param iconRes The resource identifier used for the icon.
67 * Sets the context menu header's icon to the icon given in <var>icon</var>
70 * @param icon The {@link Drawable} used for the icon.
73 public ContextMenu setHeaderIcon(Drawable icon); argument
77 * <var>view</var>. This replaces the header title and icon (an
[all...]
H A DSubMenu.java52 * Sets the submenu header's icon to the icon given in <var>iconRes</var>
55 * @param iconRes The resource identifier used for the icon.
61 * Sets the submenu header's icon to the icon given in <var>icon</var>
64 * @param icon The {@link Drawable} used for the icon.
67 public SubMenu setHeaderIcon(Drawable icon); argument
71 * <var>view</var>. This replaces the header title and icon (an
100 setIcon(Drawable icon) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DUserIcons.java47 public static Bitmap convertToBitmap(Drawable icon) { argument
48 if (icon == null) {
51 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(),
53 icon.draw(new Canvas(bitmap));
58 * Returns a default user icon for the given user.
61 * @param userId the user id or {@code UserHandle.USER_NULL} for a non-user specific icon
62 * @param light whether we want a light icon (suitable for a dark background)
67 // Return colored icon instead
70 Drawable icon
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DCustomErrorEditText.java40 public void setError(CharSequence error, Drawable icon) { argument
41 setCompoundDrawables(null, null, icon, null);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DItem.java34 public Bitmap icon; field in class:Item
40 public Item(int id, String text, Bitmap icon) { argument
43 this.icon = icon;
49 icon = in.readParcelable(null);
61 dest.writeParcelable(icon, flags);
H A DTextMessage.java26 public Bitmap icon = null; field in class:TextMessage
39 icon = in.readParcelable(null);
56 dest.writeParcelable(icon, 0);
H A DInput.java30 public Bitmap icon; field in class:Input
44 icon = null;
59 icon = in.readParcelable(null);
80 dest.writeParcelable(icon, 0);
/frameworks/base/core/java/android/webkit/
H A DWebIconDatabase.java24 * Functions for manipulating the icon database used by WebView.
44 * Called when the icon has been retrieved from the database and the
47 * @param icon The favicon for the given url.
49 public void onReceivedIcon(String url, Bitmap icon); argument
53 * Open a the icon database and store the icons in the given path.
54 * @param path The directory path where the icon database will be stored.
59 * Close the shared instance of the icon database.
69 * Request the Bitmap representing the icon for the given page
70 * url. If the icon exists, the listener will be called with the result.
83 * Retain the icon fo
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DContextMenuBuilder.java46 public ContextMenu setHeaderIcon(Drawable icon) { argument
47 return (ContextMenu) super.setHeaderIconInt(icon);
H A DMenuView.java101 * Set the icon of this item view.
102 * @param icon The icon of this item. null to hide the icon.
104 public void setIcon(Drawable icon); argument
117 * Whether this item view shows an icon.
119 * @return Whether this item view shows an icon.
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DIconUtils.java42 int icon;
45 icon = R.drawable.ic_doc_apk;
46 add("application/vnd.android.package-archive", icon);
49 icon = R.drawable.ic_doc_audio;
50 add("application/ogg", icon);
51 add("application/x-flac", icon);
54 icon = R.drawable.ic_doc_certificate;
55 add("application/pgp-keys", icon);
56 add("application/pgp-signature", icon);
57 add("application/x-pkcs12", icon);
204 loadPackageIcon(Context context, String authority, int icon) argument
[all...]
/frameworks/base/core/java/android/accounts/
H A DChooseAccountTypeActivity.java129 Drawable icon = null;
132 icon = authContext.getDrawable(desc.iconId);
141 Log.w(TAG, "No icon name for account type " + desc.type);
146 Log.w(TAG, "No icon resource for account type " + desc.type);
149 AuthInfo authInfo = new AuthInfo(desc, name, icon);
167 ImageView icon; field in class:ChooseAccountTypeActivity.ViewHolder
191 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon);
198 holder.icon.setImageDrawable(mInfos.get(position).drawable);
/frameworks/base/core/java/android/content/pm/
H A DLabeledIntent.java25 * A special subclass of Intent that can have a custom label/icon
36 * and icon resources for it.
39 * @param sourcePackage The package in which the label and icon live.
41 * @param icon Resource containing the icon, or 0 if none.
44 int labelRes, int icon) {
49 mIcon = icon;
54 * label and icon resource for it.
57 * @param sourcePackage The package in which the label and icon live.
59 * @param icon Resourc
43 LabeledIntent(Intent origIntent, String sourcePackage, int labelRes, int icon) argument
61 LabeledIntent(Intent origIntent, String sourcePackage, CharSequence nonLocalizedLabel, int icon) argument
78 LabeledIntent(String sourcePackage, int labelRes, int icon) argument
93 LabeledIntent(String sourcePackage, CharSequence nonLocalizedLabel, int icon) argument
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DIconUtilities.java105 private Bitmap createIconBitmap(Drawable icon) { argument
109 if (icon instanceof PaintDrawable) {
110 PaintDrawable painter = (PaintDrawable) icon;
113 } else if (icon instanceof BitmapDrawable) {
115 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon;
121 int sourceWidth = icon.getIntrinsicWidth();
122 int sourceHeight = icon.getIntrinsicHeight();
154 // draw a big box for the icon for debugging
162 mOldBounds.set(icon.getBounds());
163 icon
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DStartingData.java27 final int icon; field in class:StartingData
39 icon = _icon;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DAction.java68 * @param icon The icon to display for the Action.
70 public Action(long id, CharSequence label1, CharSequence label2, Drawable icon) { argument
74 setIcon(icon);
120 * Set the icon drawable for this Action.
122 public final void setIcon(Drawable icon) { argument
123 mIcon = icon;
127 * Returns the icon drawable for this Action.
146 sb.append("(action icon)");
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DSubMenuWrapperICS.java60 public SubMenu setHeaderIcon(Drawable icon) { argument
61 getWrappedObject().setHeaderIcon(icon);
83 public SubMenu setIcon(Drawable icon) { argument
84 getWrappedObject().setIcon(icon);

Completed in 1538 milliseconds

123456