Home
last modified time | relevance | path

Searched refs:random_pkt (Results 1 – 2 of 2) sorted by relevance

/system/bt/gd/security/
Dpairing_handler_le_legacy.cc164 auto random_pkt = WaitPairingRandom(); in DoLegacyStage2() local
165 if (std::holds_alternative<PairingFailure>(random_pkt)) { in DoLegacyStage2()
166 return std::get<PairingFailure>(random_pkt); in DoLegacyStage2()
168 srand = std::get<PairingRandomView>(random_pkt).GetRandomValue(); in DoLegacyStage2()
215 auto random_pkt = WaitPairingRandom(); in DoLegacyStage2() local
216 if (std::holds_alternative<PairingFailure>(random_pkt)) { in DoLegacyStage2()
217 return std::get<PairingFailure>(random_pkt); in DoLegacyStage2()
219 mrand = std::get<PairingRandomView>(random_pkt).GetRandomValue(); in DoLegacyStage2()
Dpairing_handler_le_unittest.cc228 std::optional<bluetooth::security::CommandView> random_pkt = WaitForOutgoingL2capPacket(); in TEST_F() local
229 EXPECT_TRUE(random_pkt.has_value()); in TEST_F()
230 EXPECT_EQ(Code::PAIRING_RANDOM, random_pkt->GetCode()); in TEST_F()
231 auto prv = PairingRandomView::Create(random_pkt.value()); in TEST_F()