/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | IconUtils.java | 41 int icon; 44 icon = R.drawable.ic_doc_apk; 45 add("application/vnd.android.package-archive", icon); 48 icon = R.drawable.ic_doc_audio; 49 add("application/ogg", icon); 50 add("application/x-flac", icon); 53 icon = R.drawable.ic_doc_certificate; 54 add("application/pgp-keys", icon); 55 add("application/pgp-signature", icon); 56 add("application/x-pkcs12", icon); 203 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 | VectorDrawable01.java | 27 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 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");
|
H A D | VectorDrawablePerformance.java | 37 protected int[] icon = { field in class:VectorDrawablePerformance 108 VectorDrawable []d = new VectorDrawable[icon.length]; 110 for (int i = 0; i < icon.length; i++) { 111 d[i] = create(res,icon[i]); 116 t.setText("avgL=" + df.format(time / (icon.length * 1000000.)) + " ms"); 119 for (int i = 0; i < icon.length; i++) { 122 button.setBackgroundResource(icon[i]); 128 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/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. 101 * Returns the icon for this activity, without any badging for the profile. 102 * @param density The preferred density of the icon, zero for default density. Use 110 Drawable icon = getDrawableForDensity(iconRes, density); 111 // Get the default density icon 112 if (icon == null) { 113 icon = mResolveInfo.loadIcon(mPm); 115 return icon; 119 * Returns the icon fo [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | NetworkController.java | 47 void setEthernetIndicators(IconState icon); argument 49 void setIsAirplaneMode(IconState icon); argument 56 public final int icon; field in class:NetworkController.IconState 59 public IconState(boolean visible, int icon, String contentDescription) { argument 61 this.icon = icon; 65 public IconState(boolean visible, int icon, int contentDescription, argument 67 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/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...] |
H A D | PointerIcon.java | 34 * Represents an icon that can be used as a mouse pointer. 45 /** Style constant: Custom icon with a user-supplied bitmap. */ 48 /** Style constant: Null icon. It has no bitmap. */ 51 /** Style constant: Arrow icon. (Default mouse pointer) */ 54 /** {@hide} Style constant: Spot hover icon for touchpads. */ 57 /** {@hide} Style constant: Spot touch icon for touchpads. */ 60 /** {@hide} Style constant: Spot anchor icon for touchpads. */ 67 // The default pointer icon. 83 * Gets a special pointer icon that has no bitmap. 85 * @return The null pointer icon [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/v7/appcompat/src/android/support/v7/internal/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/core/java/android/service/notification/ |
H A D | Condition.java | 49 public final int icon; field in class:Condition 53 public Condition(Uri id, String summary, String line1, String line2, int icon, argument 64 this.icon = icon; 89 dest.writeInt(icon); 101 .append(",icon=").append(icon) 132 && other.icon == icon 139 return Objects.hash(id, summary, line1, line2, icon, stat [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | StatusBarIconView.java | 126 public boolean set(StatusBarIcon icon) { argument 127 final boolean iconEquals = mIcon != null && equalIcons(mIcon.icon, icon.icon); 129 && mIcon.iconLevel == icon.iconLevel; 131 && mIcon.visible == icon.visible; 133 && mIcon.number == icon.number; 134 mIcon = icon.clone(); 135 setContentDescription(icon.contentDescription); 140 setImageLevel(icon 183 getIcon(StatusBarIcon icon) argument 194 getIcon(Context context, StatusBarIcon icon) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | LauncherActivity.java | 68 public Drawable icon; field in class:LauncherActivity.ListItem 83 icon = resizer.createIconThumbnail(resolveInfo.loadIcon(pm)); 166 if (item.icon == null) { 167 item.icon = mIconResizer.createIconThumbnail(item.resolveInfo.loadIcon(getPackageManager())); 169 text.setCompoundDrawablesWithIntrinsicBounds(item.icon, null, null, null); 246 * Utility class to resize icons to match default icon size. 272 * @param icon The icon to get a thumbnail of. 274 * @return A thumbnail for the specified icon or the icon itsel 277 createIconThumbnail(Drawable icon) argument [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | SubMenuBuilder.java | 85 public SubMenu setIcon(Drawable icon) { argument 86 mItem.setIcon(icon); 95 public SubMenu setHeaderIcon(Drawable icon) { argument 96 return (SubMenu) super.setHeaderIconInt(icon);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AccountViewAdapter.java | 85 * A structure with basic element of an Account, icon, name and number 87 * @param icon Account icon id 91 public AccountElements(int icon, String name, String number) { argument 92 this(icon, null, name, number); 107 private AccountElements(int icon, Drawable drawable, String name, String number) { argument 108 mIcon = icon;
|