Add DeviceConfigUtils version caching and tests

Querying the APK version can be relatively expensive, so cache it with a
static. Package version cannot change without restarting the process.

Also add some testing for flags being equal to the min/max values.

Bug: 17454103
Test: atest NetworkStaticLibTests
Change-Id: I18c298beb843e0a9f76162d353623bb15ab155f1
2 files changed
tree: 756c29aecfac16ba2334b44396c9eb59982549ce
  1. staticlibs/