Home
last modified time | relevance | path

Searched refs:iconDrawable (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/src/com/android/settings/shortcut/
DCreateShortcutPreferenceController.java245 Drawable iconDrawable; in createIcon() local
247 iconDrawable = context.getPackageManager().getResourcesForApplication(app) in createIcon()
249 if (iconDrawable instanceof LayerDrawable) { in createIcon()
250 iconDrawable = ((LayerDrawable) iconDrawable).getDrawable(1); in createIcon()
252 ((ImageView) view.findViewById(android.R.id.icon)).setImageDrawable(iconDrawable); in createIcon()
/packages/apps/Camera2/src/com/android/camera/ui/
DModeTransitionView.java454 Drawable iconDrawable = getResources().getDrawable(modeIconResourceId); in updateIconDrawableByResourceId() local
455 if (iconDrawable == null) { in updateIconDrawableByResourceId()
463 setIconDrawable(iconDrawable.mutate()); in updateIconDrawableByResourceId()
473 private void setIconDrawable(Drawable iconDrawable) { in setIconDrawable() argument
474 if (iconDrawable == null) { in setIconDrawable()
477 mIconDrawable = iconDrawable; in setIconDrawable()
DBottomBar.java493 Drawable iconDrawable = getResources().getDrawable(resId); in setShutterButtonIcon() local
494 if (iconDrawable != null) { in setShutterButtonIcon()
495 iconDrawable = iconDrawable.mutate(); in setShutterButtonIcon()
497 mShutterButton.setImageDrawable(iconDrawable); in setShutterButtonIcon()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/
DSuggestionPreferenceTest.java79 Drawable iconDrawable = new ShapeDrawable(); in updateSuggestion_updatesPreference() local
80 when(icon.loadDrawable(any(Context.class))).thenReturn(iconDrawable); in updateSuggestion_updatesPreference()
89 assertThat(mPref.getIcon()).isEqualTo(iconDrawable); in updateSuggestion_updatesPreference()
/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardFeatureProviderImpl.java404 Drawable iconDrawable = icon.loadDrawable(preference.getContext());
406 iconDrawable.setTint(Utils.getHomepageIconColor(preference.getContext()));
408 iconDrawable = new AdaptiveIcon(mContext, iconDrawable,
410 ((AdaptiveIcon) iconDrawable).setBackgroundColor(mContext, tile);
412 preference.setIcon(iconDrawable);
/packages/apps/TV/common/src/com/android/tv/common/customization/
DCustomAction.java32 public CustomAction(int positionPriority, String title, Drawable iconDrawable, Intent intent) { in CustomAction() argument
35 mIconDrawable = iconDrawable; in CustomAction()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DBaseContentFragment.java269 public void setIcon(Drawable iconDrawable) { in setIcon() argument
274 if (iconDrawable != null) { in setIcon()
275 iconImageView.setImageDrawable(iconDrawable); in setIcon()
DContentFragment.java176 public void setIcon(Drawable iconDrawable) { in setIcon() argument
177 mBase.setIcon(iconDrawable); in setIcon()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCard.java284 public Builder setIconDrawable(Drawable iconDrawable) { in setIconDrawable() argument
285 mIconDrawable = iconDrawable; in setIconDrawable()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/watchdog/
DCarWatchdogTestFragment.java214 private void showAlert(String title, String message, int iconDrawable) { in showAlert() argument
227 .setIcon(iconDrawable) in showAlert()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderControllerTest.java110 final BatteryMeterView.BatteryMeterDrawable iconDrawable = in createBatteryIcon_hasCorrectInfo() local
112 assertThat(iconDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL_MAIN); in createBatteryIcon_hasCorrectInfo()
113 assertThat(iconDrawable.getCharging()).isTrue(); in createBatteryIcon_hasCorrectInfo()
/packages/apps/Launcher3/src/com/android/launcher3/
DBubbleTextView.java325 FastBitmapDrawable iconDrawable = info.newIcon(getContext(), useTheme); in applyIconAndLabel() local
326 mDotParams.color = IconPalette.getMutedColor(iconDrawable.getIconColor(), 0.54f); in applyIconAndLabel()
328 setIcon(iconDrawable); in applyIconAndLabel()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSlicePreferencesUtil.java187 Drawable iconDrawable = icon.loadDrawable(contextThemeWrapper); in getPreference() local
189 preference.setIcon(IconUtil.getCompoundIcon(contextThemeWrapper, iconDrawable)); in getPreference()
191 preference.setIcon(iconDrawable); in getPreference()
/packages/apps/Dialer/java/com/android/bubble/
DBubbleInfo.java114 public abstract Builder setIconDrawable(Drawable iconDrawable); in setIconDrawable() argument