Loading android/app/tests/unit/src/com/android/bluetooth/a2dp/A2dpServiceTest.java +0 −4 Original line number Diff line number Diff line Loading @@ -83,7 +83,6 @@ public class A2dpServiceTest { @Before public void setUp() throws Exception { mTargetContext = InstrumentationRegistry.getTargetContext(); Assume.assumeTrue("Ignore test when A2dpService is not enabled", A2dpService.isEnabled()); // Set up mocks and test assets MockitoAnnotations.initMocks(this); Loading Loading @@ -123,9 +122,6 @@ public class A2dpServiceTest { @After public void tearDown() throws Exception { if (!A2dpService.isEnabled()) { return; } stopService(); mTargetContext.unregisterReceiver(mA2dpIntentReceiver); mConnectionStateChangedQueue.clear(); Loading android/app/tests/unit/src/com/android/bluetooth/a2dp/A2dpStateMachineTest.java +0 −4 Original line number Diff line number Diff line Loading @@ -70,7 +70,6 @@ public class A2dpStateMachineTest { @Before public void setUp() throws Exception { mTargetContext = InstrumentationRegistry.getTargetContext(); Assume.assumeTrue("Ignore test when A2dpService is not enabled", A2dpService.isEnabled()); // Set up mocks and test assets MockitoAnnotations.initMocks(this); TestUtils.setAdapterService(mAdapterService); Loading Loading @@ -116,9 +115,6 @@ public class A2dpStateMachineTest { @After public void tearDown() throws Exception { if (!A2dpService.isEnabled()) { return; } mA2dpStateMachine.doQuit(); mHandlerThread.quit(); mHandlerThread.join(TIMEOUT_MS); Loading android/app/tests/unit/src/com/android/bluetooth/a2dpsink/A2dpSinkServiceTest.java +0 −5 Original line number Diff line number Diff line Loading @@ -75,8 +75,6 @@ public class A2dpSinkServiceTest { @Before public void setUp() throws Exception { mTargetContext = InstrumentationRegistry.getTargetContext(); Assume.assumeTrue("Ignore test when A2dpSinkService is not enabled", A2dpSinkService.isEnabled()); MockitoAnnotations.initMocks(this); mAdapter = BluetoothAdapter.getDefaultAdapter(); Loading Loading @@ -110,9 +108,6 @@ public class A2dpSinkServiceTest { @After public void tearDown() throws Exception { if (!A2dpSinkService.isEnabled()) { return; } TestUtils.stopService(mServiceRule, A2dpSinkService.class); mService = A2dpSinkService.getA2dpSinkService(); assertThat(mService).isNull(); Loading android/app/tests/unit/src/com/android/bluetooth/a2dpsink/A2dpSinkStateMachineTest.java +0 −5 Original line number Diff line number Diff line Loading @@ -63,8 +63,6 @@ public class A2dpSinkStateMachineTest { @Before public void setUp() throws Exception { mTargetContext = InstrumentationRegistry.getTargetContext(); Assume.assumeTrue("Ignore test when A2dpSinkService is not enabled", A2dpSinkService.isEnabled()); MockitoAnnotations.initMocks(this); mAdapter = BluetoothAdapter.getDefaultAdapter(); Loading @@ -82,9 +80,6 @@ public class A2dpSinkStateMachineTest { @After public void tearDown() throws Exception { if (!A2dpSinkService.isEnabled()) { return; } mStateMachine = null; mDevice = null; mAdapter = null; Loading android/app/tests/unit/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandlerTest.java +0 −2 Original line number Diff line number Diff line Loading @@ -62,8 +62,6 @@ public class A2dpSinkStreamHandlerTest { @Before public void setUp() { mTargetContext = InstrumentationRegistry.getTargetContext(); Assume.assumeTrue("Ignore test when A2dpSinkService is not enabled", A2dpSinkService.isEnabled()); MockitoAnnotations.initMocks(this); // Mock the looper if (Looper.myLooper() == null) { Loading Loading
android/app/tests/unit/src/com/android/bluetooth/a2dp/A2dpServiceTest.java +0 −4 Original line number Diff line number Diff line Loading @@ -83,7 +83,6 @@ public class A2dpServiceTest { @Before public void setUp() throws Exception { mTargetContext = InstrumentationRegistry.getTargetContext(); Assume.assumeTrue("Ignore test when A2dpService is not enabled", A2dpService.isEnabled()); // Set up mocks and test assets MockitoAnnotations.initMocks(this); Loading Loading @@ -123,9 +122,6 @@ public class A2dpServiceTest { @After public void tearDown() throws Exception { if (!A2dpService.isEnabled()) { return; } stopService(); mTargetContext.unregisterReceiver(mA2dpIntentReceiver); mConnectionStateChangedQueue.clear(); Loading
android/app/tests/unit/src/com/android/bluetooth/a2dp/A2dpStateMachineTest.java +0 −4 Original line number Diff line number Diff line Loading @@ -70,7 +70,6 @@ public class A2dpStateMachineTest { @Before public void setUp() throws Exception { mTargetContext = InstrumentationRegistry.getTargetContext(); Assume.assumeTrue("Ignore test when A2dpService is not enabled", A2dpService.isEnabled()); // Set up mocks and test assets MockitoAnnotations.initMocks(this); TestUtils.setAdapterService(mAdapterService); Loading Loading @@ -116,9 +115,6 @@ public class A2dpStateMachineTest { @After public void tearDown() throws Exception { if (!A2dpService.isEnabled()) { return; } mA2dpStateMachine.doQuit(); mHandlerThread.quit(); mHandlerThread.join(TIMEOUT_MS); Loading
android/app/tests/unit/src/com/android/bluetooth/a2dpsink/A2dpSinkServiceTest.java +0 −5 Original line number Diff line number Diff line Loading @@ -75,8 +75,6 @@ public class A2dpSinkServiceTest { @Before public void setUp() throws Exception { mTargetContext = InstrumentationRegistry.getTargetContext(); Assume.assumeTrue("Ignore test when A2dpSinkService is not enabled", A2dpSinkService.isEnabled()); MockitoAnnotations.initMocks(this); mAdapter = BluetoothAdapter.getDefaultAdapter(); Loading Loading @@ -110,9 +108,6 @@ public class A2dpSinkServiceTest { @After public void tearDown() throws Exception { if (!A2dpSinkService.isEnabled()) { return; } TestUtils.stopService(mServiceRule, A2dpSinkService.class); mService = A2dpSinkService.getA2dpSinkService(); assertThat(mService).isNull(); Loading
android/app/tests/unit/src/com/android/bluetooth/a2dpsink/A2dpSinkStateMachineTest.java +0 −5 Original line number Diff line number Diff line Loading @@ -63,8 +63,6 @@ public class A2dpSinkStateMachineTest { @Before public void setUp() throws Exception { mTargetContext = InstrumentationRegistry.getTargetContext(); Assume.assumeTrue("Ignore test when A2dpSinkService is not enabled", A2dpSinkService.isEnabled()); MockitoAnnotations.initMocks(this); mAdapter = BluetoothAdapter.getDefaultAdapter(); Loading @@ -82,9 +80,6 @@ public class A2dpSinkStateMachineTest { @After public void tearDown() throws Exception { if (!A2dpSinkService.isEnabled()) { return; } mStateMachine = null; mDevice = null; mAdapter = null; Loading
android/app/tests/unit/src/com/android/bluetooth/a2dpsink/A2dpSinkStreamHandlerTest.java +0 −2 Original line number Diff line number Diff line Loading @@ -62,8 +62,6 @@ public class A2dpSinkStreamHandlerTest { @Before public void setUp() { mTargetContext = InstrumentationRegistry.getTargetContext(); Assume.assumeTrue("Ignore test when A2dpSinkService is not enabled", A2dpSinkService.isEnabled()); MockitoAnnotations.initMocks(this); // Mock the looper if (Looper.myLooper() == null) { Loading