Increase battery stats job timeout to 30 seconds.

Since framework doesn't give any guarantees about when the job will
actually execute, and Android Wear devices can get really slow.

Bug: 65050815
Fixes: 65050815
Test: run cts -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest#testJobDuration

Change-Id: I3f0ed82619a9924707f30a2a6550b9d60006deb0
diff --git a/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsJobDurationTests.java b/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsJobDurationTests.java
index fb90b2e..b22beb1 100644
--- a/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsJobDurationTests.java
+++ b/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsJobDurationTests.java
@@ -54,12 +54,12 @@
         final JobInfo job = createJobInfo(1);
         for (int i = 0; i < 3; i++) {
             CountDownLatch latch = SimpleJobService.resetCountDownLatch();
-            Log.i(TAG, "Scheduling job.");
+            Log.i(TAG, "Scheduling job");
             js.schedule(job);
-            Log.i(TAG, "Waiting for job to finish.");
-            if (!latch.await(5, TimeUnit.SECONDS)) {
-                Log.e(TAG, "Job didn't finish in 5 seconds");
-                fail("Job didn't finish in 5 seconds");
+            Log.i(TAG, "Waiting for job to finish");
+            if (!latch.await(30, TimeUnit.SECONDS)) {
+                Log.e(TAG, "Job didn't finish in 30 seconds");
+                fail("Job didn't finish in 30 seconds");
             }
         }
     }