summaryrefslogtreecommitdiff
path: root/core/java/android/bluetooth/BluetoothOutputStream.java
diff options
context:
space:
mode:
authorChristian Wailes <chriswailes@google.com>2019-09-04 23:35:54 +0000
committerChristian Wailes <chriswailes@google.com>2019-09-04 23:37:32 +0000
commit647fee87dc9524554707deecd94d0cca2933f3bf (patch)
tree4c5043d815af9c68292f77d28126bd7ab4e2a29d /core/java/android/bluetooth/BluetoothOutputStream.java
parent47da17740520f3d6ba952c65593f8660b89b8abf (diff)
Revert "Revert "Remove a misleading "flush" function.""
This reverts commit 47da17740520f3d6ba952c65593f8660b89b8abf. Reason for revert: Fixed the test broken by the original commit Bug: 139192244 Bug: 140336855 Test: m -> flash -> boot Test: atest CtsJvmtiAttachingHostTestCases Change-Id: I4c67ad8709652c4710ef24564e0240f74f817f8c
Diffstat (limited to 'core/java/android/bluetooth/BluetoothOutputStream.java')
-rw-r--r--core/java/android/bluetooth/BluetoothOutputStream.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/core/java/android/bluetooth/BluetoothOutputStream.java b/core/java/android/bluetooth/BluetoothOutputStream.java
index dfec4e102fd4..a0aa2dee9d34 100644
--- a/core/java/android/bluetooth/BluetoothOutputStream.java
+++ b/core/java/android/bluetooth/BluetoothOutputStream.java
@@ -75,16 +75,4 @@ import java.io.OutputStream;
}
mSocket.write(b, offset, count);
}
-
- /**
- * Wait until the data in sending queue is emptied. A polling version
- * for flush implementation. Use it to ensure the writing data afterwards will
- * be packed in the new RFCOMM frame.
- *
- * @throws IOException if an i/o error occurs.
- * @since Android 4.2.3
- */
- public void flush() throws IOException {
- mSocket.flush();
- }
}