/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/resources/ |
D | IconLoader.java | 46 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/ |
D | IconCacheTest.java | 56 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/ |
D | QSSecurityFooterTest.java | 173 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/ |
D | StatusHints.java | 117 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/ |
D | MediaMuteAwaitConnectionManager.kt | 56 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/ |
D | NotificationHistoryProtoHelper.java | 230 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/ |
D | DeviceListAdapter.java | 19 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/ |
D | NotificationHistory.java | 90 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/ |
D | TextViewContextMenuTest.java | 183 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/ |
D | ActivityTileTest.java | 93 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/ |
D | IconProvider.java | 100 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/ |
D | TvPipCustomAction.java | 61 button.setImageIconAsync(mRemoteAction.getIcon(), mainHandler); in populateButton() 83 mRemoteAction.getIcon(), in toNotificationAction()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardIndicationTest.java | 80 assertEquals(mDrawable, indication.getIcon()); in testCreateIndicationWithIcon() 92 assertEquals(mDrawable, indication.getIcon()); in testCreateIndicationWithMessageAndIcon()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | AdaptiveIconTest.java | 91 .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/ |
D | WorkProfileMessageControllerTest.java | 138 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/ |
D | AccessPointPreferenceTest.java | 63 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/ |
D | BubbleBarMenuView.java | 71 if (bubble.getIcon() != null) { in updateInfo() 72 mBubbleIconView.setImageIcon(bubble.getIcon()); in updateInfo()
|
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/ |
D | SuggestionTest.java | 68 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/ |
D | ParsedIntentInfo.java | 33 int getIcon(); in getIcon() method
|
D | ParsedComponentImpl.java | 92 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/ |
D | NotifUiAdjustment.kt | 70 (areDifferent(it.first.getIcon(), it.second.getIcon())) || in areDifferent()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/ |
D | AppUtilsTest.java | 95 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/ |
D | Item.java | 82 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/ |
D | IntentButtonProvider.java | 41 public IconState getIcon(); in getIcon() method
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationUiAdjustment.java | 101 if (areDifferent(firstAction.getIcon(), secondAction.getIcon())) { in areDifferent()
|