summaryrefslogtreecommitdiff
path: root/telecomm
diff options
context:
space:
mode:
authorHall Liu <hallliu@google.com>2020-10-29 16:15:33 -0700
committerHall Liu <hallliu@google.com>2020-10-29 16:25:05 -0700
commitdc46c85da68a5a839366bb961d7bad93926a6d4c (patch)
tree8f33d1976eca1795b8c7beb1eb4754e19e790ce5 /telecomm
parent3a14c6bdcc973838660dd7eb89302e349b39daec (diff)
Update docs for RttCall#write
Update docs to clarify some confusion over recommended behavior for paste/autocomplete operations. Bug: 171986522 Test: docs only Change-Id: I0515319a1aff00640fb4557584b17f10126eb215
Diffstat (limited to 'telecomm')
-rwxr-xr-xtelecomm/java/android/telecom/Call.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java
index a85eb53605d6..1238e7b69a87 100755
--- a/telecomm/java/android/telecom/Call.java
+++ b/telecomm/java/android/telecom/Call.java
@@ -1468,8 +1468,11 @@ public final class Call {
/**
* Writes the string {@param input} into the outgoing text stream for this RTT call. Since
- * RTT transmits text in real-time, this method should be called once for each character
- * the user enters into the device.
+ * RTT transmits text in real-time, this method should be called once for each user action.
+ * For example, when the user enters text as discrete characters using the keyboard, this
+ * method should be called once for each character. However, if the user enters text by
+ * pasting or autocomplete, the entire contents of the pasted or autocompleted text should
+ * be sent in one call to this method.
*
* This method is not thread-safe -- calling it from multiple threads simultaneously may
* lead to interleaved text.