Loading system/gd/rust/linux/stack/src/bluetooth_gatt.rs +4 −0 Original line number Diff line number Diff line Loading @@ -1982,6 +1982,10 @@ impl IBluetoothGatt for BluetoothGatt { } fn register_scanner(&mut self, callback_id: u32) -> Uuid128Bit { if !self.enabled { return Uuid::empty().uu; } let mut bytes: [u8; 16] = [0; 16]; self.small_rng.fill_bytes(&mut bytes); let uuid = Uuid::from(bytes); Loading system/gd/rust/topshim/src/btif.rs +4 −0 Original line number Diff line number Diff line Loading @@ -466,6 +466,10 @@ impl Uuid { uuid[8], uuid[9], uuid[10], uuid[11], uuid[12], uuid[13], uuid[14], uuid[15]) } pub fn empty() -> Uuid { unsafe { bindings::bluetooth::Uuid_kEmpty } } } impl Display for Uuid { Loading Loading
system/gd/rust/linux/stack/src/bluetooth_gatt.rs +4 −0 Original line number Diff line number Diff line Loading @@ -1982,6 +1982,10 @@ impl IBluetoothGatt for BluetoothGatt { } fn register_scanner(&mut self, callback_id: u32) -> Uuid128Bit { if !self.enabled { return Uuid::empty().uu; } let mut bytes: [u8; 16] = [0; 16]; self.small_rng.fill_bytes(&mut bytes); let uuid = Uuid::from(bytes); Loading
system/gd/rust/topshim/src/btif.rs +4 −0 Original line number Diff line number Diff line Loading @@ -466,6 +466,10 @@ impl Uuid { uuid[8], uuid[9], uuid[10], uuid[11], uuid[12], uuid[13], uuid[14], uuid[15]) } pub fn empty() -> Uuid { unsafe { bindings::bluetooth::Uuid_kEmpty } } } impl Display for Uuid { Loading