/dalvik/dx/src/com/android/dx/rop/cst/ |
CstArray.java | 121 int compare = thisItem.compareTo(otherItem); local 122 if (compare != 0) { 123 return compare;
|
/external/autotest/client/cros/image_comparison/ |
upload_on_fail_comparer.py | 25 @param local_comparer: object impementing compare(), local comparer. 26 @param remote_comparer: object implementing compare(), remote comparer. 42 def compare(self, golden_image_path, test_image_path, box=None): member in class:UploadOnFailComparer 47 compare the same images. 68 res = self.local_comparer.compare(golden_image_path, 82 res_remote = self.remote_comparer.compare(golden_image_path,
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
IterableComparator.java | 38 public int compare(Iterable<T> a, Iterable<T> b) { method in class:IterableComparator 56 int result = comparator != null ? comparator.compare(aItem, bItem) : ((Comparable<T>)aItem).compareTo(bItem); 65 return NOCOMPARATOR.compare(a, b);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
IterableComparator.java | 36 public int compare(Iterable<T> a, Iterable<T> b) { method in class:IterableComparator 54 int result = comparator != null ? comparator.compare(aItem, bItem) : ((Comparable<T>)aItem).compareTo(bItem); 63 return NOCOMPARATOR.compare(a, b);
|
/external/junit/src/main/java/org/junit/internal/ |
MethodSorter.java | 14 public int compare(Method m1, Method m2) { 20 return NAME_ASCENDING.compare(m1, m2); 28 public int compare(Method m1, Method m2) {
|
/external/v8/tools/turbolizer/ |
util.js | 24 function lowerBound(a, value, compare, lookup) { 31 let result = (compare === undefined) ? (middle_value < value) : compare(middle_value, value); 43 function upperBound(a, value, compare, lookup) { 50 let result = (compare === undefined) ? (value < middle_value) : compare(value, middle_value);
|
/libcore/ojluni/src/main/java/java/util/ |
Comparators.java | 51 public int compare(Comparable<Object> c1, Comparable<Object> c2) { method in class:Comparators.NaturalOrderComparator 77 public int compare(T a, T b) { method in class:Comparators.NullComparator 83 return (real == null) ? 0 : real.compare(a, b);
|
Comparator.java | 47 * <tt>c.compare(e1, e2)==0</tt> has the same boolean value as 61 * {@code (a.equals(b) && c.compare(a, b) != 0)} 78 * {(x, y) such that c.compare(x, y) <= 0}. 80 * {(x, y) such that c.compare(x, y) == 0}. 83 * It follows immediately from the contract for <tt>compare</tt> that the 121 * The implementor must ensure that <tt>sgn(compare(x, y)) == 122 * -sgn(compare(y, x))</tt> for all <tt>x</tt> and <tt>y</tt>. (This 123 * implies that <tt>compare(x, y)</tt> must throw an exception if and only 124 * if <tt>compare(y, x)</tt> throws an exception.)<p> 127 * <tt>((compare(x, y)>0) && (compare(y, z)>0))</tt> implie 150 int compare(T o1, T o2); method in interface:Comparator [all...] |
/system/core/demangle/ |
demangle.cpp | 32 printf(" Compare the results of __cxa_demangle against the current\n"); 64 bool compare = false; local 68 compare = true; 85 if (compare) {
|
/system/tpm/trunks/ |
password_authorization_delegate_test.cc | 50 EXPECT_EQ(expected_auth.compare(authorization), 0); 90 ASSERT_EQ(plaintext_parameter.compare(encrypted_parameter), 0); 93 EXPECT_EQ(plaintext_parameter.compare(encrypted_parameter), 0);
|
/cts/suite/audio_quality/lib/src/task/ |
TaskSound.cpp | 43 if (StringUtil::compare(name, "preload") == 0) { 44 if (StringUtil::compare(value, "1") == 0) { 70 if (StringUtil::compare(tokens->at(0), "file") == 0) { 75 } else if (StringUtil::compare(tokens->at(0), "sin") == 0) { 85 } else if (StringUtil::compare(tokens->at(0), "random") == 0) {
|
/external/libcxx/test/std/experimental/filesystem/class.path/path.member/ |
path.compare.pass.cpp | 16 // int compare(path const&) const noexcept; 17 // int compare(string_type const&) const; 18 // int compare(value_type const*) const; 90 { // compare(...) functions 94 int ret1 = normalize_ret(p1.compare(p2)); 95 int ret2 = normalize_ret(p1.compare(R)); 96 int ret3 = normalize_ret(p1.compare(TC.RHS)); 97 int ret4 = normalize_ret(p1.compare(RV)); 102 ASSERT_NOEXCEPT(p1.compare(p2));
|
/external/libcxx/test/std/strings/string.view/string.view.ops/ |
compare.pointer.pass.cpp | 12 // constexpr int compare(const charT* s) const; 24 assert ( sign( sv1.compare(s)) == sign(expected)); 121 static_assert ( sv1.compare("") == 0, "" ); 122 static_assert ( sv1.compare("abcde") == -1, "" ); 123 static_assert ( sv2.compare("") == 1, "" ); 124 static_assert ( sv2.compare("abcde") == 0, "" );
|
/frameworks/base/libs/hwui/ |
PatchCache.h | 101 static int compare(const PatchDescription& lhs, const PatchDescription& rhs); 104 return compare(*this, other) == 0; 108 return compare(*this, other) != 0; 113 return PatchDescription::compare(lhs, rhs) < 0; 118 return PatchDescription::compare(lhs, rhs);
|
TextDropShadowCache.h | 60 static int compare(const ShadowText& lhs, const ShadowText& rhs); 63 return compare(*this, other) == 0; 67 return compare(*this, other) != 0; 99 return ShadowText::compare(lhs, rhs) < 0; 103 return ShadowText::compare(lhs, rhs);
|
/external/clang/test/SemaCXX/ |
warn-memsize-comparison.cpp | 21 expected-note {{did you mean to compare}} \ 27 expected-note {{did you mean to compare}} \ 33 expected-note {{did you mean to compare}} \ 39 expected-note {{did you mean to compare}} \ 45 expected-note {{did you mean to compare}} \ 51 expected-note {{did you mean to compare}} \ 57 expected-note {{did you mean to compare}} \ 63 expected-note {{did you mean to compare}} \ 69 expected-note {{did you mean to compare}} \ 75 expected-note {{did you mean to compare}} \ [all...] |
/external/icu/icu4c/source/test/iotest/ |
trnstst.c | 124 UChar compare[] = { 0xfeff, 0x03a3, 0x03c4, 0x03b5, 0x03c6, 0x1f00, 0x03bd, 0x03bf, 0x03c2, 0x043C, 0x0000 }; local 196 len=fread(ubuf, sizeof(UChar), u_strlen(compare), infile); 198 if(len != u_strlen(compare)) 200 log_err("Wanted %d UChars from file, got %d\n", u_strlen(compare), len); 204 if(u_strlen(compare) != u_strlen(ubuf)) 206 log_err("Wanted %d UChars from file, but u_strlen() returns %d\n", u_strlen(compare), len); 209 if(u_strcmp(compare, ubuf)) 230 UChar compare[] = { 0x03a3, 0x03c4, 0x03b5, 0x03c6, 0x1f00, 0x03bd, 0x03bf, 0x03c2, 0x043C, 0x0000 }; local 293 if(u_strlen(compare) != u_strlen(ubuf)) 295 log_err("Wanted %d UChars from file, but u_strlen() returns %d\n", u_strlen(compare), u_strlen(ubuf)) [all...] |
/cts/tests/tests/content/src/android/content/pm/cts/ |
FeatureGroupInfoTest.java | 87 assertEquals(0, sFeatureGroupComparator.compare(expectedGroups[i], actualGroups[i])); 134 int diff = sFeatureInfoComparator.compare(a[i], b[i]); 139 return Integer.compare(aCount, bCount); 149 public int compare(FeatureGroupInfo o1, FeatureGroupInfo o2) { 157 public int compare(FeatureInfo o1, FeatureInfo o2) { 164 diff = Integer.compare(o1.reqGlEsVersion, o2.reqGlEsVersion); 170 return Integer.compare(o1.flags, o2.flags);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/direct/ |
NelderMead.java | 109 if ((comparator.compare(best, reflected) <= 0) && 110 (comparator.compare(reflected, secondBest) < 0)) { 115 } else if (comparator.compare(reflected, best) < 0) { 124 if (comparator.compare(expanded, reflected) < 0) { 134 if (comparator.compare(reflected, worst) < 0) { 143 if (comparator.compare(outContracted, reflected) <= 0) { 158 if (comparator.compare(inContracted, worst) < 0) {
|
/frameworks/base/core/java/android/hardware/usb/ |
UsbAccessory.java | 154 private static boolean compare(String s1, String s2) { method in class:UsbAccessory 163 return (compare(mManufacturer, accessory.getManufacturer()) && 164 compare(mModel, accessory.getModel()) && 165 compare(mDescription, accessory.getDescription()) && 166 compare(mVersion, accessory.getVersion()) && 167 compare(mUri, accessory.getUri()) && 168 compare(mSerial, accessory.getSerial()));
|
/frameworks/base/tools/aapt/ |
StringPool.h | 57 int compare(const entry& o) const; 59 inline bool operator<(const entry& o) const { return compare(o) < 0; } 60 inline bool operator<=(const entry& o) const { return compare(o) <= 0; } 61 inline bool operator==(const entry& o) const { return compare(o) == 0; } 62 inline bool operator!=(const entry& o) const { return compare(o) != 0; } 63 inline bool operator>=(const entry& o) const { return compare(o) >= 0; } 64 inline bool operator>(const entry& o) const { return compare(o) > 0; }
|
/external/ImageMagick/MagickCore/ |
splay-tree.c | 91 (*compare)(const void *,const void *); 162 compare; 169 compare=0; 172 if (splay_tree->compare != (int (*)(const void *,const void *)) NULL) 173 compare=splay_tree->compare(splay_tree->root->key,key); 175 compare=(splay_tree->root->key > key) ? 1 : 177 if (compare == 0) 207 if (compare < 0) 366 clone_tree=NewSplayTree(splay_tree->compare,splay_tree->relinquish_key 88 (*compare)(const void *,const void *); member in struct:_SplayTreeInfo 157 compare; local 517 compare; local 606 compare; local 883 compare; local 1183 compare; local 1263 compare; local 1479 compare; local 1573 compare; local [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
IntegerTest.java | 43 assertTrue(Integer.compare(max, max) == 0); 44 assertTrue(Integer.compare(min, min) == 0); 45 assertTrue(Integer.compare(zero, zero) == 0); 46 assertTrue(Integer.compare(max, zero) > 0); 47 assertTrue(Integer.compare(max, min) > 0); 48 assertTrue(Integer.compare(zero, max) < 0); 49 assertTrue(Integer.compare(zero, min) > 0); 50 assertTrue(Integer.compare(min, zero) < 0); 51 assertTrue(Integer.compare(min, max) < 0); 165 assertEquals(Integer.compare(i, j) [all...] |
/external/icu/icu4c/source/test/intltest/ |
idnaconf.cpp | 249 if (namezone.compare(result, -1) == 0){ 263 if (namebase.compare(result, -1) == 0){ 295 while (s.compare(C_TAG, -1) != 0); //"=====" 301 if (s.compare(C_TAG, -1) == 0){ //"=====" 308 if (key.compare(C_TYPE, -1) == 0){ 309 if (value.compare(C_TOASCII, -1) == 0) { 311 } else if (value.compare(C_TOUNICODE, -1) == 0){ 314 } else if (key.compare(C_PASSFAIL, -1) == 0){ 315 if (value.compare(C_PASS, -1) == 0){ 317 } else if (value.compare(C_FAIL, -1) == 0) [all...] |
/external/autotest/client/cros/chameleon/ |
chameleon_screen_test.py | 40 return self._resolution_comparer.compare(expected_resolution) 58 error = self._resolution_comparer.compare(expected_resolution) 63 error = self._screen_comparer.compare() 67 error = self._screen_comparer.compare() 69 error = self._mirror_comparer.compare() 141 error = self._resolution_comparer.compare(expected_resolution)
|