Home
last modified time | relevance | path

Searched refs:compare (Results 1 – 25 of 60) sorted by relevance

123

/cts/suite/audio_quality/lib/src/task/
DTaskAsync.cpp61 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()
DTaskSound.cpp43 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()
DTaskProcess.cpp151 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()
DTaskOutput.cpp37 if (StringUtil::compare(name, "waitforcompletion") == 0) { in parseAttribute()
38 if (StringUtil::compare(value, "1") == 0) { in parseAttribute()
DTaskSequential.cpp123 if (StringUtil::compare(name, "repeat") == 0) { in parseAttribute()
131 } else if (StringUtil::compare(name, "index") == 0) { in parseAttribute()
/cts/suite/audio_quality/test/
DStringUtilTest.cpp27 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()
DTaskCaseTest.cpp144 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/
Dsample.rscript17 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/
DNativeColorBufferTest.java54 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
DColorBufferTest.java59 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/
DFeatureGroupInfoTest.java89 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);
DApplicationInfo_DisplayNameComparatorTest.java53 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()
DPackageItemInfo_DisplayNameComparatorTest.java46 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/
DArrayMapTest.java155 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 …]
DArraySetTest.java130 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)) {
DHalfTest.java708 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/
DAttestationApplicationId.java116 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/
DHasCoverage.java28 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/
DAlphabetIndexerTest.java118 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/
DReflectionHelper.java205 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/
DPictureInPictureParamsBuilderTest.java51 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/
DPosition.java98 return (Float.compare(other.mX, mX) == 0) && (Float.compare(other.mY, mY) == 0); in equals()
/cts/suite/audio_quality/lib/include/
DStringUtil.h35 static int compare(const android::String8& str, const char* other);
/cts/hostsidetests/jvmti/base/run-test-based-app/src/android/jvmti/cts/
DJvmtiRunTestBasedTest.java163 compare(expectedStream, bufferedOut); in testRunTest()
172 private void compare(InputStream expectedStream, ByteArrayOutputStream resultStream) in compare() method in JvmtiRunTestBasedTest
/cts/tests/tests/net/native/dns/
DAndroid.bp11 "-Wsign-compare",

123