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

Commit 5312ec71 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Android (Google) Code Review
Browse files

Merge "AudioService: fix wakelock when BT profile proxy is null" into main

parents bfb824a2 ec0dc890
Loading
Loading
Loading
Loading
+15 −16
Original line number Diff line number Diff line
@@ -1812,9 +1812,7 @@ public class AudioDeviceBroker {
                                        "msg: MSG_L_SET_BT_ACTIVE_DEVICE "
                                            + "received with null profile proxy: "
                                            + btInfo)).printLog(TAG));
                                sendMsg(MSG_CHECK_MUTE_MUSIC, SENDMSG_REPLACE, 0 /*delay*/);
                                return;
                            }
                            } else {
                                @AudioSystem.AudioFormatNativeEnumForBtCodec final int codec =
                                        mBtHelper.getCodecWithFallback(btInfo.mDevice,
                                                btInfo.mProfile, btInfo.mIsLeOutput,
@@ -1831,6 +1829,7 @@ public class AudioDeviceBroker {
                                }
                            }
                        }
                    }
                    break;
                case MSG_BT_HEADSET_CNCT_FAILED:
                    synchronized (mSetModeLock) {
+1 −1
Original line number Diff line number Diff line
@@ -764,7 +764,7 @@ public class AudioDeviceInventory {
    /** only public for mocking/spying, do not call outside of AudioService */
    // @GuardedBy("mDeviceBroker.mSetModeLock")
    @VisibleForTesting
    @GuardedBy("mDeviceBroker.mDeviceStateLock")
    //@GuardedBy("AudioDeviceBroker.this.mDeviceStateLock")
    public void onSetBtActiveDevice(@NonNull AudioDeviceBroker.BtDeviceInfo btInfo,
                                    @AudioSystem.AudioFormatNativeEnumForBtCodec int codec,
                                    int streamType) {