Add a retry mechanism when error is recoverable

Have a retry delay arrays for getting the next retry delay, and
the max retry delay is 900 seconds, when the max retry delay is
reached, the retry mechanism will always use it delay the retry.

Bug: 229350078
Test: atest FrameworksNetTests:VpnTest
Change-Id: If0fe30f0b98b83a723e14ea8f6cd9a96c54e1691
1 file changed