Home
last modified time | relevance | path

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

12345

/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java60 public final class Icon implements Parcelable { class
437 private Icon(int mType) { in Icon() method in Icon
447 public static Icon createFromStream(InputStream stream) throws IOException { in createFromStream()
483 public boolean sameAs(Icon otherIcon) { in sameAs()
513 public static Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource()
517 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
527 public static Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource()
531 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
542 public static Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource()
546 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/support/compat/java/android/support/v4/graphics/drawable/
DIconCompat.java30 import android.graphics.drawable.Icon;
182 public Icon toIcon() { in toIcon()
185 return Icon.createWithBitmap((Bitmap) mObj1); in toIcon()
188 return Icon.createWithAdaptiveBitmap((Bitmap) mObj1); in toIcon()
190 return Icon.createWithBitmap(createLegacyIconFromAdaptiveIcon((Bitmap) mObj1)); in toIcon()
193 return Icon.createWithResource((Context) mObj1, mInt1); in toIcon()
195 return Icon.createWithData((byte[]) mObj1, mInt1, mInt2); in toIcon()
197 return Icon.createWithContentUri((String) mObj1); in toIcon()
/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/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/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;
328 private final Icon mIcon;
347 private Icon mIcon;
432 public Builder setIcon(Icon icon) { in setIcon()
581 Icon icon, in PhoneAccount()
737 public Icon getIcon() { in getIcon()
894 mIcon = Icon.CREATOR.createFromParcel(in); in PhoneAccount()
/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/wifi/java/android/net/wifi/hotspot2/
DOsuProvider.java19 import android.graphics.drawable.Icon;
82 private final Icon mIcon;
85 Uri serverUri, String nai, List<Integer> methodList, Icon icon) { in OsuProvider()
153 public Icon getIcon() { in getIcon()
221 Icon icon = (Icon) in.readParcelable(null);
/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;
213 .setSmallIcon(Icon.createWithResource(context, R.drawable.stat_icon))
265 public static Icon recompressIcon(Icon bitmapIcon) {
266 if (bitmapIcon.getType() != Icon.TYPE_BITMAP) return bitmapIcon;
272 return Icon.createWithData(ostream.toByteArray(), 0, ostream.size());
275 public Icon createNotificationLargeIcon(Context context) {
282 public Icon createIcon(Context context, int w, int h) {
298 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()
106 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;
35 @DependsOn(target = Icon.class)
85 @ProvidesInterface(version = Icon.VERSION)
86 public static abstract class Icon { class
96 return Icon.class.hashCode(); in hashCode()
107 public Icon icon;
108 public Supplier<Icon> iconSupplier;
/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/print/
DIPrintSpoolerCallbacks.aidl19 import android.graphics.drawable.Icon;
45 void onGetCustomPrinterIconResult(in Icon icon, int sequence); in onGetCustomPrinterIconResult()
/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/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/wifi/tests/src/android/net/wifi/hotspot2/
DOsuProviderTest.java22 import android.graphics.drawable.Icon;
48 private static final Icon TEST_ICON = Icon.createWithData(new byte[10], 0, 10);
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMediaController.java30 import android.graphics.drawable.Icon;
194 mPauseAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
200 mPlayAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
206 mNextAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
212 mPrevAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()

12345