Searched refs:mRandom (Results 1 – 5 of 5) sorted by relevance
557 private Random mRandom; field in SensorManagerStaticTest.TestDataGenerator560 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 …]
274 private final Random mRandom; field in MediaPlayerFlakyNetworkTest.FlakyHttpServerConnection278 mRandom = random; in FlakyHttpServerConnection()329 float random = mRandom.nextFloat(); in createSessionOutputBuffer()331 int sleepTimeMs = 1000 + mRandom.nextInt(5000); in createSessionOutputBuffer()
85 private Random mRandom; field in MmsTest166 mRandom = new Random(); in setUp()195 final String fileName = "send." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat"; in testSendMmsMessage()
42 private static final Random mRandom = new Random(0); field in FileUtil53 int val = mRandom.nextInt(); in generateRandomData()
123 private Random mRandom; field in VideoEncoderDecoderTest150 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()