/cts/tests/tests/view/src/android/view/cts/ |
H A D | ViewOutlineProviderTest.java | 48 private void setViewLeftTopRightBottom(View view, int left, int top, int right, int bottom) { argument 51 view.setRight(right);
|
H A D | FocusFinderTest.java | 97 // Check that left/right traversal works when top/bottom borders are equal. 116 * Create a small rectangle on the border between the top left and top right buttons. 428 // like "left-to-right" ordering in well-behaved layouts 440 // RTL layout should work right-to-left 449 private void setViewBox(View view, int left, int top, int right, int bottom) { argument 452 view.setRight(right);
|
H A D | PixelCopyTest.java | 279 private Rect makeWindowRect(int left, int top, int right, int bottom) { argument 280 Rect r = new Rect(left, top, right, bottom); 389 private Rect makeWideGamutWindowRect(int left, int top, int right, int bottom) { argument 390 Rect r = new Rect(left, top, right, bottom); 419 assertEquals("Top right", Color.GREEN, bitmap.getPixel(96, 32)); 421 assertEquals("Bottom right", Color.YELLOW, bitmap.getPixel(96, 96)); 457 assertEqualsRgba16f("Top right", bitmap, 96, 32, dst, -0.87f, 1.10f, -0.43f, 1.0f); 461 assertEqualsRgba16f("Bottom right", bitmap, 96, 96, dst, 1.12f, 1.00f, -0.44f, 1.0f); 472 private Rect makeDialogRect(int left, int top, int right, int bottom) { argument 473 Rect r = new Rect(left, top, right, botto [all...] |
/cts/tests/tests/util/src/android/util/cts/ |
H A D | RangeTest.java | 155 Range<T> left, Range<T> right) { 157 " expected to be equal to right hash code for " + right, 158 left.hashCode(), right.hashCode()); 154 verifyHashCodeEquals( Range<T> left, Range<T> right) argument
|
H A D | RationalTest.java | 460 private static <T extends Comparable<? super T>> void verifyLessThan(T left, T right) { argument 461 assertTrue("Expected (LR) left " + left + " to be less than right " + right, 462 left.compareTo(right) < 0); 463 assertTrue("Expected (RL) left " + left + " to be less than right " + right, 464 right.compareTo(left) > 0); 467 private static <T extends Comparable<? super T>> void verifyGreaterThan(T left, T right) { argument 468 assertTrue("Expected (LR) left " + left + " to be greater than right " + right, 474 verifyCompareEquals(T left, T right) argument [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/ |
H A D | GLArrowSensorTestRenderer.java | 200 * @param right the right operand of the cross product 203 public static void crossProduct(float[] left, float[] right, float[] out) { argument 204 out[0] = left[1] * right[2] - left[2] * right[1]; 205 out[1] = left[2] * right[0] - left[0] * right[2]; 206 out[2] = left[0] * right[1] - left[1] * right[0]; 213 * @param right th 216 dotProduct(float[] left, float[] right) argument [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/ |
H A D | RobustnessRenderer.java | 86 protected float[] getCameraCoordinates(float left, float right, float bottom, float top) { argument 93 2 * right, 2 * bottom, 0.0f, 95 2 * right, 2 * bottom, 0.0f, 96 2 * right, 2 * top, 0.0f, 98 2 * right, 2 * top, 0.0f, 105 2 * right, 2 * top, 0.0f, 107 2 * right, 2 * bottom, 0.0f, 108 2 * right, 2 * top, 0.0f,
|
H A D | BaseRenderer.java | 131 float right = ratio; 151 right = 1.0f; 158 mCameraCoordinates = getCameraCoordinates(left, right, bottom, top); 163 Matrix.orthoM(mOrthogonalProjectionMatrix, 0, left, right, bottom, top, near, far); 164 Matrix.frustumM(mFrustrumProjectionMatrix, 0, left, right, bottom, top, near, far); 203 protected float[] getCameraCoordinates(float left, float right, float bottom, float top) { argument 212 right, top, 0.0f, 214 right, bottom, 0.0f, 215 right, top, 0.0f, 221 bottom, right, 0. [all...] |
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
H A D | AssertHelpers.java | 53 * right. 59 * @param right Right array 61 public static void assertArrayNotGreater(String message, float[] left, float[] right) { argument 62 assertEquals("Array lengths did not match", left.length, right.length); 65 String rightString = Arrays.toString(right); 70 "right = %s)", 71 message, left[i], right[i], i, leftString, rightString); 73 assertTrue(msg, left[i] <= right[i]);
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
H A D | ImeLayoutInfo.java | 97 mDisplaySize.x - mSystemWindowInset.right, 125 mDisplaySize.x - mStableInset.right, 161 static ImeLayoutInfo fromLayoutListenerCallback(View v, int left, int top, int right, argument 163 final Rect newLayout = new Rect(left, top, right, bottom);
|
/cts/tests/openglperf2/jni/primitive/fullpipeline/ |
H A D | FullPipelineRenderer.cpp | 136 float right = ratio; local 142 mProjectionMatrix = Matrix::newFrustum(left, right, bottom, top, near, far);
|
/cts/tests/openglperf2/jni/reference/scene/glowing/ |
H A D | GlowingScene.cpp | 105 float right = ratio; local 111 return Matrix::newFrustum(left, right, bottom, top, near, far);
|
/cts/tests/openglperf2/test/ |
H A D | MatrixTest.cpp | 170 float right = ratio; local 176 Matrix* m = Matrix::newFrustum(left, right, bottom, top, near, far);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
H A D | NinePatchTest.java | 227 // transparent padding of 1px on the right side 245 private void verifyBounds(Rect regionBounds, int left, int top, int right, int bottom) { argument 248 assertEquals(right, regionBounds.right);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
H A D | BoxInsetLayout.java | 37 * {@code left|top|right|bottom} or {@code all}. 153 + getPaddingRight() + mForegroundPadding.right; 182 int prwf = getPaddingRight() + mForegroundPadding.right; 237 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 238 layoutBoxChildren(left, top, right, bottom, false /* no force left gravity */); 241 private void layoutBoxChildren(int left, int top, int right, int bottom, argument 244 int boxInset = (int)(FACTOR * Math.max(right - left, bottom - top)); 247 final int parentRight = right - left - getPaddingRight() - mForegroundPadding.right; 299 childLeft = right [all...] |
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
H A D | FlockingScene.cpp | 103 float right = mDisplayRatio; local 109 return Matrix::newFrustum(left, right, bottom, top, near, far);
|
/cts/tests/tests/text/src/android/text/method/cts/ |
H A D | ScrollingMovementMethodTest.java | 543 new MyScrollingMovementMethod().right(mTextView, mSpannable); 663 mResult = method.right(mTextView, mSpannable); 671 mResult = method.right(mTextView, mSpannable); 749 protected boolean right(TextView widget, Spannable buffer) { method in class:ScrollingMovementMethodTest.MyScrollingMovementMethod 750 return super.right(widget, buffer);
|
H A D | LinkMovementMethodTest.java | 413 assertTrue(method.right(mView, mSpannable)); 416 assertTrue(method.right(mView, mSpannable)); 419 assertFalse(method.right(mView, mSpannable)); 427 method.right(null, mSpannable); 434 method.right(mView, null); 454 assertFalse(method.right(mView, mSpannable)); 537 protected boolean right(TextView widget, Spannable buffer) { method in class:LinkMovementMethodTest.MyLinkMovementMethod 538 return super.right(widget, buffer);
|
/cts/tests/openglperf2/jni/graphics/ |
H A D | Matrix.cpp | 191 Matrix* Matrix::newFrustum(float left, float right, float bottom, float top, argument 193 const float r_width = 1.0f / (right - left); 198 const float A = (right + left) * r_width;
|
/cts/tests/tests/net/src/android/net/cts/ |
H A D | IpSecBaseTest.java | 401 private void checkSocketPair(GenericSocket left, GenericSocket right) throws Exception { argument 403 assertArrayEquals(TEST_DATA, right.receive()); 405 right.send(TEST_DATA); 409 right.close(); 413 GenericUdpSocket left, GenericUdpSocket right, InetAddress localAddr) throws Exception { 414 left.sendTo(TEST_DATA, localAddr, right.getPort()); 415 assertArrayEquals(TEST_DATA, right.receive()); 417 right.sendTo(TEST_DATA, localAddr, left.getPort()); 421 right.close(); 412 checkUnconnectedUdpSocketPair( GenericUdpSocket left, GenericUdpSocket right, InetAddress localAddr) argument
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
H A D | ExtendedCameraCharacteristicsTest.java | 965 "LENS_POSE_ROTATION not right size", 968 "LENS_POSE_TRANSLATION not right size", 974 "LENS_INTRINSIC_CALIBRATION not right size", 977 "LENS_DISTORTION not right size", 1135 " and size " + size + ") is not in the right range", 1369 mCollector.expectTrue("Optical black region left/right/width/height must be" 1681 /** Return a positive int if left > right, 0 if left==right, negative int if left < right */ 1682 private static int compareHardwareLevel(int left, int right) { argument [all...] |
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
H A D | UsageStatsTest.java | 115 private static void assertLessThan(long left, long right) { argument 116 assertTrue("Expected " + left + " to be less than " + right, left < right); 119 private static void assertLessThanOrEqual(long left, long right) { argument 120 assertTrue("Expected " + left + " to be less than " + right, left <= right);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
H A D | PopupWindowTest.java | 615 private void assertComparison(int left, int operator, int right) { argument 618 assertTrue(left + " <= " + right, left > right); 621 assertTrue(left + " >= " + right, left < right); 624 assertTrue(left + " != " + right, left == right); 1063 // The popup should appear below and to right with an offset. 1077 // The popup should appear below and to right with an offset. 1093 // The popup should appear below and to the right [all...] |
/cts/tests/tests/media/libmediandkjni/ |
H A D | codec-utils-jni.cpp | 47 int right; member in struct:NativeImage::crop 160 gFields.fieldRight = env->GetFieldID(rectClazz, "right", "I"); 190 img->crop.right = env->GetIntField(area, gFields.fieldRight); 192 if (img->crop.right == 0 && img->crop.bottom == 0) { 193 img->crop.right = img->width; 233 ((img->crop.right + (1 << xDecim) - 1) >> xDecim) - (img->crop.left >> xDecim); 329 tgt->crop.left, tgt->crop.top, tgt->crop.right, tgt->crop.bottom, 335 src->crop.left, src->crop.top, src->crop.right, src->crop.bottom, 400 size_t rightOdd = img->crop.right & 1;
|
/cts/tests/tests/nativehardware/jni/ |
H A D | AHardwareBufferGLTest.cpp | 351 int bottom = INT_MAX, left = INT_MAX, right = 0, top = 0; local 354 right = std::max(right, golden.x); 368 const int width = right - left + 1;
|