Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 25 of 43) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttribute.java520 byte[] rand = new byte[RAND_LENGTH]; in AtRandSim()
521 byteBuffer.get(rand); in AtRandSim()
526 if (Arrays.equals(rand, otherRand)) { in AtRandSim()
530 rands.add(rand); in AtRandSim()
543 for (byte[] rand : rands) { in AtRandSim()
544 this.rands.add(rand); in AtRandSim()
557 for (byte[] rand : rands) { in encode()
558 byteBuffer.put(rand); in encode()
570 public final byte[] rand = new byte[RAND_LENGTH]; field in EapSimAkaAttribute.AtRandAka
580 byteBuffer.get(rand); in AtRandAka()
[all …]
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
DSettingsManager.java58 Random rand = new Random(); in generateAndSetId() local
60 editor.putInt(KEY_ID, rand.nextInt(ID_UPPER_BOUND)); in generateAndSetId()
70 Random rand = new Random(); in getId() local
71 return sharedPref.getInt(KEY_ID, rand.nextInt(ID_UPPER_BOUND) /* defaultValue */); in getId()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/
DBlockingHttpClientTests.java112 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/Wifi/service/java/com/android/server/wifi/
DSupplicantStaNetworkCallbackImpl.java62 for (byte[] rand : params.rands) { in onNetworkEapSimGsmAuthRequest()
63 data[i++] = NativeUtil.hexStringFromByteArray(rand); in onNetworkEapSimGsmAuthRequest()
75 String randHex = NativeUtil.hexStringFromByteArray(params.rand); in onNetworkEapSimUmtsAuthRequest()
DWifiCarrierInfoManager.java1149 byte[] rand = null; in getGsmAuthResponseWithLength()
1151 rand = parseHex(challenge); in getGsmAuthResponseWithLength()
1157 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmAuthResponseWithLength()
1222 byte[] rand = null; in getGsmSimpleSimNoLengthAuthResponse()
1224 rand = parseHexWithoutLength(challenge); in getGsmSimpleSimNoLengthAuthResponse()
1230 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmSimpleSimNoLengthAuthResponse()
1299 byte[] rand = null; in get3GAuthResponse()
1305 rand = parseHex(requestData.data[0]); in get3GAuthResponse()
1315 if (rand != null && authn != null) { in get3GAuthResponse()
1316 String base64Challenge = Base64.encodeToString(concatHex(rand, authn), Base64.NO_WRAP); in get3GAuthResponse()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimMethodStateMachine.java488 for (byte[] rand : randList) { in getRandChallengeResults()
490 ByteBuffer formattedRand = ByteBuffer.allocate(rand.length + 1); in getRandChallengeResults()
491 formattedRand.put((byte) rand.length); in getRandChallengeResults()
492 formattedRand.put(rand); in getRandChallengeResults()
505 LOG.d(mTAG, "RAND=" + LOG.pii(rand)); in getRandChallengeResults()
DEapAkaMethodStateMachine.java507 int randLen = atRandAka.rand.length; in getRandChallengeResult()
511 formattedChallenge.put(atRandAka.rand); in getRandChallengeResult()
537 "RAND=" + LOG.pii(atRandAka.rand) in getRandChallengeResult()
556 LOG.d(mTAG, "RAND=" + LOG.pii(atRandAka.rand)); in getRandChallengeResult()
/packages/modules/NeuralNetworks/runtime/test/
DTestOpenmpSettings.cpp69 std::uniform_int_distribution<> rand(1, 20); in TEST_F() local
71 const int sleepFor = rand(randGen); in TEST_F()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DMacAddressUtilTest.java60 Random rand = new Random(); in testCalculatePersistentMac() local
64 rand.nextBytes(bytes); in testCalculatePersistentMac()
DWifiVendorHalTest.java2516 Random rand = new Random(); in testGetWlanWakeReasonCount() local
2517 stats.totalCmdEventWakeCnt = rand.nextInt(); in testGetWlanWakeReasonCount()
2518 stats.totalDriverFwLocalWakeCnt = rand.nextInt(); in testGetWlanWakeReasonCount()
2519 stats.totalRxPacketWakeCnt = rand.nextInt(); in testGetWlanWakeReasonCount()
2520 stats.rxPktWakeDetails.rxUnicastCnt = rand.nextInt(); in testGetWlanWakeReasonCount()
2521 stats.rxPktWakeDetails.rxMulticastCnt = rand.nextInt(); in testGetWlanWakeReasonCount()
2522 stats.rxIcmpPkWakeDetails.icmpPkt = rand.nextInt(); in testGetWlanWakeReasonCount()
2523 stats.rxIcmpPkWakeDetails.icmp6Pkt = rand.nextInt(); in testGetWlanWakeReasonCount()
2524 stats.rxMulticastPkWakeDetails.ipv4RxMulticastAddrCnt = rand.nextInt(); in testGetWlanWakeReasonCount()
2525 stats.rxMulticastPkWakeDetails.ipv6RxMulticastAddrCnt = rand.nextInt(); in testGetWlanWakeReasonCount()
/packages/services/Telephony/src/com/android/phone/callcomposer/
DDigestAuthUtils.java116 SecureRandom rand = new SecureRandom(); in makeClientNonce() local
118 rand.nextBytes(clientNonceBytes); in makeClientNonce()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DModelTest.java80 Random rand = new Random(); in setUp() local
91 row.add(Document.COLUMN_SIZE, rand.nextInt()); in setUp()
/packages/modules/StatsD/statsd/src/anomaly/
Dsubscriber_util.cpp39 && ((float)rand() / (float)RAND_MAX) >= subscription.probability_of_informing()) { in triggerSubscribers()
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamCallListListener.java82 Context context, Random rand, @NonNull DialerExecutorFactory factory) { in SpamCallListListener() argument
84 this.random = rand; in SpamCallListListener()
/packages/services/Car/cpp/computepipe/tests/fuzz/
DPixelStreamManagerFuzzer.cpp106 manager->queuePacket(frame, rand()); in LLVMFuzzerTestOneInput()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtRandAkaTest.java56 assertArrayEquals(RAND_1_BYTES, atRandAka.rand); in testDecode()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNsdManagerTest.java251 Random rand = new Random(); in setUp() local
254 mServiceName = mServiceName + String.valueOf(rand.nextInt(10)); in setUp()
/packages/modules/DnsResolver/
Ddoh.rs24 use ring::rand::SecureRandom;
124 ring::rand::SystemRandom::new().fill(&mut scid[..]).context("failed to generate scid")?; in new_with_socket()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortingCursorWrapperTest.java116 Random rand = new Random(); in setUp() local
126 row.add(Document.COLUMN_SIZE, rand.nextInt()); in setUp()
/packages/modules/adb/daemon/
Dproperty_monitor_test.cpp45 name.append(std::to_string(rand())); in ManglePropertyName()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/
DEapAkaPrimeTypeDataTest.java109 assertArrayEquals(RAND_BYTES, ((AtRandAka) entry.getValue()).rand); in testDecode()
DEapAkaTypeDataTest.java129 assertArrayEquals(RAND_BYTES, ((AtRandAka) entry.getValue()).rand); in testDecodeWithOptionalAttributes()
/packages/apps/Gallery2/jni/filters/
Dkmeans.h102 r = (unsigned int) rand() % num_vals; in initialPickHeuristicRandom()
/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache.cpp340 return rand(); in blob_random()
/packages/services/Car/cpp/computepipe/runner/graph/
DGrpcGraph.cpp40 int random_tag = rand(); in FinishRpcAndGetResult()

12