Home
last modified time | relevance | path

Searched refs:mNfcEnabler (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcEnablerTest.java46 private NfcEnabler mNfcEnabler; field in NfcEnablerTest
52 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()
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcPreferenceController.java43 private NfcEnabler mNfcEnabler; field in NfcPreferenceController
54 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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/
DNfcPreferenceController.java43 private NfcEnabler mNfcEnabler; field in NfcPreferenceController
56 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()