[go: nahoru, domu]

Searched refs:bg (Results 1 - 23 of 23) sorted by relevance

/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/
H A DSubActivity.java50 View bg = findViewById(R.id.bg_container);
51 bg.setAlpha(0f);
52 bg.animate().alpha(1f).setDuration(MainActivity.DURATION);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionBarContainer.java57 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...]
H A DActionMenuPresenter.java708 final Drawable bg = getBackground();
709 if (d != null && bg != null) {
717 DrawableCompat.setHotspotBounds(bg, centerX - halfEdge, centerY - halfEdge,
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarContainer.java87 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/android/app/
H A DSharedElementCallback.java174 Drawable bg = imageView.getBackground();
175 if (d != null && (bg == null || bg.getAlpha() == 0)) {
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java244 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/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DUtilities.java174 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/v4/java/android/support/v4/app/
H A DSharedElementCallback.java172 Drawable bg = imageView.getBackground();
173 if (d != null && bg == null) {
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerTitleStrip.java470 final Drawable bg = getBackground();
471 if (bg != null) {
472 minHeight = bg.getIntrinsicHeight();
H A DViewCompat.java596 final Drawable bg = view.getBackground();
597 if (bg != null) {
598 return bg.getOpacity() == PixelFormat.OPAQUE;
/frameworks/base/tools/apilint/
H A Dapilint.py37 def format(fg=None, bg=None, bright=False, bold=False, dim=False, reset=False):
44 if not bg is None:
45 if not bright: codes.append("4%d" % (bg))
46 else: codes.append("10%d" % (bg))
217 dump = "%s%s:%s %s" % (format(fg=RED, bg=BLACK, bold=True), self.head, format(reset=True), msg)
220 dump = "%s%s:%s %s" % (format(fg=YELLOW, bg=BLACK, bold=True), self.head, format(reset=True), msg)
1150 print "%s API compatibility issues %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True), format(reset=True)))
1156 print "%s API style issues %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True), format(reset=True)))
/frameworks/support/design/src/android/support/design/widget/
H A DTextInputLayout.java764 final Drawable bg = mEditText.getBackground();
765 if (bg == null) {
774 final Drawable newBg = bg.getConstantState().newDrawable();
776 if (bg instanceof DrawableContainer) {
781 (DrawableContainer) bg, newBg.getConstantState());
H A DCoordinatorLayout.java250 * @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/base/core/java/android/widget/
H A DAbsSeekBar.java812 final Drawable bg = getBackground();
813 if (bg != null) {
814 bg.setHotspot(x, y);
H A DActionMenuPresenter.java913 final Drawable bg = getBackground();
914 if (d != null && bg != null) {
922 bg.setHotspotBounds(centerX - halfEdge, centerY - halfEdge,
H A DSpinner.java1063 public void setBackgroundDrawable(Drawable bg); argument
1124 public void setBackgroundDrawable(Drawable bg) { argument
H A DPopupWindow.java275 final Drawable bg = a.getDrawable(R.styleable.PopupWindow_popupBackground);
307 setBackgroundDrawable(bg);
/frameworks/base/core/java/android/view/animation/
H A DAnimation.java629 * @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/com/android/internal/policy/
H A DDecorView.java584 Drawable bg = getBackground();
585 if (bg != null) {
586 bg.setBounds(drawingBounds);
1357 Drawable bg = getBackground();
1359 if (bg != null) {
1361 opacity = bg.getOpacity();
1367 int bop = bg.getOpacity();
1389 Log.v(mLogTag, "Background: " + bg + ", Frame: " + fg);
/frameworks/support/v4/java/android/support/v4/widget/
H A DDrawerLayout.java1284 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;
H A DSlidingPaneLayout.java421 final Drawable bg = v.getBackground();
422 if (bg != null) {
423 return bg.getOpacity() == PixelFormat.OPAQUE;
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DMLand.java478 final Drawable bg = s.getBackground();
479 if (bg != null) bg.setColorFilter(Color.rgb(c,c,c), PorterDuff.Mode.MULTIPLY);
/frameworks/base/core/java/android/view/
H A DView.java17847 final Drawable bg = mBackground;
17848 if (bg != null && bg.isStateful()) {
17849 changed |= bg.setState(state);

Completed in 495 milliseconds