Lines Matching refs:mPreference
54 private SwitchPreference mPreference;
81 mPreference = new SwitchPreference(mContext);
82 mPreference.setKey(mController.getPreferenceKey());
86 mController.updateState(mPreference);
88 assertThat(mPreference.isChecked()).isTrue();
94 mPreference = new SwitchPreference(mContext);
95 mPreference.setKey(mController.getPreferenceKey());
99 mController.updateState(mPreference);
101 assertThat(mPreference.isChecked()).isFalse();
107 mPreference = new SwitchPreference(mContext);
108 mPreference.setKey(mController.getPreferenceKey());
109 mPreference.setChecked(false);
111 boolean result = mController.handlePreferenceTreeClick(mPreference);
126 mPreference = new SwitchPreference(mContext);
127 mPreference.setKey(mController.getPreferenceKey());
128 mPreference.setChecked(true);
130 boolean result = mController.handlePreferenceTreeClick(mPreference);