Searched refs:mButtonOn (Results 1 – 4 of 4) sorted by relevance
38 private final Button mButtonOn; field in TwoStateButtonPreference46 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()
43 private Button mButtonOn; field in TwoStateButtonPreferenceTest51 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()
49 private Button mButtonOn; field in BatterySaverButtonPreferenceControllerTest62 mButtonOn = new Button(mContext); in setUp()65 ReflectionHelpers.setField(mPreference, "mButtonOn", mButtonOn); in setUp()