/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/ |
D | PlatformInspectableProcessorTest.java | 74 private Random mRandom; field in PlatformInspectableProcessorTest 80 mRandom = new Random(); in setup() 100 IntPropertyTest node = new IntPropertyTest(mRandom); in testMapAndReadInt() 113 IntPropertyTest node = new IntPropertyTest(mRandom); in testUninitializedPropertyMap() 132 NamedPropertyTest node = new NamedPropertyTest(mRandom); in testNamedProperty() 193 InferredPropertyNameTest node = new InferredPropertyNameTest(mRandom); in testInferredPropertyName() 229 InferredBooleanNameTest node = new InferredBooleanNameTest(mRandom); in testInferredBooleanName() 268 ColorTest node = new ColorTest(mRandom); in testColorTypeInference() 308 ValueTypeTest node = new ValueTypeTest(mRandom); in testValueTypeEquals() 382 PrimitivePropertiesTest node = new PrimitivePropertiesTest(mRandom); in testPrimitiveProperties() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorManagerStaticTest.java | 557 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/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInputTests.java | 59 private final Random mRandom = new Random(); field in WindowInputTests 121 int randomX = mRandom.nextInt(bounds.right - bounds.left) + bounds.left; in selectRandomLocationInWindow() 122 int randomY = mRandom.nextInt(bounds.bottom - bounds.top) + bounds.top; in selectRandomLocationInWindow()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerFlakyNetworkTest.java | 279 private final Random mRandom; field in MediaPlayerFlakyNetworkTest.FlakyHttpServerConnection 283 mRandom = random; in FlakyHttpServerConnection() 334 float random = mRandom.nextFloat(); in createSessionOutputBuffer() 336 int sleepTimeMs = 1000 + mRandom.nextInt(5000); in createSessionOutputBuffer()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | EmergencyCallMessageTest.java | 43 private Random mRandom; field in EmergencyCallMessageTest 51 mRandom = new Random(System.currentTimeMillis()); in setUp()
|
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/ |
D | NativeMidiEchoTest.java | 62 private Random mRandom = new Random(1972941337); field in NativeMidiEchoTest 92 buffer[index] = (byte)(mRandom.nextInt() & 0xFF); in generateRandomMessage() 101 messageLen = (int)(mRandom.nextFloat() * (maxMessageLen-1)) + 1; in generateRandomBufers() 103 timestamps[buffIndex] = mRandom.nextLong(); in generateRandomBufers()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | MmsTest.java | 92 private Random mRandom; field in MmsTest 171 mRandom = new Random(); in setUp() 201 final String fileName = "send." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat"; in testSendMmsMessage()
|
/cts/tests/filesystem/src/android/filesystem/cts/ |
D | FileUtil.java | 42 private static final Random mRandom = new Random(0); field in FileUtil 55 int val = mRandom.nextInt(); in generateRandomData()
|
/cts/tests/video/src/android/video/cts/ |
D | VideoEncoderDecoderTest.java | 125 private Random mRandom; field in VideoEncoderDecoderTest 179 mRandom = new Random(now); in setUp() 192 mRandom = null; in tearDown() 1226 int w = mRandom.nextInt(mVideoWidth); in runDecoder() 1227 int h = mRandom.nextInt(mVideoHeight); in runDecoder() 1244 int w = mRandom.nextInt(mVideoWidth); in runDecoder() 1245 int h = mRandom.nextInt(mVideoHeight); in runDecoder()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/ |
D | UsbDeviceTestActivity.java | 1220 private final Random mRandom; field in UsbDeviceTestActivity.Recycler 1225 mRandom = new Random(); in Recycler() 1235 if (mRandom.nextBoolean()) { in recycle()
|