/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | SubscriptionsPreferenceControllerTest.java | 127 doReturn(mSignalStrengthIcon).when(mController).getIcon(anyInt(), anyInt(), anyBoolean()); in setUp() 366 verify(mController).getIcon(eq(0), eq(NUM_SIGNAL_STRENGTH_BINS), eq(true)); in setIcon_nullStrength_noCrash() 378 verify(mController).getIcon(eq(0), eq(NUM_SIGNAL_STRENGTH_BINS), eq(false)); in setIcon_noSignal_correctLevels() 381 verify(mController).getIcon(eq(0), eq(NUM_SIGNAL_STRENGTH_BINS), eq(true)); in setIcon_noSignal_correctLevels() 393 verify(mController).getIcon(eq(1), eq(NUM_SIGNAL_STRENGTH_BINS + 1), eq(false)); in setIcon_noSignal_withInflation_correctLevels() 396 verify(mController).getIcon(eq(1), eq(NUM_SIGNAL_STRENGTH_BINS + 1), eq(true)); in setIcon_noSignal_withInflation_correctLevels() 407 verify(mController).getIcon(eq(4), eq(NUM_SIGNAL_STRENGTH_BINS), eq(false)); in setIcon_greatSignal_correctLevels() 410 verify(mController).getIcon(eq(4), eq(NUM_SIGNAL_STRENGTH_BINS), eq(true)); in setIcon_greatSignal_correctLevels() 427 verify(mController, times(4)).getIcon(level.capture(), eq(NUM_SIGNAL_STRENGTH_BINS), in onSignalStrengthChanged_subTwoGoesFromGoodToGreat_correctLevels() 442 verify(mController, times(2)).getIcon(eq(SIGNAL_STRENGTH_GOOD), in displayPreference_mobileDataOff_bothSubsHaveCutOut() [all …]
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | IconLoaderTest.java | 40 assertNull(mLoader.getIcon(null)); in testGetIcon() 41 assertNull(mLoader.getIcon("")); in testGetIcon() 42 assertNull(mLoader.getIcon("0")); in testGetIcon() 43 assertNotNull(mLoader.getIcon(String.valueOf(android.R.drawable.star_on))); in testGetIcon()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAppUtilsTest.java | 48 assertThat(preference.getIcon().getMinimumHeight()).isEqualTo(height); in setSafeIcon_smallerThanLimit() 49 assertThat(preference.getIcon().getMinimumWidth()).isEqualTo(width); in setSafeIcon_smallerThanLimit() 64 assertThat(preference.getIcon().getMinimumHeight()).isEqualTo(testMaxDimensions); in setSafeIcon_largerThanLimit() 65 assertThat(preference.getIcon().getMinimumWidth()).isEqualTo(testMaxDimensions); in setSafeIcon_largerThanLimit()
|
D | DefaultAppEntryBasePreferenceControllerTest.java | 99 assertThat(mPreference.getIcon()).isNotNull(); in refreshUi_hasDefaultAppWithLabel_summaryAndIconAreSet() 113 assertThat(mPreference.getIcon()).isNull(); in refreshUi_hasDefaultAppWithoutLabel_summaryAndIconAreNotSet() 124 assertThat(mPreference.getIcon()).isNull(); in refreshUi_hasNoDefaultApp_summaryAndIconAreNotSet()
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | PhoneAccountCompat.java | 39 public static Icon getIcon(@Nullable PhoneAccount phoneAccount) { in getIcon() method in PhoneAccountCompat 45 return phoneAccount.getIcon(); in getIcon() 80 Icon accountIcon = getIcon(phoneAccount); in createIconDrawableMarshmallow()
|
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/ |
D | SyncPreference.java | 72 getIcon().setTintList(Themes.getAttrColorStateList(getContext(), R.attr.iconColor)); in updateIcon() 76 getIcon().setTintList(Themes.getAttrColorStateList(getContext(), R.attr.iconColor)); in updateIcon() 80 getIcon().setTintList(Themes.getAttrColorStateList(getContext(), R.attr.iconColor)); in updateIcon()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
D | SliceTester.java | 113 assertThat(mainToggleAction.getIcon()).isNull(); in testSettingsToggleSlice() 149 assertThat(expectedIcon.toString()).isEqualTo(primaryAction.getIcon().toString()); in testSettingsSliderSlice() 188 assertThat(expectedIcon.toString()).isEqualTo(primaryAction.getIcon().toString()); in testSettingsCopyableSlice() 304 if (icon.toString().equals(iconItem.getIcon().toString())) { in assertAnySliceItemContainsIcon()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | PackageIconLoader.java | 92 public NowOrLater<Drawable> getIcon(final String drawableId) { in getIcon() method in PackageIconLoader 238 final Drawable icon = getIcon(); in run() 250 private Drawable getIcon() { in getIcon() method in PackageIconLoader.IconLaterTask
|
D | AbstractSource.java | 68 public NowOrLater<Drawable> getIcon(String drawableId) { in getIcon() method in AbstractSource 69 return getIconLoader().getIcon(drawableId); in getIcon()
|
D | CachingIconLoader.java | 55 public NowOrLater<Drawable> getIcon(String drawableId) { in getIcon() method in CachingIconLoader 76 NowOrLater<Drawable> drawable = mWrapped.getIcon(drawableId); in getIcon()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | IconProvider.java | 25 public Drawable getIcon(LauncherActivityInfo info, int iconDpi, boolean flattenDrawable) { in getIcon() method in IconProvider 26 return info.getIcon(iconDpi); in getIcon()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | MainFragment.java | 384 newSuggPref.setIcon(mIconCache.getIcon(suggestion.getIcon())); in updateSuggestionList() 391 curPref.setIcon(mIconCache.getIcon(suggestion.getIcon())); in updateSuggestionList()
|
/packages/apps/Car/Settings/src/com/android/car/settings/suggestions/ |
D | SuggestionPreference.java | 80 setIcon((suggestion.getIcon() != null) ? suggestion.getIcon().loadDrawable(getContext()) in updateSuggestion()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | DragPreviewProvider.java | 70 Drawable d = ((BubbleTextView) mView).getIcon(); in DragPreviewProvider() 86 Drawable d = ((BubbleTextView) mView).getIcon(); in drawDragView() 126 Drawable d = ((BubbleTextView) mView).getIcon(); in createDragBitmap()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | AppDataUsagePreferenceTest.java | 66 assertThat(mPreference.getIcon()).isEqualTo(mUidDetail.icon); in createPref_hasCachedUidDetail_shouldSetAppInfo() 78 assertThat(mPreference.getIcon()).isEqualTo(mUidDetail.icon); in createPref_noCachedUidDetail_shouldSetAppInfo()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountSyncDetailsPreferenceControllerTest.java | 341 assertThat(Shadows.shadowOf(pref.getIcon()).getCreatedFromResId()).isEqualTo( in refreshUi_activelySyncing_notInitialSync_shouldHaveActiveSyncIcon() 361 assertThat(Shadows.shadowOf(pref.getIcon()).getCreatedFromResId()).isEqualTo( in refreshUi_syncPending_notInitialSync_shouldHaveActiveSyncIcon() 383 assertThat(Shadows.shadowOf(pref.getIcon()).getCreatedFromResId()).isEqualTo( in refreshUi_syncFailed_shouldHaveProblemSyncIcon() 396 assertThat(pref.getIcon()).isNull(); in refreshUi_noSyncStatus_shouldHaveNoIcon()
|
D | AccountDetailsPreferenceControllerTest.java | 122 assertThat(mPreference.getIcon()).isNotNull(); in refreshUi_shouldSetIcon() 123 assertThat(Shadows.shadowOf(mPreference.getIcon()).getCreatedFromResId()).isEqualTo( in refreshUi_shouldSetIcon()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | DownloadsDeletionPreferenceGroupTest.java | 80 assertThat(mGroup.getPreference(0).getIcon() instanceof BitmapDrawable).isTrue(); in thumbnailsArePopulated() 81 assertThat(mGroup.getPreference(1).getIcon() instanceof BitmapDrawable).isFalse(); in thumbnailsArePopulated()
|
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
D | AccountInfo.java | 67 public Drawable getIcon() { in getIcon() method in AccountInfo 68 return mDisplayInfo.getIcon(); in getIcon()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ShareIntentAdapter.java | 78 return mData.getIcon() == null ? null : Uri.parse(mData.getIcon());
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | ZenAutomaticRuleHeaderPreferenceController.java | 78 pref = mController.setIcon(getIcon()) in updateState() 91 private Drawable getIcon() { in getIcon() method in ZenAutomaticRuleHeaderPreferenceController
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | ZenAutomaticRuleHeaderPreferenceController.java | 78 pref = mController.setIcon(getIcon()) in updateState() 91 private Drawable getIcon() { in getIcon() method in ZenAutomaticRuleHeaderPreferenceController
|
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/ |
D | ContactPhotoLoader.java | 66 return drawableToBitmap(getIcon(), photoSize, photoSize); in loadPhotoIcon() 70 Drawable getIcon() { in getIcon() method in ContactPhotoLoader
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | AppGridView.java | 91 iconView.setImageDrawable(entry.getIcon()); in getView() 163 public Drawable getIcon() { in getIcon() method in AppGridView.ActivityEntry
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/legacysuggestion/ |
D | LegacySuggestionContextualCardController.java | 142 if (suggestion.getIcon() != null) { in loadSuggestions() 143 cardBuilder.setIconDrawable(suggestion.getIcon().loadDrawable(mContext)); in loadSuggestions()
|