Home
last modified time | relevance | path

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

123456789

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DSubscriptionsPreferenceControllerTest.java129 doReturn(mSignalStrengthIcon).when(mController).getIcon(anyInt(), anyInt(), anyBoolean()); in setUp()
368 verify(mController).getIcon(eq(0), eq(NUM_SIGNAL_STRENGTH_BINS), eq(true)); in setIcon_nullStrength_noCrash()
380 verify(mController).getIcon(eq(0), eq(NUM_SIGNAL_STRENGTH_BINS), eq(false)); in setIcon_noSignal_correctLevels()
383 verify(mController).getIcon(eq(0), eq(NUM_SIGNAL_STRENGTH_BINS), eq(true)); in setIcon_noSignal_correctLevels()
395 verify(mController).getIcon(eq(1), eq(NUM_SIGNAL_STRENGTH_BINS + 1), eq(false)); in setIcon_noSignal_withInflation_correctLevels()
398 verify(mController).getIcon(eq(1), eq(NUM_SIGNAL_STRENGTH_BINS + 1), eq(true)); in setIcon_noSignal_withInflation_correctLevels()
409 verify(mController).getIcon(eq(4), eq(NUM_SIGNAL_STRENGTH_BINS), eq(false)); in setIcon_greatSignal_correctLevels()
412 verify(mController).getIcon(eq(4), eq(NUM_SIGNAL_STRENGTH_BINS), eq(true)); in setIcon_greatSignal_correctLevels()
429 verify(mController, times(4)).getIcon(level.capture(), eq(NUM_SIGNAL_STRENGTH_BINS), in onSignalStrengthChanged_subTwoGoesFromGoodToGreat_correctLevels()
444 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.java100 assertThat(mPreference.getIcon()).isNotNull(); in refreshUi_hasDefaultAppWithLabel_summaryAndIconAreSet()
114 assertThat(mPreference.getIcon()).isNull(); in refreshUi_hasDefaultAppWithoutLabel_summaryAndIconAreNotSet()
125 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/libs/car-ui-lib/src/com/android/car/ui/toolbar/
DMenuItemRenderer.java120 boolean hasIcon = mMenuItem.getIcon() != null; in updateView()
142 mMenuItem.getIcon().setBounds(0, 0, mMenuItemIconSize, mMenuItemIconSize); in updateView()
143 mTextWithIconView.setCompoundDrawables(mMenuItem.getIcon(), null, null, null); in updateView()
147 mIconView.setImageDrawable(mMenuItem.getIcon()); in updateView()
155 mMenuItem.getIcon().setTintList(null); in updateView()
/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/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiStatusPreferenceControllerTest.java121 assertThat(mPreference.getIcon()).isNotNull(); in updateState_wifiDisabled_showsIcon()
149 assertThat(mPreference.getIcon()).isNotNull(); in onWifiStateChanged_disabled()
161 assertThat(mPreference.getIcon()).isNull(); in onWifiStateChanged_enabling()
/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.java26 public Drawable getIcon(LauncherActivityInfo info, int iconDpi, boolean flattenDrawable) { in getIcon() method in IconProvider
27 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/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/Launcher3/src/com/android/launcher3/graphics/
DDragPreviewProvider.java71 Drawable d = ((BubbleTextView) mView).getIcon(); in DragPreviewProvider()
87 Drawable d = ((BubbleTextView) mView).getIcon(); in drawDragView()
130 Drawable d = ((BubbleTextView) mView).getIcon(); in createDragBitmap()
/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/Settings/src/com/android/settings/notification/
DZenAutomaticRuleHeaderPreferenceController.java78 pref = mController.setIcon(getIcon()) in updateState()
91 private Drawable getIcon() { in getIcon() method in ZenAutomaticRuleHeaderPreferenceController
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DShareIntentAdapter.java78 return mData.getIcon() == null ? null : Uri.parse(mData.getIcon());
/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

123456789