Searched refs:icon (Results 276 - 300 of 402) sorted by relevance

<<11121314151617

/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboard.java242 public Drawable icon; field in class:Keyboard.Key
243 /** Preview version of the icon, for the preview popup */
381 icon = a.getDrawable(
383 if (icon != null) {
384 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight());
H A DKeyboardView.java730 } else if (key.icon != null) {
732 - key.icon.getIntrinsicWidth()) / 2 + padding.left;
734 - key.icon.getIntrinsicHeight()) / 2 + padding.top;
736 key.icon.setBounds(0, 0,
737 key.icon.getIntrinsicWidth(), key.icon.getIntrinsicHeight());
738 key.icon.draw(canvas);
918 if (key.icon != null) {
920 key.iconPreview != null ? key.iconPreview : key.icon);
/frameworks/base/core/java/android/preference/
H A DPreference.java634 final ImageView imageView = (ImageView) view.findViewById(com.android.internal.R.id.icon);
757 * Sets the icon for this Preference with a Drawable. This icon will be placed into the ID
758 * {@link android.R.id#icon} within the View created by {@link #onCreateView(ViewGroup)}.
760 * @param icon the optional icon for this Preference
762 public void setIcon(Drawable icon) { argument
763 if ((icon == null && mIcon != null) || (icon != null && mIcon != icon)) {
[all...]
H A DPreferenceActivity.java269 ImageView icon; field in class:PreferenceActivity.HeaderAdapter.HeaderViewHolder
294 holder.icon = (ImageView) view.findViewById(com.android.internal.R.id.icon);
307 holder.icon.setVisibility(View.GONE);
309 holder.icon.setVisibility(View.VISIBLE);
310 holder.icon.setImageResource(header.iconRes);
313 holder.icon.setImageResource(header.iconRes);
400 * Optional icon resource to show for this header.
/frameworks/base/core/java/android/widget/
H A DImageView.java586 * @param icon an Icon holding the desired image, or {@code null} to clear
590 public void setImageIcon(@Nullable Icon icon) { argument
591 setImageDrawable(icon == null ? null : icon.loadDrawable(mContext));
595 public Runnable setImageIconAsync(@Nullable Icon icon) { argument
596 return new ImageDrawableCallback(icon == null ? null : icon.loadDrawable(mContext), null, 0);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DSelectPrinterActivity.java670 Drawable icon = printer.loadIcon(SelectPrinterActivity.this);
724 ImageView iconView = (ImageView) convertView.findViewById(R.id.icon);
725 if (icon != null) {
728 icon.mutate();
732 icon.setAlpha((int)(value.getFloat() * 255));
734 iconView.setImageDrawable(icon);
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationRecord.java380 final Icon icon = notification.getSmallIcon();
381 String iconStr = String.valueOf(icon);
382 if (icon != null && icon.getType() == Icon.TYPE_RESOURCE) {
383 iconStr += " / " + idDebugString(baseContext, icon.getResPackage(), icon.getResId());
388 pw.println(prefix + "icon=" + iconStr);
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DPreference.java71 * @attr name android:icon
588 final ImageView imageView = (ImageView) holder.findViewById(android.R.id.icon);
724 * Sets the icon for this Preference with a Drawable.
725 * This icon will be placed into the ID
726 * {@link android.R.id#icon} within the View created by
729 * @param icon The optional icon for this Preference.
731 public void setIcon(Drawable icon) { argument
732 if ((icon == null && mIcon != null) || (icon !
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java79 * Checks whether a Bitmap is a small grayscale icon.
80 * Grayscale here means "very close to a perfect gray"; icon means "no larger than 64dp".
117 * Checks whether a Drawable is a small grayscale icon.
118 * Grayscale here means "very close to a perfect gray"; icon means "no larger than 64dp".
141 public boolean isGrayscaleIcon(Context context, Icon icon) { argument
142 if (icon == null) {
145 switch (icon.getType()) {
147 return isGrayscaleIcon(icon.getBitmap());
149 return isGrayscaleIcon(context, icon.getResId());
156 * Checks whether a drawable with a resoure id is a small grayscale icon
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuBuilder.java128 /** Header icon for menu types that have a header and support icons (context) */
173 * Called when the mode of the menu changes (for example, from icon to expanded).
1133 final Drawable icon, final View view) {
1139 // If using a custom view, then the title and icon aren't used
1151 } else if (icon != null) {
1152 mHeaderIcon = icon;
1155 // If using the title or icon, then a custom view isn't used
1188 * Sets the header's icon. This replaces the header view. Called by the
1191 * @param icon The new icon
1132 setHeaderInternal(final int titleRes, final CharSequence title, final int iconRes, final Drawable icon, final View view) argument
1194 setHeaderIconInt(Drawable icon) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewHeader.java246 // Initialize the icon and description views
247 mIconView = findViewById(R.id.icon);
263 private void updateLayoutParams(View icon, View title, View secondaryButton, View button) { argument
268 icon.setLayoutParams(lp);
344 // For freeform tasks, we always show the app icon, and only show the title, move-task
345 // icon, and the dismiss icon if there is room
527 if (mTask != null && mTask.icon != null) {
528 mIconView.setImageDrawable(mTask.icon);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DUserSwitcherController.java214 // Tapping guest icon triggers remove and a user switch therefore
215 // the icon shouldn't be enabled even if the user is current
745 Drawable icon = UserIcons.getDefaultUserIcon(item.resolveId(), /* light= */ false);
747 icon.setColorFilter(Utils.getColorAttr(context, android.R.attr.colorForeground),
750 return icon;
954 Bitmap icon = UserIcons.convertToBitmap(UserIcons.getDefaultUserIcon(
956 mUserManager.setUserIcon(id, icon);
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAlertController.java342 * Specifies the icon to display next to the alert title.
344 * @param resId the resource identifier of the drawable to use as the icon,
345 * or 0 for no icon
362 * Specifies the icon to display next to the alert title.
364 * @param icon the drawable to use as the icon or null for no icon
366 public void setIcon(Drawable icon) { argument
367 mIcon = icon;
371 if (icon !
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DMenuBuilder.java147 * Header icon for menu types that have a header and support icons (context)
206 * Called when the mode of the menu changes (for example, from icon to expanded).
1209 final Drawable icon, final View view) {
1215 // If using a custom view, then the title and icon aren't used
1227 } else if (icon != null) {
1228 mHeaderIcon = icon;
1231 // If using the title or icon, then a custom view isn't used
1264 * Sets the header's icon. This replaces the header view. Called by the
1267 * @param icon The new icon
1208 setHeaderInternal(final int titleRes, final CharSequence title, final int iconRes, final Drawable icon, final View view) argument
1270 setHeaderIconInt(Drawable icon) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DScrollingTabContainerView.java431 final Drawable icon = tab.getIcon();
434 if (icon != null) {
444 mIconView.setImageDrawable(icon);
H A DActionBarView.java566 * <p>As this encompasses the icon/logo, title and subtitle all in one, we need
667 public void setIcon(Drawable icon) { argument
668 mIcon = icon;
669 if (icon != null &&
671 mHomeLayout.setIcon(icon);
1309 public void setDefaultNavigationIcon(Drawable icon) { argument
1310 mHomeLayout.setDefaultUpIndicator(icon);
1418 public void setIcon(Drawable icon) { argument
1419 mIconView.setImageDrawable(icon);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DCommandQueue.java102 default void setIcon(String slot, StatusBarIcon icon) { } argument
154 public void setIcon(String slot, StatusBarIcon icon) { argument
158 new Pair<String, StatusBarIcon>(slot, icon)).sendToTarget();
/frameworks/support/compat/jellybean/android/support/v4/app/
H A DNotificationCompatJellybean.java50 private static final String KEY_ICON = "icon";
87 .setSmallIcon(n.icon, n.iconLevel)
262 RemoteInputCompatBase.RemoteInput.Factory remoteInputFactory, int icon,
276 return factory.build(icon, title, actionIntent, extras, remoteInputs,
358 sActionIconField = sActionClass.getDeclaredField("icon");
260 readAction( NotificationCompatBase.Action.Factory factory, RemoteInputCompatBase.RemoteInput.Factory remoteInputFactory, int icon, CharSequence title, PendingIntent actionIntent, Bundle extras) argument
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionMenuPresenter.java164 public void setOverflowIcon(Drawable icon) { argument
166 mOverflowButton.setImageDrawable(icon);
169 mPendingOverflowIcon = icon;
H A DScrollingTabContainerView.java467 final Drawable icon = tab.getIcon();
470 if (icon != null) {
480 mIconView.setImageDrawable(icon);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DGuidedActionsStylist.java266 * Returns the icon view within this view holder's view.
1492 Drawable icon = null;
1494 icon = action.getIcon();
1495 if (icon != null) {
1497 iconView.setImageLevel(icon.getLevel());
1498 iconView.setImageDrawable(icon);
1504 return icon != null;
/frameworks/base/core/java/android/view/
H A DInputDevice.java789 * @param pointerType the type of the pointer icon.
798 * @param icon the icon data.
801 public void setCustomPointerIcon(PointerIcon icon) { argument
802 InputManager.getInstance().setCustomPointerIcon(icon);
/frameworks/base/core/java/com/android/internal/app/
H A DToolbarActionBar.java106 public void setIcon(Drawable icon) { argument
107 mDecorToolbar.setIcon(icon);
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DIconCache.java28 // Preferred icon parameters
136 Log.d(OSUManager.TAG, "Updating icon on " + mQueued.size() + " osus");
197 Log.d(OSUManager.TAG, "Initiating icon query for "
201 Log.d(OSUManager.TAG, "Piggybacking icon query for "
248 Log.e(OSUManager.TAG, "Failed to parse ANQP icon file: " + e);
311 private void put(EssKey key, String fileName, HSIconFileElement icon) { argument
317 fileMap.put(fileName, icon);
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
H A DPluginInstanceManager.java317 final int icon = mContext.getResources().getIdentifier("tuner", "drawable",
324 .setSmallIcon(icon)

Completed in 630 milliseconds

<<11121314151617