/cts/tests/location/location_fine/src/android/location/cts/fine/ |
D | LocationProviderBaseTest.java | 61 private Random mRandom; field in LocationProviderBaseTest 75 mRandom = new Random(seed); in setUp() 107 Location location = createLocation("test", mRandom); in testReportLocation() 116 bundle.putParcelable(EXTRA_NO_GPS_LOCATION, createLocation("test", mRandom)); in testReportLocation_stripExtras() 118 bundle.putParcelable("coarseLocation", createLocation("test", mRandom)); in testReportLocation_stripExtras() 119 Location location = createLocation("test", mRandom); in testReportLocation_stripExtras() 131 createLocation("test", mRandom), in testReportLocations() 132 createLocation("test", mRandom)); in testReportLocations() 141 bundle.putParcelable(EXTRA_NO_GPS_LOCATION, createLocation("test", mRandom)); in testReportLocations_stripExtras() 143 bundle.putParcelable("coarseLocation", createLocation("test", mRandom)); in testReportLocations_stripExtras() [all …]
|
D | LocationManagerFineTest.java | 125 private Random mRandom; field in LocationManagerFineTest 137 mRandom = new Random(seed); in setUp() 197 Location loc1 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation() 198 Location loc2 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation() 229 Location loc = createLocation(GPS_PROVIDER, mRandom); in testGetLastKnownLocation_AdasLocationSettingsOn() 277 Location loc = createLocation(GPS_PROVIDER, mRandom); in testGetLastKnownLocation_AdasLocationSettingsOff() 309 Location loc1 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation_RemoveProvider() 324 mManager.setTestProviderLocation(TEST_PROVIDER, createLocation(TEST_PROVIDER, mRandom)); in testGetLastKnownLocation_NoteOp() 339 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetCurrentLocation() 382 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetCurrentLocation_FreshOldLocation() [all …]
|
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/sources/ |
D | NoiseAudioSource.java | 26 private Random mRandom = new Random(); field in NoiseAudioSource 40 buffer[index] = (mRandom.nextFloat() * 2.0f) - 1.0f; in pull()
|
/cts/tests/location/location_coarse/src/android/location/cts/coarse/ |
D | LocationManagerCoarseTest.java | 81 private Random mRandom; field in LocationManagerCoarseTest 95 mRandom = new Random(seed); in setUp() 149 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation() 159 Location loc1 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation_FastInterval() 160 Location loc2 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation_FastInterval() 171 Location loc = createLocation(TEST_PROVIDER, mRandom); in testRequestLocationUpdates() 187 mManager.setTestProviderLocation(TEST_PROVIDER, createLocation(TEST_PROVIDER, mRandom)); in testRequestLocationUpdates() 195 Location loc = createLocation(TEST_PROVIDER, mRandom); in testRequestLocationUpdates_Passive() 212 mManager.setTestProviderLocation(TEST_PROVIDER, createLocation(TEST_PROVIDER, mRandom)); in testRequestLocationUpdates_Passive() 220 Location loc = createLocation(TEST_PROVIDER, mRandom); in testRequestLocationUpdates_PendingIntent()
|
/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/tests/media/player/src/android/media/player/cts/ |
D | MediaPlayerFlakyNetworkTest.java | 297 private final Random mRandom; field in MediaPlayerFlakyNetworkTest.FlakyHttpServerConnection 301 mRandom = random; in FlakyHttpServerConnection() 352 float random = mRandom.nextFloat(); in createSessionOutputBuffer() 354 int sleepTimeMs = 1000 + mRandom.nextInt(5000); in createSessionOutputBuffer()
|
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/ |
D | NativeMidiEchoTest.java | 61 private Random mRandom = new Random(1972941337); field in NativeMidiEchoTest 91 buffer[index] = (byte)(mRandom.nextInt() & 0xFF); in generateRandomMessage() 100 messageLen = (int)(mRandom.nextFloat() * (maxMessageLen-1)) + 1; in generateRandomBufers() 102 timestamps[buffIndex] = Math.abs(mRandom.nextLong()); in generateRandomBufers()
|
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/ |
D | CtsRecognitionService.java | 85 private final Random mRandom = new Random(); field in CtsRecognitionService 226 mRandom.nextBytes(buffer); in processInstructedCallback()
|
D | AbstractRecognitionServiceTest.java | 107 private final Random mRandom = new Random(); field in AbstractRecognitionServiceTest 413 : mRandom.nextInt(remainingRecognizerIndices.size())); in executeSequenceTest()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | MmsTest.java | 116 private Random mRandom; field in MmsTest 250 mRandom = new Random(); in setUp() 379 final String fileName = "send." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat"; in sendMmsMessage() 554 final String fileName = "download." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat"; in downloadMultimediaMessage()
|
/cts/tests/video/src/android/video/cts/ |
D | VideoEncoderDecoderTest.java | 144 private Random mRandom; field in VideoEncoderDecoderTest 190 mRandom = new Random(now); in setUp() 202 mRandom = null; in tearDown() 936 int w = mRandom.nextInt(mVideoWidth); in runDecoder() 937 int h = mRandom.nextInt(mVideoHeight); in runDecoder() 954 int w = mRandom.nextInt(mVideoWidth); in runDecoder() 955 int h = mRandom.nextInt(mVideoHeight); in runDecoder()
|
/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/framework/base/windowmanager/src/android/server/wm/input/ |
D | WindowInputTests.java | 113 private final Random mRandom = new Random(1); field in WindowInputTests 270 int randomX = mRandom.nextInt(bounds.right - bounds.left) + bounds.left; in selectRandomLocationInWindow() 271 int randomY = mRandom.nextInt(bounds.bottom - bounds.top) + bounds.top; in selectRandomLocationInWindow()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/ |
D | UsbDeviceTestActivity.java | 1226 private final Random mRandom; field in UsbDeviceTestActivity.Recycler 1231 mRandom = new Random(); in Recycler() 1241 if (mRandom.nextBoolean()) { in recycle()
|