/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;
|
H A D | ActivatableNotificationView.java | 85 * Scale for the background to animate from when exiting dark mode. 452 * Sets the tint color of the background 459 * Sets the tint color of the background 515 * Fades in the background when exiting dark mode. 518 final View background = mDimmed ? mBackgroundDimmed : mBackgroundNormal; 519 background.setAlpha(0f); 521 background.setPivotX(mBackgroundDimmed.getWidth() / 2f); 522 background.setPivotY(getActualHeight() / 2f); 523 background.setScaleX(DARK_EXIT_SCALE_START); 524 background [all...] |
/frameworks/support/v7/cardview/api21/android/support/v7/widget/ |
H A D | CardViewApi21.java | 28 final RoundRectDrawable background = new RoundRectDrawable(backgroundColor, radius); 29 cardView.setCardBackground(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/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | HeadersFragment.java | 253 Drawable background = fadingView.getBackground(); 254 if (background instanceof GradientDrawable) { 255 background.mutate(); 256 ((GradientDrawable) background).setColors(
|
H A D | HeadersSupportFragment.java | 255 Drawable background = fadingView.getBackground(); 256 if (background instanceof GradientDrawable) { 257 background.mutate(); 258 ((GradientDrawable) background).setColors(
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
H A D | ExpandedMenuView.java | 38 android.R.attr.background,
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceGroupAdapter.java | 276 Drawable background 278 if (background == null) { 279 background = parent.getContext().getResources() 285 view.setBackgroundDrawable(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/graphics/java/android/graphics/drawable/ |
H A D | RippleDrawable.java | 86 * background, the ripple will be drawn atop the first available parent 87 * background within the View's hierarchy. In this case, the drawing region 128 /** The current background. May be actively animating or pending entry. */ 138 /** Whether we expect to draw a background when visible. */ 324 // If we just became visible, ensure the background and ripple 557 // Don't null out the background, we need it to draw! 610 * background. Nothing will be drawn after this method is called. 842 final RippleBackground background = mBackground; 844 if (active == null && count <= 0 && (background == null || !background [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ExitTransitionCoordinator.java | 285 Drawable background; 286 if (decor != null && (background = decor.getBackground()) != null) { 287 background = background.mutate(); 288 getWindow().setBackgroundDrawable(background); 289 mBackgroundAnimator = ObjectAnimator.ofInt(background, "alpha", 0);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
H A D | MediaRecorderTest.java | 272 int background = (i * 255 / 99); 273 canvas.drawARGB(255, background, background, background); 286 int background = (i * 255 / 99); 287 canvas.drawARGB(255, background, background, background);
|
/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/ |
H A D | GlifLayout.java | 220 final GlifPatternDrawable background = 223 ((StatusBarBackgroundLayout) patternBg).setStatusBarBackground(background); 225 patternBg.setBackground(background);
|
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/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
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/support/v7/cardview/eclair-mr1/android/support/v7/widget/ |
H A D | CardViewEclairMr1.java | 82 RoundRectDrawableWithShadow background = createBackground(context, backgroundColor, radius, 84 background.setAddPaddingForCorners(cardView.getPreventCornerOverlap()); 85 cardView.setCardBackground(background);
|
/frameworks/base/core/java/android/widget/ |
H A D | CheckedTextView.java | 414 final Drawable background = getBackground(); 415 if (background != null) { 416 background.setHotspotBounds(mScrollX + left, top, mScrollX + right, bottom);
|
H A D | CompoundButton.java | 426 final Drawable background = getBackground(); 427 if (background != null) { 428 background.setHotspotBounds(left, top, right, bottom);
|
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...] |
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/ |
H A D | DemoModeController.java | 67 final HandlerThread background = new HandlerThread("background"); 68 background.start(); 69 mBackground = new Handler(background.getLooper());
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ImageCardView.java | 252 // the InfoArea's background color in XML using the corresponding style. 257 Drawable background = cardAttrs.getDrawable(R.styleable.lbImageCardView_infoAreaBackground); 258 if (null != background) { 259 setInfoAreaBackground(background); 363 * Returns the info area background drawable. 373 * Sets the info area background drawable. 382 * Sets the info area background color.
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ActionBarContainer.java | 59 // Set a transparent background so that we project appropriately. 162 final Drawable background = mBackground; 163 if (background != null && background.isStateful()) { 164 changed |= background.setState(state); 364 * Dummy drawable so that we don't break background display lists and 391 // ignore the stacked background for shadow casting
|
/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/base/packages/SystemUI/src/com/android/systemui/tv/pip/ |
H A D | PipOnboardingActivity.java | 58 loadAnimator(R.id.background, R.anim.tv_pip_onboarding_background_enter_animation),
|