/cts/suite/audio_quality/lib/src/task/ |
D | TaskAsync.cpp | 61 if (StringUtil::compare(name, "id") == 0) { in parseAttribute() 63 } else if (StringUtil::compare(name, "gain") == 0) { in parseAttribute() 69 } else if (StringUtil::compare(name, "sync") == 0) { in parseAttribute() 70 if (StringUtil::compare(value, "start") == 0) { // async in parseAttribute() 73 } else if (StringUtil::compare(name, "device") == 0) { in parseAttribute() 74 if (StringUtil::compare(value, "host") == 0) { in parseAttribute() 76 } else if (StringUtil::compare(value, "DUT") == 0) { in parseAttribute() 81 } else if (StringUtil::compare(name, "mode") == 0) { in parseAttribute() 82 if (StringUtil::compare(value, "voice") == 0) { in parseAttribute() 84 } else if (StringUtil::compare(value, "music") == 0) { in parseAttribute()
|
D | TaskSound.cpp | 43 if (StringUtil::compare(name, "preload") == 0) { in parseAttribute() 44 if (StringUtil::compare(value, "1") == 0) { in parseAttribute() 70 if (StringUtil::compare(tokens->at(0), "file") == 0) { in run() 75 } else if (StringUtil::compare(tokens->at(0), "sin") == 0) { in run() 85 } else if (StringUtil::compare(tokens->at(0), "random") == 0) { in run()
|
D | TaskProcess.cpp | 151 if (StringUtil::compare(mName, BuiltinProcessing::BUINTIN_FN_TABLE[i].mName) == 0) { in doRun() 267 if (StringUtil::compare(item[0], "id") == 0) { in parseParams() 271 } else if (StringUtil::compare(item[0], "val") == 0) { in parseParams() 275 } else if (isInput && (StringUtil::compare(item[0], "consti") == 0)) { in parseParams() 281 } else if (isInput && (StringUtil::compare(item[0], "constf") == 0)) { in parseParams() 298 if (StringUtil::compare(name, "method") == 0) { in parseAttribute() 309 if (StringUtil::compare(tokens->at(0), "builtin") == 0) { in parseAttribute() 311 } else if (StringUtil::compare(tokens->at(0), "script") == 0) { in parseAttribute() 319 } else if (StringUtil::compare(name, "input") == 0) { in parseAttribute() 321 } else if (StringUtil::compare(name, "output") == 0) { in parseAttribute()
|
D | TaskOutput.cpp | 37 if (StringUtil::compare(name, "waitforcompletion") == 0) { in parseAttribute() 38 if (StringUtil::compare(value, "1") == 0) { in parseAttribute()
|
D | TaskSequential.cpp | 123 if (StringUtil::compare(name, "repeat") == 0) { in parseAttribute() 131 } else if (StringUtil::compare(name, "index") == 0) { in parseAttribute()
|
/cts/suite/audio_quality/test/ |
D | StringUtilTest.cpp | 27 ASSERT_TRUE(StringUtil::compare(str, "hello") == 0); in TEST_F() 28 ASSERT_TRUE(StringUtil::compare(str, "hi") != 0); in TEST_F() 35 ASSERT_TRUE(StringUtil::compare(sub1, "hello") == 0); in TEST_F() 38 ASSERT_TRUE(StringUtil::compare(sub2, "e") == 0); in TEST_F() 41 ASSERT_TRUE(StringUtil::compare(sub3, "there") == 0); in TEST_F() 59 ASSERT_TRUE(StringUtil::compare(tokens->at(0), "hello") == 0); in TEST_F() 60 ASSERT_TRUE(StringUtil::compare(tokens->at(1), "there") == 0); in TEST_F() 61 ASSERT_TRUE(StringUtil::compare(tokens->at(2), "break") == 0); in TEST_F() 62 ASSERT_TRUE(StringUtil::compare(tokens->at(3), "this") == 0); in TEST_F()
|
D | TaskCaseTest.cpp | 144 ASSERT_TRUE(StringUtil::compare(result1, "hello_1_2") == 0); in TEST_F() 149 ASSERT_TRUE(StringUtil::compare(result2, "hello_1_2_3_there") == 0); in TEST_F() 159 ASSERT_TRUE(StringUtil::compare(result4, "hello_there") == 0); in TEST_F()
|
/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 …]
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | NativeColorBufferTest.java | 54 compare(expectedColor, actualColor); in test_RGBA_1001() 72 compare(expectedColor, actualColor); in test_RGBA_1101() 91 compare(expectedColor, actualColor); in test_RGBA_1111() 110 compare(expectedColor, actualColor); in test_RGBA_0101() 129 compare(expectedColor, actualColor); in test_RGBA_0011() 148 compare(expectedColor, actualColor); in test_RGBA_0000() 167 compare(expectedColor, actualColor); in test_RGBA_rand_val_one() 179 private void compare(float[] expectedColor, float[] actualColor) { in compare() method in NativeColorBufferTest
|
D | ColorBufferTest.java | 59 compare(expectedColor, actualColor); in test_RGBA_1001() 77 compare(expectedColor, actualColor); in test_RGBA_1101() 96 compare(expectedColor, actualColor); in test_RGBA_1111() 115 compare(expectedColor, actualColor); in test_RGBA_0101() 134 compare(expectedColor, actualColor); in test_RGBA_0011() 153 compare(expectedColor, actualColor); in test_RGBA_0000() 172 compare(expectedColor, actualColor); in test_RGBA_rand_val_one() 185 private void compare(float[] expectedColor, float[] actualColor) { in compare() method in ColorBufferTest
|
/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 | 53 assertEquals(0, mDisplayNameComparator.compare(info1, info2)); in testCompare() 57 assertTrue((mDisplayNameComparator.compare(info1, info2) < 0)); in testCompare() 62 assertTrue((mDisplayNameComparator.compare(info1, info2) > 0)); in testCompare() 65 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/util/src/android/util/cts/ |
D | ArrayMapTest.java | 155 private static boolean compare(Object v1, Object v2) { in compare() method in ArrayMapTest 174 if (!compare(expValue, gotValue)) { in compareMaps() 184 if (!compare(expValue, gotValue)) { in compareMaps() 247 if (!compare(realValue, value)) { in validateArrayMap() 253 if (!compare(realValue, value)) { in validateArrayMap() 266 if (!compare(realValue, value)) { in validateArrayMap() 279 if (!compare(realValue, value)) { in validateArrayMap() 380 if (!compare(oldHash, oldArray)) { in testBasicArrayMap() 437 if (!compare(mapCopy, newMap)) { 452 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 | 708 public void compare() { in compare() method in HalfTest 709 assertEquals(0, Half.compare(NaN, NaN)); in compare() 710 assertEquals(0, Half.compare(NaN, (short) 0xfc98)); in compare() 711 assertEquals(1, Half.compare(NaN, POSITIVE_INFINITY)); in compare() 712 assertEquals(-1, Half.compare(POSITIVE_INFINITY, NaN)); in compare() 714 assertEquals(0, Half.compare(POSITIVE_INFINITY, POSITIVE_INFINITY)); in compare() 715 assertEquals(0, Half.compare(NEGATIVE_INFINITY, NEGATIVE_INFINITY)); in compare() 716 assertEquals(1, Half.compare(POSITIVE_INFINITY, NEGATIVE_INFINITY)); in compare() 717 assertEquals(-1, Half.compare(NEGATIVE_INFINITY, POSITIVE_INFINITY)); in compare() 719 assertEquals(0, Half.compare(POSITIVE_ZERO, POSITIVE_ZERO)); in compare() [all …]
|
/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()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | HasCoverage.java | 28 public int compare(HasCoverage entity, HasCoverage otherEntity) { in compare() method in CoverageComparator 31 int diff = Integer.compare(getCoveragePercentageSegment(lhsPct), in compare() 36 diff = Integer.compare(otherEntity.getMemberSize(), entity.getMemberSize()); in compare()
|
/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/signature/lib/common/src/android/signature/cts/ |
D | ReflectionHelper.java | 205 if (typeComparator.compare(jdiffParam, reflectionParam)) { in compareParam() 216 return typeComparator.compare(jdiffParam, reflectionParam); in compareParam() 281 if (!typeComparator.compare(jdiffReturnType, reflectionReturnType)) { in matchesSignature() 573 boolean compare(String apiType, String reflectedType); in compare() method 583 public boolean compare(String apiType, String reflectedType) { in compare() method in ReflectionHelper.DefaultTypeComparator 598 public boolean compare(String apiType, String reflectedType) { in compare() method in ReflectionHelper.BridgeTypeComparator 599 if (DefaultTypeComparator.INSTANCE.compare(apiType, reflectedType)) { in compare()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | PictureInPictureParamsBuilderTest.java | 51 assertTrue(Float.compare(0.5f, params.getAspectRatio()) == 0); in testBuildParams() 61 assertTrue(Float.compare(0f, params.getAspectRatio()) == 0); in testBuildParams()
|
/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/suite/audio_quality/lib/include/ |
D | StringUtil.h | 35 static int compare(const android::String8& str, const char* other);
|
/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/net/native/dns/ |
D | Android.bp | 11 "-Wsign-compare",
|