/system/bt/gd/security/ |
D | pairing_handler_le_secure_connections.cc | 252 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/ |
D | le_address_manager.cc | 277 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/ |
D | btm_ble_addr.cc | 41 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/ |
D | puncture_fs.cpp | 65 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/ |
D | Main.java | 30 static private Random random; field in Main 50 random = new Random(); in main()
|
/system/bt/vendor_libs/test_vendor_lib/scripts/ |
D | simple_link_layer_socket.py | 52 import random 64 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \ 69 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
|
D | send_simple_commands.py | 65 import random 78 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \ 83 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
|
D | test_channel.py | 40 import random 53 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \ 58 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
|
D | simple_stack.py | 65 import random
|
D | link_layer_socket.py | 66 import random
|
D | hci_socket.py | 66 import random
|
/system/extras/verity/fec/tests/ |
D | fec.py | 17 import random 40 offset = random.randrange(0, size - max_errors)
|
/system/gatekeeper/include/gatekeeper/ |
D | gatekeeper.h | 99 virtual void GetRandom(void *random, uint32_t requested_size) const = 0;
|
/system/core/rootdir/ |
D | ueventd.rc | 32 /dev/random 0666 root root
|
/system/core/fs_mgr/libsnapshot/ |
D | PowerTest.md | 8 …partition images (for example, a product.img from two separate builds), or just create random data:
|
/system/core/adb/ |
D | test_adb.py | 25 import random 762 random.choice(string.ascii_letters) for i in range(4)) 807 random.seed(0)
|
D | protocol.txt | 96 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
|
D | test_device.py | 24 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/ |
D | SerializedFlushToStateTest.cpp | 190 TEST_F(SerializedFlushToStateTest, random) { in TEST_F() argument
|
/system/bt/stack/smp/ |
D | smp_utils.cc | 1339 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()
|
D | smp_int.h | 458 extern uint8_t smp_calculate_random_input(uint8_t* random, uint8_t round);
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | dumpstate.te | 83 # Other random bits of data we want to collect
|
/system/core/libutils/ |
D | LruCache_test.cpp | 230 int index = random() % kNumKeys; in TEST_F()
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | dumpstate.te | 95 # Other random bits of data we want to collect
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | dumpstate.te | 87 # Other random bits of data we want to collect
|