Home
last modified time | relevance | path

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

123456789

/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/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java173 assertIsDefaultIcon(buttonConfig.getIcon()); in testManagedNoOwnerName()
187 assertIsDefaultIcon(buttonConfig.getIcon()); in testManagedOwnerName()
206 assertIsDefaultIcon(buttonConfig.getIcon()); in testManagedFinancedDeviceWithOwnerName()
262 assertIsDefaultIcon(buttonConfig.getIcon()); in testNetworkLoggingEnabled_deviceOwner()
319 assertIsIconResource(buttonConfig.getIcon(), R.drawable.stat_sys_vpn_ic); in testManagedOneVpnEnabled()
343 assertIsIconResource(buttonConfig.getIcon(), R.drawable.stat_sys_vpn_ic); in testManagedTwoVpnsEnabled()
364 assertIsIconResource(buttonConfig.getIcon(), R.drawable.stat_sys_vpn_ic); in testNetworkLoggingAndVpnEnabled()
377 assertIsDefaultIcon(buttonConfig.getIcon()); in testWorkProfileCACertsInstalled_workProfileOn()
409 assertIsDefaultIcon(buttonConfig.getIcon()); in testCACertsInstalled()
422 assertIsIconResource(buttonConfig.getIcon(), R.drawable.stat_sys_vpn_ic); in testTwoVpnsEnabled()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DStatusHints.java117 public Drawable getIcon(Context context) { in getIcon() method in StatusHints
124 public Icon getIcon() { in getIcon() method in StatusHints
193 Objects.equals(otherHints.getIcon(), getIcon()) && in equals()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/muteawait/
DMediaMuteAwaitConnectionManager.kt56 device.address, device.name, device.getIcon() in onMutedUntilConnection()
86 currentDevice.address, currentDevice.name, currentDevice.getIcon() in startListening()
96 private fun AudioDeviceAttributes.getIcon(): Drawable { in AudioDeviceAttributes() method in com.android.systemui.media.muteawait.MediaMuteAwaitConnectionManager
/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/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceListAdapter.java19 import static com.android.companiondevicemanager.Utils.getIcon;
64 getIcon(mContext, com.android.internal.R.drawable.ic_wifi_signal_3)); in onCreateViewHolder()
67 getIcon(mContext, android.R.drawable.stat_sys_data_bluetooth)); in onCreateViewHolder()
/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()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewContextMenuTest.java183 when(mockIconMenu.getIcon()).thenReturn(gd); in testAdjustIconSpaces()
186 when(mockNoIconMenu.getIcon()).thenReturn(null); in testAdjustIconSpaces()
189 when(mockNoIconMenu2.getIcon()).thenReturn(null); in testAdjustIconSpaces()
225 when(mockNoIconMenu.getIcon()).thenReturn(null); in testAdjustIconSpacesNoIconCase()
228 when(mockNoIconMenu2.getIcon()).thenReturn(null); in testAdjustIconSpacesNoIconCase()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DActivityTileTest.java93 assertThat(tile.getIcon(null)).isNull(); in getIcon_noContextOrMetadata_returnNull()
94 assertThat(tile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_noContextOrMetadata_returnNull()
101 assertThat(mTile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_providedByUri_returnNull()
108 assertThat(mTile.getIcon(RuntimeEnvironment.application).getResId()) in getIcon_hasIconMetadata_returnIcon()
116 assertThat(mTile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_transparentColorInMetadata_returnNull()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DIconProvider.java100 public Drawable getIcon(LauncherActivityInfo info, int iconDpi) { in getIcon() method in IconProvider
102 () -> info.getIcon(iconDpi)); in getIcon()
108 public Drawable getIcon(ActivityInfo info) { in getIcon() method in IconProvider
109 return getIcon(info, mContext.getResources().getConfiguration().densityDpi); in getIcon()
115 public Drawable getIcon(ActivityInfo info, int iconDpi) { in getIcon() method in IconProvider
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipCustomAction.java61 button.setImageIconAsync(mRemoteAction.getIcon(), mainHandler); in populateButton()
83 mRemoteAction.getIcon(), in toNotificationAction()
/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/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/screenshot/
DWorkProfileMessageControllerTest.java138 assertNull(data.getIcon()); in testOnScreenshotTaken_packageNotFound()
147 assertEquals(mBadgedActivityIcon, data.getIcon()); in testOnScreenshotTaken()
159 assertNull(data.getIcon()); in testOnScreenshotTaken_noFilesAppComponentDefined()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DAccessPointPreferenceTest.java63 when(mockIconInjector.getIcon(anyInt())).thenReturn(new ColorDrawable()); in setUp()
93 verify(mockIconInjector).getIcon(level); in refresh_shouldUpdateIcon()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleBarMenuView.java71 if (bubble.getIcon() != null) { in updateInfo()
72 mBubbleIconView.setImageIcon(bubble.getIcon()); in updateInfo()
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/
DSuggestionTest.java68 assertThat(suggestion.getIcon()).isEqualTo(mIcon); in buildSuggestion_allFieldsShouldBeSet()
101 assertThat(newSuggestion.getIcon().toString()).isEqualTo(mIcon.toString()); in buildSuggestion_fromParcelable()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedIntentInfo.java33 int getIcon(); in getIcon() method
DParsedComponentImpl.java92 this.icon = other.getIcon(); in ParsedComponentImpl()
161 dest.writeInt(this.getIcon()); in writeToParcel()
214 public int getIcon() { in getIcon() method in ParsedComponentImpl
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/
DNotifUiAdjustment.kt70 (areDifferent(it.first.getIcon(), it.second.getIcon())) || in areDifferent()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DAppUtilsTest.java95 assertThat(AppUtils.getIcon(mContext, /* appEntry= */ null)).isNull(); in getIcon_nullAppEntry_shouldReturnNull()
101 assertThat(AppUtils.getIcon(mContext, mAppEntry)).isNotNull(); in getIcon_noCachedIcon_shouldNotReturnNull()
108 assertThat(AppUtils.getIcon(mContext, mAppEntry)).isEqualTo(mIcon); in getIcon_existCachedIcon_shouldReturnCachedIcon()
/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()

123456789