Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e1f4702 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "BASS: Change some UNKNOWN errors to more rationale descriptions" into main

parents 9e1a2a36 d107eae5
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -1657,7 +1657,8 @@ public class BassClientService extends ProfileService {
            }
            if (mSearchScanCallback != null) {
                Log.e(TAG, "LE Scan has already started");
                mCallbacks.notifySearchStartFailed(BluetoothStatusCodes.ERROR_UNKNOWN);
                mCallbacks.notifySearchStartFailed(
                        BluetoothStatusCodes.ERROR_ALREADY_IN_TARGET_STATE);
                return;
            }
            mSearchScanCallback =
@@ -1795,7 +1796,8 @@ public class BassClientService extends ProfileService {
            synchronized (mSearchScanCallbackLock) {
                if (mSearchScanCallback == null) {
                    Log.e(TAG, "Scan not started yet");
                    mCallbacks.notifySearchStopFailed(BluetoothStatusCodes.ERROR_UNKNOWN);
                    mCallbacks.notifySearchStopFailed(
                            BluetoothStatusCodes.ERROR_ALREADY_IN_TARGET_STATE);
                    return;
                }
                informConnectedDeviceAboutScanOffloadStop();
@@ -1808,7 +1810,8 @@ public class BassClientService extends ProfileService {
            synchronized (mSearchScanCallbackLock) {
                if (mBluetoothLeScannerWrapper == null || mSearchScanCallback == null) {
                    Log.e(TAG, "Scan not started yet");
                    mCallbacks.notifySearchStopFailed(BluetoothStatusCodes.ERROR_UNKNOWN);
                    mCallbacks.notifySearchStopFailed(
                            BluetoothStatusCodes.ERROR_ALREADY_IN_TARGET_STATE);
                    return;
                }
                mBluetoothLeScannerWrapper.stopScan(mSearchScanCallback);
@@ -2506,7 +2509,7 @@ public class BassClientService extends ProfileService {
                } else {
                    log("AddSource: broadcast not cached or invalid, broadcastId: " + broadcastId);
                    mCallbacks.notifySourceAddFailed(
                            sink, sourceMetadata, BluetoothStatusCodes.ERROR_UNKNOWN);
                            sink, sourceMetadata, BluetoothStatusCodes.ERROR_BAD_PARAMETERS);
                }
                return;
            }