Loading system/gd/rust/linux/stack/src/bluetooth.rs +3 −3 Original line number Diff line number Diff line Loading @@ -508,7 +508,7 @@ impl Bluetooth { self.hh.as_mut().unwrap().activate_hogp(false); } Profile::A2dpSource | Profile::Hfp => { Profile::A2dpSource | Profile::Hfp | Profile::AvrcpTarget => { self.bluetooth_media.lock().unwrap().disable_profile(profile); } // Ignore profiles that we don't connect. Loading @@ -530,7 +530,7 @@ impl Bluetooth { self.hh.as_mut().unwrap().activate_hogp(true); } Profile::A2dpSource | Profile::Hfp => { Profile::A2dpSource | Profile::Hfp | Profile::AvrcpTarget => { self.bluetooth_media.lock().unwrap().enable_profile(profile); } // Ignore profiles that we don't connect. Loading @@ -548,7 +548,7 @@ impl Bluetooth { Profile::Hogp => Some(self.hh.as_ref().unwrap().is_hogp_activated), Profile::A2dpSource | Profile::Hfp => { Profile::A2dpSource | Profile::Hfp | Profile::AvrcpTarget => { self.bluetooth_media.lock().unwrap().is_profile_enabled(profile) } // Ignore profiles that we don't connect. Loading system/gd/rust/linux/stack/src/bluetooth_media.rs +0 −5 Original line number Diff line number Diff line Loading @@ -1464,11 +1464,6 @@ impl IBluetoothMedia for BluetoothMedia { for profile in self.delay_enable_profiles.clone() { self.enable_profile(&profile); } // Default to enable AVRCP since btadapterd will crash when connecting a headset while // avrcp is disabled. // TODO: fix b/251692015 self.enable_profile(&Profile::AvrcpTarget); true } Loading system/gd/rust/linux/stack/src/uuid.rs +1 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,7 @@ lazy_static! { Profile::A2dpSink, Profile::A2dpSource, Profile::AvrcpController, Profile::AvrcpTarget, Profile::Bas, Profile::Hsp, Profile::Hfp, Loading Loading
system/gd/rust/linux/stack/src/bluetooth.rs +3 −3 Original line number Diff line number Diff line Loading @@ -508,7 +508,7 @@ impl Bluetooth { self.hh.as_mut().unwrap().activate_hogp(false); } Profile::A2dpSource | Profile::Hfp => { Profile::A2dpSource | Profile::Hfp | Profile::AvrcpTarget => { self.bluetooth_media.lock().unwrap().disable_profile(profile); } // Ignore profiles that we don't connect. Loading @@ -530,7 +530,7 @@ impl Bluetooth { self.hh.as_mut().unwrap().activate_hogp(true); } Profile::A2dpSource | Profile::Hfp => { Profile::A2dpSource | Profile::Hfp | Profile::AvrcpTarget => { self.bluetooth_media.lock().unwrap().enable_profile(profile); } // Ignore profiles that we don't connect. Loading @@ -548,7 +548,7 @@ impl Bluetooth { Profile::Hogp => Some(self.hh.as_ref().unwrap().is_hogp_activated), Profile::A2dpSource | Profile::Hfp => { Profile::A2dpSource | Profile::Hfp | Profile::AvrcpTarget => { self.bluetooth_media.lock().unwrap().is_profile_enabled(profile) } // Ignore profiles that we don't connect. Loading
system/gd/rust/linux/stack/src/bluetooth_media.rs +0 −5 Original line number Diff line number Diff line Loading @@ -1464,11 +1464,6 @@ impl IBluetoothMedia for BluetoothMedia { for profile in self.delay_enable_profiles.clone() { self.enable_profile(&profile); } // Default to enable AVRCP since btadapterd will crash when connecting a headset while // avrcp is disabled. // TODO: fix b/251692015 self.enable_profile(&Profile::AvrcpTarget); true } Loading
system/gd/rust/linux/stack/src/uuid.rs +1 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,7 @@ lazy_static! { Profile::A2dpSink, Profile::A2dpSource, Profile::AvrcpController, Profile::AvrcpTarget, Profile::Bas, Profile::Hsp, Profile::Hfp, Loading