Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DTwoStateButtonPreference.java39 private final Button mButtonOff; field in TwoStateButtonPreference
47 mButtonOff = null; in TwoStateButtonPreference()
62 mButtonOff = findViewById(R.id.state_off_button); in TwoStateButtonPreference()
63 mButtonOff.setText(textOffId); in TwoStateButtonPreference()
64 mButtonOff.setOnClickListener(this); in TwoStateButtonPreference()
82 mButtonOff.setVisibility(View.VISIBLE); in setChecked()
85 mButtonOff.setVisibility(View.GONE); in setChecked()
95 mButtonOff.setEnabled(enabled); in setButtonEnabled()
105 return mButtonOff; in getStateOffButton()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DTwoStateButtonPreferenceTest.java44 private Button mButtonOff; field in TwoStateButtonPreferenceTest
53 mButtonOff = new Button(mContext); in setUp()
54 mButtonOff.setId(R.id.state_off_button); in setUp()
56 ReflectionHelpers.setField(mPreference, "mButtonOff", mButtonOff); in setUp()
64 assertThat(mButtonOff.getVisibility()).isEqualTo(View.VISIBLE); in testSetButtonVisibility_stateOn_onlyShowButtonOn()
72 assertThat(mButtonOff.getVisibility()).isEqualTo(View.GONE); in testSetButtonVisibility_stateOff_onlyShowButtonOff()
80 assertThat(mButtonOff.isEnabled()).isTrue(); in testSetButtonEnabled_enabled_buttonEnabled()
88 assertThat(mButtonOff.isEnabled()).isFalse(); in testSetButtonEnabled_disabled_buttonDisabled()
96 mPreference.onClick(mButtonOff); in onClick_shouldPropagateChangeToListener()
/packages/apps/Settings/src/com/android/settings/widget/
DTwoStateButtonPreference.java39 private final Button mButtonOff; field in TwoStateButtonPreference
47 mButtonOff = null; in TwoStateButtonPreference()
62 mButtonOff = findViewById(R.id.state_off_button); in TwoStateButtonPreference()
63 mButtonOff.setText(textOffId); in TwoStateButtonPreference()
64 mButtonOff.setOnClickListener(this); in TwoStateButtonPreference()
82 mButtonOff.setVisibility(View.VISIBLE); in setChecked()
85 mButtonOff.setVisibility(View.GONE); in setChecked()
95 mButtonOff.setEnabled(enabled); in setButtonEnabled()
105 return mButtonOff; in getStateOffButton()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceControllerTest.java50 private Button mButtonOff; field in BatterySaverButtonPreferenceControllerTest
63 mButtonOff = new Button(mContext); in setUp()
66 ReflectionHelpers.setField(mPreference, "mButtonOff", mButtonOff); in setUp()