/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_alloc_copyPadded.java | 83 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_1D() local 84 int width = random.nextInt(512); in testAllocation_Byte3_1D() 89 random.nextBytes(inArray); in testAllocation_Byte3_1D() 114 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_2D() local 115 int width = random.nextInt(128); in testAllocation_Byte3_2D() 116 int height = random.nextInt(128); in testAllocation_Byte3_2D() 121 random.nextBytes(inArray); in testAllocation_Byte3_2D() 146 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_3D() local 147 int w = random.nextInt(32); in testAllocation_Byte3_3D() 148 int h = random.nextInt(32); in testAllocation_Byte3_3D() [all …]
|
D | UT_alloc_copy.java | 58 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Byte() local 59 int width = random.nextInt(512); in allocation_copy1DRangeTo_Byte() 64 random.nextBytes(inArray); in allocation_copy1DRangeTo_Byte() 69 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Byte() 97 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Short() local 98 int width = random.nextInt(512); in allocation_copy1DRangeTo_Short() 105 inArray[i] = (short)random.nextInt(); in allocation_copy1DRangeTo_Short() 111 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Short() 139 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Int() local 140 int width = random.nextInt(512); in allocation_copy1DRangeTo_Int() [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/ |
D | UT_alloc_copyPadded.java | 83 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_1D() local 84 int width = random.nextInt(512); in testAllocation_Byte3_1D() 89 random.nextBytes(inArray); in testAllocation_Byte3_1D() 114 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_2D() local 115 int width = random.nextInt(128); in testAllocation_Byte3_2D() 116 int height = random.nextInt(128); in testAllocation_Byte3_2D() 121 random.nextBytes(inArray); in testAllocation_Byte3_2D() 146 Random random = new Random(0x172d8ab9); in testAllocation_Byte3_3D() local 147 int w = random.nextInt(32); in testAllocation_Byte3_3D() 148 int h = random.nextInt(32); in testAllocation_Byte3_3D() [all …]
|
D | UT_alloc_copy.java | 58 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Byte() local 59 int width = random.nextInt(512); in allocation_copy1DRangeTo_Byte() 64 random.nextBytes(inArray); in allocation_copy1DRangeTo_Byte() 69 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Byte() 97 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Short() local 98 int width = random.nextInt(512); in allocation_copy1DRangeTo_Short() 105 inArray[i] = (short)random.nextInt(); in allocation_copy1DRangeTo_Short() 111 int offset = random.nextInt(arr_len); in allocation_copy1DRangeTo_Short() 139 Random random = new Random(0x172d8ab9); in allocation_copy1DRangeTo_Int() local 140 int width = random.nextInt(512); in allocation_copy1DRangeTo_Int() [all …]
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | NewDatabasePerformanceTests.java | 114 Random random = new Random(42); in setUp() local 117 int r = random.nextInt(100000); in setUp() 146 Random random = new Random(42); in setUp() local 149 int r = random.nextInt(100000); in setUp() 180 Random random = new Random(42); in setUp() local 186 int r = random.nextInt(100000); in setUp() 219 Random random = new Random(42); in setUp() local 225 int r = random.nextInt(100000); in setUp() 256 Random random = new Random(42); in setUp() local 263 int r = random.nextInt(100000); in setUp() [all …]
|
D | DatabasePerformanceTests.java | 205 Random random = new Random(42); in setUp() local 208 int r = random.nextInt(100000); in setUp() 238 Random random = new Random(42); in setUp() local 241 int r = random.nextInt(100000); in setUp() 273 Random random = new Random(42); in setUp() local 279 int r = random.nextInt(100000); in setUp() 313 Random random = new Random(42); in setUp() local 319 int r = random.nextInt(100000); in setUp() 351 Random random = new Random(42); in setUp() local 358 int r = random.nextInt(100000); in setUp() [all …]
|
D | DatabaseCursorTest.java | 242 Random random = new Random(System.currentTimeMillis()); in testLargeField() local 245 randomString.append((random.nextInt() & 0xf) % 10); in testLargeField() 323 Random random = new Random(System.currentTimeMillis()); in testManyRowsTxt() local 326 randomString.append((random.nextInt() & 0xf) % 10); in testManyRowsTxt() 356 Random random = new Random(System.currentTimeMillis()); in testManyRowsTxtLong() local 359 randomString.append((random.nextInt() & 0xf) % 10); in testManyRowsTxtLong()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | TextUtils.java | 27 private static String randomWord(Random random, int length) { in randomWord() argument 31 int base = random.nextInt(2) == 0 ? 'A' : 'a'; in randomWord() 32 result += (char)(random.nextInt(26) + base); in randomWord() 43 Random random = new Random(0); in buildSimpleStringList() local 45 strings[i] = randomWord(random, stringLength); in buildSimpleStringList() 72 Random random = new Random(0); in buildParagraphListWithHitPercentage() local 79 if (random.nextInt(100) < hitPercentage) { in buildParagraphListWithHitPercentage() 81 result += CACHE_HIT_STRINGS[random.nextInt(CACHE_HIT_STRINGS.length)]; in buildParagraphListWithHitPercentage() 85 length += random.nextInt(PARAGRAPH_MISS_MAX_LENGTH - PARAGRAPH_MISS_MIN_LENGTH); in buildParagraphListWithHitPercentage() 87 result += randomWord(random, length); in buildParagraphListWithHitPercentage()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GlyphCacheActivity.java | 56 textview.setTextSize(6 + (int) (Math.random() * 5) * 10); in createTextView() 57 textview.setTextColor(0xff << 24 | (int) (Math.random() * 255) << 16 | in createTextView() 58 (int) (Math.random() * 255) << 8 | (int) (Math.random() * 255) << 16); in createTextView() 61 int numChars = 5 + (int) (Math.random() * 10); in createTextView() 71 sb.append(mCharacterSet.charAt((int)(Math.random() * mCharacterSet.length()))); in createString()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | VerifierDeviceIdentityTest.java | 154 MockRandom random = new MockRandom(); in testVerifierDeviceIdentity_Generate_MinValue() local 155 random.setNextLong(Long.MIN_VALUE); in testVerifierDeviceIdentity_Generate_MinValue() 156 VerifierDeviceIdentity id2 = VerifierDeviceIdentity.generate(random); in testVerifierDeviceIdentity_Generate_MinValue() 165 MockRandom random = new MockRandom(); in testVerifierDeviceIdentity_Generate_Random() local 166 random.setNextLong(TEST_1); in testVerifierDeviceIdentity_Generate_Random() 167 VerifierDeviceIdentity id2 = VerifierDeviceIdentity.generate(random); in testVerifierDeviceIdentity_Generate_Random()
|
/frameworks/support/core-utils/tests/java/android/support/v4/app/ |
D | FrameMetricsActivity.java | 49 mLayout.setBackgroundColor(Color.rgb((int) (255 * Math.random()), in invalidate() 50 (int) (255 * Math.random()), (int) (255 * Math.random()))); in invalidate()
|
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/ |
D | AdapterHelperTest.java | 844 Random random = new Random(System.nanoTime()); in testRandom() local 848 randomTest(random, Math.max(40, 10 + nextInt(random, i))); in testRandom() 856 public void randomTest(Random random, int opCount) { in randomTest() argument 862 final int start = nextInt(random, count - 1); in randomTest() 863 final int layoutCount = Math.max(1, nextInt(random, count - start)); in randomTest() 867 final int op = nextInt(random, 5); in randomTest() 871 int s = nextInt(random, mTestAdapter.mItems.size() - 1); in randomTest() 872 int len = Math.max(1, nextInt(random, mTestAdapter.mItems.size() - s)); in randomTest() 878 nextInt(random, mTestAdapter.mItems.size()); in randomTest() 879 add(s, nextInt(random, 50)); in randomTest() [all …]
|
D | OpReorderTest.java | 52 static Random random = new Random(System.nanoTime()); field in OpReorderTest 182 randOp(nextInt(random, nextInt(random, 4))); in testRandom() 252 int s = nextInt(random, updatedItemCount - 1); in randOp() 253 int len = Math.max(1, nextInt(random, updatedItemCount - s)); in randOp() 258 int s = updatedItemCount == 0 ? 0 : nextInt(random, updatedItemCount); in randOp() 259 add(s, nextInt(random, 50)); in randOp() 263 int from = nextInt(random, updatedItemCount); in randOp() 266 to = nextInt(random, updatedItemCount); in randOp() 273 s = nextInt(random, updatedItemCount - 1); in randOp() 274 int len = Math.max(1, nextInt(random, updatedItemCount - s)); in randOp() [all …]
|
/frameworks/compile/mclinker/lib/Support/Windows/ |
D | System.inc | 39 /// random - generate a random number. 44 /// srandom - set the initial seed value for future calls to random().
|
/frameworks/compile/mclinker/lib/Support/Unix/ |
D | System.inc | 69 /// random - generate a random number. 71 return ::random(); 74 /// srandom - set the initial seed value for future calls to random().
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | AndroidKeyStoreKeyGeneratorSpi.java | 52 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) in engineInit() argument 54 super.engineInit(params, random); in engineInit() 139 protected void engineInit(SecureRandom random) { in engineInit() argument 145 protected void engineInit(int keySize, SecureRandom random) { in engineInit() argument 151 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) in engineInit() argument 166 mRng = random; in engineInit()
|
D | AndroidKeyStoreCipherSpiBase.java | 100 protected final void engineInit(int opmode, Key key, SecureRandom random) in engineInit() argument 106 init(opmode, key, random); in engineInit() 123 SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit() argument 128 init(opmode, key, random); in engineInit() 141 SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit() argument 146 init(opmode, key, random); in engineInit() 157 private void init(int opmode, Key key, SecureRandom random) throws InvalidKeyException { in init() argument 174 mRng = random; in init()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | IpPrefixTest.java | 246 Random random = new Random(); in testHashCode() local 249 if (random.nextBoolean()) { in testHashCode() 252 random.nextBytes(b); in testHashCode() 253 p = new IpPrefix(b, random.nextInt(33)); in testHashCode() 257 random.nextBytes(b); in testHashCode() 258 p = new IpPrefix(b, random.nextInt(129)); in testHashCode()
|
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/ |
D | SortedListTest.java | 197 Random random = new Random(System.nanoTime()); in testRandom() local 202 switch (random.nextInt(3)) { in testRandom() 211 int index = random.nextInt(mList.size()); in testRandom() 220 int index = random.nextInt(mList.size()); in testRandom() 227 newItem.data = random.nextInt(1000); in testRandom() 238 int index = random.nextInt(mList.size()); in testRandom() 240 Item newItem = new Item(item.id, random.nextInt()); in testRandom() 290 Random random = new Random(System.nanoTime()); in shuffle() local 293 int pos1 = random.nextInt(count); in shuffle() 294 int pos2 = random.nextInt(count); in shuffle() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | BitwiseStreamsTest.java | 95 Random random = new Random(); in testFive() local 101 int x = random.nextInt(); in testFive() 139 Random random = new Random(); in testExpandArray() local 145 int x = random.nextInt(); in testExpandArray()
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | LoginActivityFromResources.java | 75 applyScene(Math.random() < .5 ? mSuccessScene : mIncorrectPasswordScene); in sendMessage() 77 applyScene(Math.random() < .5 ? mSuccessScene : mUsernameTakenScene); in sendMessage()
|
D | LoginActivity.java | 89 applyScene(Math.random() < .5 ? mSuccessScene : mIncorrectPasswordScene); in sendMessage() 91 applyScene(Math.random() < .5 ? mSuccessScene : mUsernameTakenScene); in sendMessage()
|
/frameworks/av/media/libaaudio/tests/ |
D | test_block_adapter.cpp | 128 long r = random(); in TEST() 143 long r = random(); in TEST()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GpsXtraDownloader.java | 79 Random random = new Random(); in GpsXtraDownloader() local 80 mNextServerIndex = random.nextInt(count); in GpsXtraDownloader()
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | IPv6TetheringInterfaceServices.java | 294 final byte random = (byte) (new Random()).nextInt(); in getRandomNonZeroByte() 297 return (random != 0) ? random : 0x1; in getRandomNonZeroByte()
|