Home
last modified time | relevance | path

Searched refs:getIcon (Results 1 – 25 of 169) sorted by relevance

1234567

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiEntryPreferenceTest.java89 when(mMockIconInjector.getIcon(false /* showX */, 0)).thenReturn(mMockDrawable0); in setUp()
90 when(mMockIconInjector.getIcon(false /* showX */, 1)).thenReturn(mMockDrawable1); in setUp()
91 when(mMockIconInjector.getIcon(false /* showX */, 2)).thenReturn(mMockDrawable2); in setUp()
92 when(mMockIconInjector.getIcon(false /* showX */, 3)).thenReturn(mMockDrawable3); in setUp()
93 when(mMockIconInjector.getIcon(false /* showX */, 4)).thenReturn(mMockDrawable4); in setUp()
95 when(mMockIconInjector.getIcon(true /* showX */, 0)) in setUp()
97 when(mMockIconInjector.getIcon(true /* showX */, 1)) in setUp()
99 when(mMockIconInjector.getIcon(true /* showX */, 2)) in setUp()
101 when(mMockIconInjector.getIcon(true /* showX */, 3)) in setUp()
103 when(mMockIconInjector.getIcon(true /* showX */, 4)) in setUp()
[all …]
DAccessPointPreferenceTest.java57 when(mockIconInjector.getIcon(anyInt())).thenReturn(new ColorDrawable()); in setUp()
87 verify(mockIconInjector).getIcon(level); in refresh_shouldUpdateIcon()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/resources/
DIconLoader.java46 public InputStream getIcon() { in getIcon() method in IconLoader
49 InputStream stream = getIcon(resourceDir); in getIcon()
77 private InputStream getIcon(String resourceDir) { in getIcon() method in IconLoader
79 InputStream stream = getIcon(resourceDir, mDesiredDensity); in getIcon()
90 stream = getIcon(resourceDir, density); in getIcon()
103 private InputStream getIcon(String resourceDir, Density density) { in getIcon() method in IconLoader
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DIconCacheTest.java56 assertThat(mIconCache.getIcon(null)).isNull(); in testGetIcon_iconisNull()
61 mIconCache.getIcon(mIcon); in testGetIcon_iconAlreadyLoaded()
63 mIconCache.getIcon(mIcon); in testGetIcon_iconAlreadyLoaded()
69 mIconCache.getIcon(mIcon); in testGetIcon_iconLoadedFirstTime()
/frameworks/base/telecomm/java/android/telecom/
DStatusHints.java92 public Drawable getIcon(Context context) { in getIcon() method in StatusHints
99 public Icon getIcon() { in getIcon() method in StatusHints
144 Objects.equals(otherHints.getIcon(), getIcon()) && in equals()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DStatusBarIconListTest.java56 assertNull(statusBarIconList.getIcon(0, TAG_PRIMARY)); in testAddSlotSlidesIcons()
57 assertEquals(sbHolder, statusBarIconList.getIcon(1, TAG_PRIMARY)); in testAddSlotSlidesIcons()
67 assertEquals(sbHolderA, statusBarIconList.getIcon(0, TAG_PRIMARY)); in testGetAndSetIcon()
68 assertEquals(sbHolderB, statusBarIconList.getIcon(1, TAG_PRIMARY)); in testGetAndSetIcon()
69 assertNull(statusBarIconList.getIcon(2, TAG_PRIMARY)); // icon not set in testGetAndSetIcon()
80 assertNull(statusBarIconList.getIcon(0, TAG_PRIMARY)); // icon not set in testRemoveIcon()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryProtoHelper.java230 proto.write(Notification.Icon.IMAGE_TYPE, notification.getIcon().getType()); in writeIcon()
231 switch (notification.getIcon().getType()) { in writeIcon()
233 proto.write(Notification.Icon.IMAGE_DATA, notification.getIcon().getDataBytes()); in writeIcon()
235 notification.getIcon().getDataLength()); in writeIcon()
237 notification.getIcon().getDataOffset()); in writeIcon()
240 proto.write(Notification.Icon.IMAGE_RESOURCE_ID, notification.getIcon().getResId()); in writeIcon()
241 if (!notification.getPackage().equals(notification.getIcon().getResPackage())) { in writeIcon()
243 notification.getIcon().getResPackage()); in writeIcon()
247 proto.write(Notification.Icon.IMAGE_URI, notification.getIcon().getUriString()); in writeIcon()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DActivityTileTest.java88 assertThat(tile.getIcon(null)).isNull(); in getIcon_noContextOrMetadata_returnNull()
89 assertThat(tile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_noContextOrMetadata_returnNull()
96 assertThat(mTile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_providedByUri_returnNull()
103 assertThat(mTile.getIcon(RuntimeEnvironment.application).getResId()) in getIcon_hasIconMetadata_returnIcon()
111 assertThat(mTile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_transparentColorInMetadata_returnNull()
/frameworks/base/core/java/android/app/
DNotificationHistory.java90 public Icon getIcon() { in getIcon() method in NotificationHistory.HistoricalNotification
123 boolean iconsAreSame = getIcon() == null && that.getIcon() == null in equals()
124 || (getIcon() != null && that.getIcon() != null in equals()
125 && getIcon().sameAs(that.getIcon())); in equals()
142 getPostedTimeMs(), getTitle(), getText(), getIcon(), getConversationId()); in hashCode()
500 notification.getIcon().writeToParcel(p, flags); in writeNotificationToParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconControllerImpl.java160 StatusBarIconHolder holder = getIcon(index, 0); in setIcon()
168 holder.getIcon().icon = Icon.createWithResource(mContext, resourceId); in setIcon()
169 holder.getIcon().contentDescription = contentDescription; in setIcon()
188 StatusBarIconHolder holder = getIcon(index, 0); in setSignalIcon()
311 boolean isNew = getIcon(index, holder.getTag()) == null; in setIcon()
329 StatusBarIconHolder holder = getIcon(index, tag); in setIconVisibility()
386 if (getIcon(index, tag) == null) { in removeIcon()
/frameworks/base/core/java/android/content/pm/
DLauncherActivityInfo.java101 public Drawable getIcon(int density) { in getIcon() method in LauncherActivityInfo
181 Drawable originalIcon = getIcon(density); in getBadgedIcon()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAdaptiveIconTest.java91 .when(tile).getIcon(mContext); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon()
103 .when(tile).getIcon(mContext); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor()
118 .when(tile).getIcon(mContext); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardIndicationTest.java80 assertEquals(mDrawable, indication.getIcon()); in testCreateIndicationWithIcon()
92 assertEquals(mDrawable, indication.getIcon()); in testCreateIndicationWithMessageAndIcon()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DIconProvider.java125 public Drawable getIcon(LauncherActivityInfo info, int iconDpi) { in getIcon() method in IconProvider
127 () -> info.getIcon(iconDpi)); in getIcon()
133 public Drawable getIcon(ActivityInfo info) { in getIcon() method in IconProvider
134 return getIcon(info, mContext.getResources().getConfiguration().densityDpi); in getIcon()
140 public Drawable getIcon(ActivityInfo info, int iconDpi) { in getIcon() method in IconProvider
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedComponent.java87 this.icon = other.getIcon(); in ParsedComponent()
146 dest.writeInt(this.getIcon()); in writeToParcel()
183 public int getIcon() { in getIcon() method in ParsedComponent
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DImageTransformState.java56 return mIcon != null && mIcon.sameAs(((ImageTransformState) otherState).getIcon()); in sameAs()
107 public Icon getIcon() { in getIcon() method in ImageTransformState
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/
DSuggestionTest.java67 assertThat(suggestion.getIcon()).isEqualTo(mIcon); in buildSuggestion_allFieldsShouldBeSet()
100 assertThat(newSuggestion.getIcon().toString()).isEqualTo(mIcon.toString()); in buildSuggestion_fromParcelable()
/frameworks/base/core/java/com/android/internal/accessibility/dialog/
DAccessibilityTarget.java78 holder.mIconView.setImageDrawable(getIcon()); in updateActionItem()
147 public Drawable getIcon() { in getIcon() method in AccessibilityTarget
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItem.java82 public Drawable getIcon() { in getIcon() method in Item
150 final Drawable icon = getIcon(); in onBindView()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DIntentButtonProvider.java41 public IconState getIcon(); in getIcon() method
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiEntryPreference.java96 final Drawable drawable = getIcon(); in onBindViewHolder()
201 final Drawable drawable = mIconInjector.getIcon(showX, level); in updateIcon()
270 public Drawable getIcon(boolean showX, int level) { in getIcon() method in WifiEntryPreference.IconInjector
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DWalletCardViewInfo.java44 Drawable getIcon(); in getIcon() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationUiAdjustment.java101 if (areDifferent(firstAction.getIcon(), secondAction.getIcon())) { in areDifferent()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DTaskDescriptionCompat.java42 public static Bitmap getIcon(ActivityManager.TaskDescription desc, int userId) { in getIcon() method in TaskDescriptionCompat
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTile.java163 boolean updateIcon = mTile.getIcon() == null in updateDefaultTileAndIcon()
164 || iconEquals(mTile.getIcon(), mDefaultIcon); in updateDefaultTileAndIcon()
258 if (tile.getIcon() != null || overwriteNulls) { in applyTileState()
259 mTile.setIcon(tile.getIcon()); in applyTileState()
399 drawable = mTile.getIcon().loadDrawable(mUserContext); in handleUpdateState()

1234567