Home
last modified time | relevance | path

Searched refs:NfcService (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/
DP2pEventManager.java36 final NfcService mNfcService;
49 mNfcService = NfcService.getInstance(); in P2pEventManager()
82 mNfcService.playSound(NfcService.SOUND_START); in onP2pNfcTapRequested()
103 mNfcService.playSound(NfcService.SOUND_START); in onP2pSendConfirmationRequested()
114 mNfcService.playSound(NfcService.SOUND_END); in onP2pSendComplete()
125 mNfcService.playSound(NfcService.SOUND_ERROR); in onP2pHandoverNotSupported()
135 mNfcService.playSound(NfcService.SOUND_ERROR); in onP2pHandoverBusy()
145 if (playSound) mNfcService.playSound(NfcService.SOUND_END); in onP2pReceiveComplete()
162 mNfcService.playSound(NfcService.SOUND_ERROR); in onP2pOutOfRange()
192 mNfcService.playSound(NfcService.SOUND_ERROR); in onP2pSendDebounce()
[all …]
DNfcBackupAgent.java32 new SharedPreferencesBackupHelper(this, NfcService.PREF); in onCreate()
41 SharedPreferences prefs = getSharedPreferences(NfcService.PREF, in onRestoreFinished()
43 if (prefs.getBoolean(NfcService.PREF_NDEF_PUSH_ON, in onRestoreFinished()
44 NfcService.NDEF_PUSH_ON_DEFAULT)) { in onRestoreFinished()
50 if (prefs.getBoolean(NfcService.PREF_NFC_ON, in onRestoreFinished()
51 NfcService.NFC_ON_DEFAULT)) { in onRestoreFinished()
DNfcService.java121 public class NfcService implements DeviceHostListener { class
346 private static NfcService sService;
358 public static NfcService getInstance() { in getInstance()
364 sendMessage(NfcService.MSG_NDEF_TAG, tag); in onRemoteEndpointDiscovered()
399 sendMessage(NfcService.MSG_LLCP_LINK_ACTIVATION, device); in onLlcpLinkActivated()
408 sendMessage(NfcService.MSG_LLCP_LINK_DEACTIVATED, device); in onLlcpLinkDeactivated()
418 sendMessage(NfcService.MSG_LLCP_LINK_FIRST_PACKET, device); in onLlcpFirstPacketReceived()
423 sendMessage(NfcService.MSG_RF_FIELD_ACTIVATED, null); in onRemoteFieldActivated()
428 sendMessage(NfcService.MSG_RF_FIELD_DEACTIVATED, null); in onRemoteFieldDeactivated()
434 sendMessage(NfcService.MSG_TRANSACTION_EVENT, dataObj); in onNfcTransactionEvent()
[all …]
DNfcApplication.java35 NfcService mNfcService;
66 mNfcService = new NfcService(this); in onCreate()
DP2pLinkManager.java286 mPrefs = context.getSharedPreferences(NfcService.PREF, Context.MODE_PRIVATE); in P2pLinkManager()
781 if (NfcService.sIsDtaMode) { in doInBackground()
791 if (NfcService.sIsDtaMode) { in doInBackground()
997 if(NfcService.sIsDtaMode)
1012 if (NfcService.sIsDtaMode){
1128 NfcService.getInstance().sendMockNdefTag(m); in handleMessage()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DAidRoutingManager.java22 import com.android.nfc.NfcService;
170 NfcService.getInstance().unrouteAids(aid); in clearNfcRoutingTableLocked()
172 if (NfcService.getInstance().getNciVersion() >= NfcService.getInstance().NCI_VERSION_2_0) { in clearNfcRoutingTableLocked()
174 NfcService.getInstance().unrouteAids(""); in clearNfcRoutingTableLocked()
251 mMaxAidRoutingTableSize = NfcService.getInstance().getAidRoutingTableSize(); in configureRouting()
343 if (NfcService.getInstance().getNciVersion() in configureRouting()
344 >= NfcService.getInstance().NCI_VERSION_2_0) { in configureRouting()
375 if (NfcService.getInstance().getNciVersion() in configureRouting()
376 < NfcService.getInstance().NCI_VERSION_2_0) { in configureRouting()
422 NfcService.getInstance().routeAids(aid, route, aidType, power); in commit()
[all …]
DSystemCodeRoutingManager.java22 import com.android.nfc.NfcService;
62 NfcService.getInstance().deregisterT3tIdentifier( in configureRouting()
67 NfcService.getInstance().registerT3tIdentifier( in configureRouting()
89 NfcService.getInstance().commitRouting(); in configureRouting()
103 NfcService.getInstance().clearT3tIdentifiersCache(); in onNfccRoutingTableCleared()
DCardEmulationManager.java44 import com.android.nfc.NfcService;
249 NfcService.getInstance().onPreferredPaymentChanged(NfcAdapter.PREFERRED_PAYMENT_UPDATED); in onServicesUpdated()
433 NfcService.getInstance().onPreferredPaymentChanged( in registerAidGroupForService()
449 NfcService.getInstance().onPreferredPaymentChanged( in setOffHostForService()
464 NfcService.getInstance().onPreferredPaymentChanged( in unsetOffHostForService()
493 NfcService.getInstance().onPreferredPaymentChanged( in removeAidGroupForService()
642 return NfcService.getInstance().getLfT3tMax(); in getMaxNumOfRegisterableSystemCodes()
651 NfcService.getInstance().onPreferredPaymentChanged( in onPreferredPaymentServiceChanged()
660 NfcService.getInstance().onPreferredPaymentChanged( in onPreferredForegroundServiceChanged()
DHostEmulationManager.java40 import com.android.nfc.NfcService;
166 NfcService.getInstance().sendData(ANDROID_HCE_RESPONSE); in onHostEmulationData()
172 NfcService.getInstance().sendData(AID_NOT_FOUND); in onHostEmulationData()
197 NfcService.getInstance().sendData(AID_NOT_FOUND); in onHostEmulationData()
245 NfcService.getInstance().sendData(UNKNOWN_ERROR); in onHostEmulationData()
528 NfcService.getInstance().sendData(data); in handleMessage()
DHostNfcFEmulationManager.java35 import com.android.nfc.NfcService;
332 NfcService.getInstance().sendData(data); in handleMessage()
DRegisteredAidCache.java27 import com.android.nfc.NfcService;
799 if (NfcService.getInstance().getNciVersion() < NfcService.getInstance().NCI_VERSION_2_0) { in computeAidPowerState()
/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepMessenger.java20 import com.android.nfc.NfcService;
84 if (NfcService.sIsDtaMode) { in sendMessage()
114 if (NfcService.sIsDtaMode) { in sendMessage()
164 if (NfcService.sIsDtaMode && mIsClient) { in getMessage()
189 if (NfcService.sIsDtaMode) { in getMessage()
193 if (NfcService.sIsDtaMode) { in getMessage()
204 if (NfcService.sIsDtaMode) { in getMessage()
DSnepMessage.java22 import com.android.nfc.NfcService;
177 if (NfcService.sIsDtaMode && DtaSnepClient.mTestCaseId != 0) { in toByteArray()
181 if (NfcService.sIsShortRecordLayout) { in toByteArray()
DSnepServer.java22 import com.android.nfc.NfcService;
158 } else if (NfcService.sIsDtaMode && ((request.getLength() > SnepMessage.MAL_IUT) || in handleRequest()
192 mServerSocket = NfcService.getInstance().createLlcpServerSocket(mServiceSap, in run()
DSnepClient.java21 import com.android.nfc.NfcService;
145 socket = NfcService.getInstance().createLlcpSocket(0, mMiu, mRwSize, 1024); in connect()
/packages/apps/Nfc/src/com/android/nfc/beam/
DBeamManager.java18 import com.android.nfc.NfcService;
50 private NfcService mNfcService;
60 mNfcService = NfcService.getInstance(); in BeamManager()
129 mNfcService.playSound(NfcService.SOUND_END); in handleMessage()
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushClient.java21 import com.android.nfc.NfcService;
54 NfcService service = NfcService.getInstance(); in connect()
DNdefPushServer.java22 import com.android.nfc.NfcService;
46 NfcService mService = NfcService.getInstance();
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverClient.java23 import com.android.nfc.NfcService;
52 NfcService service = NfcService.getInstance(); in connect()
DHandoverServer.java21 import com.android.nfc.NfcService;
95 mServerSocket = NfcService.getInstance().createLlcpServerSocket(mSap, in run()
/packages/apps/Nfc/src/com/android/nfc/echoserver/
DEchoServer.java24 import com.android.nfc.NfcService;
74 NfcService mService;
81 mService = NfcService.getInstance(); in EchoServer()
/packages/apps/Nfc/src/com/android/nfc/sneptest/
DExtDtaSnepServer.java28 import com.android.nfc.NfcService;
165 … mServerSocket = NfcService.getInstance().createLlcpServerSocket(mDtaServiceSap, in run()
DDtaSnepClient.java32 import com.android.nfc.NfcService;
284 socket = NfcService.getInstance().createLlcpSocket(0, mMiu, mRwSize, 1024); in connect()