Home
last modified time | relevance | path

Searched refs:mRandom (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/hardware/src/android/hardware/cts/
DSensorManagerStaticTest.java557 private Random mRandom; field in SensorManagerStaticTest.TestDataGenerator
560 mRandom = new Random(seed); in TestDataGenerator()
564 mRandom = new Random(DEFAULT_SEED); in TestDataGenerator()
570 rotv[0] = (mRandom.nextFloat()-0.5f) * 2.0f * FLOAT_PI; // azimuth(yaw) -pi ~ pi in nextRotationAngles()
571 rotv[1] = (mRandom.nextFloat()-0.5f) * FLOAT_PI; // pitch -pi/2 ~ +pi/2 in nextRotationAngles()
572 rotv[2] = (mRandom.nextFloat()-0.5f) * 2.f * FLOAT_PI; // roll -pi ~ +pi in nextRotationAngles()
578 aa[0] = (mRandom.nextFloat() - 0.5f) * 2.f; in nextRotationAxisAngle()
579 aa[1] = (mRandom.nextFloat() - 0.5f ) * 2.f * (float) Math.sqrt(1.f - aa[0] * aa[0]); in nextRotationAxisAngle()
580 aa[2] = (mRandom.nextBoolean() ? 1.f : -1.f) * in nextRotationAxisAngle()
582 aa[3] = mRandom.nextFloat() * FLOAT_PI; in nextRotationAxisAngle()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerFlakyNetworkTest.java274 private final Random mRandom; field in MediaPlayerFlakyNetworkTest.FlakyHttpServerConnection
278 mRandom = random; in FlakyHttpServerConnection()
329 float random = mRandom.nextFloat(); in createSessionOutputBuffer()
331 int sleepTimeMs = 1000 + mRandom.nextInt(5000); in createSessionOutputBuffer()
/cts/tests/tests/telephony/src/android/telephony/cts/
DMmsTest.java85 private Random mRandom; field in MmsTest
166 mRandom = new Random(); in setUp()
195 final String fileName = "send." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat"; in testSendMmsMessage()
/cts/tests/filesystem/src/android/filesystem/cts/
DFileUtil.java42 private static final Random mRandom = new Random(0); field in FileUtil
53 int val = mRandom.nextInt(); in generateRandomData()
/cts/tests/video/src/android/video/cts/
DVideoEncoderDecoderTest.java123 private Random mRandom; field in VideoEncoderDecoderTest
150 mRandom = new Random(now); in setUp()
163 mRandom = null; in tearDown()
1099 int w = mRandom.nextInt(mVideoWidth); in runDecoder()
1100 int h = mRandom.nextInt(mVideoHeight); in runDecoder()
1117 int w = mRandom.nextInt(mVideoWidth); in runDecoder()
1118 int h = mRandom.nextInt(mVideoHeight); in runDecoder()