diff options
| author | Ruchi Kandoi <kandoiruchi@google.com> | 2019-06-12 21:27:26 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-06-12 21:27:26 -0700 |
| commit | 78a96339eef5009236a2f8db5f91f68ffce018bc (patch) | |
| tree | 22fa1cec751adc9a8d3280e91b7f218c11d0162e /core/java/android | |
| parent | 3e4dd234e7f0275550849ae5162cdcbb658e16fa (diff) | |
| parent | 6b6b3322fcc8da173d8347da908ada6cc45062b4 (diff) | |
Merge "Update Secure NFC API definitions"
am: 6b6b3322fc
Change-Id: Ieb92b84e1a4c1a9b037fb0b980c55e9ef3f48f6c
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/nfc/NfcAdapter.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/java/android/nfc/NfcAdapter.java b/core/java/android/nfc/NfcAdapter.java index eb347e7e253e..bc698f97738a 100644 --- a/core/java/android/nfc/NfcAdapter.java +++ b/core/java/android/nfc/NfcAdapter.java @@ -1714,11 +1714,12 @@ public final class NfcAdapter { /** * Sets Secure NFC feature. * <p>This API is for the Settings application. + * @return True if successful * @hide */ @SystemApi @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) - public boolean setNfcSecure(boolean enable) { + public boolean enableSecureNfc(boolean enable) { if (!sHasNfcFeature) { throw new UnsupportedOperationException(); } @@ -1736,7 +1737,7 @@ public final class NfcAdapter { * @return True if device supports Secure NFC, false otherwise * @throws UnsupportedOperationException if FEATURE_NFC is unavailable. */ - public boolean deviceSupportsNfcSecure() { + public boolean isSecureNfcSupported() { if (!sHasNfcFeature) { throw new UnsupportedOperationException(); } @@ -1751,12 +1752,12 @@ public final class NfcAdapter { /** * Checks Secure NFC feature is enabled. * - * @return True if device supports Secure NFC is enabled, false otherwise + * @return True if Secure NFC is enabled, false otherwise * @throws UnsupportedOperationException if FEATURE_NFC is unavailable. * @throws UnsupportedOperationException if device doesn't support - * Secure NFC functionality. {@link #deviceSupportsNfcSecure} + * Secure NFC functionality. {@link #isSecureNfcSupported} */ - public boolean isNfcSecureEnabled() { + public boolean isSecureNfcEnabled() { if (!sHasNfcFeature) { throw new UnsupportedOperationException(); } |
