Home
last modified time | relevance | path

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

12345

/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/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DCaptionWindowDecoration.java191 final GradientDrawable captionDrawable = (GradientDrawable) caption.getBackground(); in setCaptionColor()
202 final VectorDrawable backBackground = (VectorDrawable) back.getBackground(); in setCaptionColor()
206 final VectorDrawable minimizeBackground = (VectorDrawable) minimize.getBackground(); in setCaptionColor()
210 final VectorDrawable maximizeBackground = (VectorDrawable) maximize.getBackground(); in setCaptionColor()
214 final VectorDrawable closeBackground = (VectorDrawable) close.getBackground(); in setCaptionColor()
DDesktopModeWindowDecoration.java316 final VectorDrawable handleBackground = (VectorDrawable) handle.getBackground(); in setButtonVisibility()
330 final GradientDrawable captionDrawable = (GradientDrawable) caption.getBackground(); in setCaptionColor()
341 final Drawable handleBackground = handle.getBackground(); in setCaptionColor()
345 final Drawable backBackground = back.getBackground(); in setCaptionColor()
348 final Drawable closeBackground = close.getBackground(); in setCaptionColor()
/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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DLetterboxEduDialogLayoutTest.java74 assertEquals(mLayout.getBackgroundDimDrawable(), mLayout.getBackground()); in testOnFinishInflate()
75 assertEquals(mLayout.getBackground().getAlpha(), 0); in testOnFinishInflate()
DRestartDialogLayoutTest.java84 assertEquals(mLayout.getBackgroundDimDrawable(), mLayout.getBackground()); in testOnFinishInflate()
85 assertEquals(mLayout.getBackground().getAlpha(), 0); in testOnFinishInflate()
/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()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DBannerMessagePreferenceTest.java358 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in onBindViewHolder_whenAtLeastS_whenAttentionUnset_setsHighTheme()
375 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in onBindViewHolder_whenAtLeastS_whenAttentionHighByXML_setsHighTheme()
396 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in onBindViewHolder_whenAtLeastS_whenAttentionMediumByXML_setsMediumTheme()
417 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in onBindViewHolder_whenAtLeastS_whenAttentionLowByXML_setsLowTheme()
438 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in setAttentionLevel_whenAtLeastS_whenHighAttention_setsHighTheme()
456 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in setAttentionLevel_whenAtLeastS_whenMedAttention_setsMediumTheme()
474 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in setAttentionLevel_whenAtLeastS_whenLowAttention_setsLowTheme()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleBadgeIconFactory.java48 userBadgedAppIcon = new CircularAdaptiveIcon(ad.getBackground(), ad.getForeground()); in getBadgeBitmap()
111 if ((d = getBackground()) != null) { in draw()
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputBaseAdapter.java237 mItemLayout.getBackground().setColorFilter(new PorterDuffColorFilter( in setSingleLineLayout()
242 mIconAreaLayout.getBackground().setColorFilter(new PorterDuffColorFilter( in setSingleLineLayout()
420 mIconAreaLayout.getBackground().setColorFilter( in updateTitleIcon()
446 (GradientDrawable) mItemLayout.getBackground(); in animateCornerAndVolume()
452 ? mIconAreaLayout.getBackground() in animateCornerAndVolume()
/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()
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardIndicationTextView.java211 if (mKeyguardIndicationInfo.getBackground() != null) { in setNextIndication()
216 setBackground(mKeyguardIndicationInfo.getBackground()); in setNextIndication()
/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/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DLetterboxEduDialogLayout.java93 mBackgroundDim = getBackground().mutate(); in onFinishInflate()
/frameworks/base/core/java/android/app/
DEnterTransitionCoordinator.java355 Drawable background = decorView.getBackground(); in prepareEnter()
590 if (window != null && mReplacedBackground == decorView.getBackground()) { in onTransitionsComplete()
610 Drawable background = decorView.getBackground(); in startEnterTransition()
651 Drawable drawable = decorView.getBackground(); in stop()

12345