Home
last modified time | relevance | path

Searched refs:GenerateRandom (Results 1 – 19 of 19) sorted by relevance

/packages/modules/Bluetooth/system/test/suite/gatt/
Dgatt_unittest.cc32 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
45 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
58 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
66 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
70 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
74 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
/packages/modules/Bluetooth/system/gd/security/
Dpairing_handler_le_secure_connections.cc26 using bluetooth::os::GenerateRandom;
258 Na = GenerateRandom<16>(); in SecureConnectionsOutOfBand()
271 Nb = GenerateRandom<16>(); in SecureConnectionsOutOfBand()
297 passkey = GenerateRandom(); in SecureConnectionsPasskeyEntry()
330 Nai = GenerateRandom<16>(); in SecureConnectionsPasskeyEntry()
362 Nbi = GenerateRandom<16>(); in SecureConnectionsPasskeyEntry()
443 Na = GenerateRandom<16>(); in SecureConnectionsJustWorks()
470 Nb = GenerateRandom<16>(); in SecureConnectionsJustWorks()
Dpairing_handler_le_legacy.cc25 using bluetooth::os::GenerateRandom;
96 passkey = GenerateRandom(); in LegacyPasskeyEntry()
136 mrand = GenerateRandom<16>(); in DoLegacyStage2()
195 srand = GenerateRandom<16>(); in DoLegacyStage2()
Decdh_keys.cc37 static std::array<uint8_t, SIZE> GenerateRandom() { in GenerateRandom() function
56 std::array<uint8_t, 32> private_key = GenerateRandom<32>(); in GenerateECDHKeyPair()
Dpairing_handler_le.cc35 data.r = bluetooth::os::GenerateRandom<16>(); in GenerateOobData()
348 Octet16 my_ltk = bluetooth::os::GenerateRandom<16>(); in DistributeKeys()
349 uint16_t my_ediv = bluetooth::os::GenerateRandom(); in DistributeKeys()
350 std::array<uint8_t, 8> my_rand = bluetooth::os::GenerateRandom<8>(); in DistributeKeys()
Dpairing_handler_le_unittest.cc35 using bluetooth::os::GenerateRandom;
223 Octet16 Nb = GenerateRandom<16>(); in TEST_F()
/packages/modules/Bluetooth/system/gd/os/
Drand.h31 std::array<uint8_t, SIZE> GenerateRandom() { in GenerateRandom() function
39 inline uint32_t GenerateRandom() { in GenerateRandom() function
/packages/modules/Bluetooth/system/bta/groups/
Dgroups_test.cc174 Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
176 Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
196 Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
198 Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
279 Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
281 Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/
DRtpDecoderNode.cpp181 uint32_t delay = ImsMediaTimer::GenerateRandom(DEBUG_JITTER_MAX_PACKET_INTERVAL); in OnDataFromFrontNode()
193 uint32_t seed = ImsMediaTimer::GenerateRandom(5); in OnDataFromFrontNode()
247 ImsMediaTimer::GenerateRandom( in OnDataFromFrontNode()
257 nCurrReorderSize = ImsMediaTimer::GenerateRandom(nCurrReorderSize + 1); in OnDataFromFrontNode()
/packages/modules/Bluetooth/system/gd/hci/
Dle_address_manager.cc431 std::array<uint8_t, 3> prand = os::GenerateRandom<3>(); in generate_rpa()
436 prand[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_rpa()
464 std::array<uint8_t, 6> random = os::GenerateRandom<6>(); in generate_nrpa()
470 random[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_nrpa()
478 address.address[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_nrpa()
486 auto random_ms = std::chrono::milliseconds(os::GenerateRandom()) % (interval_random_part_max_ms); in GetNextPrivateAddressIntervalMs()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/interface/utils/
DImsMediaTimer.h39 static uint32_t GenerateRandom(uint32_t nRange);
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/utils/
DImsMediaTimer.cpp225 uint32_t ImsMediaTimer::GenerateRandom(uint32_t nRange) in GenerateRandom() function in ImsMediaTimer
/packages/modules/Bluetooth/system/stack/test/sdp/
Dstack_sdp_parse_test.cc145 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()),
/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_aac_encoder_linux.cc192 .timestamp = bluetooth::os::GenerateRandom(), // (RFC 6416) in a2dp_aac_encoder_init()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_l2cap.cc519 Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in on_srv_l2cap_psm_connect_l()
561 Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in on_cl_l2cap_psm_connect_l()
/packages/modules/Bluetooth/system/stack/test/gatt/
Dstack_gatt_test.cc165 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gattc_api.cc90 Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in BTA_GATTC_AppRegister()
/packages/modules/Bluetooth/system/bta/ras/
Dras_server.cc77 Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in Initialize()
/packages/modules/Bluetooth/system/gd/security/internal/
Dsecurity_manager_impl.cc90 auto rand16 = bluetooth::os::GenerateRandom<16>(); in Init()