Home | History | Annotate | Download | only in cts

Lines Matching defs:Switch

39 import android.widget.Switch;
50 * Test {@link Switch}.
57 private Switch mSwitch;
69 private Switch findSwitchById(int id) {
70 return (Switch) mActivity.findViewById(id);
76 new Switch(mActivity);
78 new Switch(mActivity, null);
80 new Switch(mActivity, null, android.R.attr.switchStyle);
82 new Switch(mActivity, null, 0, android.R.style.Widget_Material_CompoundButton_Switch);
84 new Switch(mActivity, null, 0, android.R.style.Widget_Material_Light_CompoundButton_Switch);
203 // Run text-related tests on a Holo-themed switch, since under Material themes we
205 mSwitch = new Switch(new ContextThemeWrapper(mActivity, android.R.style.Theme_Holo_Light));
225 // Use custom text appearance. Since we don't have APIs to query this facet of Switch,
230 // Use custom typeface. Since we don't have APIs to query this facet of Switch,
245 // Set and verify padding between the switch and the text
262 // Set custom min width on the switch and verify that it's at least that wide