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.cc163 auto random_pkt = WaitPairingRandom(); in DoLegacyStage2() local
164 if (std::holds_alternative<PairingFailure>(random_pkt)) { in DoLegacyStage2()
165 return std::get<PairingFailure>(random_pkt); in DoLegacyStage2()
167 srand = std::get<PairingRandomView>(random_pkt).GetRandomValue(); in DoLegacyStage2()
214 auto random_pkt = WaitPairingRandom(); in DoLegacyStage2() local
215 if (std::holds_alternative<PairingFailure>(random_pkt)) { in DoLegacyStage2()
216 return std::get<PairingFailure>(random_pkt); in DoLegacyStage2()
218 mrand = std::get<PairingRandomView>(random_pkt).GetRandomValue(); in DoLegacyStage2()
Dpairing_handler_le_unittest.cc225 std::optional<bluetooth::security::CommandView> random_pkt = WaitForOutgoingL2capPacket(); in TEST_F() local
226 EXPECT_TRUE(random_pkt.has_value()); in TEST_F()
227 EXPECT_EQ(Code::PAIRING_RANDOM, random_pkt->GetCode()); in TEST_F()
228 auto prv = PairingRandomView::Create(random_pkt.value()); in TEST_F()