Home
last modified time | relevance | path

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

/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DSwitchCompat.java1138 final Rect thumbInsets; in draw() local
1140 thumbInsets = DrawableUtils.getOpticalBounds(mThumbDrawable); in draw()
1142 thumbInsets = DrawableUtils.INSETS_NONE; in draw()
1157 if (thumbInsets != null) { in draw()
1158 if (thumbInsets.left > padding.left) { in draw()
1159 trackLeft += thumbInsets.left - padding.left; in draw()
1161 if (thumbInsets.top > padding.top) { in draw()
1162 trackTop += thumbInsets.top - padding.top; in draw()
1164 if (thumbInsets.right > padding.right) { in draw()
1165 trackRight -= thumbInsets.right - padding.right; in draw()
[all …]
/frameworks/base/core/java/android/widget/
DSwitch.java1161 final Insets thumbInsets; in draw() local
1163 thumbInsets = mThumbDrawable.getOpticalInsets(); in draw()
1165 thumbInsets = Insets.NONE; in draw()
1180 if (thumbInsets != Insets.NONE) { in draw()
1181 if (thumbInsets.left > padding.left) { in draw()
1182 trackLeft += thumbInsets.left - padding.left; in draw()
1184 if (thumbInsets.top > padding.top) { in draw()
1185 trackTop += thumbInsets.top - padding.top; in draw()
1187 if (thumbInsets.right > padding.right) { in draw()
1188 trackRight -= thumbInsets.right - padding.right; in draw()
[all …]