Searched refs:fg (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/tools/stringslint/
H A Dstringslint.py30 def format(fg=None, bg=None, bright=False, bold=False, dim=False, reset=False):
35 if not fg is None: codes.append("3%d" % (fg))
49 value = "%sLine %d: '%s':%s %s" % (format(fg=YELLOW, bold=True),
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java301 int fg = findFg ? color : other;
303 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) {
308 ColorUtilsFromCompat.colorToLAB(findFg ? fg : bg, lab);
315 fg = ColorUtilsFromCompat.LABToColor(l, a, b);
319 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) {
337 int fg = color;
339 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) {
350 fg = Color.argb(alpha, r, g, b);
351 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) {
372 int fg
[all...]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
H A DUtilities.java174 public static float computeContrastBetweenColors(int bg, int fg) { argument
183 float fgR = Color.red(fg) / 255f;
184 float fgG = Color.green(fg) / 255f;
185 float fgB = Color.blue(fg) / 255f;
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DActivityTestMain.java84 boolean fg = msg.arg1 != 0;
87 if (fg) {
92 scheduleSpam(!fg);
535 void scheduleSpam(boolean fg) { argument
537 Message msg = mHandler.obtainMessage(MSG_SPAM, fg ? 1 : 0, 0);
/frameworks/base/core/java/com/android/internal/graphics/
H A DColorUtils.java124 return binaryAlphaSearch(foreground, background, minContrastRatio, (fg, bg, alpha) -> {
129 return calculateContrast(fg, testBackground);
150 ContrastCalculator contrastCalculator = (fg, bg, alpha) -> {
151 int testForeground = setAlphaComponent(fg, alpha);
/frameworks/base/tools/apilint/
H A Dapilint.py37 def format(fg=None, bg=None, bright=False, bold=False, dim=False, reset=False):
43 if not fg is None: codes.append("3%d" % (fg))
231 dump = "%s%s:%s %s" % (format(fg=RED, bg=BLACK, bold=True), self.head, format(reset=True), msg)
234 dump = "%s%s:%s %s" % (format(fg=YELLOW, bg=BLACK, bold=True), self.head, format(reset=True), msg)
1502 print "%s Deprecated at birth %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True),
1563 print "%s API compatibility issues %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True), format(reset=True)))
1570 print "%s API changes noticed %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True), format(reset=True)))
1576 print "%s API style issues %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True), format(reset=True)))
/frameworks/base/core/java/com/android/internal/policy/
H A DDecorView.java598 Drawable fg = getForeground();
599 if (fg != null) {
605 fg.setBounds(drawingBounds);
1462 Drawable fg = getForeground();
1464 if (fg == null) {
1470 int fop = fg.getOpacity();
1493 Log.v(mLogTag, "Background: " + bg + ", Frame: " + fg);
/frameworks/base/services/core/java/com/android/server/am/
H A DActiveServices.java178 * Watch for apps being put into forced app standby, so we can step their fg
207 Slog.i(TAG, " Stopping fg for service " + r);
915 // This is when we won't care about this old fg service.
1230 // just turned down its fg request.
2023 private final void bumpServiceExecutingLocked(ServiceRecord r, boolean fg, String why) { argument
2049 r.executeFg = fg;
2056 r.app.execServicesFg |= fg;
2061 } else if (r.app != null && fg && !r.app.execServicesFg) {
2067 r.executeFg |= fg;
2304 Slog.v(TAG_SERVICE, "Bringing up " + r + " " + r.intent + " fg
[all...]
/frameworks/base/core/java/android/view/
H A DView.java12930 final Drawable fg = mForegroundInfo != null ? mForegroundInfo.mDrawable : null;
12931 if (fg != null && isVisible != fg.isVisible()) {
12932 fg.setVisible(isVisible, false);
21091 final Drawable fg = mForegroundInfo != null ? mForegroundInfo.mDrawable : null;
21092 if (fg != null && fg.isStateful()) {
21093 changed |= fg.setState(state);
[all...]

Completed in 113 milliseconds