summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TYM Tsai <tymtsai@google.com> 2021-11-26 21:15:13 +0800
committer TYM Tsai <tymtsai@google.com> 2021-12-01 09:12:14 +0800
commit7d888cbc2f818c88f47ccfc30bc268d0b5d286f9 (patch)
tree0180663f3a6cfae531591f548a96c2f5449da91f
parent4ce27c5400a741da6104871cc986c711e3acaf1e (diff)
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
-rw-r--r--core/java/android/view/contentcapture/ContentCaptureManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/view/contentcapture/ContentCaptureManager.java b/core/java/android/view/contentcapture/ContentCaptureManager.java
index 9241c3074ddd..cd3c8c9c48f2 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() {