/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
SelectablePreference.java | 36 public void setIcon(Drawable icon) { 37 super.setIcon(new ScalingDrawableWrapper(icon, 38 mSize / (float) icon.getIntrinsicWidth()));
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
PendingAddWidgetInfo.java | 32 public int icon; field in class:PendingAddWidgetInfo 47 icon = i.icon;
|
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
WearableDialogHelper.java | 88 public WearableDialogHelper setPositiveIcon(@Nullable Drawable icon) { 89 mPositiveIcon = icon; 102 public WearableDialogHelper setNegativeIcon(@Nullable Drawable icon) { 103 mNegativeIcon = icon; 116 public WearableDialogHelper setNeutralIcon(@Nullable Drawable icon) { 117 mNeutralIcon = icon; 177 public DialogBuilder setPositiveIcon(@Nullable Drawable icon) { 178 mHelper.setPositiveIcon(icon); 187 public DialogBuilder setNegativeIcon(@Nullable Drawable icon) { 188 mHelper.setNegativeIcon(icon); [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
CaptureRenderer.java | 28 CaptureRenderer(ImageIcon icon, ViewNode node) { 29 super(icon); 53 Icon icon = getIcon(); local 54 int width = icon.getIconWidth(); 55 int height = icon.getIconHeight(); 60 icon.paintIcon(this, g, x, y);
|
/external/libchrome/base/win/ |
scoped_gdi_object.h | 26 void inline ScopedGDIObjectTraits<HICON>::Free(HICON icon) { 27 DestroyIcon(icon);
|
/frameworks/base/core/java/android/printservice/ |
CustomPrinterIconCallback.java | 21 import android.graphics.drawable.Icon; 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) [all...] |
/frameworks/base/core/java/android/view/ |
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); 73 * <var>view</var>. This replaces the header title and icon (and thos [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
CustomErrorEditText.java | 40 public void setError(CharSequence error, Drawable icon) { 41 setCompoundDrawables(null, null, icon, null);
|
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/ |
LensPickerItem.java | 31 public LensPickerItem(String label, Drawable icon, Intent launchIntent, String facetId) { 32 mIcon = icon; 39 * Gets a {@link Drawable} icon to represent this {@link LensPickerItem}.
|
/packages/apps/Settings/src/com/android/settings/ |
ActivityPicker.java | 154 Drawable icon = null; local 157 // Try loading icon from requested package 161 icon = res.getDrawable(res.getIdentifier( 167 items.add(new PickAdapter.Item(this, label, icon)); 217 Drawable icon; field in class:ActivityPicker.PickAdapter.Item 223 * Create a list item from given label and icon. 225 Item(Context context, CharSequence label, Drawable icon) { 227 this.icon = getResizer(context).createIconThumbnail(icon); 240 icon = getResizer(context).createIconThumbnail(resolveInfo.loadIcon(pm)) [all...] |
DimmableIconPreference.java | 31 * A preference item that can dim the icon when it's disabled, either directly or because its parent 57 Drawable icon = getIcon(); local 58 if (icon != null) { 59 icon.mutate().setAlpha(dimmed ? ICON_ALPHA_DISABLED : ICON_ALPHA_ENABLED); 60 setIcon(icon);
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
PowerGaugePreference.java | 32 * Custom preference for displaying battery usage info as a bar and an icon on 36 * won't show any icon if it is null. 45 public PowerGaugePreference(Context context, Drawable icon, CharSequence contentDescription, 47 this(context, null, icon, contentDescription, info); 58 private PowerGaugePreference(Context context, AttributeSet attrs, Drawable icon, 61 setIcon(icon != null ? icon : new ColorDrawable(0)); 98 ImageView icon = (ImageView) view.findViewById(android.R.id.icon); local 99 icon.setLayoutParams(new LinearLayout.LayoutParams(mIconSize, mIconSize)) [all...] |
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
LatinKeyboard.java | 93 mLanguageSwitchKey.icon = mSavedLanguageSwitchKey.icon; 100 mLanguageSwitchKey.icon = null; 117 mEnterKey.icon = null; 122 mEnterKey.icon = null; 126 mEnterKey.icon = res.getDrawable(R.drawable.sym_keyboard_search); 131 mEnterKey.icon = null; 135 mEnterKey.icon = res.getDrawable(R.drawable.sym_keyboard_return); 141 void setSpaceIcon(final Drawable icon) { 143 mSpaceKey.icon = icon [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
Utilities.java | 67 * icon bitmaps that are stored in the database (which were 74x74 pixels at hdpi size) 70 static Bitmap createIconBitmap(Bitmap icon, Context context) { 73 int sourceWidth = icon.getWidth(); 74 int sourceHeight = icon.getHeight(); 76 // Icon is bigger than it should be; clip it (solves the GB->ICS migration case) 77 return Bitmap.createBitmap(icon, 82 // Icon is the right size, no need to change it 83 return icon; 85 // Icon is too small, render to a larger bitmap 87 return createIconBitmap(new BitmapDrawable(resources, icon), context) [all...] |
/external/pdfium/testing/ |
embedder_test_mock_delegate.h | 16 int(FPDF_WIDESTRING message, FPDF_WIDESTRING title, int type, int icon));
|
/external/webrtc/webrtc/voice_engine/test/android/android_test/gen/org/webrtc/voiceengine/test/ |
R.java | 14 public static final int icon=0x7f020000;
field in class:R.drawable
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
PointerIcon_Delegate.java | 27 /*package*/ static void loadResource(PointerIcon icon, Context context, Resources resources, 31 // icon.
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
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/support/v7/appcompat/src/android/support/v7/view/menu/ |
SubMenuWrapperICS.java | 66 public SubMenu setHeaderIcon(Drawable icon) { 67 getWrappedObject().setHeaderIcon(icon); 89 public SubMenu setIcon(Drawable icon) { 90 getWrappedObject().setIcon(icon);
|
/packages/apps/Stk/src/com/android/stk/ |
StkMenuAdapter.java | 32 * Icon list view adapter to show the list of STK items. 54 if (!mIcosSelfExplanatory || (mIcosSelfExplanatory && item.icon == null)) { 57 ImageView imageView = ((ImageView) convertView.findViewById(R.id.icon)); 58 if (item.icon == null) { 61 imageView.setImageBitmap(item.icon);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
ByodIconSamplerActivity.java | 43 * The icon can then be copied from /mnt/shell/emulated/<MANAGED_USER_ID>/badged_icon.png. 56 * Writes a badged option of the CTS tests app icon on the sdcard. 76 Log.d(TAG, "Wrote badged icon to file: " + fileName); 89 return getResources().getDrawable(packageInfo.applicationInfo.icon); 98 private static Bitmap convertToBitmap(Drawable icon) { 99 if (icon == null) { 102 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), 105 icon.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); 106 icon.draw(canvas) [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
CustomPrinterIconCache.java | 21 import android.graphics.drawable.Icon; 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 ye 92 Icon icon; local [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTabSpec.java | 24 private Drawable icon; field in class:ShadowTabSpec 52 return this.icon; 75 public TabHost.TabSpec setIndicator(CharSequence label, Drawable icon) { 77 this.icon = icon;
|
/frameworks/base/core/java/android/content/pm/ |
LauncherActivityInfo.java | 30 * profile associated with this user. It can be used to query the label, icon 31 * and badged icon for the activity. 95 * Returns the icon for this activity, without any badging for the profile. 96 * @param density The preferred density of the icon, zero for default density. Use 105 Drawable icon = null; local 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 = mActivityInfo.loadIcon(mPm) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
NotificationInfo.java | 25 import android.graphics.drawable.Icon; 69 // Load the icon. Since it is backed by ashmem, we won't copy the entire bitmap 71 Icon icon = mBadgeIcon == Notification.BADGE_ICON_SMALL ? null : notification.getLargeIcon(); local 72 if (icon == null) { 73 // Use the small icon. 74 icon = notification.getSmallIcon(); 75 mIconDrawable = icon.loadDrawable(context); 79 // Use the large icon. 80 mIconDrawable = icon.loadDrawable(context) 117 Drawable icon = mIconDrawable.mutate(); local [all...] |