/frameworks/base/libs/androidfw/tests/data/system/ |
H A D | R.h | 25 background = 0x01010000, // default enumerator in enum:android::R::attr::__anon1043
|
/frameworks/support/design/base/android/support/design/widget/ |
H A D | ShadowViewDelegate.java | 24 void setBackgroundDrawable(Drawable background); argument
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
H A D | AppCompatTintableViewActions.java | 65 * Sets the passed color state list as the background layer on a {@link View} that 77 return "set background tint list"; 93 * Sets the passed mode as the background tint mode on a <code>View</code> that 105 return "set background tint mode"; 121 * Sets background drawable on a <code>View</code> that implements the 124 public static ViewAction setBackgroundDrawable(final Drawable background) { argument 133 return "set background drawable"; 140 view.setBackgroundDrawable(background); 148 * Sets background resource on a <code>View</code> that implements the 160 return "set background resourc [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
H A D | StatusBarBackgroundLayout.java | 34 * inset area, making a background effect for the navigation bar. To make use of this layout, 95 public void setStatusBarBackground(Drawable background) { argument 96 mStatusBarBackground = background; 98 setWillNotDraw(background == null); 99 setFitsSystemWindows(background != null);
|
H A D | Illustration.java | 39 * drawable to fit the width of the view and fills the rest with the background. 86 * The background will be drawn to fill up the rest of the view. It will also be scaled by the 93 public void setBackgroundDrawable(Drawable background) { argument 94 if (background == mBackground) { 97 mBackground = background; 169 // Scale the background bounds by the same scale to compensate for the scale done to the 180 // Draw the background filling parts not covered by the illustration 183 // Scale the background so its size matches the foreground
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | RecordingCanvasTests.cpp | 250 // a background! 513 sp<RenderNode> background = TestUtils::createNode(50, 50, 150, 150, local 520 background->mutateStagingProperties().setProjectionReceiver(false); 524 [&background](RecordingCanvas& canvas) { 526 canvas.drawRenderNode(background.get()); 533 background->mutateStagingProperties().setProjectionReceiver(true); 537 [&background](RecordingCanvas& canvas) { 539 canvas.drawRenderNode(background.get()); 550 EXPECT_TRUE(background->stagingProperties().isProjectionReceiver()); 551 EXPECT_FALSE(background [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AppCompatAutoCompleteTextView.java | 36 * <li>Allows dynamic tint of it background via the background tint methods in 38 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and 102 public void setBackgroundDrawable(Drawable background) { argument 103 super.setBackgroundDrawable(background); 105 mBackgroundTintHelper.onSetBackgroundDrawable(background);
|
H A D | AppCompatBackgroundHelper.java | 70 // Update the default background tint 76 void onSetBackgroundDrawable(Drawable background) { argument 77 // We don't know that this drawable is, so we need to clear the default background tint 110 final Drawable background = mView.getBackground(); 111 if (background != null) { 112 if (Build.VERSION.SDK_INT == 21 && applyFrameworkTintUsingColorFilter(background)) { 121 AppCompatDrawableManager.tintDrawable(background, mBackgroundTint, 124 AppCompatDrawableManager.tintDrawable(background, mInternalBackgroundTint, 144 * Applies the framework background tint to a view, but using the compat method (ColorFilter) 148 private boolean applyFrameworkTintUsingColorFilter(@NonNull Drawable background) { argument [all...] |
H A D | AppCompatEditText.java | 36 * <li>Allows dynamic tint of it background via the background tint methods in 38 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and 80 public void setBackgroundDrawable(Drawable background) { argument 81 super.setBackgroundDrawable(background); 83 mBackgroundTintHelper.onSetBackgroundDrawable(background);
|
H A D | AppCompatImageButton.java | 34 * <li>Allows dynamic tint of it background via the background tint methods in 36 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and 83 public void setBackgroundDrawable(Drawable background) { argument 84 super.setBackgroundDrawable(background); 86 mBackgroundTintHelper.onSetBackgroundDrawable(background);
|
H A D | AppCompatImageView.java | 34 * <li>Allows dynamic tint of it background via the background tint methods in 36 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and 83 public void setBackgroundDrawable(Drawable background) { argument 84 super.setBackgroundDrawable(background); 86 mBackgroundTintHelper.onSetBackgroundDrawable(background);
|
H A D | AppCompatMultiAutoCompleteTextView.java | 36 * <li>Allows dynamic tint of it background via the background tint methods in 38 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and 102 public void setBackgroundDrawable(Drawable background) { argument 103 super.setBackgroundDrawable(background); 105 mBackgroundTintHelper.onSetBackgroundDrawable(background);
|
H A D | AppCompatTextView.java | 36 * <li>Allows dynamic tint of it background via the background tint methods in 38 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and 80 public void setBackgroundDrawable(Drawable background) { argument 81 super.setBackgroundDrawable(background); 83 mBackgroundTintHelper.onSetBackgroundDrawable(background);
|
H A D | AppCompatButton.java | 38 * <li>Allows dynamic tint of it background via the background tint methods in 40 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and 82 public void setBackgroundDrawable(Drawable background) { argument 83 super.setBackgroundDrawable(background); 85 mBackgroundTintHelper.onSetBackgroundDrawable(background);
|
H A D | AppCompatSpinner.java | 55 * <li>Dynamic tinting of the background via the background tint methods in 57 * <li>Configuring the background tint using {@link R.attr#backgroundTint} and 305 public void setPopupBackgroundDrawable(Drawable background) { argument 307 mPopup.setBackgroundDrawable(background); 309 super.setPopupBackgroundDrawable(background); 467 public void setBackgroundDrawable(Drawable background) { argument 468 super.setBackgroundDrawable(background); 470 mBackgroundTintHelper.onSetBackgroundDrawable(background); 536 private int compatMeasureContentWidth(SpinnerAdapter adapter, Drawable background) { argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationBackgroundView.java | 29 * A view that can be used for both the dimmed and normal background of an notification. 77 * Sets a background drawable. As we need to change our bounds independently of layout, we need 78 * the notion of a background independently of the regular View background.. 80 public void setCustomBackground(Drawable background) { argument 85 mBackground = background;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | LockscreenWallpaper.java | 274 ConstantState(Bitmap background) { argument 275 mBackground = background;
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
H A D | gl_code.cpp | 15 GLfloat background; variable 175 glClearColor(background, grey, grey, 1.0f); 182 background = 1.0f - background;
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | SetupWizardLayout.java | 87 // Set the background from XML, either directly or built from a bitmap tile 88 final Drawable background = 90 if (background != null) { 91 setLayoutBackground(background); 315 * Set the background of the layout, which is expected to be able to extend infinitely. If it is 318 public void setLayoutBackground(Drawable background) { argument 322 view.setBackgroundDrawable(background); 327 * Set the background of the layout to a repeating bitmap tile. To use a different kind of
|
/frameworks/support/v4/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 47 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { argument 48 int bgAlpha = Color.alpha(background); 53 Color.red(background), bgAlpha, a); 55 Color.green(background), bgAlpha, a); 57 Color.blue(background), bgAlpha, a); 84 * Returns the contrast ratio between {@code foreground} and {@code background}. 85 * {@code background} must be opaque. 90 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { argument 91 if (Color.alpha(background) != 255) { 92 throw new IllegalArgumentException("background ca 117 calculateMinimumAlpha(@olorInt int foreground, @ColorInt int background, float minContrastRatio) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | TextureView.java | 300 public void setBackgroundDrawable(Drawable background) { argument 301 if (background != null && !sTextureViewIgnoresDrawableSetters) { 303 "TextureView doesn't support displaying a background drawable"); 318 /* Simplify drawing to guarantee the layer is the only thing drawn - so e.g. no background,
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationColorUtil.java | 237 * @param findFg if true, we assume {@param color} is a foreground, otherwise a background. 286 /** Finds a background color for a text view with given text color and hint text color, that 333 + " and %s (over background) by changing #%s to %s", 363 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { argument 364 int bgAlpha = Color.alpha(background); 369 Color.red(background), bgAlpha, a); 371 Color.green(background), bgAlpha, a); 373 Color.blue(background), bgAlpha, a); 400 * Returns the contrast ratio between {@code foreground} and {@code background}. 401 * {@code background} mus 406 calculateContrast(@olorInt int foreground, @ColorInt int background) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AppWindowToken.java | 726 void addSurfaceViewBackground(WindowSurfaceController.SurfaceControlWithBackground background) { argument 727 mSurfaceViewBackgrounds.add(background); 730 void removeSurfaceViewBackground(WindowSurfaceController.SurfaceControlWithBackground background) { argument 731 mSurfaceViewBackgrounds.remove(background); 739 // the background for the SurfaceView with lowest Z order
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | FloatingActionButton.java | 60 * <p>The background color of this view defaults to the your theme's {@code colorAccent}. If you 218 * Return the tint applied to the background drawable, if specified. 220 * @return the tint applied to the background drawable 230 * Applies a tint to the background drawable. Does not modify the current tint 243 * Return the blending mode used to apply the tint to the background 246 * @return the blending mode used to apply the tint to the background 258 * {@link #setBackgroundTintList(ColorStateList)}} to the background 272 public void setBackgroundDrawable(Drawable background) { argument 273 Log.i(LOG_TAG, "Setting a custom background is not supported."); 278 Log.i(LOG_TAG, "Setting a custom background i 790 setBackgroundDrawable(Drawable background) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Spinner.java | 323 * Set the background drawable for the spinner's popup window of choices. 326 * @param background Background drawable 330 public void setPopupBackgroundDrawable(Drawable background) { argument 335 mPopup.setBackgroundDrawable(background); 339 * Set the background drawable for the spinner's popup window of choices. 342 * @param resId Resource ID of a background drawable 351 * Get the background drawable for the spinner's popup window of choices. 354 * @return background Background drawable 820 int measureContentWidth(SpinnerAdapter adapter, Drawable background) { argument 855 // Add background paddin [all...] |