Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/test/suite/gatt/
Dgatt_unittest.cc32 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
44 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
56 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
63 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
67 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
71 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
/packages/modules/Bluetooth/system/bta/groups/
Dgroups_test.cc163 Uuid uuid1 = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
164 Uuid uuid2 = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
183 Uuid uuid1 = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
184 Uuid uuid2 = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
262 Uuid uuid1 = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
263 Uuid uuid2 = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in TEST_F()
/packages/modules/Bluetooth/system/gd/os/
Drand.h29 std::array<uint8_t, SIZE> GenerateRandom() { in GenerateRandom() function
36 inline uint32_t GenerateRandom() { in GenerateRandom() function
/packages/modules/Bluetooth/system/gd/hci/
Dle_address_manager.cc494 std::array<uint8_t, 3> prand = os::GenerateRandom<3>(); in generate_rpa()
499 prand[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_rpa()
527 std::array<uint8_t, 6> random = os::GenerateRandom<6>(); in generate_nrpa()
533 random[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_nrpa()
541 address.address[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_nrpa()
550 std::chrono::milliseconds(os::GenerateRandom()) % (interval_random_part_wake_delay); in GetNextPrivateAddressIntervalMs()
564 (std::chrono::milliseconds(os::GenerateRandom()) % random_part_max_length); in GetNextPrivateAddressIntervalRange()
568 (std::chrono::milliseconds(os::GenerateRandom()) % random_part_max_length); in GetNextPrivateAddressIntervalRange()
/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/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.cc144 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()),
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_l2cap.cc574 Uuid uuid = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in on_srv_l2cap_psm_connect_l()
624 Uuid uuid = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in on_cl_l2cap_psm_connect_l()
1413 Uuid uuid = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in on_cl_l2cap_psm_connect_offload_l()
1465 Uuid uuid = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in on_srv_l2cap_psm_connect_offload_l()
/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_aac_encoder_linux.cc187 .timestamp = bluetooth::os::GenerateRandom(), // (RFC 6416) in a2dp_aac_encoder_init()
/packages/modules/Bluetooth/system/stack/test/gatt/
Dstack_gatt_test.cc159 bluetooth::os::GenerateRandom<bluetooth::Uuid::kNumBytes128>()); in TEST_F()
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gattc_api.cc87 Uuid uuid = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in BTA_GATTC_AppRegister()
/packages/modules/Bluetooth/system/bta/ras/
Dras_server.cc101 Uuid uuid = Uuid::From128BitBE(bluetooth::os::GenerateRandom<Uuid::kNumBytes128>()); in do_initialize()
/packages/modules/Bluetooth/system/bta/dm/
Dbta_dm_act.cc1005 delay = bluetooth::os::GenerateRandom() % in bta_dm_adjust_roles()