Home
last modified time | relevance | path

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

12

/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.c65 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/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
52 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \
57 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/core/gatekeeperd/
DSoftGateKeeper.h82 virtual void GetRandom(void *random, uint32_t requested_length) const { in GetRandom() argument
83 if (random == NULL) return; in GetRandom()
84 RAND_pseudo_bytes((uint8_t *) random, requested_length); in GetRandom()
/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/extras/perfprofd/tests/
Dperfprofd_test.cc1340 I: random seed set to 12345678 in TEST_F()
1428 I: random seed set to 12345678 in TEST_F()
1449 I: random seed set to 12345678 in TEST_F()
1493 I: random seed set to 12345678 in TEST_F()
1559 I: random seed set to 12345678 in TEST_F()
1630 I: random seed set to 12345678 in TEST_F()
/system/core/adb/
Dtest_adb.py25 import random
556 random.seed(0)
Dtest_device.py24 import random
669 size = random.randrange(min_size, max_size, 1024)
686 size = random.randrange(min_size, max_size, 1024)
1598 random.seed(0)
Dprotocol.txt88 connect to the sender. If type is TOKEN(1), data is a random token that
94 packet and a new random token, so that the recipient can retry signing
/system/extras/perfprofd/
Dperfprofd_config.proto22 // Use the specified fixed seed for random number generation (unit
/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/core/libutils/
DLruCache_test.cpp230 int index = random() % kNumKeys; in TEST_F()
/system/sepolicy/prebuilts/api/26.0/public/
Ddumpstate.te83 # Other random bits of data we want to collect
/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
/system/sepolicy/prebuilts/api/29.0/public/
Ddumpstate.te109 # Other random bits of data we want to collect
/system/sepolicy/public/
Ddumpstate.te109 # Other random bits of data we want to collect

12