/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/ |
D | Asn1SetOf.java | 46 byte[] lhs = keyMaker.getPaddedBytes(); in encodePerImpl() 54 for (int i = 0; i < lhs.length && i < rhs.length; in encodePerImpl() 56 if ((lhs[i] & 0xFF) < (rhs[i] & 0xFF)) { in encodePerImpl() 59 if ((lhs[i] & 0xFF) > (rhs[i] & 0xFF)) { in encodePerImpl() 63 if (lhs.length < rhs.length) { in encodePerImpl() 66 if (lhs.length > rhs.length) { in encodePerImpl()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | WorkSourceTest.java | 226 private void doTestCombineTwoUids(int[] lhs, int[] rhs, int[] expected, int[] newbs, in doTestCombineTwoUids() argument 228 WorkSource ws1 = wsNew(lhs); in doTestCombineTwoUids() 232 ws1 = wsNew(lhs); in doTestCombineTwoUids() 236 ws1 = wsNew(lhs); in doTestCombineTwoUids() 257 int[] lhs = makeRepeatingIntArray(lhsnames, 0); in doTestCombineTwoNames() local 262 doTestCombineTwoUidsNames(lhs, lhsnames, rhs, rhsnames, expected, expectednames, in doTestCombineTwoNames() 266 … private void doTestCombineTwoUidsNames(int[] lhs, String[] lhsnames, int[] rhs, String[] rhsnames, in doTestCombineTwoUidsNames() argument 269 WorkSource ws1 = wsNew(lhs, lhsnames); in doTestCombineTwoUidsNames() 273 ws1 = wsNew(lhs, lhsnames); in doTestCombineTwoUidsNames() 277 ws1 = wsNew(lhs, lhsnames); in doTestCombineTwoUidsNames() [all …]
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/ |
D | BitmapImage.java | 109 private static boolean robustMatchInternal(@ColorInt int lhs, @ColorInt int rhs) { in robustMatchInternal() argument 110 return lhs == rhs || (Math.abs(Color.red(lhs) - Color.red(rhs)) <= TOLERANCE in robustMatchInternal() 111 && Math.abs(Color.green(lhs) - Color.green(rhs)) <= TOLERANCE in robustMatchInternal() 112 && Math.abs(Color.blue(lhs) - Color.blue(rhs)) <= TOLERANCE); in robustMatchInternal()
|
/cts/hostsidetests/adpf/src/android/adpf/cts/ |
D | ADPFHintSessionHostJUnit4Test.java | 121 private static boolean isRoughlyEqual(long lhs, long rhs) { in isRoughlyEqual() argument 122 return Math.abs(lhs - rhs) < ERROR_MARGIN * (lhs + rhs) / 2.0; in isRoughlyEqual() 125 private static boolean isLess(long lhs, long rhs) { in isLess() argument 126 return lhs < rhs && !isRoughlyEqual(lhs, rhs); in isLess() 129 private static boolean isGreater(long lhs, long rhs) { in isGreater() argument 130 return isLess(rhs, lhs); in isGreater()
|
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/ |
D | TestUtils.java | 60 MacWrapper lhs = (MacWrapper) o; in equals() local 61 return Arrays.equals(mMac, lhs.mMac); in equals()
|
/cts/tests/openglperf2/jni/graphics/ |
D | Matrix.cpp | 107 float const* const lhs = l.mData; in multiply() local 119 x += lhs[j4 + 0] * e; in multiply() 120 y += lhs[j4 + 1] * e; in multiply() 121 z += lhs[j4 + 2] * e; in multiply() 122 w += lhs[j4 + 3] * e; in multiply() 317 void Matrix::multiplyVector(float* result, const Matrix& lhs, in multiplyVector() argument 319 const float* d = lhs.mData; in multiplyVector()
|
D | Matrix.h | 54 static void multiplyVector(float* result, const Matrix& lhs,
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | Matrix2fTest.java | 142 Matrix2f lhs = new Matrix2f(lhsData); in testMultiply() local 146 loadMul.loadMultiply(lhs, rhs); in testMultiply() 149 lhs.multiply(rhs); in testMultiply() 150 checkData(lhs, expected); in testMultiply()
|
D | Matrix4fTest.java | 208 Matrix4f lhs = new Matrix4f(lhsData); in testMultiply() local 212 loadMul.loadMultiply(lhs, rhs); in testMultiply() 215 lhs.multiply(rhs); in testMultiply() 216 checkData(lhs, expected); in testMultiply()
|
D | Matrix3fTest.java | 201 Matrix3f lhs = new Matrix3f(lhsData); in testMultiply() local 205 loadMul.loadMultiply(lhs, rhs); in testMultiply() 208 lhs.multiply(rhs); in testMultiply() 209 checkData(lhs, expected); in testMultiply()
|
/cts/tests/camera/utils/src/android/hardware/cts/helpers/ |
D | CameraUtils.java | 236 public int compare(Camera.Size lhs, Camera.Size rhs) { in compare() argument 237 return compareSizes(lhs.width, lhs.height, rhs.width, rhs.height); in compare()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | CameraMuteToggleActivity.java | 275 public int compare(Size lhs, Size rhs) { in compare() argument 276 long lha = lhs.getWidth() * lhs.getHeight(); in compare() 279 lha = lhs.getWidth(); in compare()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 201 public int compare(Camera.Size lhs, Camera.Size rhs) { in setUpCamera() argument 202 if (lhs.width < rhs.width) return -1; in setUpCamera() 203 if (lhs.width > rhs.width) return 1; in setUpCamera() 204 if (lhs.height < rhs.height) return -1; in setUpCamera() 205 if (lhs.height > rhs.height) return 1; in setUpCamera()
|
/cts/tests/tests/binder_ndk/src/android/binder/cts/ |
D | JavaClientTest.java | 300 public void assertPolygonEquals(RegularPolygon lhs, RegularPolygon rhs) { in assertPolygonEquals() argument 301 assertEquals(lhs.name, rhs.name); in assertPolygonEquals() 302 assertEquals(lhs.numSides, rhs.numSides); in assertPolygonEquals() 303 assertEquals(lhs.sideLength, rhs.sideLength, 0.0f); in assertPolygonEquals() 305 public void assertPolygonEquals(RegularPolygon[] lhs, RegularPolygon[] rhs) { in assertPolygonEquals() argument 306 assertEquals(lhs.length, rhs.length); in assertPolygonEquals() 307 for (int i = 0; i < lhs.length; i++) { in assertPolygonEquals() 308 assertPolygonEquals(lhs[i], rhs[i]); in assertPolygonEquals()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckTestActivity.java | 347 private void assertLessThan(String message, double lhs, double rhs) { in assertLessThan() argument 348 Assert.assertTrue(String.format("%s - expected %.4f < %.4f", message, lhs, rhs), in assertLessThan() 349 lhs < rhs); in assertLessThan()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/ |
D | CameraFormatsActivity.java | 387 public int compare(Camera.Size lhs, Camera.Size rhs) { in setUpCamera() argument 388 if (lhs.width < rhs.width) return -1; in setUpCamera() 389 if (lhs.width > rhs.width) return 1; in setUpCamera() 390 if (lhs.height < rhs.height) return -1; in setUpCamera() 391 if (lhs.height > rhs.height) return 1; in setUpCamera()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/ |
D | CameraVideoActivity.java | 818 public int compare(Size lhs, Size rhs) { in setUpCamera() argument 819 if (lhs.width < rhs.width) return -1; in setUpCamera() 820 if (lhs.width > rhs.width) return 1; in setUpCamera() 821 if (lhs.height < rhs.height) return -1; in setUpCamera() 822 if (lhs.height > rhs.height) return 1; in setUpCamera()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | ContactsTest.java | 1254 private void assertContactInfoEquals(ContactInfo lhs, ContactInfo rhs) { in assertContactInfoEquals() argument 1255 if (lhs == null) { in assertContactInfoEquals() 1259 assertEquals(lhs.contactId, rhs.contactId); in assertContactInfoEquals() 1260 assertEquals(lhs.displayName, rhs.displayName); in assertContactInfoEquals() 1261 assertEquals(lhs.photoId, rhs.photoId); in assertContactInfoEquals() 1262 assertEquals(lhs.photoThumbnailUri, rhs.photoThumbnailUri); in assertContactInfoEquals() 1263 assertEquals(lhs.photoUri, rhs.photoUri); in assertContactInfoEquals()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/ |
D | CameraBokehActivity.java | 619 public int compare(Size lhs, Size rhs) { in compare() argument 620 long lha = lhs.getWidth() * lhs.getHeight(); in compare() 623 lha = lhs.getWidth(); in compare()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeScanTest.java | 459 public int compare(ScanResult lhs, ScanResult rhs) { in compare() argument 460 return rhs.getRssi() - lhs.getRssi(); in compare()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaSessionManagerTest.java | 305 private void assertKeyEventEquals(KeyEvent lhs, int keyCode, int action, int repeatCount) { in assertKeyEventEquals() argument 306 assertThat(lhs.getKeyCode() == keyCode in assertKeyEventEquals() 307 && lhs.getAction() == action in assertKeyEventEquals() 308 && lhs.getRepeatCount() == repeatCount).isTrue(); in assertKeyEventEquals()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerShellCommandIncrementalTest.java | 920 Arrays.sort(appIdReads, (lhs, rhs) -> Integer.compare(rhs.reads, lhs.reads)); in testInstallWithIdSigNoDigesting()
|
D | ChecksumsTest.java | 1738 Arrays.sort(checksums, (ApkChecksum lhs, ApkChecksum rhs) -> { in onChecksumsReady() 1739 final String lhsSplit = lhs.getSplitName(); in onChecksumsReady() 1742 return Integer.signum(lhs.getType() - rhs.getType()); in onChecksumsReady()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 2065 public int compare(Size lhs, Size rhs) { in compare() argument 2067 .compareSizes(lhs.getWidth(), lhs.getHeight(), rhs.getWidth(), rhs.getHeight()); in compare()
|