Home
last modified time | relevance | path

Searched refs:Icon (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java59 public final class Icon implements Parcelable { class
436 private Icon(int mType) { in Icon() method in Icon
446 public static Icon createFromStream(InputStream stream) throws IOException { in createFromStream()
482 public boolean sameAs(Icon otherIcon) { in sameAs()
512 public static Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource()
516 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
526 public static Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource()
530 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
541 public static Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource()
545 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java55 final Icon im1 = Icon.createWithBitmap(bm1); in testWithBitmap()
56 final Icon im2 = Icon.createWithBitmap(bm2); in testWithBitmap()
57 final Icon im3 = Icon.createWithBitmap(bm3); in testWithBitmap()
117 final Icon im1 = Icon.createWithAdaptiveBitmap(bm1); in testWithAdaptiveBitmap()
149 final Icon im1 = Icon.createWithResource(getContext(), R.drawable.landscape); in testWithBitmapResource()
176 final Icon im1 = Icon.createWithFilePath(file1.toString()); in testWithFile()
200 final Icon im1 = Icon.createWithFilePath(file1.toString()); in testAsync()
205 im1.loadDrawableAsync(mContext, new Icon.OnDrawableLoadedListener() { in testAsync()
252 ArrayList<Icon> imgs = new ArrayList<>(); in testParcel()
253 final Icon file1 = Icon.createWithFilePath(originalfile.getAbsolutePath()); in testParcel()
[all …]
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarIcon.java19 import android.graphics.drawable.Icon;
28 public Icon icon;
34 public StatusBarIcon(UserHandle user, String resPackage, Icon icon, int iconLevel, int number, in StatusBarIcon()
36 if (icon.getType() == Icon.TYPE_RESOURCE in StatusBarIcon()
41 icon = Icon.createWithResource(resPackage, icon.getResId()); in StatusBarIcon()
54 this(user, iconPackage, Icon.createWithResource(iconPackage, iconId), in StatusBarIcon()
84 this.icon = (Icon) in.readParcelable(null); in readFromParcel()
/frameworks/base/core/java/android/service/chooser/
DChooserTarget.java24 import android.graphics.drawable.Icon;
56 private Icon mIcon;
103 public ChooserTarget(CharSequence title, Icon icon, float score, in ChooserTarget()
119 mIcon = Icon.CREATOR.createFromParcel(in); in ChooserTarget()
144 public Icon getIcon() { in getIcon()
/frameworks/base/core/java/com/android/internal/widget/
DCachingIconView.java25 import android.graphics.drawable.Icon;
53 public void setImageIcon(@Nullable Icon icon) { in setImageIcon()
63 public Runnable setImageIconAsync(@Nullable Icon icon) { in setImageIconAsync()
123 private synchronized boolean testAndSetCache(Icon icon) { in testAndSetCache()
124 if (icon != null && icon.getType() == Icon.TYPE_RESOURCE) { in testAndSetCache()
161 private String normalizeIconPackage(Icon icon) { in normalizeIconPackage()
/frameworks/support/compat/java/android/support/v4/graphics/drawable/
DIconCompat.java31 import android.graphics.drawable.Icon;
184 public Icon toIcon() { in toIcon()
187 return Icon.createWithBitmap((Bitmap) mObj1); in toIcon()
190 return Icon.createWithAdaptiveBitmap((Bitmap) mObj1); in toIcon()
192 return Icon.createWithBitmap(createLegacyIconFromAdaptiveIcon((Bitmap) mObj1)); in toIcon()
195 return Icon.createWithResource((Context) mObj1, mInt1); in toIcon()
197 return Icon.createWithData((byte[]) mObj1, mInt1, mInt2); in toIcon()
199 return Icon.createWithContentUri((String) mObj1); in toIcon()
/frameworks/base/telecomm/java/android/telecom/
DStatusHints.java23 import android.graphics.drawable.Icon;
36 private final Icon mIcon;
45 this(label, iconResId == 0 ? null : Icon.createWithResource(packageName.getPackageName(), in StatusHints()
49 public StatusHints(CharSequence label, Icon icon, Bundle extras) { in StatusHints()
99 public Icon getIcon() { in getIcon()
DPhoneAccount.java20 import android.graphics.drawable.Icon;
258 private final Icon mIcon;
277 private Icon mIcon;
362 public Builder setIcon(Icon icon) { in setIcon()
511 Icon icon, in PhoneAccount()
667 public Icon getIcon() { in getIcon()
824 mIcon = Icon.CREATOR.createFromParcel(in); in PhoneAccount()
/frameworks/base/core/java/android/service/quicksettings/
DTile.java18 import android.graphics.drawable.Icon;
63 private Icon mIcon;
118 public Icon getIcon() { in getIcon()
132 public void setIcon(Icon icon) { in setIcon()
203 mIcon = Icon.CREATOR.createFromParcel(source); in readFromParcel()
DIQSService.aidl19 import android.graphics.drawable.Icon;
28 void updateStatusIcon(in IBinder tile, in Icon icon, in updateStatusIcon()
/frameworks/base/core/java/android/app/
DRemoteAction.java20 import android.graphics.drawable.Icon;
40 private final Icon mIcon;
47 mIcon = Icon.CREATOR.createFromParcel(in); in RemoteAction()
54 public RemoteAction(@NonNull Icon icon, @NonNull CharSequence title, in RemoteAction()
84 public @NonNull Icon getIcon() { in getIcon()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DCustomPrinterIconCache.java21 import android.graphics.drawable.Icon;
91 public synchronized @Nullable Icon getIcon(@NonNull PrinterId printerId) { in getIcon()
92 Icon icon; in getIcon()
97 icon = Icon.createFromStream(is); in getIcon()
141 @Nullable Icon icon) { in onCustomPrinterIconLoaded()
/frameworks/base/core/java/android/view/
DKeyboardShortcutInfo.java23 import android.graphics.drawable.Icon;
32 private final Icon mIcon;
51 @Nullable CharSequence label, @Nullable Icon icon, int keycode, int modifiers) { in KeyboardShortcutInfo()
114 public Icon getIcon() { in getIcon()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DFood.java20 import android.graphics.drawable.Icon;
34 public Icon getIcon(Context context) { in getIcon()
43 return Icon.createWithResource(context, sIcons[mType]); in getIcon()
DCat.java24 import android.graphics.drawable.Icon;
211 .setSmallIcon(Icon.createWithResource(context, R.drawable.stat_icon))
262 public static Icon recompressIcon(Icon bitmapIcon) {
263 if (bitmapIcon.getType() != Icon.TYPE_BITMAP) return bitmapIcon;
269 return Icon.createWithData(ostream.toByteArray(), 0, ostream.size());
272 public Icon createNotificationLargeIcon(Context context) {
279 public Icon createIcon(Context context, int w, int h) {
295 return Icon.createWithBitmap(result);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DImageTransformState.java19 import android.graphics.drawable.Icon;
39 private Icon mIcon;
45 mIcon = (Icon) view.getTag(ICON_TAG); in initFrom()
103 public Icon getIcon() { in getIcon()
DNotificationBigPictureTemplateViewWrapper.java21 import android.graphics.drawable.Icon;
46 Icon overRiddenIcon = extras.getParcelable(Notification.EXTRA_LARGE_ICON_BIG); in updateImageTag()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTile.java25 import com.android.systemui.plugins.qs.QSTile.Icon;
34 @DependsOn(target = Icon.class)
84 @ProvidesInterface(version = Icon.VERSION)
85 public static abstract class Icon { class
95 return Icon.class.hashCode(); in hashCode()
106 public Icon icon;
/frameworks/base/core/java/android/print/
DIPrintSpoolerCallbacks.aidl19 import android.graphics.drawable.Icon;
45 void onGetCustomPrinterIconResult(in Icon icon, int sequence); in onGetCustomPrinterIconResult()
/frameworks/base/media/java/android/media/tv/
DTvInputInfo.java34 import android.graphics.drawable.Icon;
135 private final Icon mIcon;
136 private final Icon mIconStandby;
137 private final Icon mIconDisconnected;
197 HdmiDeviceInfo hdmiDeviceInfo, String parentId, int labelRes, Icon icon) in createTvInputInfo()
250 TvInputHardwareInfo hardwareInfo, int labelRes, Icon icon) in createTvInputInfo()
260 CharSequence label, int labelResId, Icon icon, Icon iconStandby, Icon iconDisconnected, in TvInputInfo()
669 private Icon mIcon;
670 private Icon mIconStandby;
671 private Icon mIconDisconnected;
[all …]
/frameworks/base/core/java/android/printservice/
DCustomPrinterIconCallback.java21 import android.graphics.drawable.Icon;
53 public boolean onCustomPrinterIconLoaded(@Nullable Icon icon) { in onCustomPrinterIconLoaded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMediaController.java29 import android.graphics.drawable.Icon;
179 mPauseAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
185 mPlayAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
191 mNextAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
197 mPrevAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
DTile.java20 import android.graphics.drawable.Icon;
50 public Icon icon;
128 icon = Icon.CREATOR.createFromParcel(in); in readFromParcel()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest.java33 import com.android.systemui.plugins.qs.QSTile.Icon;
60 s.icon = mock(Icon.class); in testNoFirstAnimation()
67 s.icon = mock(Icon.class); in testNoFirstAnimation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTile.java67 private android.graphics.drawable.Icon mDefaultIcon;
99 mDefaultIcon = icon != 0 ? android.graphics.drawable.Icon in setTileIcon()
120 private boolean iconEquals(android.graphics.drawable.Icon icon1, in iconEquals()
121 android.graphics.drawable.Icon icon2) { in iconEquals()
128 if (icon1.getType() != android.graphics.drawable.Icon.TYPE_RESOURCE in iconEquals()
129 || icon2.getType() != android.graphics.drawable.Icon.TYPE_RESOURCE) { in iconEquals()

1234