Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationUtils.java28 import com.android.internal.util.ContrastColorUtil;
40 public static boolean isGrayscale(ImageView v, ContrastColorUtil colorUtil) { in isGrayscale()
DMediaNotificationProcessor.java31 import com.android.internal.util.ContrastColorUtil;
162 if (ContrastColorUtil.isColorLight(backgroundColor)) { in selectForegroundColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleManageEducationView.java28 import com.android.internal.util.ContrastColorUtil;
73 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, true); in onFinishInflate()
DBubbleOverflowActivity.java43 import com.android.internal.util.ContrastColorUtil;
164 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, isNightMode); in updateTheme()
257 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, true); in onCreateViewHolder()
DBubbleExperimentConfig.java46 import com.android.internal.util.ContrastColorUtil;
238 notifColor = ContrastColorUtil.findContrastColor(notifColor, Color.WHITE, in createFromNotif()
DBubbleStackView.java86 import com.android.internal.util.ContrastColorUtil;
1146 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, true); in setUpUserEducation()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java51 public class ContrastColorUtil { class
57 private static ContrastColorUtil sInstance;
65 public static ContrastColorUtil getInstance(Context context) { in getInstance()
68 sInstance = new ContrastColorUtil(context); in getInstance()
74 private ContrastColorUtil(Context context) { in ContrastColorUtil() method in ContrastColorUtil
476 return ContrastColorUtil.resolveContrastColor(context, notificationColor, in resolveContrastColor()
495 color = ContrastColorUtil.ensureTextContrast(color, backgroundColor, isDark); in resolveContrastColor()
503 ContrastColorUtil.contrastChange(resolvedColor, color, backgroundColor), in resolveContrastColor()
611 return ContrastColorUtil.calculateContrast(foregroundColor, backgroundColor) >= 4.5; in satisfiesTextContrast()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DStatusBarIconViewTest.java46 import com.android.internal.util.ContrastColorUtil;
119 ContrastColorUtil.satisfiesTextContrast(Color.WHITE, color)); in testGetContrastedStaticDrawableColor()
/frameworks/base/core/java/android/app/
DNotification.java23 import static com.android.internal.util.ContrastColorUtil.satisfiesTextContrast;
95 import com.android.internal.util.ContrastColorUtil;
3463 private ContrastColorUtil mColorUtil;
3589 private ContrastColorUtil getColorUtil() { in getColorUtil()
3591 mColorUtil = ContrastColorUtil.getInstance(mContext); in getColorUtil()
4847 return ContrastColorUtil.clearColorSpans(text); in processTextSpans()
4915 mPrimaryTextColor = ContrastColorUtil.resolvePrimaryColor(mContext, in ensureColors()
4917 mSecondaryTextColor = ContrastColorUtil.resolveSecondaryColor(mContext, in ensureColors()
4920 mPrimaryTextColor = ContrastColorUtil.findAlphaToMeetContrast( in ensureColors()
4922 mSecondaryTextColor = ContrastColorUtil.findAlphaToMeetContrast( in ensureColors()
[all …]
DWallpaperColors.java35 import com.android.internal.util.ContrastColorUtil;
403 final boolean satisfiesTextContrast = ContrastColorUtil in calculateDarkHints()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java40 import com.android.internal.util.ContrastColorUtil;
173 backgroundColor = ContrastColorUtil.compositeColors(backgroundColor, parentBackground); in childrenNeedInversion()
DNotificationTemplateViewWrapper.java35 import com.android.internal.util.ContrastColorUtil;
222 return ContrastColorUtil.compositeColors(Color.argb((int) (alpha * 255), in blendColorWithBackground()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java34 import com.android.internal.util.ContrastColorUtil;
137 mMinStrokeContrast = ContrastColorUtil.calculateContrast(mDefaultStrokeColor, in SmartReplyView()
834 final boolean dark = !ContrastColorUtil.isColorLight(backgroundColor); in setBackgroundTintColor()
836 int textColor = ContrastColorUtil.ensureTextContrast( in setBackgroundTintColor()
839 int strokeColor = ContrastColorUtil.ensureContrast( in setBackgroundTintColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationIconAreaController.java18 import com.android.internal.util.ContrastColorUtil;
52 private final ContrastColorUtil mContrastColorUtil;
109 mContrastColorUtil = ContrastColorUtil.getInstance(context); in NotificationIconAreaController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java54 import com.android.internal.util.ContrastColorUtil;
704 if (!ContrastColorUtil.satisfiesTextContrast(mCachedContrastBackgroundColor, in updateContrastedStaticColor()
713 boolean isDark = !ContrastColorUtil.isColorLight(mCachedContrastBackgroundColor); in updateContrastedStaticColor()
714 contrastedColor = ContrastColorUtil.resolveContrastColor(mContext, in updateContrastedStaticColor()
DNotificationHeaderUtil.java30 import com.android.internal.util.ContrastColorUtil;
88 int grey = ContrastColorUtil.resolveColor(view.getContext(),
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLayout.java52 import com.android.internal.util.ContrastColorUtil;
363 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
369 return ContrastColorUtil.getShiftedColor(layoutColor, in findColor()
DConversationLayout.java70 import com.android.internal.util.ContrastColorUtil;
933 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
939 return ContrastColorUtil.getShiftedColor(layoutColor, in findColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntry.java61 import com.android.internal.util.ContrastColorUtil;
495 final int contrasted = ContrastColorUtil.resolveContrastColor(context, rawColor, in getContrastedColor()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationTest.java19 import static com.android.internal.util.ContrastColorUtil.satisfiesTextContrast;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRow.java68 import com.android.internal.util.ContrastColorUtil;
600 ContrastColorUtil.getInstance(mContext)); in updateShelfIconColor()
1295 mNotificationColor = ContrastColorUtil.resolveContrastColor(mContext,
DNotificationContentView.java46 import com.android.internal.util.ContrastColorUtil;
1308 existing.setBackgroundColor(ContrastColorUtil.ensureTextBackgroundColor(color,
/frameworks/base/core/java/android/widget/
DRemoteViews.java75 import com.android.internal.util.ContrastColorUtil;
2158 textView.setText(ContrastColorUtil.clearColorSpans(textView.getText()));
/frameworks/base/config/
Dboot-image-profile.txt29826 HSPLcom/android/internal/util/ContrastColorUtil$ColorUtilsFromCompat;->LABToColor(DDD)I
29827 HSPLcom/android/internal/util/ContrastColorUtil$ColorUtilsFromCompat;->LABToXYZ(DDD[D)V
29828 HSPLcom/android/internal/util/ContrastColorUtil$ColorUtilsFromCompat;->RGBToXYZ(III[D)V
29829 HSPLcom/android/internal/util/ContrastColorUtil$ColorUtilsFromCompat;->XYZToColor(DDD)I
29830 HSPLcom/android/internal/util/ContrastColorUtil$ColorUtilsFromCompat;->XYZToLAB(DDD[D)V
29831 HSPLcom/android/internal/util/ContrastColorUtil$ColorUtilsFromCompat;->calculateContrast(II)D
29832 HSPLcom/android/internal/util/ContrastColorUtil$ColorUtilsFromCompat;->calculateLuminance(I)D
29833 HSPLcom/android/internal/util/ContrastColorUtil$ColorUtilsFromCompat;->colorToLAB(I[D)V
29834 HSPLcom/android/internal/util/ContrastColorUtil$ColorUtilsFromCompat;->colorToXYZ(I[D)V
29835 HSPLcom/android/internal/util/ContrastColorUtil$ColorUtilsFromCompat;->compositeColors(II)I
[all …]
Dpreloaded-classes9298 com.android.internal.util.ContrastColorUtil$ColorUtilsFromCompat
9299 com.android.internal.util.ContrastColorUtil