Loading android/app/src/com/android/bluetooth/a2dp/A2dpService.java +7 −2 Original line number Diff line number Diff line Loading @@ -216,8 +216,13 @@ public class A2dpService extends ProfileService { } if (mStateMachinesThread != null) { try { mStateMachinesThread.quitSafely(); mStateMachinesThread.join(); mStateMachinesThread = null; } catch (InterruptedException e) { // Do not rethrow as we are shutting down anyway } } // Step 2: Reset maximum number of connected audio devices mMaxConnectedAudioDevices = 1; Loading android/app/src/com/android/bluetooth/csip/CsipSetCoordinatorService.java +7 −2 Original line number Diff line number Diff line Loading @@ -182,8 +182,13 @@ public class CsipSetCoordinatorService extends ProfileService { } if (mStateMachinesThread != null) { try { mStateMachinesThread.quitSafely(); mStateMachinesThread.join(); mStateMachinesThread = null; } catch (InterruptedException e) { // Do not rethrow as we are shutting down anyway } } mDeviceGroupIdMap.clear(); Loading android/app/src/com/android/bluetooth/hap/HapClientService.java +7 −2 Original line number Diff line number Diff line Loading @@ -208,8 +208,13 @@ public class HapClientService extends ProfileService { mPresetsMap.clear(); if (mStateMachinesThread != null) { try { mStateMachinesThread.quitSafely(); mStateMachinesThread.join(); mStateMachinesThread = null; } catch (InterruptedException e) { // Do not rethrow as we are shutting down anyway } } // Clear AdapterService Loading android/app/src/com/android/bluetooth/hearingaid/HearingAidService.java +7 −2 Original line number Diff line number Diff line Loading @@ -189,8 +189,13 @@ public class HearingAidService extends ProfileService { mHiSyncIdConnectedMap.clear(); if (mStateMachinesThread != null) { try { mStateMachinesThread.quitSafely(); mStateMachinesThread.join(); mStateMachinesThread = null; } catch (InterruptedException e) { // Do not rethrow as we are shutting down anyway } } // Clear AdapterService, HearingAidNativeInterface Loading android/app/src/com/android/bluetooth/hfp/HeadsetService.java +8 −2 Original line number Diff line number Diff line Loading @@ -236,8 +236,14 @@ public class HeadsetService extends ProfileService { // Step 3: Destroy system interface mSystemInterface.stop(); // Step 2: Stop handler thread try { mStateMachinesThread.quitSafely(); mStateMachinesThread.join(); mStateMachinesThread = null; } catch (InterruptedException e) { // Do not rethrow as we are shutting down anyway } mStateMachinesThreadHandler = null; // Step 1: Clear synchronized (mStateMachines) { Loading Loading
android/app/src/com/android/bluetooth/a2dp/A2dpService.java +7 −2 Original line number Diff line number Diff line Loading @@ -216,8 +216,13 @@ public class A2dpService extends ProfileService { } if (mStateMachinesThread != null) { try { mStateMachinesThread.quitSafely(); mStateMachinesThread.join(); mStateMachinesThread = null; } catch (InterruptedException e) { // Do not rethrow as we are shutting down anyway } } // Step 2: Reset maximum number of connected audio devices mMaxConnectedAudioDevices = 1; Loading
android/app/src/com/android/bluetooth/csip/CsipSetCoordinatorService.java +7 −2 Original line number Diff line number Diff line Loading @@ -182,8 +182,13 @@ public class CsipSetCoordinatorService extends ProfileService { } if (mStateMachinesThread != null) { try { mStateMachinesThread.quitSafely(); mStateMachinesThread.join(); mStateMachinesThread = null; } catch (InterruptedException e) { // Do not rethrow as we are shutting down anyway } } mDeviceGroupIdMap.clear(); Loading
android/app/src/com/android/bluetooth/hap/HapClientService.java +7 −2 Original line number Diff line number Diff line Loading @@ -208,8 +208,13 @@ public class HapClientService extends ProfileService { mPresetsMap.clear(); if (mStateMachinesThread != null) { try { mStateMachinesThread.quitSafely(); mStateMachinesThread.join(); mStateMachinesThread = null; } catch (InterruptedException e) { // Do not rethrow as we are shutting down anyway } } // Clear AdapterService Loading
android/app/src/com/android/bluetooth/hearingaid/HearingAidService.java +7 −2 Original line number Diff line number Diff line Loading @@ -189,8 +189,13 @@ public class HearingAidService extends ProfileService { mHiSyncIdConnectedMap.clear(); if (mStateMachinesThread != null) { try { mStateMachinesThread.quitSafely(); mStateMachinesThread.join(); mStateMachinesThread = null; } catch (InterruptedException e) { // Do not rethrow as we are shutting down anyway } } // Clear AdapterService, HearingAidNativeInterface Loading
android/app/src/com/android/bluetooth/hfp/HeadsetService.java +8 −2 Original line number Diff line number Diff line Loading @@ -236,8 +236,14 @@ public class HeadsetService extends ProfileService { // Step 3: Destroy system interface mSystemInterface.stop(); // Step 2: Stop handler thread try { mStateMachinesThread.quitSafely(); mStateMachinesThread.join(); mStateMachinesThread = null; } catch (InterruptedException e) { // Do not rethrow as we are shutting down anyway } mStateMachinesThreadHandler = null; // Step 1: Clear synchronized (mStateMachines) { Loading