diff options
| author | 2024-11-14 19:14:13 +0000 | |
|---|---|---|
| committer | 2024-11-14 19:14:13 +0000 | |
| commit | b0de2b70ec40246e9498f62c3e75c702baf7f814 (patch) | |
| tree | 9cd89093ec15fcc28a30ee67253053399e9471ad | |
| parent | 6fea29d0e2ebb8b6257147071efa0237f13c7040 (diff) | |
| parent | c3929af8cf7602fc4291fba190f0bb0224e41037 (diff) | |
Merge "[framework] Add annotation for pausePolling input, and fix doc typo." into main am: dc95697afb am: c3929af8cf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3347805
Change-Id: If82713a695c60091d2d6690871a737d9461452f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | nfc/java/android/nfc/NfcOemExtension.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nfc/java/android/nfc/NfcOemExtension.java b/nfc/java/android/nfc/NfcOemExtension.java index c677cd68610c..fd131b8ef55d 100644 --- a/nfc/java/android/nfc/NfcOemExtension.java +++ b/nfc/java/android/nfc/NfcOemExtension.java @@ -23,6 +23,7 @@ import static android.nfc.cardemulation.CardEmulation.routeIntToString; import android.Manifest; import android.annotation.CallbackExecutor; +import android.annotation.DurationMillisLong; import android.annotation.FlaggedApi; import android.annotation.IntDef; import android.annotation.NonNull; @@ -603,12 +604,12 @@ public final class NfcOemExtension { /** * Pauses NFC tag reader mode polling for a {@code timeoutInMs} millisecond. * In case of {@code timeoutInMs} is zero or invalid polling will be stopped indefinitely - * use {@link #resumePolling() to resume the polling. - * @param timeoutInMs the pause polling duration in millisecond + * use {@link #resumePolling()} to resume the polling. + * @param timeoutInMs the pause polling duration in millisecond, ranging from 0 to 40000. */ @FlaggedApi(Flags.FLAG_NFC_OEM_EXTENSION) @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) - public void pausePolling(int timeoutInMs) { + public void pausePolling(@DurationMillisLong int timeoutInMs) { NfcAdapter.callService(() -> NfcAdapter.sService.pausePolling(timeoutInMs)); } |