Searched refs:mButtonOff (Results 1 – 4 of 4) sorted by relevance
39 private final Button mButtonOff; field in TwoStateButtonPreference47 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()
44 private Button mButtonOff; field in TwoStateButtonPreferenceTest53 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()
50 private Button mButtonOff; field in BatterySaverButtonPreferenceControllerTest63 mButtonOff = new Button(mContext); in setUp()66 ReflectionHelpers.setField(mPreference, "mButtonOff", mButtonOff); in setUp()