Files
frameworks_base/core/java/android/util
Annie Meng 853097ca2c Validate restore of NetworkPolicy settings
We want to catch potential exceptions that occur when restoring
NetworkPolicy settings. Here, a DateTimeException can be thrown when
we try to read the recurrence rule from the backup data and cannot
parse a timezone.

We also add GTS tests to validate that these catches persist and that
we don't crash when given unexpected backup data to restore.

Bug: 73942796
Test: gts-tradefed run gts -m GtsBackupHostTestCases -t com.google.android.gts.backup.NetworkPolicyRestoreHostSideTest
Change-Id: I6f6ea09d2fff60b8d704c6160234e6f032321103
2018-03-01 14:39:09 +00:00
..
2018-01-02 07:28:49 -08:00
2018-01-26 13:07:42 +08:00
2017-05-24 17:08:58 -07:00
2018-02-14 15:17:27 -08:00
2017-12-05 10:46:59 -08:00