NetworkListStoreData: Handle runtime exceptions
The enterprise config setters can raise Illegal argument exceptions if
the data being set is incorrect. This shouldn't normally happen until
someone manipulates the XML (or downgrades as in the linked bug). Handle
such runtime exceptions gracefully and skip over that network block.
While there made a small nit,
Rename parse/writeWifiConfig to parse/writeNetwork to be symmetric with
other method names in the file.
Bug: 35244730
Test: Unit tests
Change-Id: I168eb383090712f7c5df388a6fcc3a1ed1055fe3
3 files changed