summaryrefslogtreecommitdiff
path: root/core/java/android/bluetooth/BluetoothSocket.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/BluetoothSocket.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/BluetoothSocket.java')
-rw-r--r--core/java/android/bluetooth/BluetoothSocket.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/core/java/android/bluetooth/BluetoothSocket.java b/core/java/android/bluetooth/BluetoothSocket.java
index a6e3153d6af7..760166bfcc5d 100644
--- a/core/java/android/bluetooth/BluetoothSocket.java
+++ b/core/java/android/bluetooth/BluetoothSocket.java
@@ -515,20 +515,6 @@ public final class BluetoothSocket implements Closeable {
return mSocketIS.available();
}
- /**
- * Wait until the data in sending queue is emptied. A polling version
- * for flush implementation. Used to ensure the writing data afterwards will
- * be packed in new RFCOMM frame.
- *
- * @throws IOException if an i/o error occurs.
- */
- @UnsupportedAppUsage
- /*package*/ void flush() throws IOException {
- if (mSocketOS == null) throw new IOException("flush is called on null OutputStream");
- if (VDBG) Log.d(TAG, "flush: " + mSocketOS);
- mSocketOS.flush();
- }
-
/*package*/ int read(byte[] b, int offset, int length) throws IOException {
int ret = 0;
if (VDBG) Log.d(TAG, "read in: " + mSocketIS + " len: " + length);