Home
last modified time | relevance | path

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

1234567

/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DMutateDrawableTest.java43 assertNotSame(mFirstButton.getBackground(), mSecondButton.getBackground()); in testSetUpConditions()
48 assertNotSame(mFirstButton.getBackground().getConstantState(), in testDrawableCanMutate()
49 mSecondButton.getBackground().getConstantState()); in testDrawableCanMutate()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
H A DImportancePreferenceTest.java82 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(selected); in onBindViewHolder_nonConfigurable()
83 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()) in onBindViewHolder_nonConfigurable()
92 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(unselected); in onBindViewHolder_nonConfigurable()
93 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()).isEqualTo(selected); in onBindViewHolder_nonConfigurable()
112 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(selected); in onBindViewHolder_selectButtonAndText()
113 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()) in onBindViewHolder_selectButtonAndText()
138 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(unselected); in onClick_changesUICallsListener()
139 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()).isEqualTo(selected); in onClick_changesUICallsListener()
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
H A 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()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
H A DBaselineButtonsTest.java67 mPause.getBackground().getMinimumHeight()); in testLayout()
70 mPrev.getBackground().getMinimumHeight()); in testLayout()
73 mNext.getBackground().getMinimumHeight()); in testLayout()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/views/
H A DScrimView.java137 if (!(getBackground() instanceof ColorDrawable)) { in isScrimDark()
140 + getBackground()); in isScrimDark()
143 ((ColorDrawable) getBackground()).getColor()) < 0.5f; in isScrimDark()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
H A DShortcutDragPreviewProvider.java60 Drawable d = mView.getBackground(); in createDragBitmapLegacy()
76 Drawable d = mView.getBackground(); in drawDragViewOnBackground()
88 int iconSize = getDrawableBounds(mView.getBackground()).width(); in getScaleAndPosition()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
H A DColorChooser.java71 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in setUp()
102 GradientDrawable sd = ((GradientDrawable) mButton[i].getBackground()); in setColorSet()
116 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in resetBorders()
152 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in changeSelectedColor()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
H A DSwitchBarTest.java66 assertThat(mBar.getBackground()).isInstanceOf(ColorDrawable.class); in cycleChecked_defaultLabel_shouldUpdateTextAndBackground()
81 assertThat(mBar.getBackground()).isInstanceOf(ColorDrawable.class); in cycleChecked_customLabel_shouldUpdateTextAndBackground()
101 assertThat(mBar.getBackground()).isInstanceOf(ColorDrawable.class); in setCheck_customLabelWithStringType_shouldUpdateTextAndBackground()
/aosp12/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
H A DGhostedViewLaunchAnimatorController.kt80 private val backgroundInsets by lazy { getBackground()?.opticalInsets ?: Insets.NONE }
94 protected open fun getBackground(): Drawable? = ghostedView.background
112 val drawable = getBackground() ?: return 0f
121 val drawable = getBackground() ?: return 0f
161 val drawable = getBackground()
/aosp12/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
H A DPlayPauseStopImageView.java109 if (getBackground() != null) { in onCreateDrawableState()
110 getBackground().setState(drawableState); in onCreateDrawableState()
/aosp12/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/items/
H A 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()
/aosp12/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
H A DStateListDrawableTest.java52 mockView.getBackground().draw(null); in broken_testFocusScenarioSetStringWildcardFirst()
64 mockView.getBackground().draw(null); in broken_testFocusScenarioStateSetWildcardLast()
/aosp12/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
H A DFallbackRecentsTest.java168 mLauncher.getBackground().switchToOverview(); in goToOverviewFromHome()
177 mLauncher.getBackground().switchToOverview(); in goToOverviewFromApp()
203 return mLauncher.getBackground().switchToOverview(); in pressHomeAndGoToOverview()
216 BaseOverview overview = mLauncher.getBackground().switchToOverview(); in testOverview()
H A DViewInflationDuringSwipeUp.java122 mLauncher.getBackground().switchToOverview().dismissAllTasks(); in testSwipeUpFromApp()
128 mLauncher.getBackground().switchToOverview(); in testSwipeUpFromApp()
208 mLauncher.getBackground().switchToOverview().dismissAllTasks(); in executeSwipeUpTestWithWidget()
214 Background background = mLauncher.getBackground(); in executeSwipeUpTestWithWidget()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DNumPadButton.java42 Drawable background = getBackground(); in NumPadButton()
44 mAnimator = new NumPadAnimator(context, (RippleDrawable) getBackground(), in NumPadButton()
/aosp12/packages/apps/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/
H A DRotarySysUiDirectManipulationWidgets.java83 Log.d(L.TAG, "Background about to be overwritten: " + v.getBackground()); in onClick()
84 v.setTag(R.id.saved_background_tag, v.getBackground()); in onClick()
/aosp12/packages/apps/Settings/src/com/android/settings/biometrics/face/
H A DFaceEnrollIntroduction.java105 iconGlasses.getBackground().setColorFilter(getIconColorFilter()); in onCreate()
106 iconLooking.getBackground().setColorFilter(getIconColorFilter()); in onCreate()
125 iconLessSecure.getBackground().setColorFilter(getIconColorFilter()); in onCreate()
134 iconRequireEyes.getBackground().setColorFilter(getIconColorFilter()); in onCreate()
/aosp12/packages/apps/Dialer/java/com/android/dialer/dialpadview/
H A DPseudoEmergencyAnimator.java64 viewProvider.getFab().getBackground().setColorFilter(colorFilter); in start()
92 viewProvider.getFab().getBackground().clearColorFilter(); in start()
/aosp12/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DAnimatedVectorDrawableTest.java75 AnimatedVectorDrawable d = (AnimatedVectorDrawable) button.getBackground(); in onCreate()
102 AnimatedVectorDrawable d = (AnimatedVectorDrawable) v.getBackground(); in onClick()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyPreviewView.java80 final Drawable background = getBackground(); in setTextAndScaleX()
132 final Drawable background = getBackground(); in setPreviewBackground()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DDismissView.kt74 (getBackground() as TransitionDrawable).startTransition(DISMISS_SCRIM_FADE_MS)
88 (getBackground() as TransitionDrawable).reverseTransition(DISMISS_SCRIM_FADE_MS)
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherAnimUtils.java149 if (!(view.getBackground() instanceof ColorDrawable)) {
152 return ((ColorDrawable) view.getBackground()).getColor();
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DBackgroundFallback.java78 final Drawable childBg = child.getBackground(); in draw()
104 || v.getAlpha() != 1f || !isOpaque(v.getBackground())) { in draw()
/aosp12/frameworks/base/core/java/android/widget/
H A 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()

1234567