Home
last modified time | relevance | path

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

12345

/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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DTileTest.java74 assertThat(tile.getIcon(null)).isNull(); in getIcon_noContextOrMetadata_returnNull()
75 assertThat(tile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_noContextOrMetadata_returnNull()
82 assertThat(mTile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_providedByUri_returnNull()
89 assertThat(mTile.getIcon(RuntimeEnvironment.application).getResId()) in getIcon_hasIconMetadata_returnIcon()
97 assertThat(mTile.getIcon(RuntimeEnvironment.application).getResId()) in getIcon_noIconMetadata_returnActivityIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconControllerImpl.java155 StatusBarIconHolder holder = getIcon(index, 0); in setIcon()
163 holder.getIcon().icon = Icon.createWithResource(mContext, resourceId); in setIcon()
164 holder.getIcon().contentDescription = contentDescription; in setIcon()
183 StatusBarIconHolder holder = getIcon(index, 0); in setSignalIcon()
249 boolean isNew = getIcon(index, holder.getTag()) == null; in setIcon()
261 StatusBarIconHolder holder = getIcon(index, 0); in setIconVisibility()
297 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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAdaptiveIconTest.java90 .when(tile).getIcon(mContext); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon()
102 .when(tile).getIcon(mContext); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor()
117 .when(tile).getIcon(mContext); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DAccessPointPreferenceTest.java57 when(mockIconInjector.getIcon(anyInt())).thenReturn(new ColorDrawable()); in setUp()
87 verify(mockIconInjector).getIcon(level); in refresh_shouldUpdateIcon()
/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/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DIntentButtonProvider.java41 public IconState getIcon(); in getIcon() method
/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/src/com/android/systemui/qs/external/
DCustomTile.java107 boolean updateIcon = mTile.getIcon() == null in updateDefaultTileAndIcon()
108 || iconEquals(mTile.getIcon(), mDefaultIcon); in updateDefaultTileAndIcon()
184 mTile.setIcon(tile.getIcon()); in updateState()
310 drawable = mTile.getIcon().loadDrawable(mContext); in handleUpdateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationUiAdjustment.java94 if (areDifferent(firstAction.getIcon(), secondAction.getIcon())) { in areDifferent()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTileView.java42 public abstract QSIconView getIcon(); in getIcon() method in QSTileView
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DIconCache.java39 public Drawable getIcon(Icon icon) { in getIcon() method in IconCache
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPointPreference.java148 Drawable drawable = getIcon(); in onBindViewHolder()
184 Drawable drawable = mIconInjector.getIcon(level); in updateIcon()
334 public Drawable getIcon(int level) { in getIcon() method in AccessPointPreference.IconInjector
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DInfoMediaDevice.java53 public Drawable getIcon() { in getIcon() method in InfoMediaDevice
DBluetoothMediaDevice.java57 public Drawable getIcon() { in getIcon() method in BluetoothMediaDevice
/frameworks/base/packages/SettingsLib/EntityHeaderWidgets/src/com/android/settingslib/widget/
DAppEntityInfo.java40 public Drawable getIcon() { in getIcon() method in AppEntityInfo
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java266 assertEquals(123, si.getIcon().getResId()); in testShortcutInfoParcel()
321 assertEquals(123, si.getIcon().getResId()); in testShortcutInfoParcel_resId()
372 assertEquals(123, si.getIcon().getResId()); in testShortcutInfoClone()
395 assertEquals(null, si.getIcon()); in testShortcutInfoClone()
419 assertEquals(null, si.getIcon()); in testShortcutInfoClone()
440 assertEquals(null, si.getIcon()); in testShortcutInfoClone()
462 assertEquals(null, si.getIcon()); in testShortcutInfoClone()
512 assertEquals(123, si.getIcon().getResId()); in testShortcutInfoClone_resId()
535 assertEquals(null, si.getIcon()); in testShortcutInfoClone_resId()
559 assertEquals(null, si.getIcon()); in testShortcutInfoClone_resId()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DShortcutPicker.java148 if (getIcon() == null) { in onBindViewHolder()
182 if (getIcon() == null) { in onBindViewHolder()
/frameworks/base/packages/SettingsLib/BarChartPreference/src/com/android/settingslib/widget/
DBarViewInfo.java87 Drawable getIcon() { in getIcon() method in BarViewInfo
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DItemTest.java129 assertSame("Icon should be same as set", icon, item.getIcon()); in testProperties()
140 assertNull("Default icon should be null", item.getIcon()); in testDefaultValues()

12345