Home
last modified time | relevance | path

Searched refs:r1 (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DColorSpaceTest.java470 float[] r1 = cs.toXyz(source[0], source[1], source[2]); in testRGBtoXYZ() local
471 assertNotNull(r1); in testRGBtoXYZ()
472 assertEquals(3, r1.length); in testRGBtoXYZ()
473 assertArrayNotEquals(source, r1, 1e-5f); in testRGBtoXYZ()
474 assertArrayEquals(expected, r1, 1e-3f); in testRGBtoXYZ()
479 assertArrayEquals(r1, r3, 1e-5f); in testRGBtoXYZ()
489 float[] r1 = cs.fromXyz(source[0], source[1], source[2]); in testXYZtoRGB() local
490 assertNotNull(r1); in testXYZtoRGB()
491 assertEquals(3, r1.length); in testXYZtoRGB()
492 assertArrayNotEquals(source, r1, 1e-5f); in testXYZtoRGB()
[all …]
DMatrixTest.java495 RectF r1 = new RectF(); in testSetRectToRect() local
496 r1.set(1f, 2f, 3f, 3f); in testSetRectToRect()
498 r1.set(10f, 20f, 30f, 30f); in testSetRectToRect()
499 assertTrue(mMatrix.setRectToRect(r1, r2, ScaleToFit.CENTER)); in testSetRectToRect()
501 mMatrix.setRectToRect(r1, r2, ScaleToFit.END); in testSetRectToRect()
504 mMatrix.setRectToRect(r1, r2, ScaleToFit.FILL); in testSetRectToRect()
506 mMatrix.setRectToRect(r1, r2, ScaleToFit.START); in testSetRectToRect()
509 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.CENTER)); in testSetRectToRect()
512 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.FILL)); in testSetRectToRect()
514 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.START)); in testSetRectToRect()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/monitor_enter/
DTest_monitor_enter.java35 Runnable r1 = new TestRunnable(t1); in testN1() local
37 Thread tr1 = new Thread(r1); in testN1()
55 Runnable r1 = new TestRunnable2(t1, 10); in testN2() local
57 Thread tr1 = new Thread(r1); in testN2()
/cts/tests/tests/os/src/android/os/cts/
DHandlerTest.java239 MockRunnable r1 = new MockRunnable(); in testRemoveCallbacksWithObject() local
241 mHandler.postAtTime(r1, token, SystemClock.uptimeMillis() + RUNTIME); in testRemoveCallbacksWithObject()
243 mHandler.removeCallbacks(r1, token); in testRemoveCallbacksWithObject()
245 assertFalse(r1.isRun()); in testRemoveCallbacksWithObject()
248 r1 = new MockRunnable(); in testRemoveCallbacksWithObject()
251 mHandler.postAtTime(r1, token, SystemClock.uptimeMillis() + RUNTIME); in testRemoveCallbacksWithObject()
255 assertTrue(r1.isRun()); in testRemoveCallbacksWithObject()
258 mHandler.postAtTime(r1, token, SystemClock.uptimeMillis() + RUNTIME); in testRemoveCallbacksWithObject()
261 mHandler.removeCallbacks(r1, wrongToken); in testRemoveCallbacksWithObject()
263 assertTrue(r1.isRun()); in testRemoveCallbacksWithObject()
/cts/tests/tests/database/src/android/database/cts/
DCursorWindowTest.java72 int r1 = Integer.parseInt(s); in testWriteCursorToWindow() local
73 assertEquals(r2, r1); in testWriteCursorToWindow()
86 int r1 = Integer.parseInt(s); in testWriteCursorToWindow() local
87 assertEquals(r2, r1); in testWriteCursorToWindow()
/cts/tests/tests/widget/src/android/widget/cts/
DAbsListViewTest.java338 Rect r1 = new Rect(); in testGetFocusedRect() local
339 mListView.getFocusedRect(r1); in testGetFocusedRect()
341 assertEquals(0, r1.top); in testGetFocusedRect()
342 assertTrue(r1.bottom > 0); in testGetFocusedRect()
343 assertEquals(0, r1.left); in testGetFocusedRect()
344 assertTrue(r1.right > 0); in testGetFocusedRect()
354 assertTrue(r2.top > r1.top); in testGetFocusedRect()
355 assertEquals(r1.bottom - r1.top, r2.bottom - r2.top); in testGetFocusedRect()
356 assertEquals(r1.right, r2.right); in testGetFocusedRect()
DRemoteViewsTest.java879 float r1 = (pix1 & 0xFF0000) >> 17; in compareImages() local
886 sqr_sum += (r1 - r2) * (r1 - r2); in compareImages()
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/
DVirtualCameraUtils.java149 float r1 = ((colorA >> 16) & 0xff) / 255f; in areColorsAlmostIdentical() local
159 + (r1 - r2) * (r1 - r2) in areColorsAlmostIdentical()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java101 Rect r1 = new Rect(); in testCopyBounds() local
102 mockDrawable.copyBounds(r1); in testCopyBounds()
107 assertEquals(0, r1.bottom); in testCopyBounds()
108 assertEquals(0, r1.left); in testCopyBounds()
109 assertEquals(0, r1.right); in testCopyBounds()
110 assertEquals(0, r1.top); in testCopyBounds()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerZenTest.java2275 private void assertRulesEqual(AutomaticZenRule r1, AutomaticZenRule r2) { in assertRulesEqual() argument
2278 assertThat(r1.getConditionId()).isEqualTo(r2.getConditionId()); in assertRulesEqual()
2279 assertThat(r1.getConfigurationActivity()).isEqualTo(r2.getConfigurationActivity()); in assertRulesEqual()
2280 assertThat(r1.getInterruptionFilter()).isEqualTo(r2.getInterruptionFilter()); in assertRulesEqual()
2281 assertThat(r1.getName()).isEqualTo(r2.getName()); in assertRulesEqual()
2282 assertThat(r1.getOwner()).isEqualTo(r2.getOwner()); in assertRulesEqual()
2283 assertThat(r1.isEnabled()).isEqualTo(r2.isEnabled()); in assertRulesEqual()
2286 assertThat(r1.getDeviceEffects()).isEqualTo(r2.getDeviceEffects()); in assertRulesEqual()
2287 assertThat(doPoliciesMatchWithDefaults(r1.getZenPolicy(), r2.getZenPolicy())).isTrue(); in assertRulesEqual()
2289 assertThat(r1.getIconResId()).isEqualTo(r2.getIconResId()); in assertRulesEqual()
[all …]
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteDatabaseTest.java1709 ReaderQueryingData r1 = new ReaderQueryingData(5); in testReaderGetsOldVersionOfDataWhenWriterIsInXact() local
1710 r1.start(); in testReaderGetsOldVersionOfDataWhenWriterIsInXact()
1712 try {r1.join();} catch (Exception e) {} in testReaderGetsOldVersionOfDataWhenWriterIsInXact()
1728 ReaderQueryingData r1 = new ReaderQueryingData(5); in run() local
1729 r1.start(); in run()
1730 try {r1.join();} catch (Exception e) {} in run()
1743 r1 = new ReaderQueryingData(6); in run()
1744 r1.start(); in run()
1745 try {r1.join();} catch (Exception e) {} in run()
/cts/tests/vr/jni/
DVrExtensionsJni.cpp355 float r1 = (color1 & 0xff) / 255.0f; in LerpColor() local
359 uint32_t r8 = (r0 * (1.0f - t) + r1 * t) * 255.0f; in LerpColor()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRenderNodeTests.java370 final RenderNode r1 = new RenderNode(null); in testGetUniqueId() local
372 assertNotEquals(r1.getUniqueId(), r2.getUniqueId()); in testGetUniqueId()
374 assertTrue(usedIds.add(r1.getUniqueId())); in testGetUniqueId()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java3042 public int compare(Range<Integer> r1, Range<Integer> r2) { in getDescendingTargetFpsRanges()
3043 return r2.getUpper() - r1.getUpper(); in getDescendingTargetFpsRanges()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...