Home
last modified time | relevance | path

Searched refs:switchText (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DPowerNotificationControlsFragment.java52 final TextView switchText = (TextView) switchBar.findViewById(R.id.switch_text); in onViewCreated() local
54 switchText.setText(isEnabled() in onViewCreated()
67 switchText.setText(newState in onViewCreated()
/frameworks/base/core/java/android/widget/
DSwitch.java1246 final Layout switchText = getTargetCheckedState() ? mOnLayout : mOffLayout; in onDraw() local
1247 if (switchText != null) { in onDraw()
1262 final int left = cX / 2 - switchText.getWidth() / 2; in onDraw()
1263 final int top = (switchInnerTop + switchInnerBottom) / 2 - switchText.getHeight() / 2; in onDraw()
1265 switchText.draw(canvas); in onDraw()
1405 CharSequence switchText = isChecked() ? mTextOn : mTextOff; in onProvideStructure() local
1406 if (!TextUtils.isEmpty(switchText)) { in onProvideStructure()
1409 structure.setText(switchText); in onProvideStructure()
1412 newText.append(oldText).append(' ').append(switchText); in onProvideStructure()
1425 CharSequence switchText = isChecked() ? mTextOn : mTextOff; in onInitializeAccessibilityNodeInfoInternal() local
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java1242 final Layout switchText = getTargetCheckedState() ? mOnLayout : mOffLayout; in onDraw() local
1243 if (switchText != null) { in onDraw()
1258 final int left = cX / 2 - switchText.getWidth() / 2; in onDraw()
1259 final int top = (switchInnerTop + switchInnerBottom) / 2 - switchText.getHeight() / 2; in onDraw()
1261 switchText.draw(canvas); in onDraw()
1407 CharSequence switchText = isChecked() ? mTextOn : mTextOff; in onInitializeAccessibilityNodeInfo() local
1408 if (!TextUtils.isEmpty(switchText)) { in onInitializeAccessibilityNodeInfo()
1411 info.setText(switchText); in onInitializeAccessibilityNodeInfo()
1414 newText.append(oldText).append(' ').append(switchText); in onInitializeAccessibilityNodeInfo()