Fix flaky tests in RadioOnStateListenerTest.

Previous test case may set retry timeout to be 0 therefore onComplete
may be triggered unexpectedly causing the next unittest to fail.

Fix is at teardown we reset the values back to original.

Bug: 152120370
Test: unittest
Change-Id: Ib8dfc4ccb0e0f7c928fa50951863e2a563d65d09
Merged-In: Ib8dfc4ccb0e0f7c928fa50951863e2a563d65d09
diff --git a/tests/src/com/android/services/telephony/RadioOnStateListenerTest.java b/tests/src/com/android/services/telephony/RadioOnStateListenerTest.java
index 25df848..d55a2fa 100644
--- a/tests/src/com/android/services/telephony/RadioOnStateListenerTest.java
+++ b/tests/src/com/android/services/telephony/RadioOnStateListenerTest.java
@@ -69,6 +69,8 @@
     @Override
     @After
     public void tearDown() throws Exception {
+        mListener.setTimeBetweenRetriesMillis(5000);
+        mListener.setMaxNumRetries(5);
         mListener.getHandler().removeCallbacksAndMessages(null);
         // Wait for the queue to clear...
         waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS /*ms timeout*/);