/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | SubscriptionsPreferenceControllerTest.java | 129 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/ |
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 | 100 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/ |
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/libs/car-ui-lib/src/com/android/car/ui/toolbar/ |
D | MenuItemRenderer.java | 120 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/ |
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/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | WifiStatusPreferenceControllerTest.java | 121 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/ |
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 | 26 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/ |
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/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/Launcher3/src/com/android/launcher3/graphics/ |
D | DragPreviewProvider.java | 71 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/ |
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/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/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ShareIntentAdapter.java | 78 return mData.getIcon() == null ? null : Uri.parse(mData.getIcon());
|
/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
|