Port JDK-7014860

- API change of SocketImpl.shutdownInput() and available()
- available() returns 0 after calling shutdownInput
- The change happens after 7 but before 8u60

Bug: 64065632
Test: cts-tradefed run cts-dev --module CtsLibcoreTestCases
Test: cts-tradefed run cts-dev --module CtsLibcoreOjTestCases
Change-Id: I53c14726e4c46b07bfd026bc010e3fc3c854dbcc
3 files changed