summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-19 10:18:08 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-19 10:18:08 +0000
commitb4ce3d54eac4b72161b957def3512db3c49d1be6 (patch)
treebf56a70084f73271264bcbc9ae3e427fc042f5ce
parent22996b6821984066bc0713343c8e0f7c9015738f (diff)
parent9ac2cdc622c906dfc9447c0ab63b730658f8a15a (diff)
Snap for 10522428 from 9ac2cdc622c906dfc9447c0ab63b730658f8a15a to t-keystone-qcom-release
Change-Id: I8c7942fed10eee79e9d810514a09c1fca7661b68
-rw-r--r--services/core/java/com/android/server/audio/AudioService.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java
index 17ccc4fd89af..807ba747a011 100644
--- a/services/core/java/com/android/server/audio/AudioService.java
+++ b/services/core/java/com/android/server/audio/AudioService.java
@@ -6222,11 +6222,6 @@ public class AudioService extends IAudioService.Stub
/** @see AudioManager#startBluetoothSco() */
public void startBluetoothSco(IBinder cb, int targetSdkVersion) {
Log.i(TAG, "In startBluetoothSco()");
- BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
- if ((adapter == null) || (adapter.getState() != BluetoothAdapter.STATE_ON)) {
- Log.i(TAG, "startBluetoothSco(), BT is not turned ON or adapter is null");
- return;
- }
if (!checkAudioSettingsPermission("startBluetoothSco()")) {
return;
}
@@ -6295,11 +6290,6 @@ public class AudioService extends IAudioService.Stub
/** @see AudioManager#stopBluetoothSco() */
public void stopBluetoothSco(IBinder cb){
Log.i(TAG, "In stopBluetoothSco()");
- BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
- if ((adapter == null) || (adapter.getState() != BluetoothAdapter.STATE_ON)) {
- Log.i(TAG, "stopBluetoothSco(), BT is not turned ON or adapter is null");
- return;
- }
if (!checkAudioSettingsPermission("stopBluetoothSco()") ||
!mSystemReady) {
return;