From 7d888cbc2f818c88f47ccfc30bc268d0b5d286f9 Mon Sep 17 00:00:00 2001 From: TYM Tsai Date: Fri, 26 Nov 2021 21:15:13 +0800 Subject: [PATCH] Update Contenet Capture API discription There are missing API description at getServiceComponentName in ContentCaptureManager. Some errors may occur and an exception may be thrown. So update the javadoc to remind user to handle. Fixes: 203368373 Test: make Change-Id: I979c81c74cda4e50627dc0c83ae7c33b333b9255 --- .../java/android/view/contentcapture/ContentCaptureManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/java/android/view/contentcapture/ContentCaptureManager.java b/core/java/android/view/contentcapture/ContentCaptureManager.java index 9241c3074ddd4..cd3c8c9c48f2a 100644 --- a/core/java/android/view/contentcapture/ContentCaptureManager.java +++ b/core/java/android/view/contentcapture/ContentCaptureManager.java @@ -483,6 +483,8 @@ public final class ContentCaptureManager { /** * Returns the component name of the system service that is consuming the captured events for * the current user. + * + * @throws RuntimeException if getting the component name is timed out. */ @Nullable public ComponentName getServiceComponentName() {