Home
last modified time | relevance | path

Searched refs:mBackground (Results 1 – 25 of 45) sorted by relevance

12

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationBackgroundView.java40 private Drawable mBackground; field in NotificationBackgroundView
68 draw(canvas, mBackground); in onDraw()
105 if (mBackground != null) { in drawableHotspotChanged()
106 mBackground.setHotspot(x, y); in drawableHotspotChanged()
115 if (mBackground != null) { in setCustomBackground()
116 mBackground.setCallback(null); in setCustomBackground()
119 mBackground = background; in setCustomBackground()
120 mBackground.mutate(); in setCustomBackground()
121 if (mBackground != null) { in setCustomBackground()
122 mBackground.setCallback(this); in setCustomBackground()
[all …]
H A DNotificationGuts.java48 private Drawable mBackground; field in NotificationGuts
196 draw(canvas, mBackground); in onDraw()
211 mBackground = mContext.getDrawable(R.drawable.notification_guts_bg); in onFinishInflate()
212 if (mBackground != null) { in onFinishInflate()
213 mBackground.setCallback(this); in onFinishInflate()
219 return super.verifyDrawable(who) || who == mBackground; in verifyDrawable()
224 drawableStateChanged(mBackground); in drawableStateChanged()
235 if (mBackground != null) { in drawableHotspotChanged()
236 mBackground.setHotspot(x, y); in drawableHotspotChanged()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarContainer.java45 private Drawable mBackground; field in ActionBarContainer
88 if (mBackground != null) { in setPrimaryBackground()
89 mBackground.setCallback(null); in setPrimaryBackground()
90 unscheduleDrawable(mBackground); in setPrimaryBackground()
92 mBackground = bg; in setPrimaryBackground()
144 if (mBackground != null) mBackground.setVisible(isVisible, false); in setVisibility()
185 if (mBackground != null) { in jumpDrawablesToCurrentState()
202 if (mBackground != null) { in onResolveDrawables()
337 if (mBackground != null) { in onLayout()
375 if (mBackground != null) { in draw()
[all …]
H A DEmphasizedNotificationButton.java43 private final GradientDrawable mBackground; field in EmphasizedNotificationButton
64 mBackground = (GradientDrawable) inset.getDrawable(); in EmphasizedNotificationButton()
75 mBackground.setColor(color); in setButtonBackground()
/aosp12/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
H A DDemoModeController.java45 private Handler mBackground; field in DemoModeController
142 mBackground.post(mUpdateClock); in onTouch()
149 mBackground.post(mUpdateClock); in onTouch()
156 mBackground.post(mUpdateBattery); in onTouch()
163 mBackground.post(mUpdateBattery); in onTouch()
170 mBackground.post(mUpdateMobile); in onTouch()
177 mBackground.post(mUpdateWifi); in onTouch()
184 mBackground.post(mUpdateStatus); in onTouch()
191 mBackground.post(mUpdateNetwork); in onTouch()
198 mBackground.post(mUpdateMobile); in onTouch()
[all …]
/aosp12/frameworks/base/tests/Assist/src/com/android/test/assist/
H A DAssistInteractionSession.java40 private View mBackground; field in AssistInteractionSession
89 mBackground = v.findViewById(R.id.background); in onCreateContentView()
101 mBackground.getViewTreeObserver().addOnPreDrawListener( in onShow()
105 mBackground.getViewTreeObserver().removeOnPreDrawListener(this); in onShow()
122 Interpolator fastOutSlowIn = AnimationUtils.loadInterpolator(mBackground.getContext(), in playAssistAnimation()
129 mBackground.setTranslationY(50 * mDensity); in playAssistAnimation()
130 mBackground.animate() in playAssistAnimation()
134 int centerX = mBackground.getWidth()/2; in playAssistAnimation()
135 int centerY = (int) (mBackground.getHeight()/5*3.8f); in playAssistAnimation()
149 mBackground.setBackgroundColor((Integer) animation.getAnimatedValue()); in playAssistAnimation()
[all …]
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DDropBadgeView.java37 private LayerDrawable mBackground; field in DropBadgeView
52 mBackground = new LayerDrawable(list); in DropBadgeView()
54 mBackground.setLayerGravity(1, Gravity.BOTTOM | Gravity.RIGHT); in DropBadgeView()
55 mBackground.setLayerGravity(0, Gravity.TOP | Gravity.LEFT); in DropBadgeView()
56 mBackground.setLayerSize(1, badgeWidth, badgeHeight); in DropBadgeView()
57 mBackground.setLayerSize(0, iconSize, iconSize); in DropBadgeView()
59 setBackground(mBackground); in DropBadgeView()
85 mBackground.setDrawable(0, icon); in updateIcon()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
H A DKeyguardIndication.java42 private final Drawable mBackground; field in KeyguardIndication
57 mBackground = background; in KeyguardIndication()
93 return mBackground; in getBackground()
110 if (mBackground != null) str += " mBackground=" + mBackground; in toString()
124 private Drawable mBackground; field in KeyguardIndication.Builder
167 this.mBackground = background; in setBackground()
192 mMessage, mTextColor, mIcon, mOnClickListener, mBackground, in build()
/aosp12/packages/apps/Camera2/src/com/android/camera/ui/
H A DModeIconView.java37 private final GradientDrawable mBackground; field in ModeIconView
50 mBackground = (GradientDrawable) getResources() in ModeIconView()
52 mBackground.setBounds(0, 0, mIconBackgroundSize, mIconBackgroundSize); in ModeIconView()
78 mBackground.draw(canvas); in draw()
107 mBackground.setColor(mHighlightColor); in setSelected()
109 mBackground.setColor(mBackgroundDefaultColor); in setSelected()
H A DRadioOptions.java43 private Drawable mBackground; field in RadioOptions
68 mBackground = context.getResources() in RadioOptions()
124 view.setBackground(mBackground); in setSelectedOptionByView()
/aosp12/frameworks/base/core/java/android/view/
H A DNotificationHeaderView.java54 private Drawable mBackground; field in NotificationHeaderView
62 if (mBackground != null) {
106 mBackground = drawable; in setHeaderBackgroundDrawable()
107 mBackground.setCallback(this); in setHeaderBackgroundDrawable()
111 mBackground = null; in setHeaderBackgroundDrawable()
119 if (mBackground != null) { in onDraw()
120 mBackground.setBounds(0, 0, getWidth(), getHeight()); in onDraw()
121 mBackground.draw(canvas); in onDraw()
127 return super.verifyDrawable(who) || who == mBackground; in verifyDrawable()
132 if (mBackground != null && mBackground.isStateful()) { in drawableStateChanged()
[all …]
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/
H A DBaseActivity.kt41 private var mBackground: ColorDrawable? = null
72 if (mBackground == null) {
73 mBackground = ColorDrawable(color)
74 getWindow().setBackgroundDrawable(mBackground)
80 @ColorInt val currentColor = mBackground!!.color
96 mBackground!!.color = color
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
H A DAnimatedTaskbarView.java44 private View mBackground; field in AnimatedTaskbarView
79 mBackground = findViewById(R.id.taskbar_background); in onFinishInflate()
97 mBackground, View.TRANSLATION_Y, 0, mBackground.getHeight())); in animateDisappearanceToHotseat()
98 animators.add(ObjectAnimator.ofFloat(mBackground, View.ALPHA, 1f, 0f)); in animateDisappearanceToHotseat()
140 mBackground, View.TRANSLATION_Y, mBackground.getHeight(), 0)); in animateAppearanceFromHotseat()
141 animators.add(ObjectAnimator.ofFloat(mBackground, View.ALPHA, 0f, 1f)); in animateAppearanceFromHotseat()
176 mBackground, View.TRANSLATION_Y, 0, mBackground.getHeight())); in animateDisappearanceToBottom()
177 animators.add(ObjectAnimator.ofFloat(mBackground, View.ALPHA, 1f, 0f)); in animateDisappearanceToBottom()
217 mBackground, View.TRANSLATION_Y, mBackground.getHeight(), 0)); in animateAppearanceFromBottom()
218 animators.add(ObjectAnimator.ofFloat(mBackground, View.ALPHA, 0f, 1f)); in animateAppearanceFromBottom()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DNumPadAnimator.java40 private GradientDrawable mBackground; field in NumPadAnimator
49 mBackground = (GradientDrawable) mRipple.findDrawableByLayerId(R.id.background); in NumPadAnimator()
60 mBackground.setCornerRadius((float) anim.getAnimatedValue()); in NumPadAnimator()
71 mBackground.setCornerRadius((float) anim.getAnimatedValue()); in NumPadAnimator()
81 mBackground.setCornerRadius(startRadius); in onLayout()
105 mBackground.setColor(mNormalColor); in reloadColors()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSDetailClipper.java30 private final TransitionDrawable mBackground; field in QSDetailClipper
36 mBackground = (TransitionDrawable) detail.getBackground(); in QSDetailClipper()
79 mBackground.startTransition(animate ? (int) (mAnimator.getDuration() * 0.6) : 0); in updateCircularClip()
93 mBackground.reverseTransition((int)(mAnimator.getDuration() * 0.35));
113 mBackground.resetTransition();
119 mBackground.showSecondLayer(); in showBackground()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DFolderIcon.java232 mBackground.fadeInBackgroundShadow(); in animateBgShadowAndStroke()
233 mBackground.animateBackgroundStroke(); in animateBgShadowAndStroke()
242 mBackground.getBounds(outBounds); in getPreviewBounds()
248 return mBackground.getStrokeWidth(); in getBackgroundStrokeWidth()
327 mBackground.animateToRest(); in onDragExit()
583 mBackground = bg; in setFolderBackground()
584 mBackground.setInvalidateDelegate(this); in setFolderBackground()
598 return mBackground; in getFolderBackground()
613 if (!mBackground.drawingDelegated()) { in dispatchDraw()
614 mBackground.drawBackground(canvas); in dispatchDraw()
[all …]
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/legacysplitscreen/
H A DDividerView.java109 private View mBackground; field in DividerView
746 mBackground.animate() in liftBackground()
766 mBackground.animate() in releaseBackground()
908 mBackground.animate() in setMinimizedDockStack()
935 mBackground.animate() in setAdjustedForIme()
941 mBackground.animate() in setAdjustedForIme()
956 mBackground.setPivotX(mBackground.getWidth() / 2); in resetBackground()
957 mBackground.setPivotY(mBackground.getHeight() / 2); in resetBackground()
958 mBackground.setScaleX(1f); in resetBackground()
1311 inoutInfo.touchableRegion.op(mBackground.getLeft(), mBackground.getTop(), in onComputeInternalInsets()
[all …]
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleDrawable.java181 private RippleBackground mBackground; field in RippleDrawable
279 if (mBackground != null) { in jumpToCurrentState()
280 mBackground.jumpToFinal(); in jumpToCurrentState()
367 if (mBackground != null) { in setBackgroundActive()
396 if (mBackground != null) { in onBoundsChange()
397 mBackground.onBoundsChange(); in onBoundsChange()
658 if (mRipple == null || mBackground == null) { in setHotspot()
723 if (mBackground != null) { in clearHotspots()
758 if (mBackground != null) { in onHotspotBoundsChanged()
759 mBackground.onHotspotBoundsChanged(); in onHotspotBoundsChanged()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyguardUserSwitcherController.java82 private final KeyguardUserSwitcherScrim mBackground; field in KeyguardUserSwitcherController
178 mBackground = new KeyguardUserSwitcherScrim(context); in KeyguardUserSwitcherController()
211 mView.addOnLayoutChangeListener(mBackground); in onViewAttached()
212 mView.setBackground(mBackground); in onViewAttached()
213 mBackground.setAlpha(0); in onViewAttached()
228 mView.removeOnLayoutChangeListener(mBackground); in onViewDetached()
230 mBackground.setAlpha(0); in onViewDetached()
350 mBackground.setGradientCenter( in updatePosition()
408 mBgAnimator = ObjectAnimator.ofInt(mBackground, "alpha", 0, 255); in updateVisibilities()
419 mBgAnimator = ObjectAnimator.ofInt(mBackground, "alpha", 255, 0); in updateVisibilities()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DCommonControllerOverlay.java57 protected final View mBackground; field in CommonControllerOverlay
83 mBackground = new View(context); in CommonControllerOverlay()
84 mBackground.setBackgroundColor(context.getResources().getColor(R.color.darker_transparent)); in CommonControllerOverlay()
85 addView(mBackground, matchParent); in CommonControllerOverlay()
193 mBackground.setVisibility(View.INVISIBLE); in hide()
282 mBackground.layout(0, y - mTimeBar.getBarHeight(), w, y); in onLayout()
308 mBackground.setVisibility(View.VISIBLE); in updateViews()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/notification/
H A DNotificationMainView.java82 private final GradientDrawable mBackground; field in NotificationMainView
101 mBackground = new GradientDrawable(); in NotificationMainView()
102 mBackground.setColor(Themes.getAttrColor(context, R.attr.popupColorPrimary)); in NotificationMainView()
103 mBackground.setCornerRadius(outlineRadius); in NotificationMainView()
104 setBackground(mBackground); in NotificationMainView()
163 mBackground.setColor(color); in updateBackgroundColor()
/aosp12/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
H A DSwarm.java65 Background mBackground = new Background(); field in Swarm
202 mBackground = new Background(); in onResume()
203 mBackground.execute(); in onResume()
208 mBackground.keepRunning = false; in onPause()
280 mBackground.keepRunning = false; in restartSimulation()
283 mBackground = new Background(); in restartSimulation()
284 mBackground.execute(); in restartSimulation()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/views/
H A DClipIconView.java103 private @Nullable Drawable mBackground; field in ClipIconView
259 mBackground.setBounds(sTmpRect); in setBackgroundDrawableBounds()
282 mBackground = background; in setIcon()
299 mBackground.setBounds(mFinalDrawableBounds); in setIcon()
359 if (mBackground != null) { in draw()
360 mBackground.draw(canvas); in draw()
375 mBackground = null; in recycle()
/aosp12/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
H A DRvBoxAdapter.java31 private int mBackground; field in RvBoxAdapter
55 mBackground = val.resourceId; in RvBoxAdapter()
66 h.mTextView.setBackgroundResource(mBackground); in onCreateViewHolder()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockscreenWallpaper.java273 super(new BitmapDrawable(r, state.mBackground)); in WallpaperDrawable()
297 int dwidth = mState.mBackground.getWidth(); in onBoundsChange()
298 int dheight = mState.mBackground.getHeight(); in onBoundsChange()
329 private final Bitmap mBackground; field in LockscreenWallpaper.WallpaperDrawable.ConstantState
332 mBackground = background; in ConstantState()

12