Searched refs:mShadowNfcAdapter (Results 1 – 6 of 6) sorted by relevance
67 private ShadowNfcAdapter mShadowNfcAdapter; field in NfcPreferenceControllerTest74 mShadowNfcAdapter = Shadow.extract(NfcAdapter.getDefaultAdapter(mContext)); in setUp()90 mShadowNfcAdapter.setEnabled(true); in getAvailabilityStatus_hasNfc_shouldReturnAvailable()105 mShadowNfcAdapter.setAdapterState(NfcAdapter.STATE_ON); in isNfcEnable_nfcStateNotTurning_shouldReturnTrue()109 mShadowNfcAdapter.setAdapterState(NfcAdapter.STATE_OFF); in isNfcEnable_nfcStateNotTurning_shouldReturnTrue()117 mShadowNfcAdapter.setAdapterState(NfcAdapter.STATE_TURNING_ON); in isNfcEnable_nfcStateTurning_shouldReturnFalse()121 mShadowNfcAdapter.setAdapterState(NfcAdapter.STATE_TURNING_OFF); in isNfcEnable_nfcStateTurning_shouldReturnFalse()129 mShadowNfcAdapter.setAdapterState(NfcAdapter.STATE_ON); in isNfcChecked_nfcStateOn_shouldReturnTrue()133 mShadowNfcAdapter.setAdapterState(NfcAdapter.STATE_TURNING_ON); in isNfcChecked_nfcStateOn_shouldReturnTrue()140 mShadowNfcAdapter.setAdapterState(NfcAdapter.STATE_OFF); in isNfcChecked_nfcStateOff_shouldReturnFalse()[all …]
45 private ShadowNfcAdapter mShadowNfcAdapter; field in NfcTagAppsPreferenceControllerTest52 mShadowNfcAdapter = Shadow.extract(NfcAdapter.getDefaultAdapter(mContext)); in setUp()57 mShadowNfcAdapter.setTagIntentAppPreferenceSupported(false); in getAvailabilityStatus_featureNotEnabled_shouldNotReturnAvailable()63 mShadowNfcAdapter.setTagIntentAppPreferenceSupported(true); in getAvailabilityStatus_featureEnabled_shouldReturnAvailable()
58 private ShadowNfcAdapter mShadowNfcAdapter; field in NfcAndPaymentFragmentControllerTest64 mShadowNfcAdapter = Shadow.extract(NfcAdapter.getDefaultAdapter(mContext)); in setUp()78 mShadowNfcAdapter.setEnabled(true); in getAvailabilityStatus_hasNfc_shouldReturnAvailable()93 mShadowNfcAdapter.setEnabled(true); in getSummary_nfcOn_shouldProvideOnSummary()100 mShadowNfcAdapter.setEnabled(false); in getSummary_nfcOff_shouldProvideOffSummary()
62 private ShadowNfcAdapter mShadowNfcAdapter; field in AdvancedConnectedDeviceControllerTest74 mShadowNfcAdapter = Shadow.extract(NfcAdapter.getDefaultAdapter(mContext)); in setUp()130 mShadowNfcAdapter.setEnabled(true); in getConnectedDevicesSummaryResourceId_NFCAndDrivingModeAvailable()139 mShadowNfcAdapter.setEnabled(true); in getConnectedDevicesSummaryResourceId_NFCAvailableAndDrivingModeNotAvailable()166 mShadowNfcAdapter.setEnabled(true); in getConnectedDevicesSummaryResourceId_Auto_NFC_DrivingMode_Available()175 mShadowNfcAdapter.setEnabled(true); in getConnectedDevicesSummaryResourceId_Auto_NFC_Available()
51 private ShadowNfcAdapter mShadowNfcAdapter; field in NfcAndPaymentFragmentTest59 mShadowNfcAdapter = Shadow.extract(NfcAdapter.getDefaultAdapter(mContext)); in setUp()80 mShadowNfcAdapter.setSecureNfcSupported(true); in searchIndexProvider_shouldIndexValidItems()
50 private ShadowNfcAdapter mShadowNfcAdapter; field in AdvancedConnectedDeviceDashboardFragmentTest58 mShadowNfcAdapter = Shadow.extract(NfcAdapter.getDefaultAdapter(mContext)); in setUp()