/aosp12/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | MutateDrawableTest.java | 43 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 D | ImportancePreferenceTest.java | 82 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 D | DecorViewTest.java | 60 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 D | BaselineButtonsTest.java | 67 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 D | ScrimView.java | 137 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 D | ShortcutDragPreviewProvider.java | 60 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 D | ColorChooser.java | 71 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 D | SwitchBarTest.java | 66 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 D | GhostedViewLaunchAnimatorController.kt | 80 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 D | PlayPauseStopImageView.java | 109 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 D | RecyclerItemAdapterTest.java | 129 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 D | StateListDrawableTest.java | 52 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 D | FallbackRecentsTest.java | 168 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 D | ViewInflationDuringSwipeUp.java | 122 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 D | BannerMessagePreferenceTest.java | 358 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 D | NumPadButton.java | 42 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 D | RotarySysUiDirectManipulationWidgets.java | 83 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 D | FaceEnrollIntroduction.java | 105 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 D | PseudoEmergencyAnimator.java | 64 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 D | AnimatedVectorDrawableTest.java | 75 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 D | KeyPreviewView.java | 80 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 D | DismissView.kt | 74 (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 D | LauncherAnimUtils.java | 149 if (!(view.getBackground() instanceof ColorDrawable)) { 152 return ((ColorDrawable) view.getBackground()).getColor();
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | BackgroundFallback.java | 78 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 D | Spinner.java | 368 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()
|