Fix ClearKeySystemTest fails Wifi connection test in emulator.
CTS does not mandate wifi connection. Test for network (wifi and data)
connectivity instead.
Detail
======
Add ConnectionStatus class that implements the IConnectionStatus class.
ConnectionStatus tests if there is network connectivity through wifi or
mobile data.
Also remove methods that are unique to wifi status.
Test: ANDROID_BUILD_TOP= ./android-cts/tools/cts-tradefed run cts -m CtsMediaTestCases --test android.media.cts.ClearKeySystemTest#testClearKeyPlaybackCenc
Test with wifi enable, then test with wifi disabled.
bug: 32505267
Change-Id: I41a744e1484d2e6605f3fba868caa6aacdb07443
3 files changed