summaryrefslogtreecommitdiff
path: root/framework/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
commit4fd500310f8738adfb2d7dd6e32b576ab7b00ab8 (patch)
tree94ff69ee766eef44584623631e389b8775adc7f3 /framework/java/android/bluetooth/BluetoothOutputStream.java
parent3d30e625e338d452c2a9e91dc2ad477e8500e5eb (diff)
Revert "Revert "Remove a misleading "flush" function.""
This reverts commit 3d30e625e338d452c2a9e91dc2ad477e8500e5eb. 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 'framework/java/android/bluetooth/BluetoothOutputStream.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothOutputStream.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/framework/java/android/bluetooth/BluetoothOutputStream.java b/framework/java/android/bluetooth/BluetoothOutputStream.java
index dfec4e102f..a0aa2dee9d 100644
--- a/framework/java/android/bluetooth/BluetoothOutputStream.java
+++ b/framework/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();
- }
}