Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationBackgroundView.java34 private Drawable mBackground; field in NotificationBackgroundView
46 draw(canvas, mBackground); in onDraw()
59 return super.verifyDrawable(who) || who == mBackground; in verifyDrawable()
64 drawableStateChanged(mBackground); in drawableStateChanged()
75 if (mBackground != null) { in drawableHotspotChanged()
76 mBackground.setHotspot(x, y); in drawableHotspotChanged()
85 if (mBackground != null) { in setCustomBackground()
86 mBackground.setCallback(null); in setCustomBackground()
87 unscheduleDrawable(mBackground); in setCustomBackground()
89 mBackground = background; in setCustomBackground()
[all …]
DNotificationGuts.java68 private Drawable mBackground; field in NotificationGuts
171 draw(canvas, mBackground); in onDraw()
186 mBackground = mContext.getDrawable(R.drawable.notification_guts_bg); in onFinishInflate()
187 if (mBackground != null) { in onFinishInflate()
188 mBackground.setCallback(this); in onFinishInflate()
194 return super.verifyDrawable(who) || who == mBackground; in verifyDrawable()
199 drawableStateChanged(mBackground); in drawableStateChanged()
210 if (mBackground != null) { in drawableHotspotChanged()
211 mBackground.setHotspot(x, y); in drawableHotspotChanged()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarContainer.java45 private Drawable mBackground; field in ActionBarContainer
64 mBackground = a.getDrawable(com.android.internal.R.styleable.ActionBar_background); in ActionBarContainer()
77 mBackground == null && mStackedBackground == null); in ActionBarContainer()
88 if (mBackground != null) { in setPrimaryBackground()
89 mBackground.setCallback(null); in setPrimaryBackground()
90 unscheduleDrawable(mBackground); in setPrimaryBackground()
92 mBackground = bg; in setPrimaryBackground()
96 mBackground.setBounds(mActionBarView.getLeft(), mActionBarView.getTop(), in setPrimaryBackground()
101 mBackground == null && mStackedBackground == null); in setPrimaryBackground()
119 mBackground == null && mStackedBackground == null); in setStackedBackground()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActionBarContainer.java46 Drawable mBackground; field in ActionBarContainer
68 mBackground = a.getDrawable(R.styleable.ActionBar_background); in ActionBarContainer()
80 mBackground == null && mStackedBackground == null); in ActionBarContainer()
91 if (mBackground != null) { in setPrimaryBackground()
92 mBackground.setCallback(null); in setPrimaryBackground()
93 unscheduleDrawable(mBackground); in setPrimaryBackground()
95 mBackground = bg; in setPrimaryBackground()
99 mBackground.setBounds(mActionBarView.getLeft(), mActionBarView.getTop(), in setPrimaryBackground()
104 mBackground == null && mStackedBackground == null); in setPrimaryBackground()
122 mBackground == null && mStackedBackground == null); in setStackedBackground()
[all …]
DActionBarBackgroundDrawableV21.java38 if (mContainer.mBackground != null) { in getOutline()
39 mContainer.mBackground.getOutline(outline); in getOutline()
DActionBarBackgroundDrawable.java41 if (mContainer.mBackground != null) { in draw()
42 mContainer.mBackground.draw(canvas); in draw()
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
DDemoModeController.java45 private Handler mBackground; field in DemoModeController
69 mBackground = new Handler(background.getLooper()); in onCreate()
141 mBackground.removeCallbacks(mUpdateClock); in onTouch()
142 mBackground.post(mUpdateClock); in onTouch()
148 mBackground.removeCallbacks(mUpdateClock); in onTouch()
149 mBackground.post(mUpdateClock); in onTouch()
155 mBackground.removeCallbacks(mUpdateBattery); in onTouch()
156 mBackground.post(mUpdateBattery); in onTouch()
162 mBackground.removeCallbacks(mUpdateBattery); in onTouch()
163 mBackground.post(mUpdateBattery); in onTouch()
[all …]
/frameworks/base/tests/Assist/src/com/android/test/assist/
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()
120 Interpolator linearOutSlowIn = AnimationUtils.loadInterpolator(mBackground.getContext(), in playAssistAnimation()
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()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java104 Bitmap mBackground; field in ImageWallpaper.DrawableEngine
166 && mBackground != null) { in trimMemory()
191 mBackground = null; in onDestroy()
350 if (mBackground == null) { in drawFrame()
353 mBackground + ", " + in drawFrame()
354 ((mBackground == null) ? 0 : mBackground.getWidth()) + ", " + in drawFrame()
355 ((mBackground == null) ? 0 : mBackground.getHeight()) + ", " + in drawFrame()
366 mScale = Math.max(1f, Math.max(dw / (float) mBackground.getWidth(), in drawFrame()
367 dh / (float) mBackground.getHeight())); in drawFrame()
368 final int availw = dw - (int) (mBackground.getWidth() * mScale); in drawFrame()
[all …]
DHardwareUiLayout.java53 private HardwareBgDrawable mBackground; field in HardwareUiLayout
93 mBackground = new HardwareBgDrawable(mRoundedDivider, !mEdgeBleed, getContext()); in updateSettings()
95 mChild.setBackground(mBackground); in updateSettings()
124 mChild.setBackground(mBackground); in onMeasure()
171 mBackground.setRotatedBackground(true); in rotate()
182 mBackground.setRotatedBackground(false); in rotate()
343 top.addUpdateListener(animation -> mBackground.invalidateSelf()); in animateChild()
375 int curPoint = mBackground.getCutPoint(); in setCutPoint()
378 mBackground.setCutPoint(point); in setCutPoint()
388 mAnimator = ObjectAnimator.ofInt(mBackground, "cutPoint", curPoint, point); in setCutPoint()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustration.java48 private Drawable mBackground; field in Illustration
94 if (background == mBackground) { in setBackgroundDrawable()
97 mBackground = background; in setBackgroundDrawable()
168 if (mBackground != null) { in onLayout()
171 mBackground.setBounds(0, 0, (int) Math.ceil(layoutWidth / mScale), in onLayout()
179 if (mBackground != null) { in onDraw()
186 shouldMirrorDrawable(mBackground, getLayoutDirection())) { in onDraw()
189 canvas.translate(-mBackground.getBounds().width(), 0); in onDraw()
191 mBackground.draw(canvas); in onDraw()
/frameworks/support/v7/cardview/src/android/support/v7/widget/
DRoundRectDrawable.java52 private ColorStateList mBackground; field in RoundRectDrawable
67 mBackground = (color == null) ? ColorStateList.valueOf(Color.TRANSPARENT) : color; in setBackground()
68 mPaint.setColor(mBackground.getColorForState(getState(), mBackground.getDefaultColor())); in setBackground()
166 return mBackground; in getColor()
185 final int newColor = mBackground.getColorForState(stateSet, mBackground.getDefaultColor()); in onStateChange()
200 || (mBackground != null && mBackground.isStateful()) || super.isStateful(); in isStateful()
DRoundRectDrawableWithShadow.java75 private ColorStateList mBackground; field in RoundRectDrawableWithShadow
107 mBackground = (color == null) ? ColorStateList.valueOf(Color.TRANSPARENT) : color; in setBackground()
108 mPaint.setColor(mBackground.getColorForState(getState(), mBackground.getDefaultColor())); in setBackground()
197 final int newColor = mBackground.getColorForState(stateSet, mBackground.getDefaultColor()); in onStateChange()
209 return (mBackground != null && mBackground.isStateful()) || super.isStateful(); in isStateful()
381 return mBackground; in getColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DDividerView.java115 private View mBackground; field in DividerView
277 mBackground = findViewById(R.id.docked_divider_background); in onFinishInflate()
362 minimizeTop = mBackground.getTop(); in onLayout()
364 minimizeLeft = mBackground.getLeft(); in onLayout()
366 minimizeLeft = mBackground.getRight() - mMinimizedShadow.getWidth(); in onLayout()
691 mBackground.animate().scaleY(1.4f); in liftBackground()
693 mBackground.animate().scaleX(1.4f); in liftBackground()
695 mBackground.animate() in liftBackground()
715 mBackground.animate() in releaseBackground()
738 mBackground.setPivotY(0); in setMinimizedDockStack()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleDrawable.java129 private RippleBackground mBackground; field in RippleDrawable
219 if (mBackground != null) { in jumpToCurrentState()
220 mBackground.end(); in jumpToCurrentState()
306 if (mBackground != null) { in onBoundsChange()
307 mBackground.onBoundsChange(); in onBoundsChange()
537 if (mRipple == null || mBackground == null) { in setHotspot()
552 if (mBackground == null) { in tryBackgroundEnter()
554 mBackground = new RippleBackground(this, mHotspotBounds, isBounded, mForceSoftware); in tryBackgroundEnter()
557 mBackground.setup(mState.mMaxRadius, mDensity); in tryBackgroundEnter()
558 mBackground.enter(focused); in tryBackgroundEnter()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDetailClipper.java30 private final TransitionDrawable mBackground; field in QSDetailClipper
36 mBackground = (TransitionDrawable) detail.getBackground(); in QSDetailClipper()
66 mBackground.startTransition((int)(mAnimator.getDuration() * 0.6)); in animateCircularClip()
79 mBackground.reverseTransition((int)(mAnimator.getDuration() * 0.35));
99 mBackground.resetTransition();
105 mBackground.showSecondLayer(); in showBackground()
/frameworks/base/core/java/android/view/
DNotificationHeaderView.java59 private Drawable mBackground; field in NotificationHeaderView
68 if (mBackground != null) {
205 mBackground = drawable; in setHeaderBackgroundDrawable()
206 mBackground.setCallback(this); in setHeaderBackgroundDrawable()
210 mBackground = null; in setHeaderBackgroundDrawable()
218 if (mBackground != null) { in onDraw()
219 mBackground.setBounds(0, 0, getWidth(), mHeaderBackgroundHeight); in onDraw()
220 mBackground.draw(canvas); in onDraw()
226 return super.verifyDrawable(who) || who == mBackground; in verifyDrawable()
231 if (mBackground != null && mBackground.isStateful()) { in drawableStateChanged()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcher.java52 private final KeyguardUserSwitcherScrim mBackground; field in KeyguardUserSwitcher
66 mBackground = new KeyguardUserSwitcherScrim(context); in KeyguardUserSwitcher()
82 mBackground = null; in KeyguardUserSwitcher()
89 mUserSwitcher.removeOnLayoutChangeListener(mBackground); in reinflateViews()
98 mUserSwitcher.addOnLayoutChangeListener(mBackground); in reinflateViews()
99 mUserSwitcher.setBackground(mBackground); in reinflateViews()
174 mBgAnimator = ObjectAnimator.ofInt(mBackground, "alpha", 0, 255); in startAppearAnimation()
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DSimpleStringRecyclerViewAdapter.java34 private int mBackground; field in SimpleStringRecyclerViewAdapter
62 mBackground = val.resourceId; in SimpleStringRecyclerViewAdapter()
71 textView.setBackgroundResource(mBackground); in onCreateViewHolder()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvBoxAdapter.java31 private int mBackground; field in RvBoxAdapter
55 mBackground = val.resourceId; in RvBoxAdapter()
66 h.mTextView.setBackgroundResource(mBackground); in onCreateViewHolder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java235 super(new BitmapDrawable(r, state.mBackground)); in WallpaperDrawable()
259 int dwidth = mState.mBackground.getWidth(); in onBoundsChange()
260 int dheight = mState.mBackground.getHeight(); in onBoundsChange()
291 private final Bitmap mBackground; field in LockscreenWallpaper.WallpaperDrawable.ConstantState
294 mBackground = background; in ConstantState()
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
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()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/adapter/
DSimpleStringAdapter.java35 private int mBackground; field in SimpleStringAdapter
64 mBackground = val.resourceId; in SimpleStringAdapter()
83 h.mTextView.setBackgroundResource(mBackground); in onCreateViewHolder()
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewController.java150 protected View mBackground; field in PhotoViewController
317 mBackground = getBackground(); in onCreate()
333 mBackground.setVisibility(View.VISIBLE); in onCreate()
438 return mBackground != null; in hasBackground()
1014 mBackground.setAlpha(0f); in runEnterAnimation()
1015 mBackground.animate().alpha(1f).setDuration(ENTER_ANIMATION_DURATION_MS).start(); in runEnterAnimation()
1016 mBackground.setVisibility(View.VISIBLE); in runEnterAnimation()
1044 mBackground.startAnimation(alphaAnimation); in runEnterAnimation()
1045 mBackground.setVisibility(View.VISIBLE); in runEnterAnimation()
1103 mBackground.animate().alpha(0f).setDuration(EXIT_ANIMATION_DURATION_MS).start(); in runExitAnimation()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskViewHeader.java178 private HighlightColorDrawable mBackground; field in TaskViewHeader
227 mBackground = new HighlightColorDrawable(); in TaskViewHeader()
228 mBackground.setColorAndDim(Color.argb(255, 0, 0, 0), 0f); in TaskViewHeader()
229 setBackground(mBackground); in TaskViewHeader()
433 updateBackgroundColor(mBackground.getColor(), dimAlpha); in setDimAlpha()
442 mBackground.setColorAndDim(color, dimAlpha); in updateBackgroundColor()
468 if (mBackground.getColor() != primaryColor) { in bindToTask()

12