Home
last modified time | relevance | path

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

12

/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/view/
DQCViewUtils.java53 Drawable iconDrawable = icon.loadDrawable(context); in getToggleIcon() local
54 if (iconDrawable == null) { in getToggleIcon()
60 iconDrawable.setTint(unavailableToggleIconTint); in getToggleIcon()
64 iconDrawable.setTintList(defaultToggleIconTint); in getToggleIcon()
67 Drawable[] layers = {background, iconDrawable}; in getToggleIcon()
/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/Settings/src/com/android/settings/shortcut/
DCreateShortcutPreferenceController.java286 Drawable iconDrawable; in createIcon() local
288 iconDrawable = context.getPackageManager().getResourcesForApplication(app) in createIcon()
290 if (iconDrawable instanceof LayerDrawable) { in createIcon()
291 iconDrawable = ((LayerDrawable) iconDrawable).getDrawable(1); in createIcon()
293 ((ImageView) view.findViewById(android.R.id.icon)).setImageDrawable(iconDrawable); in createIcon()
/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/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/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/
DSplitAnimationControllerTest.kt117 splitAnimInitProps.iconDrawable in getFirstAnimInitViews_nullTaskViewIcon_useSplitSourceIcon()
133 splitAnimInitProps.iconDrawable in getFirstAnimInitViews_validTaskViewIcon_useTaskViewIcon()
152 splitAnimInitProps.iconDrawable in getFirstAnimInitViews_validTaskViewNullSplitSource_useTaskViewIcon()
168 splitAnimInitProps.iconDrawable in getFirstAnimInitViews_nullTaskViewValidSplitSource_noTaskDismissal()
197 splitAnimInitProps.iconDrawable in getFirstAnimInitViews_nullTaskViewValidSplitSource_groupedTaskView()
/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardFeatureProviderImpl.java439 Drawable iconDrawable = icon.loadDrawable(preference.getContext());
440 if (iconDrawable == null) {
446 iconDrawable.setTint(Utils.getHomepageIconColor(preference.getContext()));
450 iconDrawable = new AdaptiveIcon(mContext, iconDrawable,
452 ((AdaptiveIcon) iconDrawable).setBackgroundColor(mContext, tile);
454 preference.setIcon(iconDrawable);
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/dialog/
DAlertDialogBuilder.kt88 val iconDrawable = AttributeResolver.getNullableDrawable(context, iconId) in <lambda>() constant
89 iconDrawable?.let { in <lambda>()
99 val iconDrawable = AttributeResolver.getNullableDrawable(context, iconId) in <lambda>() constant
100 iconDrawable?.let { in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/selectabledeletion/
DNewDeletionConfirmationDialogFragment.kt38 val iconDrawable = AttributeResolver.getNullableDrawable(view.context, R.attr.deleteIcon) in <lambda>() constant
42 iconDrawable?.let { in <lambda>()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/qc/
DCarUiPortraitProfileSwitcher.java93 private QCRow createUserProfileRowForCurrentProfile(String title, Drawable iconDrawable, in createUserProfileRowForCurrentProfile() argument
95 Icon icon = Icon.createWithBitmap(drawableToBitmap(iconDrawable)); in createUserProfileRowForCurrentProfile()
/packages/apps/TvSystemUI/src/com/android/systemui/tv/sensorprivacy/
DTvSensorPrivacyChangedActivity.java141 Drawable iconDrawable = mIcon.getDrawable(); in updateUI() local
142 if (iconDrawable instanceof Animatable) { in updateUI()
143 ((Animatable) iconDrawable).start(); in updateUI()
DTvUnblockSensorActivity.java218 Drawable iconDrawable = mIcon.getDrawable(); in updateUiForHardwareToggle() local
219 if (iconDrawable instanceof Animatable) { in updateUiForHardwareToggle()
220 ((Animatable) iconDrawable).start(); in updateUiForHardwareToggle()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/
DDeletionAppDataConfirmationDialogFragment.kt53 val iconDrawable = AttributeResolver.getNullableDrawable(view.context, R.attr.deleteIcon) in <lambda>() constant
54 iconDrawable?.let { in <lambda>()
DTimeRangeDialogFragment.kt54 val iconDrawable = in <lambda>() constant
56 iconDrawable?.let { in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/shared/
DDisconnectDialogFragment.kt96 val iconDrawable = in <lambda>() constant
98 iconDrawable?.let { in <lambda>()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DContentFragment.java176 public void setIcon(Drawable iconDrawable) { in setIcon() argument
177 mBase.setIcon(iconDrawable); in setIcon()
DBaseContentFragment.java269 public void setIcon(Drawable iconDrawable) { in setIcon() argument
274 if (iconDrawable != null) { in setIcon()
275 iconImageView.setImageDrawable(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/apps/Dialer/java/com/android/bubble/
DBubbleInfo.java114 public abstract Builder setIconDrawable(Drawable iconDrawable); in setIconDrawable() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderControllerTest.java115 final BatteryMeterView.BatteryMeterDrawable iconDrawable = in createBatteryIcon_hasCorrectInfo() local
117 assertThat(iconDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL_MAIN); in createBatteryIcon_hasCorrectInfo()
118 assertThat(iconDrawable.getCharging()).isTrue(); in createBatteryIcon_hasCorrectInfo()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSlicePreferencesUtil.java190 Drawable iconDrawable = icon.loadDrawable(contextThemeWrapper); in getPreference() local
192 preference.setIcon(IconUtil.getCompoundIcon(contextThemeWrapper, iconDrawable)); in getPreference()
194 preference.setIcon(iconDrawable); in getPreference()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/bubbles/
DBubbleBarController.java610 Drawable iconDrawable = AppCompatResources.getDrawable(mContext, in createOverflowBitmap() local
622 iconDrawable.setTint(overflowIconColor); in createOverflowBitmap()
625 Drawable foreground = new InsetDrawable(iconDrawable, inset); in createOverflowBitmap()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/watchdog/
DCarWatchdogTestFragment.java438 private void showAlert(String title, String message, int iconDrawable) { in showAlert() argument
447 .setIcon(iconDrawable) in showAlert()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DProfileSwitcher.java270 private QCRow createProfileRow(String title, Drawable iconDrawable, in createProfileRow() argument
272 Icon icon = Icon.createWithBitmap(drawableToBitmap(iconDrawable)); in createProfileRow()

12