Home
last modified time | relevance | path

Searched refs:ContrastColorUtil (Results 1 – 18 of 18) 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;
156 if (ContrastColorUtil.isColorLight(backgroundColor)) { in selectForegroundColor()
/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java37 import com.android.internal.util.ContrastColorUtil;
157 backgroundColor = ContrastColorUtil.compositeColors(backgroundColor, parentBackground); in childrenNeedInversion()
DNotificationTemplateViewWrapper.java36 import com.android.internal.util.ContrastColorUtil;
224 return ContrastColorUtil.compositeColors(Color.argb((int) (alpha * 255), in blendColorWithBackground()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationIconAreaController.java17 import com.android.internal.util.ContrastColorUtil;
46 private final ContrastColorUtil mContrastColorUtil;
79 mContrastColorUtil = ContrastColorUtil.getInstance(context); in NotificationIconAreaController()
/frameworks/base/core/java/android/app/
DNotification.java22 import static com.android.internal.util.ContrastColorUtil.satisfiesTextContrast;
93 import com.android.internal.util.ContrastColorUtil;
3380 private ContrastColorUtil mColorUtil;
3511 private ContrastColorUtil getColorUtil() { in getColorUtil()
3513 mColorUtil = ContrastColorUtil.getInstance(mContext); in getColorUtil()
4709 return ContrastColorUtil.clearColorSpans(text); in processTextSpans()
4777 mPrimaryTextColor = ContrastColorUtil.resolvePrimaryColor(mContext, in ensureColors()
4779 mSecondaryTextColor = ContrastColorUtil.resolveSecondaryColor(mContext, in ensureColors()
4782 mPrimaryTextColor = ContrastColorUtil.findAlphaToMeetContrast( in ensureColors()
4784 mSecondaryTextColor = ContrastColorUtil.findAlphaToMeetContrast( in ensureColors()
[all …]
DWallpaperColors.java35 import com.android.internal.util.ContrastColorUtil;
395 final boolean satisfiesTextContrast = ContrastColorUtil in calculateDarkHints()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java33 import com.android.internal.util.ContrastColorUtil;
136 mMinStrokeContrast = ContrastColorUtil.calculateContrast(mDefaultStrokeColor, in SmartReplyView()
829 final boolean dark = !ContrastColorUtil.isColorLight(backgroundColor); in setBackgroundTintColor()
831 int textColor = ContrastColorUtil.ensureTextContrast( in setBackgroundTintColor()
834 int strokeColor = ContrastColorUtil.ensureContrast( in setBackgroundTintColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java54 import com.android.internal.util.ContrastColorUtil;
698 if (!ContrastColorUtil.satisfiesTextContrast(mCachedContrastBackgroundColor, in updateContrastedStaticColor()
707 boolean isDark = !ContrastColorUtil.isColorLight(mCachedContrastBackgroundColor); in updateContrastedStaticColor()
708 contrastedColor = ContrastColorUtil.resolveContrastColor(mContext, in updateContrastedStaticColor()
DNotificationHeaderUtil.java29 import com.android.internal.util.ContrastColorUtil;
85 int grey = ContrastColorUtil.resolveColor(view.getContext(),
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLayout.java48 import com.android.internal.util.ContrastColorUtil;
334 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
340 return ContrastColorUtil.getShiftedColor(layoutColor, in findColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntry.java54 import com.android.internal.util.ContrastColorUtil;
440 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/
DNotificationContentView.java40 import com.android.internal.util.ContrastColorUtil;
1352 existing.setBackgroundColor(ContrastColorUtil.ensureTextBackgroundColor(color,
DExpandableNotificationRow.java74 import com.android.internal.util.ContrastColorUtil;
620 ContrastColorUtil.getInstance(mContext)); in updateShelfIconColor()
1307 mNotificationColor = ContrastColorUtil.resolveContrastColor(mContext,
/frameworks/base/core/java/android/widget/
DRemoteViews.java75 import com.android.internal.util.ContrastColorUtil;
2149 textView.setText(ContrastColorUtil.clearColorSpans(textView.getText()));