/packages/apps/Nfc/src/com/android/nfc/ |
FireflyRenderThread.java | 351 mX = (float) (Math.random() * mDisplayWidth) * 4 - 2 * mDisplayWidth; 352 mY = (float) (Math.random() * mDisplayHeight) * 4 - 2 * mDisplayHeight; 353 mZ0 = mZ = (float) (Math.random()) * 2 - 1;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
PathEffects.java | 104 p.lineTo(i*20, (float)Math.random() * 35);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List8.java | 126 int whichPhoto = (int)Math.round(Math.random() * (mPhotoPool.length - 1));
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JDKKeyStore.java | 90 protected SecureRandom random = new SecureRandom(); field in class:JDKKeyStore 138 random.setSeed(System.currentTimeMillis()); 139 random.nextBytes(salt); 141 int iterationCount = MIN_ITERATIONS + (random.nextInt() & 0x3ff); 484 this.random = rand; 876 int iterationCount = MIN_ITERATIONS + (random.nextInt() & 0x3ff); 878 random.nextBytes(salt); 1007 int iterationCount = MIN_ITERATIONS + (random.nextInt() & 0x3ff); 1009 random.nextBytes(salt);
|
/external/chromium/chrome/browser/importer/ |
toolbar_importer.cc | 193 // To access it we call the url below with a random number replacing the 197 // Random number construction. 198 int random = base::RandInt(0, std::numeric_limits<int>::max()); local 199 std::string random_string = base::UintToString(random); 229 // the xml blob. We must tag the connection string with a random number. 231 int random = base::RandInt(0, std::numeric_limits<int>::max()); local 232 std::string random_string = base::UintToString(random);
|
/external/v8/src/ |
v8.cc | 105 return random(); 117 // Random number generator using George Marsaglia's MWC algorithm. 119 // Initialize seed using the system random(). If one of the seeds 120 // should ever become zero again, or if random() returns zero, we 134 uint32_t V8::Random(Isolate* isolate) { 171 uint64_t random_bits = Random(isolate); 176 // Convert 32 random bits to 0.(32 random bits) in a double 178 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)).
|
/external/webkit/Source/WebCore/platform/graphics/filters/ |
FETurbulence.cpp | 160 // Compute pseudo random number. 161 inline long FETurbulence::PaintingData::random() function in class:WebCore::FETurbulence::PaintingData 195 gradient[0] = static_cast<float>((paintingData.random() % (2 * s_blockSize)) - s_blockSize) / s_blockSize; 196 gradient[1] = static_cast<float>((paintingData.random() % (2 * s_blockSize)) - s_blockSize) / s_blockSize; 204 int j = paintingData.random() % s_blockSize;
|
/frameworks/base/tests/CoreTests/android/core/ |
MiscRegressionTest.java | 34 import java.util.Random; 368 Random random = new Random(42); // Seed makes test reproducible local 377 // Totally random content 378 random.nextBytes(input); 380 // Random contents with longer repetitions 383 byte what = (byte)random.nextInt(256); 384 int howMany = random.nextInt(32);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
MimeMultipart.java | 62 sb.append(Integer.toString((int)(Math.random() * 35), 36));
|
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/ |
FallRS.java | 112 final int x = width / 4 + (int)(Math.random() * (width / 2)); 113 final int y = worldState.height / 4 + (int)(Math.random() * (worldState.height / 2)); 224 mWorldState.skySpeedX = random(-0.001f, 0.001f); 225 mWorldState.skySpeedY = random(0.00008f, 0.0002f);
|
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ |
MappedByteBufferTest.java | 154 RandomAccessFile random = new RandomAccessFile(tmpFile, "rw"); local 155 FileChannel fileChannelRW = random.getChannel();
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
AlgorithmParameterGenerator1Test.java | 324 * <code>init(AlgorithmParameterSpec param, SecureRandom random<code> 333 SecureRandom random = new SecureRandom(); local 340 apgs[i].init(aps, random);
|
/external/apache-http/src/org/apache/http/conn/ssl/ |
SSLSocketFactory.java | 176 final SecureRandom random, 193 this.sslcontext.init(keymanagers, trustmanagers, random);
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/ |
KeyAgreement.java | 223 SecureRandom random) 231 SecureRandom random)
|
/external/icu4c/test/intltest/ |
intltest.h | 162 * Returns a uniform random value x, with 0.0 <= x < 1.0. Use 170 static float random(int32_t* seedp); 175 static float random();
|
/external/openssl/crypto/rand/ |
rand_unix.c | 148 /* The VOS random() function starts from a static seed so its 149 initial value is predictable. If random() returns the 158 rnd = random (); 170 rnd = random(); 218 /* Use a random entropy pool device. Linux, FreeBSD and OpenBSD 219 * have this. Use /dev/urandom if you can as /dev/random may block 220 * if it runs out of random entries. */ 358 /* put in some default random data, we need more than just this */
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
BitwiseStreamsTest.java | 28 import java.util.Random; 95 Random random = new Random(); local 101 int x = random.nextInt();
|
/libcore/luni/src/main/java/java/security/ |
Signature.java | 291 * @param random 296 public final void initSign(PrivateKey privateKey, SecureRandom random) 298 engineInitSign(privateKey, random);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
AlgorithmParameterGenerator1Test.java | 323 * <code>init(AlgorithmParameterSpec param, SecureRandom random<code> 332 SecureRandom random = new SecureRandom(); local 346 apgs[i].init(aps, random);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
Screensaver.java | 101 final int nextx = (int) (Math.random() * xrange); 102 final int nexty = (int) (Math.random() * yrange);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
SSLSocketFactory.java | 182 final SecureRandom random, 199 sslcontext.init(keymanagers, trustmanagers, random);
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
LocalPhotoSource.java | 40 import java.util.Random; 106 Random random = new Random(); local 110 int row = (int)(-Math.log(random.nextDouble()) * total / 2);
|
/external/quake/quake/src/QW/progs/ |
weapons.qc | 29 return 2*(random() - 0.5);
82 vel = normalize(vel + v_up*(random()- 0.5) + v_right*(random()- 0.5));
108 missile.velocity_z = missile.velocity_z + 250 + 50*random();
358 // if (random() < 0.1)
385 damg = 100 + random()*20;
536 if (random() <= 0.5)
1012 r = random();
|
/external/chromium/testing/gtest/src/ |
gtest-internal-inl.h | 99 // A valid random seed must be in [1, kMaxRandomSeed]. 122 // Returns a random seed in range [1, kMaxRandomSeed] based on the 137 // Returns the first valid random seed after 'seed'. The behavior is 142 << "Invalid random seed " << seed << " - must be in [1, " 295 void ShuffleRange(internal::Random* random, int begin, int end, 309 const int selected = begin + random->Generate(range_width); 316 inline void Shuffle(internal::Random* random, std::vector<E>* v) { 317 ShuffleRange(random, 0, static_cast<int>(v->size()), v) 767 internal::Random* random() { return &random_; } function in class:testing::internal::UnitTestImpl [all...] |
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
gtest-internal-inl.h | 99 // A valid random seed must be in [1, kMaxRandomSeed]. 122 // Returns a random seed in range [1, kMaxRandomSeed] based on the 137 // Returns the first valid random seed after 'seed'. The behavior is 142 << "Invalid random seed " << seed << " - must be in [1, " 302 void ShuffleRange(internal::Random* random, int begin, int end, 316 const int selected = begin + random->Generate(range_width); 323 inline void Shuffle(internal::Random* random, std::vector<E>* v) { 324 ShuffleRange(random, 0, static_cast<int>(v->size()), v) 774 internal::Random* random() { return &random_; } function in class:testing::internal::UnitTestImpl [all...] |