Home
last modified time | relevance | path

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

/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationProviderBaseTest.java61 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 …]
DLocationManagerFineTest.java134 private Random mRandom; field in LocationManagerFineTest
146 mRandom = new Random(seed); in setUp()
205 Location loc1 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation()
206 Location loc2 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation()
248 Location loc = createLocation(GPS_PROVIDER, mRandom); in testGetLastKnownLocation_AdasLocationSettings_ReturnsLocation()
299 Location loc = createLocation(GPS_PROVIDER, mRandom); in testGetLastKnownLocation_AdasLocationSettings_ReturnsNull()
331 Location loc1 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation_RemoveProvider()
340 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetCurrentLocation()
381 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetCurrentLocation_FreshOldLocation()
393 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetCurrentLocation_DirectExecutor()
[all …]
/cts/tests/location/location_coarse/src/android/location/cts/coarse/
DLocationManagerCoarseTest.java80 private Random mRandom; field in LocationManagerCoarseTest
94 mRandom = new Random(seed); in setUp()
147 Location loc = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation()
156 Location loc1 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation_FastInterval()
157 Location loc2 = createLocation(TEST_PROVIDER, mRandom); in testGetLastKnownLocation_FastInterval()
167 Location loc = createLocation(TEST_PROVIDER, mRandom); in testRequestLocationUpdates()
183 mManager.setTestProviderLocation(TEST_PROVIDER, createLocation(TEST_PROVIDER, mRandom)); in testRequestLocationUpdates()
190 Location loc = createLocation(TEST_PROVIDER, mRandom); in testRequestLocationUpdates_Passive()
207 mManager.setTestProviderLocation(TEST_PROVIDER, createLocation(TEST_PROVIDER, mRandom)); in testRequestLocationUpdates_Passive()
214 Location loc = createLocation(TEST_PROVIDER, mRandom); in testRequestLocationUpdates_PendingIntent()
/cts/tests/sensor/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/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DPlatformInspectableProcessorTest.java74 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/tests/media/player/src/android/media/player/cts/
DMediaPlayerFlakyNetworkTest.java295 private final Random mRandom; field in MediaPlayerFlakyNetworkTest.FlakyHttpServerConnection
299 mRandom = random; in FlakyHttpServerConnection()
350 float random = mRandom.nextFloat(); in createSessionOutputBuffer()
352 int sleepTimeMs = 1000 + mRandom.nextInt(5000); in createSessionOutputBuffer()
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/
DCtsRecognitionService.java55 private final Random mRandom = new Random(); field in CtsRecognitionService
126 mRandom.nextBytes(buffer); in maybeRespond()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DMmsTest.java95 private Random mRandom; field in MmsTest
174 mRandom = new Random(); in setUp()
212 final String fileName = "send." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat"; in sendMmsMessage()
381 final String fileName = "download." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat"; in downloadMultimediaMessage()
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/
DNativeMidiEchoTest.java61 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/filesystem/src/android/filesystem/cts/
DFileUtil.java42 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/
DVideoEncoderDecoderTest.java127 private Random mRandom; field in VideoEncoderDecoderTest
168 mRandom = new Random(now); in setUp()
181 mRandom = null; in tearDown()
1234 int w = mRandom.nextInt(mVideoWidth); in runDecoder()
1235 int h = mRandom.nextInt(mVideoHeight); in runDecoder()
1252 int w = mRandom.nextInt(mVideoWidth); in runDecoder()
1253 int h = mRandom.nextInt(mVideoHeight); in runDecoder()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInputTests.java103 private final Random mRandom = new Random(1); field in WindowInputTests
196 int randomX = mRandom.nextInt(bounds.right - bounds.left) + bounds.left; in selectRandomLocationInWindow()
197 int randomY = mRandom.nextInt(bounds.bottom - bounds.top) + bounds.top; in selectRandomLocationInWindow()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DUsbDeviceTestActivity.java1223 private final Random mRandom; field in UsbDeviceTestActivity.Recycler
1228 mRandom = new Random(); in Recycler()
1238 if (mRandom.nextBoolean()) { in recycle()