Home
last modified time | relevance | path

Searched refs:getBackground (Results 1 – 25 of 78) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/view/
DMutateDrawableTest.java43 assertNotSame(mFirstButton.getBackground(), mSecondButton.getBackground()); in testSetUpConditions()
48 assertNotSame(mFirstButton.getBackground().getConstantState(), in testDrawableCanMutate()
49 mSecondButton.getBackground().getConstantState()); in testDrawableCanMutate()
DMutateDrawable.java46 ok.getBackground().mutate().setAlpha(127); in onCreate()
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DDecorViewTest.java60 Drawable expectedBackground = mDecorView.getBackground(); in setBackgroundDrawableSameAsSetWindowBackground()
69 assertThat(mDecorView.getBackground()).isEqualTo(expectedBackground); in setBackgroundDrawableSameAsSetWindowBackground()
70 assertThat(mDecorView.getBackground()).isEqualTo(bitmapDrawable); in setBackgroundDrawableSameAsSetWindowBackground()
86 assertThat(decorView.getBackground()).isNotNull(); in setBackgroundWithNoWindow()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DBaselineButtonsTest.java67 mPause.getBackground().getMinimumHeight()); in testLayout()
70 mPrev.getBackground().getMinimumHeight()); in testLayout()
73 mNext.getBackground().getMinimumHeight()); in testLayout()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DStateListDrawableTest.java52 mockView.getBackground().draw(null); in broken_testFocusScenarioSetStringWildcardFirst()
64 mockView.getBackground().draw(null); in broken_testFocusScenarioStateSetWildcardLast()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/items/
DRecyclerItemAdapterTest.java129 assertNotNull("Background should be set", viewHolder.itemView.getBackground()); in testCreateViewHolder()
140 assertNull("Background should be null", viewHolder.itemView.getBackground()); in testCreateViewHolderNoBackground()
150 Drawable background = viewHolder.itemView.getBackground(); in testCreateViewHolderWithExistingBackground()
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DAnimatedVectorDrawableTest.java75 AnimatedVectorDrawable d = (AnimatedVectorDrawable) button.getBackground(); in onCreate()
102 AnimatedVectorDrawable d = (AnimatedVectorDrawable) v.getBackground(); in onClick()
DVectorDrawableAnimation.java37 AnimationDrawable frameAnimation = (AnimationDrawable) v.getBackground(); in onCreate()
DVectorDrawable01.java86 VectorDrawable vd = (VectorDrawable) button.getBackground(); in onCreate()
/frameworks/base/core/java/com/android/internal/widget/
DBackgroundFallback.java78 final Drawable childBg = child.getBackground(); in draw()
104 || v.getAlpha() != 1f || !isOpaque(v.getBackground())) { in draw()
DEmphasizedNotificationButton.java56 DrawableWrapper background = (DrawableWrapper) getBackground().mutate(); in EmphasizedNotificationButton()
DSlidingTab.java283 if (text.getBackground().isStateful()) { in setState()
284 text.getBackground().setState(activeState); in setState()
286 if (tab.getBackground().isStateful()) { in setState()
287 tab.getBackground().setState(activeState); in setState()
349 final Drawable tabBackground = tab.getBackground(); in layout()
DNotificationActionListLayout.java187 if (child.getBackground() instanceof RippleDrawable) { in onViewAdded()
188 ((RippleDrawable)child.getBackground()).setForceSoftware(true); in onViewAdded()
/frameworks/base/core/java/android/view/
DViewOutlineProvider.java36 Drawable background = view.getBackground();
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/
DCarSetupWizardDesignLayoutTest.java53 ColorDrawable bg = (ColorDrawable) mCarSetupWizardLayout.getBackground(); in testShouldApplyLayoutBackground()
DCarSetupWizardCompatLayoutTest.java451 assertThat(getDrawbleDefaultColor(primary.getBackground())) in testPartnerResourcesAreApplied()
477 ColorDrawable bg = (ColorDrawable) layout.getBackground(); in testShouldNotApplyLayoutBackground()
507 assertThat(getDrawbleDefaultColor(secondary.getBackground())) in testSetBackground()
/frameworks/base/core/java/android/widget/
DSpinner.java368 return mPopup.getBackground(); in getPopupBackground()
618 measureContentWidth(getAdapter(), getBackground())), in onMeasure()
1099 public Drawable getBackground(); in getBackground() method
1173 public Drawable getBackground() { in getBackground() method in Spinner.DialogPopup
1226 final Drawable background = getBackground(); in computeContentWidth()
1241 (SpinnerAdapter) mAdapter, getBackground()); in computeContentWidth()
DListPopupWindow.java386 public @Nullable Drawable getBackground() { in getBackground() method in ListPopupWindow
387 return mPopup.getBackground(); in getBackground()
535 Drawable popupBackground = mPopup.getBackground(); in setContentWidth()
1252 final Drawable background = mPopup.getBackground(); in buildDropDown()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DToggleBehavior.kt57 val ld = cvh.layout.getBackground() as LayerDrawable in bind()
DTouchBehavior.kt74 val ld = cvh.layout.getBackground() as LayerDrawable in bind()
DTemperatureControlBehavior.kt44 val ld = cvh.layout.getBackground() as LayerDrawable in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java421 sun.getBackground().setTint(0); in reset()
424 sun.getBackground().setTintMode(PorterDuff.Mode.SRC_ATOP); in reset()
425 sun.getBackground().setTint(0xC0FF8000); in reset()
436 moon.getBackground().setAlpha(dark ? 255 : 128); in reset()
478 final Drawable bg = s.getBackground(); in reset()
1071 mScoreField.getBackground().setColorFilter(color, PorterDuff.Mode.SRC_ATOP);
1091 getBackground().setTintMode(PorterDuff.Mode.SRC_ATOP);
1093 getBackground().setTint(color);
1425 getBackground().setAlpha(0x40);
/frameworks/base/core/java/android/app/
DEnterTransitionCoordinator.java351 Drawable background = decorView.getBackground(); in prepareEnter()
586 if (window != null && mReplacedBackground == decorView.getBackground()) { in onTransitionsComplete()
606 Drawable background = decorView.getBackground(); in startEnterTransition()
647 Drawable drawable = decorView.getBackground(); in stop()
/frameworks/base/core/java/android/transition/
DRecolor.java52 transitionValues.values.put(PROPNAME_BACKGROUND, transitionValues.view.getBackground()); in captureValues()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DCustomControlView.java88 (AnimationDrawable)image.getBackground(); in createControls()

1234