Add generic socket interfaces and functions

This patch adds functionality to unify java and native sockets. This is
part one of two of a change to allow functionality for testing full
coverage of all APIs.

Bug: 76152303
Test: Ran tests on Walleye
Change-Id: I9bd57d6267f82d8c1ac293a0147dc2c115dd4181
2 files changed
tree: b3b28f42a623a6cf6cbb085b76cce0e18509f373
  1. tests/