Loading api/current.xml +1 −1 Original line number Diff line number Diff line Loading @@ -112635,7 +112635,7 @@ visibility="public" > </method> <method name="isTagDiscoveryEnabled" <method name="isEnabled" return="boolean" abstract="false" native="false" core/java/android/nfc/NfcAdapter.java +13 −4 Original line number Diff line number Diff line Loading @@ -227,14 +227,17 @@ public final class NfcAdapter { } /** * Return true if this NFC Adapter is enabled to discover new tags. * Return true if this NFC Adapter has any features enabled. * <p> * If this method returns false, then applications should request the user * turn on NFC tag discovery in Settings. * <p> * If this method returns false, the NFC hardware is guaranteed not to * perform or respond to any NFC communication. * * @return true if this NFC Adapter is enabled to discover new tags */ public boolean isTagDiscoveryEnabled() { public boolean isEnabled() { try { return mService.isEnabled(); } catch (RemoteException e) { Loading @@ -244,12 +247,14 @@ public final class NfcAdapter { } /** * Enable NFC hardware. * <p> * NOTE: may block for ~second or more. Poor API. Avoid * calling from the UI thread. * * @hide */ public boolean enableTagDiscovery() { public boolean enable() { try { return mService.enable(); } catch (RemoteException e) { Loading @@ -259,12 +264,16 @@ public final class NfcAdapter { } /** * Disable NFC hardware. * No NFC features will work after this call, and the hardware * will not perform or respond to any NFC communication. * <p> * NOTE: may block for ~second or more. Poor API. Avoid * calling from the UI thread. * * @hide */ public boolean disableTagDiscovery() { public boolean disable() { try { return mService.disable(); } catch (RemoteException e) { Loading core/java/android/provider/Settings.java +0 −92 Original line number Diff line number Diff line Loading @@ -1641,86 +1641,6 @@ public final class Settings { */ public static final String NOTIFICATION_LIGHT_PULSE = "notification_light_pulse"; /** * Whether nfc is enabled/disabled * 0=disabled. 1=enabled. * @hide */ public static final String NFC_ON = "nfc_on"; /** * Whether nfc secure element is enabled/disabled * 0=disabled. 1=enabled. * @hide */ public static final String NFC_SECURE_ELEMENT_ON = "nfc_secure_element_on"; /** * Whether nfc secure element is enabled/disabled * 0=disabled. 1=enabled. * @hide */ public static final String NFC_SECURE_ELEMENT_ID = "nfc_secure_element_id"; /** * LLCP LTO value * @hide */ public static final String NFC_LLCP_LTO = "nfc_llcp_lto"; /** * LLCP MIU value * @hide */ public static final String NFC_LLCP_MIU = "nfc_llcp_miu"; /** * LLCP WKS value * @hide */ public static final String NFC_LLCP_WKS = "nfc_llcp_wks"; /** * LLCP OPT value * @hide */ public static final String NFC_LLCP_OPT = "nfc_llcp_opt"; /** * NFC Discovery Reader A * 0=disabled. 1=enabled. * @hide */ public static final String NFC_DISCOVERY_A = "nfc_discovery_a"; /** * NFC Discovery Reader B * 0=disabled. 1=enabled. * @hide */ public static final String NFC_DISCOVERY_B = "nfc_discovery_b"; /** * NFC Discovery Reader Felica * 0=disabled. 1=enabled. * @hide */ public static final String NFC_DISCOVERY_F = "nfc_discovery_felica"; /** * NFC Discovery Reader 15693 * 0=disabled. 1=enabled. * @hide */ public static final String NFC_DISCOVERY_15693 = "nfc_discovery_15693"; /** * NFC Discovery NFCIP * 0=disabled. 1=enabled. * @hide */ public static final String NFC_DISCOVERY_NFCIP = "nfc_discovery_nfcip"; /** * Show pointer location on screen? * 0 = no Loading Loading @@ -1895,18 +1815,6 @@ public final class Settings { USE_PTP_INTERFACE, SIP_CALL_OPTIONS, SIP_RECEIVE_CALLS, NFC_ON, NFC_SECURE_ELEMENT_ON, NFC_SECURE_ELEMENT_ID, NFC_LLCP_LTO, NFC_LLCP_MIU, NFC_LLCP_WKS, NFC_LLCP_OPT, NFC_DISCOVERY_A, NFC_DISCOVERY_B, NFC_DISCOVERY_F, NFC_DISCOVERY_15693, NFC_DISCOVERY_NFCIP, }; // Settings moved to Settings.Secure Loading Loading
api/current.xml +1 −1 Original line number Diff line number Diff line Loading @@ -112635,7 +112635,7 @@ visibility="public" > </method> <method name="isTagDiscoveryEnabled" <method name="isEnabled" return="boolean" abstract="false" native="false"
core/java/android/nfc/NfcAdapter.java +13 −4 Original line number Diff line number Diff line Loading @@ -227,14 +227,17 @@ public final class NfcAdapter { } /** * Return true if this NFC Adapter is enabled to discover new tags. * Return true if this NFC Adapter has any features enabled. * <p> * If this method returns false, then applications should request the user * turn on NFC tag discovery in Settings. * <p> * If this method returns false, the NFC hardware is guaranteed not to * perform or respond to any NFC communication. * * @return true if this NFC Adapter is enabled to discover new tags */ public boolean isTagDiscoveryEnabled() { public boolean isEnabled() { try { return mService.isEnabled(); } catch (RemoteException e) { Loading @@ -244,12 +247,14 @@ public final class NfcAdapter { } /** * Enable NFC hardware. * <p> * NOTE: may block for ~second or more. Poor API. Avoid * calling from the UI thread. * * @hide */ public boolean enableTagDiscovery() { public boolean enable() { try { return mService.enable(); } catch (RemoteException e) { Loading @@ -259,12 +264,16 @@ public final class NfcAdapter { } /** * Disable NFC hardware. * No NFC features will work after this call, and the hardware * will not perform or respond to any NFC communication. * <p> * NOTE: may block for ~second or more. Poor API. Avoid * calling from the UI thread. * * @hide */ public boolean disableTagDiscovery() { public boolean disable() { try { return mService.disable(); } catch (RemoteException e) { Loading
core/java/android/provider/Settings.java +0 −92 Original line number Diff line number Diff line Loading @@ -1641,86 +1641,6 @@ public final class Settings { */ public static final String NOTIFICATION_LIGHT_PULSE = "notification_light_pulse"; /** * Whether nfc is enabled/disabled * 0=disabled. 1=enabled. * @hide */ public static final String NFC_ON = "nfc_on"; /** * Whether nfc secure element is enabled/disabled * 0=disabled. 1=enabled. * @hide */ public static final String NFC_SECURE_ELEMENT_ON = "nfc_secure_element_on"; /** * Whether nfc secure element is enabled/disabled * 0=disabled. 1=enabled. * @hide */ public static final String NFC_SECURE_ELEMENT_ID = "nfc_secure_element_id"; /** * LLCP LTO value * @hide */ public static final String NFC_LLCP_LTO = "nfc_llcp_lto"; /** * LLCP MIU value * @hide */ public static final String NFC_LLCP_MIU = "nfc_llcp_miu"; /** * LLCP WKS value * @hide */ public static final String NFC_LLCP_WKS = "nfc_llcp_wks"; /** * LLCP OPT value * @hide */ public static final String NFC_LLCP_OPT = "nfc_llcp_opt"; /** * NFC Discovery Reader A * 0=disabled. 1=enabled. * @hide */ public static final String NFC_DISCOVERY_A = "nfc_discovery_a"; /** * NFC Discovery Reader B * 0=disabled. 1=enabled. * @hide */ public static final String NFC_DISCOVERY_B = "nfc_discovery_b"; /** * NFC Discovery Reader Felica * 0=disabled. 1=enabled. * @hide */ public static final String NFC_DISCOVERY_F = "nfc_discovery_felica"; /** * NFC Discovery Reader 15693 * 0=disabled. 1=enabled. * @hide */ public static final String NFC_DISCOVERY_15693 = "nfc_discovery_15693"; /** * NFC Discovery NFCIP * 0=disabled. 1=enabled. * @hide */ public static final String NFC_DISCOVERY_NFCIP = "nfc_discovery_nfcip"; /** * Show pointer location on screen? * 0 = no Loading Loading @@ -1895,18 +1815,6 @@ public final class Settings { USE_PTP_INTERFACE, SIP_CALL_OPTIONS, SIP_RECEIVE_CALLS, NFC_ON, NFC_SECURE_ELEMENT_ON, NFC_SECURE_ELEMENT_ID, NFC_LLCP_LTO, NFC_LLCP_MIU, NFC_LLCP_WKS, NFC_LLCP_OPT, NFC_DISCOVERY_A, NFC_DISCOVERY_B, NFC_DISCOVERY_F, NFC_DISCOVERY_15693, NFC_DISCOVERY_NFCIP, }; // Settings moved to Settings.Secure Loading