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.java283 private final Random mRandom; field in MediaPlayerFlakyNetworkTest.FlakyHttpServerConnection
287 mRandom = random; in FlakyHttpServerConnection()
338 float random = mRandom.nextFloat(); in createSessionOutputBuffer()
340 int sleepTimeMs = 1000 + mRandom.nextInt(5000); in createSessionOutputBuffer()
/cts/tests/tests/telephony/src/android/telephony/cts/
DMmsTest.java84 private Random mRandom; field in MmsTest
164 mRandom = new Random(); in setUp()
181 final String fileName = "send." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat"; in testSendMmsMessage()
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
DVideoEncoderDecoderTest.java105 private Random mRandom; field in VideoEncoderDecoderTest
125 mRandom = new Random(now); in setUp()
139 mRandom = null; in tearDown()
1003 int w = mRandom.nextInt(mVideoWidth); in runDecoder()
1004 int h = mRandom.nextInt(mVideoHeight); in runDecoder()
1021 int w = mRandom.nextInt(mVideoWidth); in runDecoder()
1022 int h = mRandom.nextInt(mVideoHeight); in runDecoder()
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/
DFileUtil.java41 private static final Random mRandom = new Random(0); field in FileUtil
52 int val = mRandom.nextInt(); in generateRandomData()