/frameworks/base/core/tests/coretests/src/android/database/ |
D | NewDatabasePerformanceTests.java | 33 import java.util.Random; 181 Random random = new Random(42); in prepareForTest() 209 Random random = new Random(42); in prepareForTest() 238 Random random = new Random(42); in prepareForTest() 274 Random random = new Random(42); in prepareForTest() 309 Random random = new Random(42); in prepareForTest() 343 Random random = new Random(42); in prepareForTest() 378 Random random = new Random(42); in prepareForTest() 414 Random random = new Random(42); in prepareForTest() 453 Random random = new Random(42); in prepareForTest() [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | TextUtils.java | 22 import java.util.Random; 40 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() 89 final Random random = new Random(0); in buildStringListFromUnicodeSet() 108 final Random random = new Random(0); in buildLongStringList() 144 Random random = new Random(0); in buildParagraphListWithHitPercentage()
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_alloc_copyPadded.java | 22 import java.util.Random; 83 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_1D() 114 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_2D() 146 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_3D() 179 Random random = new Random(0x172d8ab9); in testAllocation_Short3_1D() 213 Random random = new Random(0x172d8ab9); in testAllocation_Short3_2D() 248 Random random = new Random(0x172d8ab9); in testAllocation_Short3_3D() 284 Random random = new Random(0x172d8ab9); in testAllocation_Int3_1D() 318 Random random = new Random(0x172d8ab9); in testAllocation_Int3_2D() 353 Random random = new Random(0x172d8ab9); in testAllocation_Int3_3D() [all …]
|
D | UT_alloc_copy.java | 22 import java.util.Random; 58 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Byte() 97 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Short() 139 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Int() 181 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Float() 223 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Long() 265 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Byte() 300 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Short() 338 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Int() 376 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Float() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_alloc_copyPadded.java | 25 import java.util.Random; 84 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_1D() 115 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_2D() 147 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_3D() 180 Random random = new Random(0x172d8ab9); in testAllocation_Short3_1D() 214 Random random = new Random(0x172d8ab9); in testAllocation_Short3_2D() 249 Random random = new Random(0x172d8ab9); in testAllocation_Short3_3D() 285 Random random = new Random(0x172d8ab9); in testAllocation_Int3_1D() 319 Random random = new Random(0x172d8ab9); in testAllocation_Int3_2D() 354 Random random = new Random(0x172d8ab9); in testAllocation_Int3_3D() [all …]
|
D | UT_alloc_copy.java | 26 import java.util.Random; 60 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Byte() 99 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Short() 141 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Int() 183 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Float() 225 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Long() 267 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Byte() 302 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Short() 340 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Int() 378 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Float() [all …]
|
D | UT_reduce_backward.java | 36 import java.util.Random; 47 (new Random(seed)).nextBytes(array); in createInputArrayByte() 52 Random rand = new Random(seed); in createInputArrayFloat() 60 Random rand = new Random(seed); in createInputArrayInt() 68 Random rand = new Random(seed); in createInputArrayInt() 179 input[(new Random(6)).nextInt(inputLen)] = 0; in fz() 198 inputArray[(new Random(8)).nextInt(inputLen)] = 0; in fz2() 223 inputArray[(new Random(10)).nextInt(inputLen)] = 0; in fz3()
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_alloc_copyPadded.java | 27 import java.util.Random; 86 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_1D() 117 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_2D() 149 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_3D() 182 Random random = new Random(0x172d8ab9); in testAllocation_Short3_1D() 216 Random random = new Random(0x172d8ab9); in testAllocation_Short3_2D() 251 Random random = new Random(0x172d8ab9); in testAllocation_Short3_3D() 287 Random random = new Random(0x172d8ab9); in testAllocation_Int3_1D() 321 Random random = new Random(0x172d8ab9); in testAllocation_Int3_2D() 356 Random random = new Random(0x172d8ab9); in testAllocation_Int3_3D() [all …]
|
D | UT_alloc_copy.java | 28 import java.util.Random; 62 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Byte() 101 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Short() 143 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Int() 185 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Float() 227 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Long() 269 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Byte() 304 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Short() 342 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Int() 380 Random random = new Random(0x172d8ab9); in allocation_copy2DRangeTo_Float() [all …]
|
D | UT_reduce_backward.java | 38 import java.util.Random; 49 (new Random(seed)).nextBytes(array); in createInputArrayByte() 54 Random rand = new Random(seed); in createInputArrayFloat() 62 Random rand = new Random(seed); in createInputArrayInt() 70 Random rand = new Random(seed); in createInputArrayInt() 181 input[(new Random(6)).nextInt(inputLen)] = 0; in fz() 200 inputArray[(new Random(8)).nextInt(inputLen)] = 0; in fz2() 225 inputArray[(new Random(10)).nextInt(inputLen)] = 0; in fz3()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/ |
D | Utils.java | 23 import java.util.Random; 29 public static String getRandomWord(Random random, int length) { in getRandomWord() 40 Random random = new Random(0); in buildStringList() 71 Random random = new Random(0); in buildParagraphListWithHitPercentage()
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | NonEditableTextGenerator.java | 7 import java.util.Random; 23 private final Random mRandom; 25 public NonEditableTextGenerator(Random random) { in NonEditableTextGenerator() 103 private final Random mRandom; 105 public RandomCharSequenceGenerator(Random random) { in RandomCharSequenceGenerator()
|
D | TextPerfUtils.java | 41 import java.util.Random; 47 private Random mRandom = new Random(0); 61 mRandom = new Random(seed); in resetRandom()
|
/frameworks/base/apct-tests/perftests/core/src/android/database/ |
D | SQLiteDatabasePerfTest.java | 34 import java.util.Random; 80 Random rnd = new Random(0); in testSelect() 99 Random rnd = new Random(0); in testSelectMultipleRows() 177 Random rnd = new Random(0); in testInnerJoin() 234 Random rnd = new Random(0); in testUpdate()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | PathDestructionActivity.java | 28 import java.util.Random; 62 Random r = new Random(); in getRandomPath() 77 Random r = new Random(); in getRandomColor()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | RandomScheduler.java | 20 import java.util.Random; 31 private Random mRand = new Random();
|
/frameworks/base/core/tests/coretests/src/android/app/usage/ |
D | EventListTest.java | 30 import java.util.Random; 67 final Random random = new Random(128); in testInsertsSortedRandom() 77 final Random random = new Random(256); in testInsertsSortedWithDuplicates()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaPlayerInvokeTest.java | 32 import java.util.Random; 38 private Random rnd; 42 rnd = new Random(Calendar.getInstance().getTimeInMillis()); in MediaPlayerInvokeTest()
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
D | FakeView.java | 19 import java.util.Random; 50 final Random mRandom = new Random();
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | MatrixTest.java | 27 import java.util.Random; 114 public Matrix generatePermutationMatrix(int size, Random random) { in generatePermutationMatrix() 133 Matrix m1 = generatePermutationMatrix(size, new Random(132)); in testInverseOfPermutation() 184 Random random = new Random(); in testCopy()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileBridgeTest.java | 31 import java.util.Random; 132 final Random r = new Random(); in testRandomWrite() 149 new Random().nextBytes(test); in testGiantWrite()
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
D | WapPushTest.java | 37 import java.util.Random; 878 protected void createRandomWspHeader(byte[] arr, Random rd, int headerStart, in createRandomWspHeader() 1087 protected void createRandomWspHeaderStrAppId(byte[] arr, Random rd, int headerStart, in createRandomWspHeaderStrAppId() 1328 Random rd = new Random(); in createPDU() 1353 rd = new Random(); in createPDU() 1377 rd = new Random(); in createPDU() 1401 rd = new Random(); in createPDU() 1425 rd = new Random(); in createPDU() 1458 rd = new Random(); in createPDU() 1861 Random rd = new Random(); in testDecoder1() [all …]
|
/frameworks/base/core/java/com/android/internal/ml/clustering/ |
D | KMeans.java | 27 import java.util.Random; 36 private final Random mRandomState; 41 this(new Random()); in KMeans() 44 public KMeans(Random random) { in KMeans() 47 public KMeans(Random random, int maxIterations, float convergenceEpsilon) { in KMeans()
|
/frameworks/support/viewpager2/src/androidTest/java/androidx/viewpager2/widget/swipe/ |
D | FragmentAdapterActivity.java | 27 import java.util.Random; 31 private static final Random RANDOM = new Random();
|
/frameworks/base/core/java/android/privacy/internal/rappor/ |
D | RapporEncoder.java | 28 import java.util.Random; 67 final Random random; in RapporEncoder() 73 random = new Random(getInsecureSeed(config.mEncoderId)); in RapporEncoder()
|