Home
last modified time | relevance | path

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

123456

/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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/bar/
DBubbleBarHandleViewTest.java51 assertTrue(mHandleView.getBackground() instanceof ColorDrawable); in testUpdateHandleColor_lightBg()
52 ColorDrawable bgDrawable = (ColorDrawable) mHandleView.getBackground(); in testUpdateHandleColor_lightBg()
62 assertTrue(mHandleView.getBackground() instanceof ColorDrawable); in testUpdateHandleColor_darkBg()
63 ColorDrawable bgDrawable = (ColorDrawable) mHandleView.getBackground(); in testUpdateHandleColor_darkBg()
/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/tests/Input/src/com/android/server/input/debug/
DRotaryInputValueViewTest.java75 assertNull(mRotaryInputValueView.getBackground().getColorFilter()); in updateActivityStatus_setsAndRemovesColorFilter()
79 assertNotNull(mRotaryInputValueView.getBackground().getColorFilter()); in updateActivityStatus_setsAndRemovesColorFilter()
83 assertNull(mRotaryInputValueView.getBackground().getColorFilter()); in updateActivityStatus_setsAndRemovesColorFilter()
/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/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DCaptionWindowDecoration.java267 final GradientDrawable captionDrawable = (GradientDrawable) caption.getBackground(); in setCaptionColor()
278 final VectorDrawable backBackground = (VectorDrawable) back.getBackground(); in setCaptionColor()
282 final VectorDrawable minimizeBackground = (VectorDrawable) minimize.getBackground(); in setCaptionColor()
286 final VectorDrawable maximizeBackground = (VectorDrawable) maximize.getBackground(); in setCaptionColor()
290 final VectorDrawable closeBackground = (VectorDrawable) close.getBackground(); in setCaptionColor()
/frameworks/base/services/core/java/com/android/server/input/debug/
DRotaryInputValueView.java86 getBackground().setColorFilter(ACTIVE_BACKGROUND_FILTER); in updateActivityStatus()
89 getBackground().clearColorFilter(); in updateActivityStatus()
/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/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaSessionReleaseDialog.java83 stopButton.getBackground().setColorFilter(mButtonColorFilter); in onCreate()
87 cancelButton.getBackground().setColorFilter(mButtonColorFilter); in onCreate()
/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/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewTest.java106 (InstantInsetLayerDrawable) mMenuView.getBackground(); in insetsOnDarkTheme_menuOnLeft_matchInsets()
117 (InstantInsetLayerDrawable) mMenuView.getBackground(); in onDraggingStart_matchInsets()
171 return (InstantInsetLayerDrawable) mMenuView.getBackground(); in getMenuViewInsetLayer()
/frameworks/base/tests/graphics/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.java360 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in onBindViewHolder_whenAtLeastS_whenAttentionUnset_setsHighTheme()
377 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in onBindViewHolder_whenAtLeastS_whenAttentionHighByXML_setsHighTheme()
398 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in onBindViewHolder_whenAtLeastS_whenAttentionMediumByXML_setsMediumTheme()
419 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in onBindViewHolder_whenAtLeastS_whenAttentionLowByXML_setsLowTheme()
440 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in setAttentionLevel_whenAtLeastS_whenHighAttention_setsHighTheme()
458 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in setAttentionLevel_whenAtLeastS_whenMedAttention_setsMediumTheme()
476 Drawable mCardBackgroundSpy = spy(mRootView.getBackground()); in setAttentionLevel_whenAtLeastS_whenLowAttention_setsLowTheme()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesListAdapter.java123 Integer backgroundResId = item.getBackground(); in bindView()
125 mContainer.setBackground(mContext.getDrawable(item.getBackground())); in bindView()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DDesktopModeVisualIndicator.java344 view.getBackground().setBounds(startBounds); in fadeBoundsIn()
357 view.getBackground().setBounds(startBounds); in fadeBoundsOut()
434 animator.mView.getBackground().setBounds(animator.mEndBounds); in setupIndicatorAnimation()
453 view.getBackground().setBounds(currentBounds); in updateBounds()
462 final LayerDrawable drawable = (LayerDrawable) view.getBackground(); in updateIndicatorAlpha()
/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/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBubbleIconFactory.java93 userBadgedAppIcon = new CircularAdaptiveIcon(ad.getBackground(), in getBadgeBitmap()
150 if ((d = getBackground()) != null) { in draw()
/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/packages/SystemUI/src/com/android/systemui/communal/data/repository/
DCommunalSettingsRepository.kt65 fun getBackground(user: UserInfo): Flow<CommunalBackgroundType> in <lambda>() method
133 override fun getBackground(user: UserInfo): Flow<CommunalBackgroundType> = in getBackground() method in com.android.systemui.communal.data.repository.CommunalSettingsRepositoryImpl
/frameworks/base/core/java/android/widget/
DSpinner.java373 return mPopup.getBackground(); in getPopupBackground()
623 measureContentWidth(getAdapter(), getBackground())), in onMeasure()
1124 public Drawable getBackground(); in getBackground() method
1198 public Drawable getBackground() { in getBackground() method in Spinner.DialogPopup
1251 final Drawable background = getBackground(); in computeContentWidth()
1266 (SpinnerAdapter) mAdapter, getBackground()); in computeContentWidth()

123456