/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/ |
D | EapSimAkaAttribute.java | 520 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/ |
D | SettingsManager.java | 58 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/ |
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/Wifi/service/java/com/android/server/wifi/ |
D | SupplicantStaNetworkCallbackImpl.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 | WifiCarrierInfoManager.java | 1149 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/ |
D | EapSimMethodStateMachine.java | 488 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()
|
D | EapAkaMethodStateMachine.java | 507 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/ |
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/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | MacAddressUtilTest.java | 60 Random rand = new Random(); in testCalculatePersistentMac() local 64 rand.nextBytes(bytes); in testCalculatePersistentMac()
|
D | WifiVendorHalTest.java | 2516 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/ |
D | DigestAuthUtils.java | 116 SecureRandom rand = new SecureRandom(); in makeClientNonce() local 118 rand.nextBytes(clientNonceBytes); in makeClientNonce()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | ModelTest.java | 80 Random rand = new Random(); in setUp() local 91 row.add(Document.COLUMN_SIZE, rand.nextInt()); in setUp()
|
/packages/modules/StatsD/statsd/src/anomaly/ |
D | subscriber_util.cpp | 39 && ((float)rand() / (float)RAND_MAX) >= subscription.probability_of_informing()) { in triggerSubscribers()
|
/packages/apps/Dialer/java/com/android/incallui/spam/ |
D | SpamCallListListener.java | 82 Context context, Random rand, @NonNull DialerExecutorFactory factory) { in SpamCallListListener() argument 84 this.random = rand; in SpamCallListListener()
|
/packages/services/Car/cpp/computepipe/tests/fuzz/ |
D | PixelStreamManagerFuzzer.cpp | 106 manager->queuePacket(frame, rand()); in LLVMFuzzerTestOneInput()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/ |
D | AtRandAkaTest.java | 56 assertArrayEquals(RAND_1_BYTES, atRandAka.rand); in testDecode()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NsdManagerTest.java | 251 Random rand = new Random(); in setUp() local 254 mServiceName = mServiceName + String.valueOf(rand.nextInt(10)); in setUp()
|
/packages/modules/DnsResolver/ |
D | doh.rs | 24 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/ |
D | SortingCursorWrapperTest.java | 116 Random rand = new Random(); in setUp() local 126 row.add(Document.COLUMN_SIZE, rand.nextInt()); in setUp()
|
/packages/modules/adb/daemon/ |
D | property_monitor_test.cpp | 45 name.append(std::to_string(rand())); in ManglePropertyName()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/ |
D | EapAkaPrimeTypeDataTest.java | 109 assertArrayEquals(RAND_BYTES, ((AtRandAka) entry.getValue()).rand); in testDecode()
|
D | EapAkaTypeDataTest.java | 129 assertArrayEquals(RAND_BYTES, ((AtRandAka) entry.getValue()).rand); in testDecodeWithOptionalAttributes()
|
/packages/apps/Gallery2/jni/filters/ |
D | kmeans.h | 102 r = (unsigned int) rand() % num_vals; in initialPickHeuristicRandom()
|
/packages/modules/NeuralNetworks/driver/cache/BlobCache/ |
D | BlobCache.cpp | 340 return rand(); in blob_random()
|
/packages/services/Car/cpp/computepipe/runner/graph/ |
D | GrpcGraph.cpp | 40 int random_tag = rand(); in FinishRpcAndGetResult()
|