Add CTS tests for LocalSocket read/write timeouts

The behavior was not previous covered and broke in N
due to commit c80af6d8. There is an associated fix
in frameworks/base.

Some refactoring of existing tests to reduce
duplication and tidy up sockets after tests.

Test: Ran the new CTS test (before and after related fix)
Bug: 31205169
Change-Id: Ie94335bc535beefcc5301d5469de6b8211af0bab
1 file changed
tree: 4cfafed3cb2802b17b68624aa37643fe49d4b03f
  1. tests/