Searched refs:mNfcEnabler (Results 1 – 3 of 3) sorted by relevance
46 private NfcEnabler mNfcEnabler; field in NfcEnablerTest52 mNfcEnabler = spy(new NfcEnabler(mContext, mNfcPreference)); in setUp()64 assertThat(mNfcEnabler.isToggleable()).isTrue(); in isToggleable_AirplaneModeOff_shouldReturnTrue()73 assertThat(mNfcEnabler.isToggleable()).isTrue(); in isToggleable_AirplaneModeOnNfcNotInAirplaneModeRadio_shouldReturnTrue()85 assertThat(mNfcEnabler.isToggleable()).isTrue(); in isToggleable_AirplaneModeOnNfcToggleable_shouldReturnTrue()97 assertThat(mNfcEnabler.isToggleable()).isFalse(); in isToggleable_AirplaneModeOnNfcNotToggleable_shouldReturnFalse()102 mNfcEnabler.handleNfcStateChanged(NfcAdapter.STATE_OFF); in handleNfcStateChanged_stateOff_shouldCheckIfPreferenceEnableState()104 verify(mNfcEnabler).isToggleable(); in handleNfcStateChanged_stateOff_shouldCheckIfPreferenceEnableState()
43 private NfcEnabler mNfcEnabler; field in NfcPreferenceController54 mNfcEnabler = null; in displayPreference()60 mNfcEnabler = new NfcEnabler(mContext, switchPreference); in displayPreference()104 if (mNfcEnabler != null) { in onResume()105 mNfcEnabler.resume(); in onResume()111 if (mNfcEnabler != null) { in onPause()112 mNfcEnabler.pause(); in onPause()
43 private NfcEnabler mNfcEnabler; field in NfcPreferenceController56 mNfcEnabler = null; in displayPreference()62 mNfcEnabler = new NfcEnabler(mContext, switchPreference); in displayPreference()114 if (mNfcEnabler != null) { in onResume()115 mNfcEnabler.resume(); in onResume()124 if (mNfcEnabler != null) { in onPause()125 mNfcEnabler.pause(); in onPause()