Searched refs:icon (Results 51 - 75 of 402) sorted by relevance

1234567891011>>

/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 DIconMenuItemView.java94 * Initializes with the provided title and icon
96 * @param icon The icon of this item
98 void initialize(CharSequence title, Drawable icon) { argument
107 setIcon(icon);
188 public void setIcon(Drawable icon) { argument
189 mIcon = icon;
191 if (icon != null) {
193 /* Set the bounds of the icon since setCompoundDrawables needs it. */
194 icon
[all...]
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.
H A DContextMenuBuilder.java46 public ContextMenu setHeaderIcon(Drawable icon) { argument
47 return (ContextMenu) super.setHeaderIconInt(icon);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
H A DTile.java47 * Optional icon to show for this tile.
50 public Icon icon; field in class:Tile
100 if (icon != null) {
102 icon.writeToParcel(dest, flags);
128 icon = Icon.CREATOR.createFromParcel(in);
H A DUserAdapter.java56 Drawable icon;
59 icon = context.getDrawable(
65 icon = new BitmapDrawable(context.getResources(), um.getUserIcon(userId));
67 icon = UserIcons.getDefaultUserIcon(userId, /* light= */ false);
70 this.mIcon = encircle(context, icon);
73 private static Drawable encircle(Context context, Drawable icon) { argument
75 .setIconDrawable(icon).bake();
101 ((ImageView) row.findViewById(android.R.id.icon)).setImageDrawable(user.mIcon);
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
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 DVectorDrawableStaticPerf.java28 icon = new int[]{
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/support/customtabs/src/android/support/customtabs/
H A DCustomTabsSession.java80 * @param icon The new icon of the action button.
85 public boolean setActionButton(@NonNull Bitmap icon, @NonNull String description) { argument
87 bundle.putParcelable(CustomTabsIntent.KEY_ICON, icon);
125 * @param icon The new icon of the toolbar item.
132 public boolean setToolbarItem(int id, @NonNull Bitmap icon, @NonNull String description) { argument
135 bundle.putParcelable(CustomTabsIntent.KEY_ICON, icon);
H A DCustomTabsIntent.java82 * Extra bitmap that specifies the icon of the back button on the toolbar. If the client chooses
106 * provide a description, an icon {@link Bitmap} and a {@link PendingIntent} for the button.
114 * provide an ID, a description, an icon {@link Bitmap} for each item. They may also provide a
129 * The icon should't be more than 24dp in height (No padding needed. The button itself will be
324 * Sets the Close button icon for the custom tab.
326 * @param icon The icon {@link Bitmap}
328 public Builder setCloseButtonIcon(@NonNull Bitmap icon) { argument
329 mIntent.putExtra(EXTRA_CLOSE_BUTTON_ICON, icon);
374 * @param icon Th
381 setActionButton(@onNull Bitmap icon, @NonNull String description, @NonNull PendingIntent pendingIntent, boolean shouldTint) argument
399 setActionButton(@onNull Bitmap icon, @NonNull String description, @NonNull PendingIntent pendingIntent) argument
423 addToolbarItem(int id, @NonNull Bitmap icon, @NonNull String description, PendingIntent pendingIntent) argument
[all...]
/frameworks/support/design/src/android/support/design/internal/
H A DNavigationMenuItemView.java211 public void setIcon(Drawable icon) { argument
212 if (icon != null) {
214 Drawable.ConstantState state = icon.getConstantState();
215 icon = DrawableCompat.wrap(state == null ? icon : state.newDrawable()).mutate();
216 DrawableCompat.setTintList(icon, mIconTintList);
218 icon.setBounds(0, 0, mIconSize, mIconSize);
227 icon = mEmptyDrawable;
229 TextViewCompat.setCompoundDrawablesRelative(mTextView, icon, null, null, null);
255 // Update the icon s
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DMenuView.java102 * Set the icon of this item view.
103 * @param icon The icon of this item. null to hide the icon.
105 void setIcon(Drawable icon); argument
118 * Whether this item view shows an icon.
120 * @return Whether this item view shows an icon.
H A DSubMenuBuilder.java93 public SubMenu setIcon(Drawable icon) { argument
94 mItem.setIcon(icon);
105 public SubMenu setHeaderIcon(Drawable icon) { argument
106 return (SubMenu) super.setHeaderIconInt(icon);
/frameworks/base/core/java/android/print/
H A DIPrintSpoolerCallbacks.aidl39 * Deliver the result of a request of a custom printer icon.
41 * @param icon the icon that was retrieved, or null if no icon could be
43 * @param sequence the sequence number of the call to get the icon
45 void onGetCustomPrinterIconResult(in Icon icon, int sequence);
48 * Declare that the print spooler cached a custom printer icon.
50 * @param sequence the sequence number of the call to cache the icon
55 * Declare that the custom printer icon cache was cleared.
/frameworks/base/core/java/android/service/quicksettings/
H A DIQSService.aidl28 void updateStatusIcon(in IBinder tile, in Icon icon,
/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);
H A DTileQueryHelper.java134 if (info.serviceInfo.icon == 0 && info.serviceInfo.applicationInfo.icon == 0) {
137 Drawable icon = info.serviceInfo.loadIcon(pm);
141 if (icon == null) {
144 icon.mutate();
145 icon.setTint(mContext.getColor(android.R.color.white));
147 addTile(spec, icon, label != null ? label.toString() : "null", appLabel, mContext);
183 state.icon = new DrawableIcon(drawable);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
H A DCarNavigationButton.java28 * A wrapper view for a car navigation facet, which includes a button icon and a drop down icon.
58 public void setResources(Drawable icon) { argument
59 mIcon.setImageDrawable(icon);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDemoStatusIcons.java138 StatusBarIcon icon = v.getStatusBarIcon();
139 icon.icon = Icon.createWithResource(icon.icon.getResPackage(), iconId);
140 v.set(icon);
152 StatusBarIcon icon = new StatusBarIcon(iconPkg, UserHandle.SYSTEM, iconId, 0, 0, "Demo");
155 v.set(icon);
H A DStatusBarIconList.java53 public void setIcon(int index, StatusBarIcon icon) { argument
54 mIcons.set(index, icon);
81 pw.println(" icon slots: " + N);
/frameworks/base/services/core/java/com/android/server/wm/
H A DSplashScreenStartingData.java39 CompatibilityInfo compatInfo, CharSequence nonLocalizedLabel, int labelRes, int icon,
47 mIcon = icon;
38 SplashScreenStartingData(WindowManagerService service, String pkg, int theme, CompatibilityInfo compatInfo, CharSequence nonLocalizedLabel, int labelRes, int icon, int logo, int windowFlags, Configuration mergedOverrideConfiguration) argument
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
H A DIPlayerService.aidl30 void setIcon(in Bitmap icon);
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
H A DItemTest.java73 Drawable icon = new ShapeDrawable();
74 icon.setLevel(4);
75 item.setIcon(icon);
87 assertSame("Icon should be the icon shape drawable", icon, mIconView.getDrawable());
88 assertEquals("Recycled icon level should not change", 1, recycledIcon.getLevel());
89 assertEquals("Icon should be level 4", 4, icon.getLevel());
120 ShapeDrawable icon = new ShapeDrawable();
121 item.setIcon(icon);
132 assertSame("Icon should be same as set", icon, ite
[all...]
/frameworks/support/v14/preference/src/android/support/v14/preference/
H A DPreferenceDialogFragment.java60 private static final String SAVE_STATE_ICON = "PreferenceDialogFragment.icon";
97 final Drawable icon = mPreference.getDialogIcon();
98 if (icon == null || icon instanceof BitmapDrawable) {
99 mDialogIcon = (BitmapDrawable) icon;
101 final Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(),
102 icon.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
104 icon.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
105 icon.draw(canvas);

Completed in 548 milliseconds

1234567891011>>