summaryrefslogtreecommitdiff
path: root/core/java/android/bluetooth/BluetoothOutputStream.java
diff options
context:
space:
mode:
authorChris Wailes <chriswailes@google.com>2019-08-21 17:22:54 -0700
committerChris Wailes <chriswailes@google.com>2019-08-27 14:51:21 -0700
commit9d8b92685946c5029a71ac7d90b6b68dceecc773 (patch)
tree4c5043d815af9c68292f77d28126bd7ab4e2a29d /core/java/android/bluetooth/BluetoothOutputStream.java
parentc046f9f0398e2c68c6597aaa8780bcd804af0e10 (diff)
Remove a misleading "flush" function.
This patch removes LocalSocketImpl.flush(). In practice this function was simply a wrapper around `Thread.sleep(10)`. All direct calls to this function have been removed. The `flush()` function is still called on several objects that wrap a SocketOutputStream. This will make booting a device 20ms faster than it currently is. Bug: 139192244 Test: Build -> flash -> boot -> launch app Change-Id: I0a96f4bc72461670370f61e847349f32af5ac774
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();
- }
}