Home
last modified time | relevance | path

Searched defs:random (Results 1 – 25 of 56) sorted by relevance

123

/aosp14/frameworks/base/core/tests/coretests/src/android/database/
H A DNewDatabasePerformanceTests.java181 Random random = new Random(42); in prepareForTest() local
209 Random random = new Random(42); in prepareForTest() local
238 Random random = new Random(42); in prepareForTest() local
274 Random random = new Random(42); in prepareForTest() local
309 Random random = new Random(42); in prepareForTest() local
343 Random random = new Random(42); in prepareForTest() local
378 Random random = new Random(42); in prepareForTest() local
414 Random random = new Random(42); in prepareForTest() local
453 Random random = new Random(42); in prepareForTest() local
499 Random random = new Random(42); in prepareForTest() local
[all …]
H A DDatabaseCursorTest.java239 Random random = new Random(System.currentTimeMillis()); in testLargeField() local
320 Random random = new Random(System.currentTimeMillis()); in testManyRowsTxt() local
353 Random random = new Random(System.currentTimeMillis()); in testManyRowsTxtLong() local
/aosp14/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DTextUtils.java40 private static String randomWord(Random random, int length) { in randomWord()
53 private static String randomWordFromStringSet(Random random, int length, String[] stringSet) { in randomWordFromStringSet()
80 Random random = new Random(0); in buildSimpleStringList() local
89 final Random random = new Random(0); in buildStringListFromUnicodeSet() local
108 final Random random = new Random(0); in buildLongStringList() local
144 Random random = new Random(0); in buildParagraphListWithHitPercentage() local
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/
H A DLocationUtils.java36 public static Location createLocation(String provider, Random random) { in createLocation()
43 public static LocationResult createLocationResult(String provider, Random random) { in createLocationResult()
47 public static LocationResult createLocationResult(String provider, Random random, in createLocationResult()
/aosp14/frameworks/base/keystore/java/android/security/keystore2/
H A DAndroidKeyStoreKeyGeneratorSpi.java61 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) in engineInit()
154 protected void engineInit(SecureRandom random) { in engineInit()
160 protected void engineInit(int keySize, SecureRandom random) { in engineInit()
166 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) in engineInit()
H A DAndroidKeyStoreKeyAgreementSpi.java93 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit()
118 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) in engineInit()
H A DAndroidKeyStoreCipherSpiBase.java132 protected final void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
199 SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit()
229 SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit()
257 private void init(int opmode, Key key, SecureRandom random) throws InvalidKeyException { in init()
/aosp14/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
H A DUtils.java29 public static String getRandomWord(Random random, int length) { in getRandomWord()
40 Random random = new Random(0); in buildStringList() local
71 Random random = new Random(0); in buildParagraphListWithHitPercentage() local
/aosp14/frameworks/base/core/tests/coretests/src/android/app/usage/
H A DEventListTest.java68 final Random random = new Random(128); in testInsertsSortedRandom() local
78 final Random random = new Random(256); in testInsertsSortedWithDuplicates() local
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/text/
H A DVariableFontPerfTest.java103 final Random random = new Random(0); in testDraw_SetDifferentVariationEachDraw() local
123 final Random random = new Random(0); in testSetFontVariationSettings() local
H A DNonEditableTextGenerator.java25 public NonEditableTextGenerator(Random random) { in NonEditableTextGenerator()
105 public RandomCharSequenceGenerator(Random random) { in RandomCharSequenceGenerator()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
H A DAlarmTest.java98 final Random random = new Random(971); in generatePolicyTestMatrix() local
218 final Random random = new Random(234); in snapshotImmutable() local
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/job/
H A DPendingJobQueueTest.java525 Random random = new Random(1); // Always use the same series of pseudo random values. in testPendingJobSorting_Random() local
544 Random random = new Random(1); // Always use the same series of pseudo random values. in testPendingJobSorting_Random_namespacing() local
562 Random random = new Random(seed); in testPendingJobSortingTransitivity() local
588 Random random = new Random(seed); in testPendingJobSortingTransitivity_Concentrated() local
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DPinShapeAdapter.kt25 val random = Random(System.currentTimeMillis()) regex
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DBitwiseStreamsTest.java95 Random random = new Random(); in testFive() local
139 Random random = new Random(); in testExpandArray() local
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/turbulencenoise/
H A DTurbulenceNoiseController.kt40 private val random = Random() regex
/aosp14/frameworks/base/core/java/android/net/sntp/
H A DTimestamp64.java165 public Timestamp64 randomizeSubMillis(Random random) { in randomizeSubMillis()
176 public static int randomizeLowestBits(Random random, int value, int bitsToRandomize) { in randomizeLowestBits()
/aosp14/frameworks/base/core/java/com/android/internal/ml/clustering/
H A DKMeans.java44 public KMeans(Random random) { in KMeans()
47 public KMeans(Random random, int maxIterations, float convergenceEpsilon) { in KMeans()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/
H A DZipFilePerfTest.java80 Random random = new Random(); in writeEntries() local
H A DBufferedZipFilePerfTest.java52 Random random = new Random(0); in setUp() local
H A DZipFileReadPerfTest.java69 Random random = new Random(); in writeEntries() local
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DVerifierDeviceIdentityTest.java162 MockRandom random = new MockRandom(); in testVerifierDeviceIdentity_Generate_MinValue() local
174 MockRandom random = new MockRandom(); in testVerifierDeviceIdentity_Generate_Random() local
/aosp14/frameworks/base/core/tests/coretests/src/android/net/sntp/
H A DTimestamp64Test.java259 PredictableRandom random = new PredictableRandom(); in testMillisRandomizationConstant() local
269 Random random = new Random(1); in testRandomizeLowestBits() local
/aosp14/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DWSMeansQuantizer.java136 Random random = new Random(0x42688); in initializeClusters() local
157 Random random = new Random(0x42688); in initializeClusters() local
/aosp14/frameworks/base/keystore/java/android/security/keystore/
H A DAttestationUtils.java194 Random random = new SecureRandom(); in generateRandomAlias() local

123