Searched defs:bg (Results 1 - 8 of 8) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
H A D | Utilities.java | 174 public static float computeContrastBetweenColors(int bg, int fg) { argument 175 float bgR = Color.red(bg) / 255f; 176 float bgG = Color.green(bg) / 255f; 177 float bgB = Color.blue(bg) / 255f;
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActionBarContainer.java | 57 final Drawable bg = Build.VERSION.SDK_INT >= 21 60 setBackgroundDrawable(bg); 86 public void setPrimaryBackground(Drawable bg) { argument 91 mBackground = bg; 92 if (bg != null) { 93 bg.setCallback(this); 104 public void setStackedBackground(Drawable bg) { argument 109 mStackedBackground = bg; 110 if (bg != null) { 111 bg 122 setSplitBackground(Drawable bg) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ActionBarContainer.java | 87 public void setPrimaryBackground(Drawable bg) { argument 92 mBackground = bg; 93 if (bg != null) { 94 bg.setCallback(this); 105 public void setStackedBackground(Drawable bg) { argument 110 mStackedBackground = bg; 111 if (bg != null) { 112 bg.setCallback(this); 123 public void setSplitBackground(Drawable bg) { argument 128 mSplitBackground = bg; [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationColorUtil.java | 244 int bg = findFg ? other : color; 245 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { 250 ColorUtilsFromCompat.colorToLAB(findFg ? fg : bg, lab); 259 bg = ColorUtilsFromCompat.LABToColor(l, a, b); 261 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { 271 * Finds a text color with sufficient contrast over bg that has the same hue as the original 274 private static int ensureLargeTextContrast(int color, int bg) { argument 275 return findContrastColor(color, bg, true, 3); 279 * Finds a text color with sufficient contrast over bg that has the same hue as the original 282 private static int ensureTextContrast(int color, int bg) { argument 294 contrastChange(int colorOld, int colorNew, int bg) argument [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | Animation.java | 629 * @param bg The background color. If 0, no background. Currently must 632 public void setBackgroundColor(@ColorInt int bg) { argument 633 mBackgroundColor = bg;
|
/frameworks/base/core/java/android/widget/ |
H A D | Spinner.java | 1063 public void setBackgroundDrawable(Drawable bg); argument 1124 public void setBackgroundDrawable(Drawable bg) { argument
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CoordinatorLayout.java | 250 * @param bg Background drawable to draw behind the status bar 252 public void setStatusBarBackground(@Nullable final Drawable bg) { argument 253 if (mStatusBarBackground != bg) { 257 mStatusBarBackground = bg != null ? bg.mutate() : null;
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | DrawerLayout.java | 1284 final Drawable bg = v.getBackground(); 1285 if (bg != null) { 1286 return bg.getOpacity() == PixelFormat.OPAQUE; 1295 * @param bg Background drawable to draw behind the status bar 1297 public void setStatusBarBackground(Drawable bg) { argument 1298 mStatusBarBackground = bg;
|
Completed in 4152 milliseconds