Leave more buffer for state change between TOP & other state

When process has the activities with visible adn set to finish, the
state switch from TOP to IMFP may take more than 400ms, so give more
buffer for state to switch.

Test:run cts-on-gsi -m CtsIncidentHostTestCases -t com.android.server.
cts.BatteryStatsValidationTest#testUidForegroundDuration --skip-precond
itions

Bug: 112684940

Change-Id: Ie2f346ab9762b2acaddbcaaeab95708197815061
diff --git a/hostsidetests/incident/src/com/android/server/cts/BatteryStatsValidationTest.java b/hostsidetests/incident/src/com/android/server/cts/BatteryStatsValidationTest.java
index 65cb2a5..9234387 100644
--- a/hostsidetests/incident/src/com/android/server/cts/BatteryStatsValidationTest.java
+++ b/hostsidetests/incident/src/com/android/server/cts/BatteryStatsValidationTest.java
@@ -490,7 +490,7 @@
     }
 
     private void assertApproximateTimeInState(int index, long duration) throws Exception {
-        assertValueRange("st", "", index, (long) (0.8 * duration), 2 * duration);
+        assertValueRange("st", "", index, (long) (0.7 * duration), 2 * duration);
     }
 
     /**