/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | sample.rscript | 17 static bool compare(float4 expected, float4 value) { 31 _RS_ASSERT(compare(expected0, result)); 34 _RS_ASSERT(compare(expected1, result)); 37 _RS_ASSERT(compare(expected2, result)); 40 _RS_ASSERT(compare(expected3, result)); 48 _RS_ASSERT(compare(expected0, result)); 51 _RS_ASSERT(compare(expected1, result)); 54 _RS_ASSERT(compare(expected2, result)); 57 _RS_ASSERT(compare(expected3, result)); 80 _RS_ASSERT(compare(fLOD0, result)); [all …]
|
D | scriptgroup.rscript | 40 void compare(const int *ain) {
|
D | setelementat.rscript | 21 void compare(const int *ain) {
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicommon/ |
D | CoverageComparator.java | 24 public int compare(HasCoverage entity, HasCoverage otherEntity) { in compare() method in CoverageComparator 27 int diff = Integer.compare(getCoveragePercentageSegment(lhsPct), in compare() 32 diff = Integer.compare(otherEntity.getMemberSize(), entity.getMemberSize()); in compare()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | FeatureGroupInfoTest.java | 89 assertEquals(0, sFeatureGroupComparator.compare(expectedGroups[i], actualGroups[i])); in assertFeatureGroupsMatch() 136 int diff = sFeatureInfoComparator.compare(a[i], b[i]); in compareFeatureInfoArrays() 141 return Integer.compare(aCount, bCount); in compareFeatureInfoArrays() 151 public int compare(FeatureGroupInfo o1, FeatureGroupInfo o2) { 159 public int compare(FeatureInfo o1, FeatureInfo o2) { 166 diff = Integer.compare(o1.reqGlEsVersion, o2.reqGlEsVersion); 172 return Integer.compare(o1.flags, o2.flags);
|
D | ApplicationInfo_DisplayNameComparatorTest.java | 55 assertEquals(0, mDisplayNameComparator.compare(info1, info2)); in testCompare() 60 assertTrue((mDisplayNameComparator.compare(info1, info2) < 0)); in testCompare() 66 assertTrue((mDisplayNameComparator.compare(info1, info2) > 0)); in testCompare() 69 mDisplayNameComparator.compare(null, null); in testCompare()
|
D | PackageItemInfo_DisplayNameComparatorTest.java | 46 assertTrue(comparator.compare(pkgItemInfo, cmpInfo) < 0); in testDisplayNameComparator() 47 assertTrue(comparator.compare(pkgItemInfo, pkgItemInfo) == 0); in testDisplayNameComparator() 48 assertTrue(comparator.compare(cmpInfo, pkgItemInfo) > 0); in testDisplayNameComparator()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | NativeColorBufferTest.java | 58 compare(expectedColor, actualColor); in test_RGBA_1001() 76 compare(expectedColor, actualColor); in test_RGBA_1101() 95 compare(expectedColor, actualColor); in test_RGBA_1111() 114 compare(expectedColor, actualColor); in test_RGBA_0101() 133 compare(expectedColor, actualColor); in test_RGBA_0011() 152 compare(expectedColor, actualColor); in test_RGBA_0000() 171 compare(expectedColor, actualColor); in test_RGBA_rand_val_one() 183 private void compare(float[] expectedColor, float[] actualColor) { in compare() method in NativeColorBufferTest
|
D | ColorBufferTest.java | 63 compare(expectedColor, actualColor); in test_RGBA_1001() 81 compare(expectedColor, actualColor); in test_RGBA_1101() 100 compare(expectedColor, actualColor); in test_RGBA_1111() 119 compare(expectedColor, actualColor); in test_RGBA_0101() 138 compare(expectedColor, actualColor); in test_RGBA_0011() 157 compare(expectedColor, actualColor); in test_RGBA_0000() 176 compare(expectedColor, actualColor); in test_RGBA_rand_val_one() 189 private void compare(float[] expectedColor, float[] actualColor) { in compare() method in ColorBufferTest
|
/cts/tests/tests/util/src/android/util/cts/ |
D | ArrayMapTest.java | 157 private static boolean compare(Object v1, Object v2) { in compare() method in ArrayMapTest 176 if (!compare(expValue, gotValue)) { in compareMaps() 186 if (!compare(expValue, gotValue)) { in compareMaps() 249 if (!compare(realValue, value)) { in validateArrayMap() 255 if (!compare(realValue, value)) { in validateArrayMap() 268 if (!compare(realValue, value)) { in validateArrayMap() 281 if (!compare(realValue, value)) { in validateArrayMap() 382 if (!compare(oldHash, oldArray)) { in testBasicArrayMap() 439 if (!compare(mapCopy, newMap)) { 454 if (!compare(map1, map2) || !compare(map1, map3) || !compare(map3, map2)) { [all …]
|
D | ArraySetTest.java | 130 private static boolean compare(Object v1, Object v2) { in compare() method in ArraySetTest 186 if (!compare(realValue, value)) { in validateArraySet() 309 if (!compare(copySet, newSet)) { 324 if (!compare(set1, set2) || !compare(set1, set3) || !compare(set3, set2)) { 334 if (!compare(set1, set2) || !compare(set1, set3) || !compare(set3, set2)) { 340 if (compare(set1, set2) || compare(set1, set3) || compare(set3, set1)) {
|
D | HalfTest.java | 734 public void compare() { in compare() method in HalfTest 735 assertEquals(0, Half.compare(NaN, NaN)); in compare() 736 assertEquals(0, Half.compare(NaN, (short) 0xfc98)); in compare() 737 assertEquals(1, Half.compare(NaN, POSITIVE_INFINITY)); in compare() 738 assertEquals(-1, Half.compare(POSITIVE_INFINITY, NaN)); in compare() 740 assertEquals(0, Half.compare(POSITIVE_INFINITY, POSITIVE_INFINITY)); in compare() 741 assertEquals(0, Half.compare(NEGATIVE_INFINITY, NEGATIVE_INFINITY)); in compare() 742 assertEquals(1, Half.compare(POSITIVE_INFINITY, NEGATIVE_INFINITY)); in compare() 743 assertEquals(-1, Half.compare(NEGATIVE_INFINITY, POSITIVE_INFINITY)); in compare() 745 assertEquals(0, Half.compare(POSITIVE_ZERO, POSITIVE_ZERO)); in compare() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AlphabetIndexerTest.java | 118 assertEquals(0, indexer.compare("Golfresort", "G")); in testCompare() 119 assertTrue(indexer.compare("Golfresort", "F") > 0); in testCompare() 120 assertTrue(indexer.compare("Golfresort", "H") < 0); in testCompare() 142 protected int compare(String word, String letter) { 143 return super.compare(word, letter);
|
/cts/tests/security/src/android/keystore/cts/ |
D | AttestationApplicationId.java | 116 int res = Integer.compare(packageInfos.size(), other.packageInfos.size()); in compareTo() 122 res = Integer.compare(signatureDigests.size(), other.signatureDigests.size()); in compareTo() 126 res = cmp.compare(signatureDigests.get(i), other.signatureDigests.get(i)); in compareTo() 172 public int compare(byte[] a, byte[] b) { in compare() method in AttestationApplicationId.ByteArrayComparator 173 int res = Integer.compare(a.length, b.length); in compare() 176 res = Byte.compare(a[i], b[i]); in compare()
|
D | AttestationPackageInfo.java | 73 res = Long.compare(version, other.version); in compareTo()
|
/cts/libs/view/src/com/android/view/ |
D | Position.java | 98 return (Float.compare(other.mX, mX) == 0) && (Float.compare(other.mY, mY) == 0); in equals()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/ |
D | PictureInPictureParamsBuilderTest.java | 55 assertTrue(Float.compare(0.5f, params.getAspectRatioFloat()) == 0); in testBuildParams() 65 assertTrue(Float.compare(0f, params.getAspectRatioFloat()) == 0); in testBuildParams()
|
/cts/libs/kernelinfo/src/com/android/cts/kernelinfo/ |
D | KernelInfo.kt | 40 Integer.compare(v1.second, v2.second) in compareMajorMinorVersion() 42 Integer.compare(v1.first, v2.first) in compareMajorMinorVersion()
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | ReflectionHelper.java | 219 if (typeComparator.compare(jdiffParam, reflectionParam)) { in compareParam() 231 return typeComparator.compare(jdiffParam, reflectionParam); in compareParam() 324 if (!typeComparator.compare(jdiffReturnType, reflectionReturnType)) { in matchesSignature() 651 boolean compare(String apiType, String reflectedType); in compare() method 661 public boolean compare(String apiType, String reflectedType) { in compare() method in ReflectionHelper.DefaultTypeComparator 676 public boolean compare(String apiType, String reflectedType) { in compare() method in ReflectionHelper.BridgeTypeComparator 677 if (DefaultTypeComparator.INSTANCE.compare(apiType, reflectedType)) { in compare()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/ |
D | Asn1SetOf.java | 39 public int compare(T lhsT, T rhsT) { in encodePerImpl()
|
/cts/tests/tests/rscpp/librscpptest/ |
D | setelementat.rscript | 20 void compare(const int *ain) {
|
/cts/hostsidetests/jvmti/base/run-test-based-app/src/android/jvmti/cts/ |
D | JvmtiRunTestBasedTest.java | 163 compare(expectedStream, bufferedOut); in testRunTest() 172 private void compare(InputStream expectedStream, ByteArrayOutputStream resultStream) in compare() method in JvmtiRunTestBasedTest
|
/cts/tests/tests/security/jni/ |
D | Android.bp | 55 "-Wno-sign-compare",
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | SamplePointWideGamutVerifier.java | 72 return Float.compare(a, b) == 0 || Math.abs(a - b) <= eps; in floatCompare()
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 60 if (!compare(expected, actual, IMAGE_THRESHOLD)) { in call() 129 private static boolean compare(BufferedImage reference, BufferedImage generated, in compare() method in ComparisonTask
|