Merge "Cleanup in EmulatorClipboardMonitor (1)" into tm-dev am: 5a68801f65
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18360035 Change-Id: I1c9ef96afe505a8498ffbc4240242d19cd589a5a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -72,7 +72,7 @@ class EmulatorClipboardMonitor implements Consumer<ClipData> {
|
|||||||
Os.connect(fd, new VmSocketAddress(HOST_PORT, OsConstants.VMADDR_CID_HOST));
|
Os.connect(fd, new VmSocketAddress(HOST_PORT, OsConstants.VMADDR_CID_HOST));
|
||||||
|
|
||||||
final byte[] handshake = createOpenHandshake();
|
final byte[] handshake = createOpenHandshake();
|
||||||
Os.write(fd, handshake, 0, handshake.length);
|
writeFully(fd, handshake, 0, handshake.length);
|
||||||
mPipe = fd;
|
mPipe = fd;
|
||||||
return true;
|
return true;
|
||||||
} catch (ErrnoException | SocketException | InterruptedIOException e) {
|
} catch (ErrnoException | SocketException | InterruptedIOException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user