Home
last modified time | relevance | path

Searched refs:mShadowNfcAdapter (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcPreferenceControllerTest.java67 private ShadowNfcAdapter mShadowNfcAdapter; field in NfcPreferenceControllerTest
74 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 …]
DNfcTagAppsPreferenceControllerTest.java45 private ShadowNfcAdapter mShadowNfcAdapter; field in NfcTagAppsPreferenceControllerTest
52 mShadowNfcAdapter = Shadow.extract(NfcAdapter.getDefaultAdapter(mContext)); in setUp()
57 mShadowNfcAdapter.setTagIntentAppPreferenceSupported(false); in getAvailabilityStatus_featureNotEnabled_shouldNotReturnAvailable()
63 mShadowNfcAdapter.setTagIntentAppPreferenceSupported(true); in getAvailabilityStatus_featureEnabled_shouldReturnAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DNfcAndPaymentFragmentControllerTest.java58 private ShadowNfcAdapter mShadowNfcAdapter; field in NfcAndPaymentFragmentControllerTest
64 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()
DAdvancedConnectedDeviceControllerTest.java62 private ShadowNfcAdapter mShadowNfcAdapter; field in AdvancedConnectedDeviceControllerTest
74 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()
DNfcAndPaymentFragmentTest.java51 private ShadowNfcAdapter mShadowNfcAdapter; field in NfcAndPaymentFragmentTest
59 mShadowNfcAdapter = Shadow.extract(NfcAdapter.getDefaultAdapter(mContext)); in setUp()
80 mShadowNfcAdapter.setSecureNfcSupported(true); in searchIndexProvider_shouldIndexValidItems()
DAdvancedConnectedDeviceDashboardFragmentTest.java50 private ShadowNfcAdapter mShadowNfcAdapter; field in AdvancedConnectedDeviceDashboardFragmentTest
58 mShadowNfcAdapter = Shadow.extract(NfcAdapter.getDefaultAdapter(mContext)); in setUp()