Home
last modified time | relevance | path

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

123456789

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DSubscriptionsPreferenceControllerTest.java127 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/
DIconLoaderTest.java40 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/
DDefaultAppUtilsTest.java48 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()
DDefaultAppEntryBasePreferenceControllerTest.java99 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/
DPhoneAccountCompat.java39 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/
DSyncPreference.java72 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/
DSliceTester.java113 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/
DPackageIconLoader.java92 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
DAbstractSource.java68 public NowOrLater<Drawable> getIcon(String drawableId) { in getIcon() method in AbstractSource
69 return getIconLoader().getIcon(drawableId); in getIcon()
DCachingIconLoader.java55 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/
DIconProvider.java25 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/
DMainFragment.java384 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/
DSuggestionPreference.java80 setIcon((suggestion.getIcon() != null) ? suggestion.getIcon().loadDrawable(getContext()) in updateSuggestion()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DDragPreviewProvider.java70 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/
DAppDataUsagePreferenceTest.java66 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/
DAccountSyncDetailsPreferenceControllerTest.java341 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()
DAccountDetailsPreferenceControllerTest.java122 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/
DDownloadsDeletionPreferenceGroupTest.java80 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/
DAccountInfo.java67 public Drawable getIcon() { in getIcon() method in AccountInfo
68 return mDisplayInfo.getIcon(); in getIcon()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DShareIntentAdapter.java78 return mData.getIcon() == null ? null : Uri.parse(mData.getIcon());
/packages/apps/Settings/src/com/android/settings/notification/
DZenAutomaticRuleHeaderPreferenceController.java78 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/
DZenAutomaticRuleHeaderPreferenceController.java78 pref = mController.setIcon(getIcon()) in updateState()
91 private Drawable getIcon() { in getIcon() method in ZenAutomaticRuleHeaderPreferenceController
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/
DContactPhotoLoader.java66 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/
DAppGridView.java91 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/
DLegacySuggestionContextualCardController.java142 if (suggestion.getIcon() != null) { in loadSuggestions()
143 cardBuilder.setIconDrawable(suggestion.getIcon().loadDrawable(mContext)); in loadSuggestions()

123456789