/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationUtils.java | 28 import com.android.internal.util.ContrastColorUtil; 40 public static boolean isGrayscale(ImageView v, ContrastColorUtil colorUtil) { in isGrayscale()
|
D | MediaNotificationProcessor.java | 31 import com.android.internal.util.ContrastColorUtil; 156 if (ContrastColorUtil.isColorLight(backgroundColor)) { in selectForegroundColor()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ContrastColorUtil.java | 51 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/ |
D | StatusBarIconViewTest.java | 46 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/ |
D | NotificationViewWrapper.java | 37 import com.android.internal.util.ContrastColorUtil; 157 backgroundColor = ContrastColorUtil.compositeColors(backgroundColor, parentBackground); in childrenNeedInversion()
|
D | NotificationTemplateViewWrapper.java | 36 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/ |
D | NotificationIconAreaController.java | 17 import com.android.internal.util.ContrastColorUtil; 46 private final ContrastColorUtil mContrastColorUtil; 79 mContrastColorUtil = ContrastColorUtil.getInstance(context); in NotificationIconAreaController()
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 22 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 …]
|
D | WallpaperColors.java | 35 import com.android.internal.util.ContrastColorUtil; 395 final boolean satisfiesTextContrast = ContrastColorUtil in calculateDarkHints()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyView.java | 33 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/ |
D | StatusBarIconView.java | 54 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()
|
D | NotificationHeaderUtil.java | 29 import com.android.internal.util.ContrastColorUtil; 85 int grey = ContrastColorUtil.resolveColor(view.getContext(),
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | MessagingLayout.java | 48 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/ |
D | NotificationEntry.java | 54 import com.android.internal.util.ContrastColorUtil; 440 final int contrasted = ContrastColorUtil.resolveContrastColor(context, rawColor, in getContrastedColor()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | NotificationTest.java | 19 import static com.android.internal.util.ContrastColorUtil.satisfiesTextContrast;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationContentView.java | 40 import com.android.internal.util.ContrastColorUtil; 1352 existing.setBackgroundColor(ContrastColorUtil.ensureTextBackgroundColor(color,
|
D | ExpandableNotificationRow.java | 74 import com.android.internal.util.ContrastColorUtil; 620 ContrastColorUtil.getInstance(mContext)); in updateShelfIconColor() 1307 mNotificationColor = ContrastColorUtil.resolveContrastColor(mContext,
|
/frameworks/base/core/java/android/widget/ |
D | RemoteViews.java | 75 import com.android.internal.util.ContrastColorUtil; 2149 textView.setText(ContrastColorUtil.clearColorSpans(textView.getText()));
|