Merge changes from topics "bluetooth-localsocket-from-filedescriptor", "localsocket-from-filedescriptor" am: 63c3c1f3d4 am: 35dda7049d am: ca3d992029
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959006 Change-Id: Icad96e3361f868e4aa485a9da69050ef0b91a52c
This commit is contained in:
@@ -108,19 +108,6 @@ public class LocalSocket implements Closeable {
|
|||||||
checkConnected();
|
checkConnected();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a LocalSocket instances using the FileDescriptor for an already-connected
|
|
||||||
* AF_LOCAL/UNIX domain stream socket. Note: the FileDescriptor must be closed by the caller:
|
|
||||||
* closing the LocalSocket will not close it.
|
|
||||||
*
|
|
||||||
* TODO: delete this method when Bluetooth is no longer using it.
|
|
||||||
*
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public static LocalSocket createConnectedLocalSocket(FileDescriptor fd) {
|
|
||||||
return new LocalSocket(fd);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* for use with LocalServerSocket.accept()
|
* for use with LocalServerSocket.accept()
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user