/external/chromium_org/chrome/common/extensions/docs/server2/test_data/github_file_system/test_owner/repo/unzipped_repo/src/ |
hello.notpy | 3 import random namespace 11 print 'Hello, %s!' % random.choice(argv[1:])
|
/external/arduino/hardware/arduino/cores/arduino/ |
WMath.cpp | 37 long random(long howbig) function 42 return random() % howbig; 45 long random(long howsmall, long howbig) function 51 return random(diff) + howsmall;
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
helpers_unittest.cc | 52 std::string random = CreateRandomString(256); local 53 EXPECT_EQ(256U, random.size()); 56 EXPECT_NE(random, random2);
|
/external/guava/guava-tests/test/com/google/common/io/ |
RandomAmountInputStream.java | 22 import java.util.Random; 24 /** Returns a random portion of the requested bytes on each call. */ 26 private final Random random; field in class:RandomAmountInputStream 28 public RandomAmountInputStream(InputStream in, Random random) { 30 this.random = random; 34 return super.read(b, off, random.nextInt(len) + 1);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
CipherKeyGenerator.java | 10 protected SecureRandom random; field in class:CipherKeyGenerator 21 this.random = param.getRandom(); 34 random.nextBytes(key);
|
KeyGenerationParameters.java | 10 private SecureRandom random; field in class:KeyGenerationParameters 17 * @param random the random byte source. 21 SecureRandom random, 24 this.random = random; 29 * return the random source associated with this 32 * @return the generators random source. 36 return random;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
ParametersWithRandom.java | 10 private SecureRandom random; field in class:ParametersWithRandom 15 SecureRandom random) 17 this.random = random; 29 return random;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
BaseAlgorithmParameterGenerator.java | 9 protected SecureRandom random; field in class:BaseAlgorithmParameterGenerator 14 SecureRandom random) 17 this.random = random;
|
/external/chromium_org/build/android/pylib/monkey/ |
test_runner.py | 8 import random namespace 37 '-s %d' % (self._options.seed or random.randint(1, 100)),
|
/external/chromium_org/third_party/skia/src/animator/ |
SkDisplayRandom.cpp | 14 SK_PROPERTY(random), 24 SK_MEMBER_DYNAMIC_PROPERTY(random, Float), 47 case SK_PROPERTY(random): { 48 SkScalar random = fRandom.nextUScalar1(); local 49 SkScalar relativeT = SkUnitCubicInterp(random, SK_Scalar1 - blend, 0, 0, SK_Scalar1 - blend);
|
/external/chromium_org/tools/perf/metrics/ |
statistics_unittest.py | 6 import random namespace 55 """Tests NormalizeSamples and Discrepancy with random samples. 57 Generates 10 sets of 10 random samples, computes the discrepancy, 62 random.seed(1234567) 69 clock += random.random()
|
rendering_stats_unittest.py | 5 import random namespace 13 """A mock timer class which can generate random durations. 15 An instance of this class is used as a global timer to generate random 26 delta = random.uniform(low, high) 46 """ Adds a random main thread rendering stats event. 86 """ Adds a random impl thread rendering stats event.
|
/external/skia/src/animator/ |
SkDisplayRandom.cpp | 14 SK_PROPERTY(random), 24 SK_MEMBER_DYNAMIC_PROPERTY(random, Float), 47 case SK_PROPERTY(random): { 48 SkScalar random = fRandom.nextUScalar1(); local 49 SkScalar relativeT = SkUnitCubicInterp(random, SK_Scalar1 - blend, 0, 0, SK_Scalar1 - blend);
|
/frameworks/base/tests/CoreTests/android/core/ |
InetAddrTest.java | 23 import java.util.Random; 84 Random random = new Random(); local 87 int index = random.nextInt(HOSTS.length);
|
/frameworks/volley/tests/src/com/android/volley/utils/ |
CacheTestUtils.java | 7 import java.util.Random; 12 * Makes a random cache entry. 13 * @param data Data to use, or null to use random data 19 Random random = new Random(); local 24 entry.data = new byte[random.nextInt(1024)]; 26 entry.etag = String.valueOf(random.nextLong()); 27 entry.serverDate = random.nextLong();
|
/external/guava/guava-tests/test/com/google/common/hash/ |
BloomFilterTest.java | 10 import java.util.Random; 50 // some random values 51 Random random = new Random(0); local 53 assertTrue(BloomFilter.optimalNumOfBits(random.nextInt(1 << 16), random.nextDouble()) >= 0);
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
GetAllocationTest.java | 23 import java.util.Random; 28 Random random = new Random(0x827492ab); local 31 tempArray[i] = random.nextInt();
|
/developers/samples/android/common/src/java/com/example/android/common/dummydata/ |
Cheeses.java | 21 import java.util.Random; 169 * Return a list of random cheeses. 174 Random random = new Random(); local 181 items.add(CHEESES[random.nextInt(CHEESES.length)]);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
DHParametersGenerator.java | 12 private SecureRandom random; field in class:DHParametersGenerator 21 * @param random a source of randomness 26 SecureRandom random) 30 this.random = random; 44 BigInteger[] safePrimes = DHParametersHelper.generateSafePrimes(size, certainty, random); 48 BigInteger g = DHParametersHelper.selectGenerator(p, q, random);
|
ECKeyPairGenerator.java | 20 SecureRandom random; field in class:ECKeyPairGenerator 27 this.random = ecP.getRandom(); 43 d = new BigInteger(nBitLength, random);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/ |
ISO10126d2Padding.java | 13 SecureRandom random; field in class:ISO10126d2Padding 18 * @param random a SecureRandom if available. 20 public void init(SecureRandom random) 23 if (random != null) 25 this.random = random; 29 this.random = new SecureRandom(); 55 in[inOff] = (byte)random.nextInt();
|
X923Padding.java | 9 * passed in random padding is assumed, otherwise padding with zeros is used. 14 SecureRandom random = null; field in class:X923Padding 19 * @param random a SecureRandom if one is available. 21 public void init(SecureRandom random) 24 this.random = random; 49 if (random == null) 55 in[inOff] = (byte)random.nextInt();
|
/external/chromium_org/chrome/test/pyautolib/ |
chrome_driver_factory.py | 8 import random namespace 49 channel_id = 'testing' + hex(random.getrandbits(20 * 4))[2:-1]
|
/external/chromium_org/net/tools/quic/ |
quic_epoll_connection_helper_test.cc | 52 QuicRandom* random = helper_.GetRandomGenerator(); local 53 EXPECT_EQ(QuicRandom::GetInstance(), random); local
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
KeyGeneratorThread.java | 53 SecureRandom random = new SecureRandom(); local 54 kg.init(random); 58 random = new SecureRandom(); 59 kg.init(random);
|