Home
last modified time | relevance | path

Searched refs:mNfcPreference (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcEnablerTest.java40 private MainSwitchPreference mNfcPreference; field in NfcEnablerTest
49 mNfcEnabler = spy(new NfcEnabler(mContext, mNfcPreference)); in setUp()
55 verify(mNfcPreference).updateStatus(false); in handleNfcStateChanged_stateOff_shouldCheckIfPreferenceEnableState()
56 verify(mNfcPreference).setEnabled(true); in handleNfcStateChanged_stateOff_shouldCheckIfPreferenceEnableState()
59 verify(mNfcPreference).updateStatus(true); in handleNfcStateChanged_stateOff_shouldCheckIfPreferenceEnableState()
60 verify(mNfcPreference, times(2)).setEnabled(true); in handleNfcStateChanged_stateOff_shouldCheckIfPreferenceEnableState()
DNfcPreferenceControllerTest.java65 private MainSwitchPreference mNfcPreference; field in NfcPreferenceControllerTest
83 mNfcPreference = new MainSwitchPreference(RuntimeEnvironment.application); in setUp()
85 when(mScreen.findPreference(mNfcController.getPreferenceKey())).thenReturn(mNfcPreference); in setUp()
107 assertThat(mNfcPreference.isEnabled()).isTrue(); in isNfcEnable_nfcStateNotTurning_shouldReturnTrue()
111 assertThat(mNfcPreference.isEnabled()).isTrue(); in isNfcEnable_nfcStateNotTurning_shouldReturnTrue()
119 assertThat(mNfcPreference.isEnabled()).isFalse(); in isNfcEnable_nfcStateTurning_shouldReturnFalse()
123 assertThat(mNfcPreference.isEnabled()).isFalse(); in isNfcEnable_nfcStateTurning_shouldReturnFalse()
131 assertThat(mNfcPreference.isChecked()).isTrue(); in isNfcChecked_nfcStateOn_shouldReturnTrue()
135 assertThat(mNfcPreference.isChecked()).isTrue(); in isNfcChecked_nfcStateOn_shouldReturnTrue()
142 assertThat(mNfcPreference.isChecked()).isFalse(); in isNfcChecked_nfcStateOff_shouldReturnFalse()
[all …]