Lines Matching refs:NFC
17 package com.android.nfc;
19 import com.android.nfc.DeviceHost.DeviceHostListener;
20 import com.android.nfc.DeviceHost.LlcpConnectionlessSocket;
21 import com.android.nfc.DeviceHost.LlcpServerSocket;
22 import com.android.nfc.DeviceHost.LlcpSocket;
23 import com.android.nfc.DeviceHost.NfcDepEndpoint;
24 import com.android.nfc.DeviceHost.TagEndpoint;
25 import com.android.nfc.handover.HandoverManager;
26 import com.android.nfc.cardemulation.AidRoutingManager;
27 import com.android.nfc.cardemulation.HostEmulationManager;
28 import com.android.nfc.cardemulation.RegisteredAidCache;
29 import com.android.nfc.dhimpl.NativeNfcManager;
30 import com.android.nfc.dhimpl.NativeNfcSecureElement;
49 import android.nfc.ErrorCodes;
50 import android.nfc.FormatException;
51 import android.nfc.IAppCallback;
52 import android.nfc.INfcAdapter;
53 import android.nfc.INfcAdapterExtras;
54 import android.nfc.INfcCardEmulation;
55 import android.nfc.INfcTag;
56 import android.nfc.NdefMessage;
57 import android.nfc.NfcAdapter;
58 import android.nfc.Tag;
59 import android.nfc.TechListParcel;
60 import android.nfc.TransceiveResult;
61 import android.nfc.cardemulation.ApduServiceInfo;
62 import android.nfc.tech.Ndef;
63 import android.nfc.tech.TagTechnology;
95 public static final String SERVICE_NAME = "nfc";
97 /** Regular NFC permission */
98 private static final String NFC_PERM = android.Manifest.permission.NFC;
99 private static final String NFC_PERM_ERROR = "NFC permission required";
101 /** NFC ADMIN permission - only for system apps */
151 // to the thrown EE_EXCEPTION_ exceptions in nfc-extras.
159 /** minimum screen state that enables NFC polling (discovery) */
162 // Time to wait for NFC controller to initialize before watchdog
194 "com.android.nfc.action.LLCP_UP";
197 "com.android.nfc.action.LLCP_DOWN";
217 // NFC Execution Environment
234 boolean mInProvisionMode; // whether we're in setup wizard and enabled NFC provisioning
236 boolean mNfceeRouteEnabled; // current Device Host state of NFC-EE routing
237 boolean mNfcPollingEnabled; // current Device Host state of NFC-C polling
446 Log.i(TAG, "Starting NFC service");
622 * Manages tasks that involve turning on/off the NFC controller.
624 * <p>All work that might turn the NFC adapter on or off must be done
642 * <p>{@link #TASK_ENABLE} enables the NFC adapter, without changing
644 * <p>{@link #TASK_DISABLE} disables the NFC adapter, without changing
646 * <p>{@link #TASK_BOOT} does first boot work and may enable NFC
648 * process may temporarily enable the NFC adapter
683 Log.d(TAG,"NFC is on. Doing normal stuff");
686 Log.d(TAG,"NFC is off. Checking firmware version");
688 // Build initial AID cache even if NFC is off
711 * Enable NFC adapter functions.
718 Log.i(TAG, "Enabling NFC");
727 Log.w(TAG, "Error enabling NFC");
758 * Disable all NFC adapter functions.
765 Log.i(TAG, "Disabling NFC");
771 * when the NFC controller stops responding */
781 /* The NFC-EE may still be opened by another process,
842 Log.w(TAG, "Could not enable NFC to wipe NFC-EE");
846 // NFC enabled
867 NFC-EE");
914 Log.w(TAG, "Not playing sound when NFC is disabled");
1252 // Check if NFC is enabled
1273 // Check if NFC is enabled
1290 // Check if NFC is enabled
1310 // Check if NFC is enabled
1332 // Check if NFC is enabled
1365 // Check if NFC is enabled
1394 // Check if NFC is enabled
1426 // Check if NFC is enabled
1450 // Check if NFC is enabled
1474 // Check if NFC is enabled
1549 throw new IOException("NFC adapter is disabled");
1552 throw new IOException("NFC EE closed");
1694 throw new IOException("NFC is not enabled");
1697 throw new IOException("NFC EE is not open");
1837 * Read mScreenState and apply NFC-C polling and NFC-EE routing
1869 Log.d(TAG, "NFC-C OFF, disconnect");
1877 Log.d(TAG, "NFC-EE OFF");
1898 // configure NFC-EE routing
1902 Log.d(TAG, "NFC-EE ON");
1908 Log.d(TAG, "NFC-EE OFF");
1914 // configure NFC-C polling
1917 Log.d(TAG, "NFC-C ON");
1932 Log.d(TAG, "NFC-C ON");
1938 Log.d(TAG, "NFC-C OFF");
2124 if (DBG) Log.d(TAG, "Skipping NDEF detection for NFC Barcode");
2446 Log.w(TAG, "failed to wipe NFC-EE");
2448 Log.w(TAG, "failed to wipe NFC-EE");
2541 pw.println("Permission Denial: can't dump nfc from from pid="