/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/testgenerator/ |
D | ValidGridMigrationTestCaseGenerator.kt | 133 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/ |
D | ReorderAlgorithmUnitTest.java | 235 ? 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()
|
D | HotseatReorderUnitTest.kt | 162 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/ |
D | RandomBoardGenerator.kt | 49 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()
|
D | DeterministicRandomGenerator.kt | 21 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/ |
D | Fips186_2PrfTest.java | 52 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/ |
D | EapAuthenticator.java | 73 createNewRandomIfNull(eapContext.getRandomnessFactory().getRandom())), in EapAuthenticator() 100 SecureRandom getRandom(); in getRandom() method
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/ |
D | IkeSpiGenerator.java | 34 SecureRandom random = randomnessFactory.getRandom(); in IkeSpiGenerator()
|
D | IpSecSpiGenerator.java | 42 mRandom = randomnessFactory.getRandom(); in IpSecSpiGenerator()
|
D | RandomnessFactory.java | 74 public SecureRandom getRandom() { in getRandom() method in RandomnessFactory
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeNoncePayload.java | 74 SecureRandom random = randomnessFactory.getRandom(); in IkeNoncePayload()
|
D | IkeKePayload.java | 239 SecureRandom random = randomnessFactory.getRandom(); in createOutboundModpKePayload()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/crypto/ |
D | Fips186_2Prf.java | 45 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/ |
D | DeterministicSecureRandomTest.java | 79 .getRandom(); in testDeterministicSecureRandomInKePayload()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ |
D | TestUtils.java | 119 doReturn(null).when(rFactory).getRandom(); in createMockRandomFactory()
|
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/ |
D | LeAdvertisingTest.java | 87 : scanningResponse.getRandom()); in scanWithBumble()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/ |
D | EapSimAkaMethodStateMachine.java | 202 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/ |
D | EapSimAkaMethodStateMachineTest.java | 291 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/ |
D | NetworkMonitor.java | 686 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/ |
D | NetworkMonitorTest.java | 590 doReturn(mRandom).when(mDependencies).getRandom(); in setUp()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachineTest.java | 1699 SecureRandom random = ikeSession.mIkeContext.getRandomnessFactory().getRandom(); in verifyTestMode()
|