Searched refs:icon (Results 101 - 125 of 274) sorted by relevance

1234567891011

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DAppCompatActionBar.java129 protected void setIcon(String icon) { argument
130 // Do this only if the action bar doesn't already have an icon.
131 if (icon != null && !icon.isEmpty() && mWindowDecorActionBar != null) {
134 Drawable iconDrawable = getDrawable(icon, false);
/frameworks/support/v4/honeycomb/android/support/v4/app/
H A DNotificationCompatHoneycomb.java32 .setSmallIcon(n.icon, n.iconLevel)
/frameworks/support/v4/java/android/support/v4/media/
H A DMediaDescriptionCompat.java50 * A bitmap icon suitable for display or null.
54 * A Uri for an icon suitable for display or null.
72 CharSequence description, Bitmap icon, Uri iconUri, Bundle extras, Uri mediaUri) {
77 mIcon = icon;
134 * Returns a bitmap icon suitable for display or null.
136 * @return An icon or null.
144 * Returns a Uri for an icon suitable for display or null.
146 * @return An icon uri or null.
345 * Sets the icon.
347 * @param icon
71 MediaDescriptionCompat(String mediaId, CharSequence title, CharSequence subtitle, CharSequence description, Bitmap icon, Uri iconUri, Bundle extras, Uri mediaUri) argument
351 setIconBitmap(@ullable Bitmap icon) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DListMenuItemView.java206 public void setIcon(Drawable icon) { argument
212 if (mIconView == null && icon == null && !mPreserveIconSpacing) {
220 if (icon != null || mPreserveIconSpacing) {
221 mIconView.setImageDrawable(showIcon ? icon : null);
234 // Enforce minimum icon spacing
/frameworks/base/media/java/android/media/session/
H A DPlaybackState.java602 private CustomAction(String action, CharSequence name, int icon, Bundle extras) { argument
605 mIcon = icon;
662 * Returns the resource id of the icon in the {@link MediaSession MediaSession's} package.
664 * @return The resource id of the icon in the {@link MediaSession MediaSession's} package.
699 * Creates a {@link CustomAction} builder with the id, name, and icon set.
704 * @param icon The icon resource id of the {@link CustomAction}. This resource id
708 public Builder(String action, CharSequence name, @DrawableRes int icon) { argument
717 if (icon == 0) {
719 "You must specify an icon resourc
918 addCustomAction(String action, String name, int icon) argument
[all...]
/frameworks/support/v4/java/android/support/v4/media/session/
H A DPlaybackStateCompat.java555 private CustomAction(String action, CharSequence name, int icon, Bundle extras) { argument
558 mIcon = icon;
660 * Returns the resource id of the icon in the {@link MediaSessionCompat
663 * @return The resource id of the icon in the {@link MediaSessionCompat
701 * icon set.
707 * @param icon The icon resource id of the {@link CustomAction}.
712 public Builder(String action, CharSequence name, int icon) { argument
721 if (icon == 0) {
723 "You must specify an icon resourc
936 addCustomAction(String action, String name, int icon) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
H A DDocumentInfo.java65 public int icon; field in class:DocumentInfo
84 icon = 0;
104 icon = in.readInt();
123 out.writeInt(icon);
170 this.icon = getCursorInt(cursor, Document.COLUMN_ICON);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DDndTile.java132 state.icon = ResourceIcon.get(R.drawable.ic_qs_dnd_on);
138 state.icon = TOTAL_SILENCE;
144 state.icon = ResourceIcon.get(R.drawable.ic_qs_dnd_on);
150 state.icon = TOTAL_SILENCE.equals(state.icon) ? mDisableTotalSilence : mDisable;
H A DWifiTile.java142 state.icon = ResourceIcon.get(R.drawable.ic_qs_wifi_disabled);
146 state.icon = ResourceIcon.get(cb.wifiSignalIconId);
150 state.icon = ResourceIcon.get(R.drawable.ic_qs_wifi_full_0);
154 state.icon = ResourceIcon.get(R.drawable.ic_qs_wifi_no_network);
228 mInfo.wifiSignalIconId = qsIcon.icon;
331 item.icon = mWifiController.getIcon(ap);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationTemplateViewWrapper.java56 /** Whether the icon needs to be forced grayscale when in dark mode. */
74 ImageView largeIcon = (ImageView) mView.findViewById(com.android.internal.R.id.icon);
80 // If the icon already has a color filter, we assume that we already forced the icon to be
98 private int resolveBackgroundColor(ImageView icon) { argument
99 if (icon != null && icon.getBackground() != null) {
100 ColorFilter filter = icon.getBackground().getColorFilter();
H A DSignalClusterView.java217 mWifiStrengthId = statusIcon.icon;
232 state.mMobileStrengthId = statusIcon.icon;
244 mEthernetIconId = state.icon;
308 public void setIsAirplaneMode(IconState icon) { argument
309 mIsAirplaneMode = icon.visible && !mBlockAirplane;
310 mAirplaneIconId = icon.icon;
311 mAirplaneContentDescription = icon.contentDescription;
/frameworks/support/v4/java/android/support/v4/app/
H A DNotificationCompat.java240 * Notification extras key: this is the resource ID of the notification's main small icon, as
243 public static final String EXTRA_SMALL_ICON = "android.icon";
246 * Notification extras key: this is a bitmap to be used instead of the small icon when showing the
980 * Set the small icon to use in the notification layouts. Different classes of devices
984 * @param icon A resource ID in the application's package of the drawble to use.
986 public Builder setSmallIcon(int icon) { argument
987 mNotification.icon = icon;
993 * level parameter for when the icon is a {@link android.graphics.drawable.LevelListDrawable
996 * @param icon
1001 setSmallIcon(int icon, int level) argument
1146 setLargeIcon(Bitmap icon) argument
1460 addAction(int icon, CharSequence title, PendingIntent intent) argument
1815 public int icon; field in class:NotificationCompat.Action
1826 Action(int icon, CharSequence title, PendingIntent intent) argument
1830 Action(int icon, CharSequence title, PendingIntent intent, Bundle extras, RemoteInput[] remoteInputs) argument
1887 Builder(int icon, CharSequence title, PendingIntent intent) argument
1900 Builder(int icon, CharSequence title, PendingIntent intent, Bundle extras) argument
2638 setContentIcon(int icon) argument
[all...]
/frameworks/base/libs/input/
H A DPointerController.cpp269 const SpriteIcon& icon = c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE) > 0 local
279 spot->updateSprite(&icon, x, y);
394 void PointerController::setPointerIcon(const SpriteIcon& icon) { argument
397 mLocked.pointerIcon = icon.copy();
587 void PointerController::Spot::updateSprite(const SpriteIcon* icon, float x, float y) { argument
596 if (icon != lastIcon) {
597 lastIcon = icon;
598 if (icon) {
599 sprite->setIcon(*icon);
H A DPointerController.h97 void setPointerIcon(const SpriteIcon& icon);
122 void updateSprite(const SpriteIcon* icon, float x, float y);
/frameworks/base/services/core/java/com/android/server/policy/
H A DGlobalActions.java540 Drawable icon = user.iconPath != null ? Drawable.createFromPath(user.iconPath)
543 com.android.internal.R.drawable.ic_menu_cc, icon,
737 protected SinglePressAction(int iconResId, Drawable icon, CharSequence message) { argument
741 mIcon = icon;
773 ImageView icon = (ImageView) v.findViewById(R.id.icon);
784 icon.setImageDrawable(mIcon);
785 icon.setScaleType(ScaleType.CENTER_CROP);
787 icon.setImageDrawable(context.getDrawable(mIconResId));
800 * A toggle action knows whether it is on or off, and displays an icon
[all...]
/frameworks/base/core/java/android/app/
H A DNotification.java168 * The resource id of a drawable to use as the icon in the status bar.
174 public int icon; field in class:Notification
177 * If the icon in the status bar is to have more than one level, you can set this. Otherwise,
191 * superimposed over the icon in the status bar. Starting with
527 * {@link #icon} image (stenciled in white) atop a field of this color. Alpha components are
546 * done on Android: The notification's {@link #icon} and {@link #tickerText} (if available) are
555 * Finally, a notification can be made {@link #VISIBILITY_SECRET}, which will suppress its icon
748 * {@link #extras} key: this is the resource ID of the notification's main small icon, as
751 public static final String EXTRA_SMALL_ICON = "android.icon";
754 * {@link #extras} key: this is a bitmap to be used instead of the small icon whe
917 public int icon; field in class:Notification.Action
949 Action(int icon, CharSequence title, PendingIntent intent) argument
953 Action(Icon icon, CharSequence title, PendingIntent intent, Bundle extras, RemoteInput[] remoteInputs) argument
1005 Builder(int icon, CharSequence title, PendingIntent intent) argument
1015 Builder(Icon icon, CharSequence title, PendingIntent intent) argument
1029 Builder(Icon icon, CharSequence title, PendingIntent intent, Bundle extras, RemoteInput[] remoteInputs) argument
1374 Notification(Context context, int icon, CharSequence tickerText, long when, CharSequence contentTitle, CharSequence contentText, Intent contentIntent) argument
1400 Notification(int icon, CharSequence tickerText, long when) argument
1951 setSmallIcon(Icon icon) argument
2258 setSmallIcon(@rawableRes int icon) argument
2275 setSmallIcon(@rawableRes int icon, int level) argument
2288 setSmallIcon(Icon icon) argument
2453 setLargeIcon(Icon icon) argument
2778 addAction(int icon, CharSequence title, PendingIntent intent) argument
3960 bigLargeIcon(Icon icon) argument
4998 setContentIcon(int icon) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DRootsFragment.java232 final ImageView icon = (ImageView) convertView.findViewById(android.R.id.icon);
237 icon.setImageDrawable(root.loadDrawerIcon(context));
273 final ImageView icon = (ImageView) convertView.findViewById(android.R.id.icon);
278 icon.setImageDrawable(info.loadIcon(pm));
/frameworks/base/core/java/android/os/
H A DIUserManager.aidl41 void setUserIcon(int userHandle, in Bitmap icon);
/frameworks/base/core/java/android/widget/
H A DAppSecurityPermissions.java99 if (icon != 0) {
155 Drawable icon = null;
157 icon = grp.loadGroupIcon(getContext(), pm);
173 permGrpIcon.setImageDrawable(icon);
318 Drawable icon = context.getDrawable(dangerous
321 description, dangerous, icon);
514 CharSequence grpName, CharSequence permList, boolean dangerous, Drawable icon) {
521 imgView.setImageDrawable(icon);
513 getPermissionItemViewOld(Context context, LayoutInflater inflater, CharSequence grpName, CharSequence permList, boolean dangerous, Drawable icon) argument
/frameworks/base/core/java/com/android/internal/statusbar/
H A DStatusBarIconList.java113 public void setIcon(int index, StatusBarIcon icon) { argument
114 mIcons[index] = icon.clone();
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenuItem.java158 public MenuItem setIcon(Drawable icon) { argument
159 mIconDrawable = icon;
/frameworks/base/media/java/android/media/tv/
H A DTvInputInfo.java174 * @param iconUri The {@link android.net.Uri} to load the icon image. See
176 * the application icon of {@code service} will be loaded.
201 * @param icon The {@link android.graphics.drawable.Icon} to load the icon image. If it is
202 * {@code null}, the application icon of {@code service} will be loaded.
207 HdmiDeviceInfo hdmiDeviceInfo, String parentId, int labelRes, Icon icon)
212 hdmiDeviceInfo), parentId, TYPE_HDMI, true, labelRes, null, icon, null,
226 * @param iconUri The {@link android.net.Uri} to load the icon image. See
228 * the application icon of {@code service} will be loaded.
249 * @param icon Th
206 createTvInputInfo(Context context, ResolveInfo service, HdmiDeviceInfo hdmiDeviceInfo, String parentId, int labelRes, Icon icon) argument
254 createTvInputInfo(Context context, ResolveInfo service, TvInputHardwareInfo hardwareInfo, int labelRes, Icon icon) argument
263 createTvInputInfo(Context context, ResolveInfo service, String id, String parentId, int inputType, boolean isHardwareInput, int labelRes, String label, Icon icon, Uri iconUri, boolean isConnectedToHdmiSwitch) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DSignalTileView.java52 private ImageView addTrafficView(int icon) { argument
54 traffic.setImageResource(icon);
/frameworks/base/services/core/java/com/android/server/statusbar/
H A DStatusBarManagerService.java305 throw new SecurityException("invalid status bar icon slot: " + slot);
308 StatusBarIcon icon = new StatusBarIcon(iconPackage, UserHandle.OWNER, iconId,
311 //Slog.d(TAG, "setIcon slot=" + slot + " index=" + index + " icon=" + icon);
312 mIcons.setIcon(index, icon);
316 mBar.setIcon(index, icon);
330 throw new SecurityException("invalid status bar icon slot: " + slot);
333 StatusBarIcon icon = mIcons.getIcon(index);
334 if (icon == null) {
338 if (icon
[all...]
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
H A DPlayerService.java166 public void setIcon(Bitmap icon) { argument
167 mSession.setIcon(icon);

Completed in 644 milliseconds

1234567891011