Searched refs:fg (Results 1 - 9 of 9) sorted by relevance
/frameworks/base/tools/stringslint/ |
H A D | stringslint.py | 30 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 D | NotificationColorUtil.java | 301 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 D | Utilities.java | 174 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 D | ActivityTestMain.java | 84 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 D | ColorUtils.java | 124 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 D | apilint.py | 37 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 D | DecorView.java | 598 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 D | ActiveServices.java | 178 * 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 D | View.java | 12930 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