Home
last modified time | relevance | path

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

/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/testgenerator/
DValidGridMigrationTestCaseGenerator.kt133 boardGenerator.getRandom(0, width * height) in generateBoards()
143 val width = randomBoardGenerator.getRandom(3, MAX_BOARD_SIZE) in generateTestCase()
144 val height = randomBoardGenerator.getRandom(3, MAX_BOARD_SIZE) in generateTestCase()
147 randomBoardGenerator.getRandom(3, MAX_BOARD_SIZE), in generateTestCase()
148 randomBoardGenerator.getRandom(3, MAX_BOARD_SIZE) in generateTestCase()
158 boardCount = randomBoardGenerator.getRandom(3, MAX_BOARD_COUNT) in generateTestCase()
167 boardCount = randomBoardGenerator.getRandom(3, MAX_BOARD_COUNT) in generateTestCase()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/
DReorderAlgorithmUnitTest.java235 ? boardGenerator.getRandom(3, MAX_BOARD_SIZE / 2) * 2 in generateRandomTestCase()
236 : boardGenerator.getRandom(3, MAX_BOARD_SIZE); in generateRandomTestCase()
237 int height = boardGenerator.getRandom(3, MAX_BOARD_SIZE); in generateRandomTestCase()
239 int targetWidth = boardGenerator.getRandom(1, width - 2); in generateRandomTestCase()
240 int targetHeight = boardGenerator.getRandom(1, height - 2); in generateRandomTestCase()
242 int minTargetWidth = boardGenerator.getRandom(1, targetWidth); in generateRandomTestCase()
243 int minTargetHeight = boardGenerator.getRandom(1, targetHeight); in generateRandomTestCase()
245 int x = boardGenerator.getRandom(0, width - targetWidth); in generateRandomTestCase()
246 int y = boardGenerator.getRandom(0, height - targetHeight); in generateRandomTestCase()
DHotseatReorderUnitTest.kt162 val width: Int = boardGenerator.getRandom(3, Companion.MAX_BOARD_SIZE) in generateRandomTestCase()
163 val height: Int = boardGenerator.getRandom(3, Companion.MAX_BOARD_SIZE) in generateRandomTestCase()
164 val targetWidth: Int = boardGenerator.getRandom(1, width - 2) in generateRandomTestCase()
165 val targetHeight: Int = boardGenerator.getRandom(1, height - 2) in generateRandomTestCase()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/testgenerator/
DRandomBoardGenerator.kt49 val width = getRandom(1, area.width()) in fillBoard()
50 val height = getRandom(1, area.height()) in fillBoard()
51 val x = area.left + getRandom(0, area.width() - width) in fillBoard()
52 val y = area.top + getRandom(0, area.height() - height) in fillBoard()
DDeterministicRandomGenerator.kt21 fun getRandom(start: Int, end: Int): Int = start + (if (end == 0) 0 else generator.nextInt(end)) method
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/crypto/
DFips186_2PrfTest.java52 mFipsPrf.getRandom(new byte[0], 40); in testFips186_2Prf_Invalid_Seed()
61 byte[] actual = mFipsPrf.getRandom(seed, 40); in testFips186_2Prf()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/
DEapAuthenticator.java73 createNewRandomIfNull(eapContext.getRandomnessFactory().getRandom())), in EapAuthenticator()
100 SecureRandom getRandom(); in getRandom() method
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
DIkeSpiGenerator.java34 SecureRandom random = randomnessFactory.getRandom(); in IkeSpiGenerator()
DIpSecSpiGenerator.java42 mRandom = randomnessFactory.getRandom(); in IpSecSpiGenerator()
DRandomnessFactory.java74 public SecureRandom getRandom() { in getRandom() method in RandomnessFactory
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNoncePayload.java74 SecureRandom random = randomnessFactory.getRandom(); in IkeNoncePayload()
DIkeKePayload.java239 SecureRandom random = randomnessFactory.getRandom(); in createOutboundModpKePayload()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/crypto/
DFips186_2Prf.java45 public byte[] getRandom(byte[] seed, int outputLenBytes) { in getRandom() method in Fips186_2Prf
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testmode/
DDeterministicSecureRandomTest.java79 .getRandom(); in testDeterministicSecureRandomInKePayload()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/
DTestUtils.java119 doReturn(null).when(rFactory).getRandom(); in createMockRandomFactory()
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/
DLeAdvertisingTest.java87 : scanningResponse.getRandom()); in scanWithBumble()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachine.java202 byte[] prfResult = prf.getRandom(mk, outputBytes); in generateAndPersistKeys()
242 byte[] prfResult = prf.getRandom(xKeyPrime, outputBytes); in generateAndPersistReauthKeys()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachineTest.java291 doReturn(keys).when(mockFips186_2Prf).getRandom(eq(MK), eq(PRF_OUTPUT_BYTES)); in testGenerateAndPersistKeys()
300 verify(mockFips186_2Prf).getRandom(eq(MK), eq(PRF_OUTPUT_BYTES)); in testGenerateAndPersistKeys()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java686 mRandom = deps.getRandom(); in NetworkMonitor()
3652 public Random getRandom() { in getRandom() method in NetworkMonitor.Dependencies
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java590 doReturn(mRandom).when(mDependencies).getRandom(); in setUp()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java1699 SecureRandom random = ikeSession.mIkeContext.getRandomnessFactory().getRandom(); in verifyTestMode()