Home
last modified time | relevance | path

Searched refs:mTrackDrawable (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/widget/
DSwitch.java65 private Drawable mTrackDrawable; field in Switch
142 mTrackDrawable = a.getDrawable(com.android.internal.R.styleable.Switch_track); in Switch()
320 mTrackDrawable.getPadding(mTempRect); in onMeasure()
324 final int switchHeight = mTrackDrawable.getIntrinsicHeight(); in onMeasure()
567 mTrackDrawable.setBounds(switchLeft, switchTop, switchRight, switchBottom); in onDraw()
568 mTrackDrawable.draw(canvas); in onDraw()
572 mTrackDrawable.getPadding(mTempRect); in onDraw()
613 if (mTrackDrawable == null) { in getThumbScrollRange()
616 mTrackDrawable.getPadding(mTempRect); in getThumbScrollRange()
638 if (mTrackDrawable != null) mTrackDrawable.setState(myDrawableState); in drawableStateChanged()
[all …]
DFastScroller.java81 private Drawable mTrackDrawable; field in FastScroller
178 if (mTrackDrawable != null && mTrackDrawable.isStateful()) { in refreshDrawableState()
179 mTrackDrawable.setState(state); in refreshDrawableState()
261 mTrackDrawable = ta.getDrawable(TRACK_DRAWABLE); in init()
342 if (mTrackDrawable != null) { in draw()
346 final int trackWidth = mTrackDrawable.getIntrinsicWidth(); in draw()
348 mTrackDrawable.setBounds(trackLeft, halfThumbHeight, in draw()
350 mTrackDrawable.draw(canvas); in draw()
401 } else if (mTrackDrawable != null) { in draw()
833 return inTrack && (mTrackDrawable != null || y >= mThumbY && y <= mThumbY + mThumbH); in isPointInside()