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.java1255 final Layout switchText = getTargetCheckedState() ? mOnLayout : mOffLayout; in onDraw() local
1256 if (switchText != null) { in onDraw()
1271 final int left = cX / 2 - switchText.getWidth() / 2; in onDraw()
1272 final int top = (switchInnerTop + switchInnerBottom) / 2 - switchText.getHeight() / 2; in onDraw()
1274 switchText.draw(canvas); in onDraw()
1425 CharSequence switchText = isChecked() ? mTextOn : mTextOff; in onProvideAutoFillStructureForAssistOrAutofill() local
1426 if (!TextUtils.isEmpty(switchText)) { in onProvideAutoFillStructureForAssistOrAutofill()
1429 structure.setText(switchText); in onProvideAutoFillStructureForAssistOrAutofill()
1432 newText.append(oldText).append(' ').append(switchText); in onProvideAutoFillStructureForAssistOrAutofill()
1445 CharSequence switchText = isChecked() ? mTextOn : mTextOff; in onInitializeAccessibilityNodeInfoInternal() local
[all …]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DSwitchCompat.java1233 final Layout switchText = getTargetCheckedState() ? mOnLayout : mOffLayout; in onDraw() local
1234 if (switchText != null) { in onDraw()
1249 final int left = cX / 2 - switchText.getWidth() / 2; in onDraw()
1250 final int top = (switchInnerTop + switchInnerBottom) / 2 - switchText.getHeight() / 2; in onDraw()
1252 switchText.draw(canvas); in onDraw()
1396 CharSequence switchText = isChecked() ? mTextOn : mTextOff; in onInitializeAccessibilityNodeInfo() local
1397 if (!TextUtils.isEmpty(switchText)) { in onInitializeAccessibilityNodeInfo()
1400 info.setText(switchText); in onInitializeAccessibilityNodeInfo()
1403 newText.append(oldText).append(' ').append(switchText); in onInitializeAccessibilityNodeInfo()