Home
last modified time | relevance | path

Searched refs:mSecureRandom (Results 1 – 21 of 21) sorted by relevance

/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/observations/
DObservationGeneratorFactory.java42 private final SecureRandom mSecureRandom; field in ObservationGeneratorFactory
54 mSecureRandom = requireNonNull(secureRandom); in ObservationGeneratorFactory()
91 mSecureRandom, in getNonPrivateObservationGenerator()
92 new IntegerEncoder(mSecureRandom), in getNonPrivateObservationGenerator()
108 mSecureRandom, in getNonPrivateObservationGenerator()
109 new StringHistogramEncoder(stringHashList, mSecureRandom), in getNonPrivateObservationGenerator()
127 mSecureRandom, in getPrivateObservationGenerator()
128 new PrivateIntegerEncoder(mSecureRandom, metric, report), in getPrivateObservationGenerator()
DPrivateObservationGenerator.java64 private final SecureRandom mSecureRandom; field in PrivateObservationGenerator
82 this.mSecureRandom = requireNonNull(secureRandom); in PrivateObservationGenerator()
146 .setRandomId(RandomId.generate(mSecureRandom)) in generateObservations()
154 .setRandomId(RandomId.generate(mSecureRandom)) in generateObservations()
160 .setRandomId(RandomId.generate(mSecureRandom)) in generateObservations()
169 builder.setContributionId(RandomId.generate(mSecureRandom)); in generateObservations()
DPrivacyGenerator.java32 private final SecureRandom mSecureRandom; field in PrivacyGenerator
35 this.mSecureRandom = secureRandom; in PrivacyGenerator()
93 double u = mSecureRandom.nextDouble(); in samplePoissonDistribution()
111 return mSecureRandom.nextInt(max + 1); in sampleUniformDistribution()
DIntegerEncoder.java39 private final SecureRandom mSecureRandom; field in IntegerEncoder
42 this.mSecureRandom = requireNonNull(secureRandom); in IntegerEncoder()
64 .setRandomId(RandomId.generate(mSecureRandom)) in encode()
DPrivateIntegerEncoder.java41 private final SecureRandom mSecureRandom; field in PrivateIntegerEncoder
47 this.mSecureRandom = requireNonNull(secureRandom); in PrivateIntegerEncoder()
73 mSecureRandom); in encode()
DStringHistogramEncoder.java47 private final SecureRandom mSecureRandom; field in StringHistogramEncoder
56 this.mSecureRandom = requireNonNull(secureRandom); in StringHistogramEncoder()
116 .setRandomId(RandomId.generate(mSecureRandom)) in encode()
DNonPrivateObservationGenerator.java53 private final SecureRandom mSecureRandom; field in NonPrivateObservationGenerator
67 this.mSecureRandom = requireNonNull(secureRandom); in NonPrivateObservationGenerator()
104 .setContributionId(RandomId.generate(mSecureRandom)) in generateObservations()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/
DStringHistogramEncoderTest.java52 private final SecureRandom mSecureRandom = new FakeSecureRandom(); field in StringHistogramEncoderTest
73 mSecureRandom); in stringsHashesOrderedAndCompacted()
100 mSecureRandom); in multipleEventsDisjointStrings()
172 mSecureRandom); in multipleEventsSameStrings()
240 mSecureRandom); in bucketWithInvalidIndexExcluded()
286 mSecureRandom); in bucketWithZeroCountExcluded()
331 mSecureRandom); in bucketCountsSummedForSameIndex()
DPrivateIndexCalculationsTest.java38 private final SecureRandom mSecureRandom = new FakeSecureRandom(); field in PrivateIndexCalculationsTest
52 value, minValue, maxValue, numIndexPoints, mSecureRandom)) in testDoubleToIndex_maxValue_equalsMaxIndex()
66 value, minValue, maxValue, numIndexPoints, mSecureRandom)) in testDoubleToIndex_minValue_equalsMinIndex()
80 value, minValue, maxValue, numIndexPoints, mSecureRandom)) in testDoubleToIndex_middleValue_equalsInteriorIndex()
96 value, minValue, maxValue, numIndexPoints, mSecureRandom)) in testDoubleToIndex_distanceAboveLambda_returnsUpperIndex()
112 value, minValue, maxValue, numIndexPoints, mSecureRandom)) in testDoubleToIndex_distanceBelowLambda_returnsLowerIndex()
DPrivacyGeneratorStatisticalTest.java52 private final SecureRandom mSecureRandom; field in PrivacyGeneratorStatisticalTest
56 mSecureRandom = new SecureRandom(); in PrivacyGeneratorStatisticalTest()
57 mPrivacyGenerator = new PrivacyGenerator(mSecureRandom); in PrivacyGeneratorStatisticalTest()
143 totalSum += PrivateIndexCalculations.indexOffset(distance, mSecureRandom); in indexOffsetTest()
199 mSecureRandom) in doubleToIndexTest()
DPrivateObservationGeneratorTest.java139 private final SecureRandom mSecureRandom; field in PrivateObservationGeneratorTest
144 mSecureRandom = new FakeSecureRandom(); in PrivateObservationGeneratorTest()
145 mPrivacyGenerator = new PrivacyGenerator(mSecureRandom); in PrivateObservationGeneratorTest()
154 mSecureRandom, in createObservationGenerator()
155 new PrivateIntegerEncoder(mSecureRandom, metric, report), in createObservationGenerator()
DNonPrivateObservationGeneratorTest.java152 private final SecureRandom mSecureRandom; field in NonPrivateObservationGeneratorTest
156 mSecureRandom = new FakeSecureRandom(); in NonPrivateObservationGeneratorTest()
163 mSecureRandom, in createObservationGenerator()
164 new IntegerEncoder(mSecureRandom), in createObservationGenerator()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapStateMachine.java80 private final SecureRandom mSecureRandom; field in EapStateMachine
88 this.mSecureRandom = secureRandom; in EapStateMachine()
352 mSecureRandom); in buildEapMethodStateMachine()
362 mSecureRandom); in buildEapMethodStateMachine()
369 return new EapMsChapV2MethodStateMachine(eapMsChapV2Config, mSecureRandom); in buildEapMethodStateMachine()
372 return new EapTtlsMethodStateMachine(mContext, eapTtlsConfig, mSecureRandom); in buildEapMethodStateMachine()
DEapTtlsMethodStateMachine.java94 private final SecureRandom mSecureRandom; field in EapTtlsMethodStateMachine
124 mSecureRandom = secureRandom; in EapTtlsMethodStateMachine()
316 mEapTtlsConfig.getServerCaCert(), mSecureRandom); in startHandshake()
401 mContext, mEapTtlsConfig.getInnerEapSessionConfig(), mSecureRandom); in TunnelState()
DEapMsChapV2MethodStateMachine.java193 private final SecureRandom mSecureRandom; field in EapMsChapV2MethodStateMachine
207 this.mSecureRandom = secureRandom; in EapMsChapV2MethodStateMachine()
268 mSecureRandom.nextBytes(peerChallenge); in process()
DEapSimMethodStateMachine.java124 mSecureRandom = secureRandom; in EapSimMethodStateMachine()
174 mSecureRandom.nextBytes(nonce); in process()
DEapAkaMethodStateMachine.java156 mSecureRandom = secureRandom; in EapAkaMethodStateMachine()
821 EapSimAkaAttribute.AtIv atIv = new EapSimAkaAttribute.AtIv(mSecureRandom); in handleReauthentication()
860 EapSimAkaAttribute.AtIv atIv = new EapSimAkaAttribute.AtIv(mSecureRandom); in handleReauthentication()
DEapSimAkaMethodStateMachine.java108 @VisibleForTesting SecureRandom mSecureRandom; field in EapSimAkaMethodStateMachine
589 EapSimAkaAttribute.AtIv atIv = new EapSimAkaAttribute.AtIv(mSecureRandom); in handleEapSimAkaNotification()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/crypto/
DTlsSession.java104 private final SecureRandom mSecureRandom; field in TlsSession
118 mSecureRandom = secureRandom; in TlsSession()
138 mSecureRandom = secureRandom; in TlsSession()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/impl/
DCobaltPeriodicJobImplTest.java265 private SecureRandom mSecureRandom; field in CobaltPeriodicJobImplTest
309 mSecureRandom = new ConstantFakeSecureRandom();
310 mPrivacyGenerator = new PrivacyGenerator(mSecureRandom);
325 mSecureRandom,
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachineTest.java637 mStateMachine.mSecureRandom = mMockSecureRandom; in testHandleEapAkaNotificationPostReauth()