Replace hidden getFileDescriptor$()

It's the preparation for the incoming ConnectivityService
mainline. The mainline modules can not access hidden APIs.
Thus, the hidden APIs usage should be removed.

The getFileDescriptor$() in Socket or DatagramSocket is
hidden for internal usage. It should be used in a module and
not prefer to expose as an API. Thus, replace it with
ParcelFileDescriptor APIs to get the fd via
ParcelFileDescriptor.

Bug: 170598012
Test: atest FrameworksNetTests
Change-Id: I05b31a48315e7e6d95e22123103e544a7136a449
1 file changed
tree: ce67191fcb86b5987f8f0e6e647f343afb465b2f
  1. core/
  2. framework/
  3. service/
  4. services/
  5. tests/
  6. OWNERS