Home
last modified time | relevance | path

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

123456

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiEntryPreferenceTest.java78 when(mMockIconInjector.getIcon(0)).thenReturn(mMockDrawable0); in setUp()
79 when(mMockIconInjector.getIcon(1)).thenReturn(mMockDrawable1); in setUp()
80 when(mMockIconInjector.getIcon(2)).thenReturn(mMockDrawable2); in setUp()
81 when(mMockIconInjector.getIcon(3)).thenReturn(mMockDrawable3); in setUp()
82 when(mMockIconInjector.getIcon(4)).thenReturn(mMockDrawable4); in setUp()
101 assertThat(pref.getIcon()).isEqualTo(mMockDrawable0); in constructor_shouldSetIcon()
136 iconList.add(pref.getIcon()); in levelChanged_refresh_shouldUpdateLevelIcon()
139 iconList.add(pref.getIcon()); in levelChanged_refresh_shouldUpdateLevelIcon()
142 iconList.add(pref.getIcon()); in levelChanged_refresh_shouldUpdateLevelIcon()
145 iconList.add(pref.getIcon()); in levelChanged_refresh_shouldUpdateLevelIcon()
[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/core/java/android/app/
DNotificationHistory.java92 public Icon getIcon() { in getIcon() method in NotificationHistory.HistoricalNotification
125 boolean iconsAreSame = getIcon() == null && that.getIcon() == null in equals()
126 || (getIcon() != null && that.getIcon() != null in equals()
127 && getIcon().sameAs(that.getIcon())); in equals()
144 getPostedTimeMs(), getTitle(), getText(), getIcon(), getConversationId()); in hashCode()
481 notification.getIcon().writeToParcel(p, flags); in writeNotificationToParcel()
/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).getResId()) in getIcon_noIconMetadata_returnActivityIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconControllerImpl.java153 StatusBarIconHolder holder = getIcon(index, 0); in setIcon()
161 holder.getIcon().icon = Icon.createWithResource(mContext, resourceId); in setIcon()
162 holder.getIcon().contentDescription = contentDescription; in setIcon()
181 StatusBarIconHolder holder = getIcon(index, 0); in setSignalIcon()
247 boolean isNew = getIcon(index, holder.getTag()) == null; in setIcon()
259 StatusBarIconHolder holder = getIcon(index, 0); in setIconVisibility()
311 if (getIcon(index, tag) == null) { in removeIcon()
/frameworks/base/core/java/android/content/pm/
DLauncherActivityInfo.java104 public Drawable getIcon(int density) { in getIcon() method in LauncherActivityInfo
174 Drawable originalIcon = getIcon(density); in getBadgedIcon()
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedComponent.java81 this.icon = other.getIcon(); in ParsedComponent()
135 dest.writeInt(this.getIcon()); in writeToParcel()
170 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.java75 holder.mIconView.setImageDrawable(getIcon()); in updateActionItem()
134 public Drawable getIcon() { in getIcon() method in AccessibilityTarget
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiEntryPreference.java95 final Drawable drawable = getIcon(); in onBindViewHolder()
193 final Drawable drawable = mIconInjector.getIcon(level); in updateIcon()
263 public Drawable getIcon(int level) { in getIcon() method in WifiEntryPreference.IconInjector
DAccessPointPreference.java148 Drawable drawable = getIcon(); in onBindViewHolder()
184 Drawable drawable = mIconInjector.getIcon(level); in updateIcon()
333 public Drawable getIcon(int level) { in getIcon() method in AccessPointPreference.IconInjector
/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/SystemUI/src/com/android/systemui/statusbar/
DNotificationUiAdjustment.java101 if (areDifferent(firstAction.getIcon(), secondAction.getIcon())) { in areDifferent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTile.java117 boolean updateIcon = mTile.getIcon() == null in updateDefaultTileAndIcon()
118 || iconEquals(mTile.getIcon(), mDefaultIcon); in updateDefaultTileAndIcon()
194 mTile.setIcon(tile.getIcon()); in updateState()
325 drawable = mTile.getIcon().loadDrawable(mUserContext); in handleUpdateState()
/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/SettingsLib/src/com/android/settingslib/utils/
DIconCache.java39 public Drawable getIcon(Icon icon) { in getIcon() method in IconCache
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTileView.java42 public abstract QSIconView getIcon(); in getIcon() method in QSTileView
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DParsedComponentStateUtils.java42 int icon = component.getIcon(); in getNonLocalizedLabelAndIcon()

123456