Change security types arrays to sets in network classes.

Also fixed all test classes to support Truth and added
hashcode verification too.

Bug: 270700093, 270697412
Test: atest KnownNetworkTest TetherNetworkTest
Change-Id: If01e72bffa3297c4d34a32639c4211c4d8ee191b
11 files changed