Home
last modified time | relevance | path

Searched refs:mButtonOn (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DTwoStateButtonPreference.java38 private final Button mButtonOn; field in TwoStateButtonPreference
46 mButtonOn = null; in TwoStateButtonPreference()
59 mButtonOn = findViewById(R.id.state_on_button); in TwoStateButtonPreference()
60 mButtonOn.setText(textOnId); in TwoStateButtonPreference()
61 mButtonOn.setOnClickListener(this); in TwoStateButtonPreference()
81 mButtonOn.setVisibility(View.GONE); in setChecked()
84 mButtonOn.setVisibility(View.VISIBLE); in setChecked()
94 mButtonOn.setEnabled(enabled); in setButtonEnabled()
100 return mButtonOn; in getStateOnButton()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DTwoStateButtonPreferenceTest.java43 private Button mButtonOn; field in TwoStateButtonPreferenceTest
51 mButtonOn = new Button(mContext); in setUp()
52 mButtonOn.setId(R.id.state_on_button); in setUp()
55 ReflectionHelpers.setField(mPreference, "mButtonOn", mButtonOn); in setUp()
63 assertThat(mButtonOn.getVisibility()).isEqualTo(View.GONE); in testSetButtonVisibility_stateOn_onlyShowButtonOn()
71 assertThat(mButtonOn.getVisibility()).isEqualTo(View.VISIBLE); in testSetButtonVisibility_stateOff_onlyShowButtonOff()
79 assertThat(mButtonOn.isEnabled()).isTrue(); in testSetButtonEnabled_enabled_buttonEnabled()
87 assertThat(mButtonOn.isEnabled()).isFalse(); in testSetButtonEnabled_disabled_buttonDisabled()
93 mPreference.onClick(mButtonOn); in onClick_shouldPropagateChangeToListener()
/packages/apps/Settings/src/com/android/settings/widget/
DTwoStateButtonPreference.java38 private final Button mButtonOn; field in TwoStateButtonPreference
46 mButtonOn = null; in TwoStateButtonPreference()
59 mButtonOn = findViewById(R.id.state_on_button); in TwoStateButtonPreference()
60 mButtonOn.setText(textOnId); in TwoStateButtonPreference()
61 mButtonOn.setOnClickListener(this); in TwoStateButtonPreference()
81 mButtonOn.setVisibility(View.GONE); in setChecked()
84 mButtonOn.setVisibility(View.VISIBLE); in setChecked()
94 mButtonOn.setEnabled(enabled); in setButtonEnabled()
100 return mButtonOn; in getStateOnButton()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceControllerTest.java49 private Button mButtonOn; field in BatterySaverButtonPreferenceControllerTest
62 mButtonOn = new Button(mContext); in setUp()
65 ReflectionHelpers.setField(mPreference, "mButtonOn", mButtonOn); in setUp()