Loading android/app/tests/unit/src/com/android/bluetooth/btservice/AdapterServiceTest.java +6 −0 Original line number Diff line number Diff line Loading @@ -88,6 +88,7 @@ import com.android.internal.app.IBatteryStats; import libcore.util.HexEncoding; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; Loading Loading @@ -342,6 +343,11 @@ public class AdapterServiceTest { mAdapterService.cleanup(); } @AfterClass public static void tearDownOnce() { AsyncTask.setDefaultExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } private void verifyStateChange(int prevState, int currState, int callNumber, int timeoutMs) { try { verify(mIBluetoothCallback, timeout(timeoutMs) Loading Loading
android/app/tests/unit/src/com/android/bluetooth/btservice/AdapterServiceTest.java +6 −0 Original line number Diff line number Diff line Loading @@ -88,6 +88,7 @@ import com.android.internal.app.IBatteryStats; import libcore.util.HexEncoding; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; Loading Loading @@ -342,6 +343,11 @@ public class AdapterServiceTest { mAdapterService.cleanup(); } @AfterClass public static void tearDownOnce() { AsyncTask.setDefaultExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } private void verifyStateChange(int prevState, int currState, int callNumber, int timeoutMs) { try { verify(mIBluetoothCallback, timeout(timeoutMs) Loading