Home
last modified time | relevance | path

Searched refs:random (Results 1 – 25 of 45) sorted by relevance

12

/system/bt/gd/security/
Dpairing_handler_le_secure_connections.cc252 auto random = WaitPairingRandom(); in SecureConnectionsOutOfBand() local
253 if (std::holds_alternative<PairingFailure>(random)) { in SecureConnectionsOutOfBand()
254 return std::get<PairingFailure>(random); in SecureConnectionsOutOfBand()
256 Nb = std::get<PairingRandomView>(random).GetRandomValue(); in SecureConnectionsOutOfBand()
263 auto random = WaitPairingRandom(); in SecureConnectionsOutOfBand() local
264 if (std::holds_alternative<PairingFailure>(random)) { in SecureConnectionsOutOfBand()
265 return std::get<PairingFailure>(random); in SecureConnectionsOutOfBand()
267 Na = std::get<PairingRandomView>(random).GetRandomValue(); in SecureConnectionsOutOfBand()
338 auto random = WaitPairingRandom(); in SecureConnectionsPasskeyEntry() local
339 if (std::holds_alternative<PairingFailure>(random)) { in SecureConnectionsPasskeyEntry()
[all …]
/system/bt/gd/hci/
Dle_address_manager.cc277 std::array<uint8_t, 6> random = os::GenerateRandom<6>(); in generate_nrpa() local
278 random[5] &= ~BLE_ADDR_MASK; in generate_nrpa()
279 …if ((random[0] == 0x00 && random[1] == 0x00 && random[2] == 0x00 && random[3] == 0x00 && random[4]… in generate_nrpa()
280 random[5] == 0x00) || in generate_nrpa()
281 …(random[0] == 0xFF && random[1] == 0xFF && random[2] == 0xFF && random[3] == 0xFF && random[4] == … in generate_nrpa()
282 random[5] == 0x3F)) { in generate_nrpa()
283 random[0] = (uint8_t)(os::GenerateRandom() % 0xFE + 1); in generate_nrpa()
287 address.FromOctets(random.data()); in generate_nrpa()
/system/bt/stack/btm/
Dbtm_ble_addr.cc41 BT_OCTET8 random) { in generate_rpa_from_irk_and_rand() argument
42 random[2] &= (~BLE_RESOLVE_ADDR_MASK); in generate_rpa_from_irk_and_rand()
43 random[2] |= BLE_RESOLVE_ADDR_MSB; in generate_rpa_from_irk_and_rand()
46 address.address[2] = random[0]; in generate_rpa_from_irk_and_rand()
47 address.address[1] = random[1]; in generate_rpa_from_irk_and_rand()
48 address.address[0] = random[2]; in generate_rpa_from_irk_and_rand()
51 Octet16 p = crypto_toolbox::aes_128(irk, random, 3); in generate_rpa_from_irk_and_rand()
89 [](base::Callback<void(const RawAddress&)> cb, BT_OCTET8 random) { in btm_gen_resolvable_private_addr() argument
91 cb.Run(generate_rpa_from_irk_and_rand(irk, random)); in btm_gen_resolvable_private_addr()
/system/extras/puncture_fs/
Dpuncture_fs.cpp65 return start + (((u64)random() << 31) | (u64)random()) % (end - start); in get_random_num()
66 return start + (random() % (end - start)); in get_random_num()
70 return 'A' + random() % ('Z' - 'A'); in get_random_char()
81 base[random() % min(base_length, size)] = get_random_char(); in create_unique_file()
/system/teeui/tools/framebufferizer/src/com/android/framebufferizer/
DMain.java30 static private Random random; field in Main
50 random = new Random(); in main()
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dsimple_link_layer_socket.py52 import random
64 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \
69 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
Dsend_simple_commands.py65 import random
78 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \
83 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
Dtest_channel.py40 import random
53 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \
58 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
Dsimple_stack.py65 import random
Dlink_layer_socket.py66 import random
Dhci_socket.py66 import random
/system/extras/verity/fec/tests/
Dfec.py17 import random
40 offset = random.randrange(0, size - max_errors)
/system/gatekeeper/include/gatekeeper/
Dgatekeeper.h99 virtual void GetRandom(void *random, uint32_t requested_size) const = 0;
/system/core/rootdir/
Dueventd.rc32 /dev/random 0666 root root
/system/core/fs_mgr/libsnapshot/
DPowerTest.md8 …partition images (for example, a product.img from two separate builds), or just create random data:
/system/core/adb/
Dtest_adb.py25 import random
762 random.choice(string.ascii_letters) for i in range(4))
807 random.seed(0)
Dprotocol.txt96 connect to the sender. If type is TOKEN(1), data is a random token that
102 packet and a new random token, so that the recipient can retry signing
Dtest_device.py24 import random
728 size = random.randrange(min_size, max_size, 1024)
745 size = random.randrange(min_size, max_size, 1024)
1751 random.seed(0)
/system/core/logd/
DSerializedFlushToStateTest.cpp190 TEST_F(SerializedFlushToStateTest, random) { in TEST_F() argument
/system/bt/stack/smp/
Dsmp_utils.cc1339 uint8_t smp_calculate_random_input(uint8_t* random, uint8_t round) { in smp_calculate_random_input() argument
1344 SMP_TRACE_DEBUG("random: 0x%02x, round: %d, i: %d, j: %d", random[i], round, in smp_calculate_random_input()
1346 ri = ((random[i] >> j) & 1) | 0x80; in smp_calculate_random_input()
Dsmp_int.h458 extern uint8_t smp_calculate_random_input(uint8_t* random, uint8_t round);
/system/sepolicy/prebuilts/api/26.0/public/
Ddumpstate.te83 # Other random bits of data we want to collect
/system/core/libutils/
DLruCache_test.cpp230 int index = random() % kNumKeys; in TEST_F()
/system/sepolicy/prebuilts/api/28.0/public/
Ddumpstate.te95 # Other random bits of data we want to collect
/system/sepolicy/prebuilts/api/27.0/public/
Ddumpstate.te87 # Other random bits of data we want to collect

12