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

123456789

/frameworks/base/core/java/android/printservice/
H A DCustomPrinterIconCallback.java37 * Create a callback class to be used once a icon is loaded
39 * @param printerId The printer the icon should be loaded for
48 * Provide a new icon for a printer. Can be called more than once to update the icon.
50 * @param icon The new icon for the printer or null to unset the current icon
51 * @return true iff the icon could be updated
53 public boolean onCustomPrinterIconLoaded(@Nullable Icon icon) { argument
55 mObserver.onCustomPrinterIconLoaded(mPrinterId, icon);
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DUidDetail.java26 public Drawable icon; field in class:UidDetail
/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.java32 int[] icon = { field in class:VectorDrawable01
61 final Button []bArray = new Button[icon.length];
80 for (int i = 0; i < icon.length; i++) {
84 button.setBackgroundResource(icon[i]);
87 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.java32 protected int[] icon = { field in class:AnimatedVectorDrawableTest
67 for (int i = 0; i < icon.length; i++) {
74 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
118 VectorDrawable []d = new VectorDrawable[icon.length];
120 for (int i = 0; i < icon.length; i++) {
121 d[i] = create(res,icon[i]);
126 t.setText("avgL=" + df.format(time / (icon.length * 1000000.)) + " ms");
129 for (int i = 0; i < icon.length; i++) {
132 button.setBackgroundResource(icon[i]);
138 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms");
/frameworks/base/core/java/android/view/
H A DContextMenu.java60 * Sets the context menu header's icon to the icon given in <var>iconRes</var>
63 * @param iconRes The resource identifier used for the icon.
69 * Sets the context menu header's icon to the icon given in <var>icon</var>
72 * @param icon The {@link Drawable} used for the icon.
75 public ContextMenu setHeaderIcon(Drawable icon); argument
79 * <var>view</var>. This replaces the header title and icon (an
[all...]
H A DSubMenu.java54 * Sets the submenu header's icon to the icon given in <var>iconRes</var>
57 * @param iconRes The resource identifier used for the icon.
63 * Sets the submenu header's icon to the icon given in <var>icon</var>
66 * @param icon The {@link Drawable} used for the icon.
69 public SubMenu setHeaderIcon(Drawable icon); argument
73 * <var>view</var>. This replaces the header title and icon (an
102 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 final int width = icon.getIntrinsicWidth();
52 final int height = icon.getIntrinsicHeight();
55 icon.setBounds(0, 0, width, height);
56 icon.draw(canvas);
61 * Returns a default user icon for the given user.
64 * @param userId the user id or {@code UserHandle.USER_NULL} for a non-user specific icon
65 * @param light whether we want a light icon (suitable for a dark background)
70 // Return colored icon instea
[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/base/packages/SystemUI/src/com/android/systemui/qs/customize/
H A DCustomizeTileView.java30 public CustomizeTileView(Context context, QSIconView icon) { argument
31 super(context, icon);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DAppIconDragShadowBuilder.java26 /** Creates a scaled-up version of an app icon for dragging. */
32 public AppIconDragShadowBuilder(ImageView icon) { argument
33 mDrawable = icon.getDrawable();
37 mIconSize = icon.getHeight() * ICON_SCALE;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DNetworkControllerEthernetTest.java34 protected void verifyLastEthernetIcon(boolean visible, int icon) { argument
41 assertEquals("Ethernet icon, in status bar", icon, iconState.icon);
/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);
/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/packages/DocumentsUI/src/com/android/documentsui/
H A DIconUtils.java39 int icon;
42 icon = R.drawable.ic_doc_apk;
43 add("application/vnd.android.package-archive", icon);
46 icon = R.drawable.ic_doc_audio;
47 add("application/ogg", icon);
48 add("application/x-flac", icon);
51 icon = R.drawable.ic_doc_certificate;
52 add("application/pgp-keys", icon);
53 add("application/pgp-signature", icon);
54 add("application/x-pkcs12", icon);
201 loadPackageIcon(Context context, String authority, int icon) argument
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DCustomPrinterIconCache.java50 * Create a new icon cache.
60 * Return the file name to be used for the icon of a printer
64 * @return The file to be used for the icon of the printer
77 Log.e(LOG_TAG, "Could not compute custom printer icon file name", e);
85 * Get the {@link Icon} to be used as a custom icon for the printer. If not available request
86 * the icon to be loaded.
88 * @param printerId the printer the icon belongs to
89 * @return the {@link Icon} if already available or null if icon is not loaded yet
92 Icon icon;
97 icon
140 onCustomPrinterIconLoaded(@onNull PrinterId printerId, @Nullable Icon icon) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSTileView.java42 public QSTileView(Context context, QSIconView icon) { argument
43 this(context, icon, false);
46 public QSTileView(Context context, QSIconView icon, boolean collapsedView) { argument
47 super(context, icon, collapsedView);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
H A DCarNavigationButton.java27 * A wrapper view for a car navigation facet, which includes a button icon and a drop down icon.
56 public void setResources(Drawable icon) { argument
57 mIcon.setImageDrawable(icon);
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/util/
H A DGlifPreferenceDelegate.java86 public void setIcon(Drawable icon) { argument
91 ((ImageView) iconView).setImageDrawable(icon);
/frameworks/support/v7/appcompat/src/android/support/v7/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 4163 milliseconds

123456789