/packages/modules/Bluetooth/system/stack/smp/ |
D | smp_keys.cc | 102 void smp_proc_passkey(tSMP_CB* p_cb, uint64_t rand) { in smp_proc_passkey() argument 104 uint32_t passkey = static_cast<uint32_t>(rand & SMP_PASSKEY_MASK); in smp_proc_passkey() 212 [](tSMP_CB* p_cb, uint64_t rand) { in smp_generate_csrk() argument 213 uint16_t div = static_cast<uint16_t>(rand); in smp_generate_csrk() 329 tSMP_STATUS smp_calculate_comfirm(tSMP_CB* p_cb, const Octet16& rand, in smp_calculate_comfirm() argument 346 smp_xor_128(&p1, rand); in smp_calculate_comfirm() 375 smp_debug_print_nbyte_little_endian(p_cb->rand.data(), "local_rand", 16); in smp_generate_confirm() 377 tSMP_STATUS status = smp_calculate_comfirm(p_cb, p_cb->rand, &output); in smp_generate_confirm() 411 [](tSMP_CB* p_cb, uint64_t rand) { in smp_generate_srand_mrand_confirm() argument 412 memcpy(p_cb->rand.data(), (uint8_t*)&rand, sizeof(uint64_t)); in smp_generate_srand_mrand_confirm() [all …]
|
/packages/modules/StatsD/statsd/benchmark/ |
D | string_transform_benchmark.cpp | 45 const string prefix(state.range(0), 'a' + rand() % 26); in BM_RemoveTrailingCharacters() 46 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingCharacters() 58 const string prefix(state.range(0), 'a' + rand() % 26); in BM_RemoveTrailingNumbers() 59 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingNumbers() 71 const string prefix(state.range(0), 'a' + rand() % 26); in BM_RemoveTrailingNumbersCppRegex() 72 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingNumbersCppRegex() 83 const string prefix(state.range(0), 'a' + rand() % 26); in BM_RemoveTrailingNumbersCRegex() 84 const string suffix(state.range(1), '0' + rand() % 10); in BM_RemoveTrailingNumbersCRegex()
|
D | loss_info_container_benchmark.cpp | 37 unique_values.insert(std::rand() % maxRange); in generateRandomIds() 84 idsAndErrors.first[std::rand() % idsAndErrors.first.size()]; in generateTestVector() 86 idsAndErrors.second[std::rand() % idsAndErrors.second.size()]; in generateTestVector()
|
/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_ble_addr.cc | 79 Octet16 rand{}; in rpa_matches_irk() local 80 rand[0] = rpa.address[2]; in rpa_matches_irk() 81 rand[1] = rpa.address[1]; in rpa_matches_irk() 82 rand[2] = rpa.address[0]; in rpa_matches_irk() 85 Octet16 x = crypto_toolbox::aes_128(irk, rand); in rpa_matches_irk() 87 rand[0] = rpa.address[5]; in rpa_matches_irk() 88 rand[1] = rpa.address[4]; in rpa_matches_irk() 89 rand[2] = rpa.address[3]; in rpa_matches_irk() 91 if (memcmp(x.data(), rand.data(), 3) == 0) { in rpa_matches_irk()
|
D | btm_ble_sec.cc | 892 memcpy(p_rec->sec_rec.ble_keys.rand, p_keys->penc_key.rand, in btm_sec_save_le_key() 1194 void btm_ble_ltk_request(uint16_t handle, BT_OCTET8 rand, uint16_t ediv) { in btm_ble_ltk_request() argument 1202 memcpy(p_cb->enc_rand, rand, BT_OCTET8_LEN); in btm_ble_ltk_request() 1246 p_rec->ble_hci_handle, p_rec->sec_rec.ble_keys.rand, in btm_ble_start_encrypt() 1907 btsnd_hcic_ble_rand(base::Bind([](BT_OCTET8 rand) { in btm_ble_reset_id() argument 1909 memcpy(tmp.rand1.data(), rand, BT_OCTET8_LEN); in btm_ble_reset_id() 1911 [](reset_id_data tmp, BT_OCTET8 rand) { in btm_ble_reset_id() argument 1912 memcpy(tmp.rand1.data() + 8, rand, BT_OCTET8_LEN); in btm_ble_reset_id() 1914 [](reset_id_data tmp, BT_OCTET8 rand) { in btm_ble_reset_id() argument 1915 memcpy(tmp.rand2.data(), rand, BT_OCTET8_LEN); in btm_ble_reset_id() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/noising/ |
D | ImpressionNoiseUtil.java | 41 ImpressionNoiseParams noiseParams, ThreadLocalRandom rand) { in selectRandomStateAndGenerateReportConfigs() argument 50 long sequenceIndex = nextLong(rand, numCombinations); in selectRandomStateAndGenerateReportConfigs() 103 TriggerSpecs triggerSpecs, int destinationMultiplier, ThreadLocalRandom rand) { in selectFlexEventReportRandomStateAndGenerateReportConfigs() argument 116 long sequenceIndex = nextLong(rand, numStates); in selectFlexEventReportRandomStateAndGenerateReportConfigs() 136 public static long nextLong(ThreadLocalRandom rand, long bound) { in nextLong() argument 137 return rand.nextLong(bound); in nextLong()
|
D | SourceNoiseHandler.java | 77 ThreadLocalRandom rand = ThreadLocalRandom.current(); in assignAttributionModeAndGenerateFakeReports() local 78 double value = rand.nextDouble(); in assignAttributionModeAndGenerateFakeReports() 91 ImpressionNoiseUtil.selectRandomStateAndGenerateReportConfigs(noiseParams, rand) in assignAttributionModeAndGenerateFakeReports() 121 triggerSpecs, destinationTypeMultiplier, rand); in assignAttributionModeAndGenerateFakeReports()
|
/packages/modules/Bluetooth/system/bta/csis/ |
D | csis_types.h | 510 Octet16 rand{}; in is_rsi_match_sirk() 511 rand[0] = rsi.address[2]; in is_rsi_match_sirk() 512 rand[1] = rsi.address[1]; in is_rsi_match_sirk() 513 rand[2] = rsi.address[0]; in is_rsi_match_sirk() 515 log::info("Prand {}", base::HexEncode(rand.data(), 3)); in is_rsi_match_sirk() 520 Octet16 x = crypto_toolbox::aes_128(sirk, rand); in is_rsi_match_sirk() 526 rand[0] = rsi.address[5]; in is_rsi_match_sirk() 527 rand[1] = rsi.address[4]; in is_rsi_match_sirk() 528 rand[2] = rsi.address[3]; in is_rsi_match_sirk() 531 log::info("Hash {}", base::HexEncode(rand.data(), 3)); in is_rsi_match_sirk() [all …]
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/ |
D | EapSimAkaAttribute.java | 533 byte[] rand = new byte[RAND_LENGTH]; in AtRandSim() 534 byteBuffer.get(rand); in AtRandSim() 539 if (Arrays.equals(rand, otherRand)) { in AtRandSim() 543 rands.add(rand); in AtRandSim() 556 for (byte[] rand : rands) { in AtRandSim() 557 this.rands.add(rand); in AtRandSim() 570 for (byte[] rand : rands) { in encode() 571 byteBuffer.put(rand); in encode() 583 public final byte[] rand = new byte[RAND_LENGTH]; field in EapSimAkaAttribute.AtRandAka 593 byteBuffer.get(rand); in AtRandAka() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/ |
D | WifiChipAidlImplTest.java | 173 Random rand = new Random(); in testGetWlanWakeReasonCount() local 174 stats.totalCmdEventWakeCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 175 stats.totalDriverFwLocalWakeCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 176 stats.totalRxPacketWakeCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 178 stats.rxPktWakeDetails.rxUnicastCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 179 stats.rxPktWakeDetails.rxMulticastCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 181 stats.rxIcmpPkWakeDetails.icmpPkt = rand.nextInt(); in testGetWlanWakeReasonCount() 182 stats.rxIcmpPkWakeDetails.icmp6Pkt = rand.nextInt(); in testGetWlanWakeReasonCount() 184 stats.rxMulticastPkWakeDetails.ipv4RxMulticastAddrCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 185 stats.rxMulticastPkWakeDetails.ipv6RxMulticastAddrCnt = rand.nextInt(); in testGetWlanWakeReasonCount()
|
D | WifiChipHidlImplTest.java | 229 Random rand = new Random(); in testGetWlanWakeReasonCount() local 230 stats.totalCmdEventWakeCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 231 stats.totalDriverFwLocalWakeCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 232 stats.totalRxPacketWakeCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 233 stats.rxPktWakeDetails.rxUnicastCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 234 stats.rxPktWakeDetails.rxMulticastCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 235 stats.rxIcmpPkWakeDetails.icmpPkt = rand.nextInt(); in testGetWlanWakeReasonCount() 236 stats.rxIcmpPkWakeDetails.icmp6Pkt = rand.nextInt(); in testGetWlanWakeReasonCount() 237 stats.rxMulticastPkWakeDetails.ipv4RxMulticastAddrCnt = rand.nextInt(); in testGetWlanWakeReasonCount() 238 stats.rxMulticastPkWakeDetails.ipv6RxMulticastAddrCnt = rand.nextInt(); in testGetWlanWakeReasonCount()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | MacAddressUtilTest.java | 65 Random rand = new Random(); in testCalculatePersistentMacForSta() local 69 rand.nextBytes(bytes); in testCalculatePersistentMacForSta() 101 Random rand = new Random(); in testCalculatePersistentMacForSap() local 105 rand.nextBytes(bytes); in testCalculatePersistentMacForSap()
|
/packages/modules/Virtualization/vmbase/src/ |
D | entry.rs | 21 rand, 72 if let Err(e) = rand::init() { in rust_entry() 76 if let Err(e) = rand::fill_with_entropy(random_guard) { in rust_entry()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | SupplicantStaNetworkCallbackHidlImpl.java | 62 for (byte[] rand : params.rands) { in onNetworkEapSimGsmAuthRequest() 63 data[i++] = NativeUtil.hexStringFromByteArray(rand); in onNetworkEapSimGsmAuthRequest() 75 String randHex = NativeUtil.hexStringFromByteArray(params.rand); in onNetworkEapSimUmtsAuthRequest()
|
D | SupplicantStaNetworkCallbackAidlImpl.java | 72 for (GsmRand rand : params.rands) { in onNetworkEapSimGsmAuthRequest() 73 data[i++] = NativeUtil.hexStringFromByteArray(rand.data); in onNetworkEapSimGsmAuthRequest() 84 String randHex = NativeUtil.hexStringFromByteArray(params.rand); in onNetworkEapSimUmtsAuthRequest()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/utils/ |
D | ImsMediaTimer.cpp | 227 uint32_t rand; in GenerateRandom() local 230 rand = (time.tv_sec * 13) + (time.tv_nsec / 1000000); in GenerateRandom() 234 return rand * 7; in GenerateRandom() 237 return (rand * 7) % nRange; in GenerateRandom()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
D | BlockingHttpClientTests.java | 112 final Random rand = new Random(); in testSuccess_emptyRequest() local 114 rand.nextBytes(response); in testSuccess_emptyRequest() 128 final Random rand = new Random(); in testSuccess() local 130 rand.nextBytes(response); in testSuccess()
|
/packages/modules/Virtualization/libs/bssl/src/ |
D | lib.rs | 32 mod rand; module 47 pub use rand::rand_bytes;
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/utils/ |
D | RtpOsUtil.cpp | 52 return rand(); in Rand() 64 RtpDt_Double dRandNum = static_cast<RtpDt_Double>(rand()) / static_cast<RtpDt_Double>(RAND_MAX); in RRand()
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestOpenmpSettings.cpp | 69 std::uniform_int_distribution<> rand(1, 20); in TEST_F() local 71 const int sleepFor = rand(randGen); in TEST_F()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/ |
D | Settings.java | 140 Random rand = new Random(); in generateAndSetId() local 142 editor.putInt(KEY_ID, rand.nextInt(ID_UPPER_BOUND)); in generateAndSetId() 151 Random rand = new Random(); in getId() local 152 return sharedPref.getInt(KEY_ID, rand.nextInt(ID_UPPER_BOUND) /* defaultValue */); in getId()
|
/packages/modules/Connectivity/service/native/libs/libclat/ |
D | clatutils_test.cpp | 110 uint32_t rand = arc4random_uniform(0xffffffff); in TEST_F() local 111 uint16_t rand1 = rand & 0xffff; in TEST_F() 112 uint16_t rand2 = (rand >> 16) & 0xffff; in TEST_F()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/noising/ |
D | ImpressionNoiseUtilTest.java | 75 (noiseParams, expectedReports, rand) -> { 78 noiseParams, rand); 88 (triggerSpecs, destinationMultiplier, expectedReports, rand) -> { 92 triggerSpecs, destinationMultiplier, rand);
|
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/ |
D | migrate.rs | 43 rand: u64, field 73 rand: bluez_conf in new_from_bluez() 106 rand: u64::from_str_radix(&val[32..48], 16).unwrap_or_default().swap_bytes(), in try_from_penc() 117 self.rand.swap_bytes(), in try_into_penc() 135 rand: 0, in try_from_lenc() 798 bluez_info.set(section_name, "Rand", Some(format!("{}", ltk.rand))); in convert_floss_conf() 814 bluez_info.set(BLUEZ_LOCAL_LTK_SECTION_NAME, "Rand", Some(format!("{}", ltk.rand))); in convert_floss_conf() 1110 assert_eq!(pltk.rand, 12943240503130989091); in test_ltk_conversion() 1125 assert_eq!(lltk.rand, 0); in test_ltk_conversion()
|
/packages/modules/DnsResolver/doh/ |
D | encoding.rs | 22 use ring::rand::SecureRandom; 40 ring::rand::SystemRandom::new().fill(&mut rnd).context("failed to generate probe rnd")?; in probe_query()
|