Revert "Hide APIs not intended to ship in DR."
This reverts commit 0c28d43fe1423198f99a0518887b69a4205bc6f7.
diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java
index a6bfbad..c147578 100644
--- a/telecomm/java/android/telecom/Call.java
+++ b/telecomm/java/android/telecom/Call.java
@@ -19,7 +19,6 @@
import android.annotation.IntDef;
import android.annotation.Nullable;
import android.annotation.SystemApi;
-import android.annotation.TestApi;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
@@ -1077,17 +1076,12 @@
* @return A string containing text sent by the remote user, or {@code null} if the
* conversation has been terminated or if there was an error while reading.
*/
- public String read() {
- try {
- int numRead = mReceiveStream.read(mReadBuffer, 0, READ_BUFFER_SIZE);
- if (numRead < 0) {
- return null;
- }
- return new String(mReadBuffer, 0, numRead);
- } catch (IOException e) {
- Log.w(this, "Exception encountered when reading from InputStreamReader: %s", e);
+ public String read() throws IOException {
+ int numRead = mReceiveStream.read(mReadBuffer, 0, READ_BUFFER_SIZE);
+ if (numRead < 0) {
+ return null;
}
- return null;
+ return new String(mReadBuffer, 0, numRead);
}
/**
@@ -1095,9 +1089,7 @@
* be read.
* @return A string containing text entered by the user, or {@code null} if the user has
* not entered any new text yet.
- * @hide
*/
- @TestApi
public String readImmediately() throws IOException {
if (mReceiveStream.ready()) {
return read();