/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | IconUtils.java | 39 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/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | CommandParams.java | 27 // Variable to track if an optional icon load has failed. 38 boolean setIcon(Bitmap icon) { return true; } argument 55 boolean setIcon(Bitmap icon) { argument 56 if (icon != null && mTextMsg != null) { 57 mTextMsg.icon = icon; 83 boolean setIcon(Bitmap icon) { argument 84 if (icon != null && mConfirmMsg != null) { 85 mConfirmMsg.icon = icon; 117 setIcon(Bitmap icon) argument 138 setIcon(Bitmap icon) argument 164 setIcon(Bitmap icon) argument 192 setIcon(Bitmap icon) argument 219 setIcon(Bitmap icon) argument [all...] |
H A D | Item.java | 34 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 D | TextMessage.java | 26 public Bitmap icon = null; field in class:TextMessage 39 icon = in.readParcelable(null); 56 dest.writeParcelable(icon, 0); 78 return "title=" + title + " text=" + text + " icon=" + icon +
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | UserIcons.java | 47 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/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
H A D | VectorPathChecking.java | 20 icon = new int[]{
|
H A D | AnimatedVectorDrawableDupPerf.java | 40 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");
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
H A D | StatusBarIcon.java | 28 public Icon icon; field in class:StatusBarIcon 34 public StatusBarIcon(UserHandle user, String resPackage, Icon icon, int iconLevel, int number, argument 36 if (icon.getType() == Icon.TYPE_RESOURCE 37 && TextUtils.isEmpty(icon.getResPackage())) { 38 // This is an odd situation where someone's managed to hand us an icon without a 41 icon = Icon.createWithResource(resPackage, icon.getResId()); 45 this.icon = icon; 60 return "StatusBarIcon(icon [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
H A D | UidDetail.java | 26 public Drawable icon; field in class:UidDetail
|
/frameworks/base/core/java/android/content/pm/ |
H A D | LabeledIntent.java | 25 * 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...] |
H A D | LauncherActivityInfo.java | 32 * profile associated with this user. It can be used to query the label, icon 33 * and badged icon for the activity. 96 * Returns the icon for this activity, without any badging for the profile. 97 * @param density The preferred density of the icon, zero for default density. Use 105 Drawable icon = null; 106 // Get the preferred density icon from the app's resources 111 icon = resources.getDrawableForDensity(iconRes, density); 115 // Get the default density icon 116 if (icon == null) { 117 icon [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | NetworkController.java | 53 void setEthernetIndicators(IconState icon); argument 55 void setIsAirplaneMode(IconState icon); argument 66 public final int icon; field in class:NetworkController.IconState 69 public IconState(boolean visible, int icon, String contentDescription) { argument 71 this.icon = icon; 75 public IconState(boolean visible, int icon, int contentDescription, argument 77 this(visible, icon, context.getString(contentDescription));
|
H A D | SignalCallbackAdapter.java | 52 public void setEthernetIndicators(IconState icon) { argument 56 public void setIsAirplaneMode(IconState icon) { argument
|
/frameworks/base/tools/layoutlib/bridge/ |
H A D | update_nav_icons.sh | 36 for icon in $ICONS 42 cp -v "$FB/packages/SystemUI/res/drawable-$density/$icon" "$destination" 49 cp -v "$FB/packages/SystemUI/res/drawable-ldrtl-$density/$icon" "$destination"
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSIconView.java | 79 if (!Objects.equals(state.icon, iv.getTag(R.id.qs_icon_tag))) { 80 Drawable d = state.icon != null 81 ? iv.isShown() && mAnimationEnabled ? state.icon.getDrawable(mContext) 82 : state.icon.getInvisibleDrawable(mContext) : null; 83 int padding = state.icon != null ? state.icon.getPadding() : 0; 88 iv.setTag(R.id.qs_icon_tag, state.icon); 110 final ImageView icon = new ImageView(mContext); 111 icon.setId(android.R.id.icon); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | AppIconDragShadowBuilder.java | 26 /** 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/core/java/android/printservice/ |
H A D | CustomPrinterIconCallback.java | 37 * 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/core/java/android/view/ |
H A D | SubMenu.java | 54 * 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/packages/PrintSpooler/src/com/android/printspooler/widget/ |
H A D | CustomErrorEditText.java | 40 public void setError(CharSequence error, Drawable icon) { argument 41 setCompoundDrawables(null, null, icon, null);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | StartingData.java | 27 final int icon; field in class:StartingData 39 icon = _icon;
|
/frameworks/support/customtabs/src/android/support/customtabs/ |
H A D | CustomTabsSession.java | 74 * @param icon The new icon of the action button. 79 public boolean setActionButton(@NonNull Bitmap icon, @NonNull String description) { argument 80 return setToolbarItem(CustomTabsIntent.TOOLBAR_ACTION_BUTTON_ID, icon, description); 87 * @param icon The new icon of the toolbar item. 91 public boolean setToolbarItem(int id, @NonNull Bitmap icon, @NonNull String description) { argument 94 bundle.putParcelable(CustomTabsIntent.KEY_ICON, icon);
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
H A D | SubMenuWrapperICS.java | 60 public SubMenu setHeaderIcon(Drawable icon) { argument 61 getWrappedObject().setHeaderIcon(icon); 83 public SubMenu setIcon(Drawable icon) { argument 84 getWrappedObject().setIcon(icon);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
H A D | CustomPrinterIconCache.java | 50 * 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/SettingsLib/src/com/android/settingslib/drawer/ |
H A D | SettingsDrawerAdapter.java | 47 tile.icon = Icon.createWithResource(mActivity, R.drawable.home); 51 category.icon = null; 59 tile.icon = dashboardTile.icon; 88 return mItems.get(position) != null && mItems.get(position).icon != null; 104 boolean isTile = item.icon != null; 111 ((ImageView) convertView.findViewById(android.R.id.icon)).setImageIcon(item.icon); 118 public Icon icon; field in class:SettingsDrawerAdapter.Item
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
H A D | ItemTest.java | 44 Drawable icon = new ShapeDrawable(); 45 icon.setLevel(4); 46 item.setIcon(icon); 58 assertSame("Icon should be the icon shape drawable", icon, mIconView.getDrawable()); 59 assertEquals("Recycled icon level should not change", 1, recycledIcon.getLevel()); 60 assertEquals("Icon should be level 4", 4, icon.getLevel()); 82 ShapeDrawable icon = new ShapeDrawable(); 83 item.setIcon(icon); 90 assertSame("Icon should be same as set", icon, ite [all...] |