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

12345678910

/frameworks/layoutlib/bridge/src/android/graphics/drawable/
H A DAdaptiveIconDrawable_Delegate.java30 /*package*/ static void constructor_after(AdaptiveIconDrawable icon) { argument
/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/packages/SystemUI/src/com/android/systemui/tuner/
H A DSelectablePreference.java36 public void setIcon(Drawable icon) { argument
37 super.setIcon(new ScalingDrawableWrapper(icon,
38 mSize / (float) icon.getIntrinsicWidth()));
/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
119 VectorDrawable []d = new VectorDrawable[icon.length];
121 for (int i = 0; i < icon.length; i++) {
122 d[i] = create(res,icon[i]);
127 t.setText("avgL=" + df.format(time / (icon.length * 1000000.)) + " ms");
130 for (int i = 0; i < icon.length; i++) {
133 button.setBackgroundResource(icon[i]);
139 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms");
/frameworks/layoutlib/bridge/src/android/view/
H A DPointerIcon_Delegate.java27 /*package*/ static void loadResource(PointerIcon icon, Context context, Resources resources, argument
31 // icon.
/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.
65 * @param resources resources object to fetch user icon / color.
66 * @param userId the user id or {@code UserHandle.USER_NULL} for a non-user specific icon
67 * @param light whether we want a light icon (suitabl
[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/SettingsLib/src/com/android/settingslib/utils/
H A DIconCache.java27 * Icon cache to avoid multiple loads on the same icon.
38 public Drawable getIcon(Icon icon) { argument
39 if (icon == null) {
42 Drawable drawable = mMap.get(icon);
44 drawable = icon.loadDrawable(mContext);
45 updateIcon(icon, drawable);
50 public void updateIcon(Icon icon, Drawable drawable) { argument
51 mMap.put(icon, drawable);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
H A DCustomizeTileView.java28 public CustomizeTileView(Context context, QSIconView icon) { argument
29 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.java44 protected void verifyLastEthernetIcon(boolean visible, int icon) { argument
51 assertEquals("Ethernet icon, in status bar", icon, iconState.icon);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
H A DIconMixin.java31 * A {@link Mixin} for setting an icon on the template layout.
49 final @DrawableRes int icon = a.getResourceId(R.styleable.SuwIconMixin_android_icon, 0);
50 if (icon != 0) {
51 setIcon(icon);
58 * Sets the icon on this layout. The icon can also be set in XML using {@code android:icon}.
60 * @param icon A drawable icon.
62 public void setIcon(Drawable icon) { argument
75 setIcon(@rawableRes int icon) argument
[all...]
/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/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...]

Completed in 503 milliseconds

12345678910