HomeSort by relevance Sort by last modified time
    Searched refs:compare (Results 176 - 200 of 5560) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/annotation-tools/scene-lib/src/annotations/el/
RelativeLocation.java 63 int c = Integer.compare(offset, l.offset);
65 c = Integer.compare(index, l.index);
67 c = Integer.compare(type_index, l.type_index);
  /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/ltp/testcases/network/tcp_fastopen/
tcp_fastopen_run.sh 50 compare() function
84 compare
93 compare
  /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) &lt;= 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)&gt;0) &amp;&amp; (compare(y, z)&gt;0))</tt> implie
150 int compare(T o1, T o2); method in interface:Comparator
    [all...]
  /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, "" );
  /external/tensorflow/tensorflow/python/util/protobuf/
compare_test.py 15 """Tests for python.util.protobuf.compare."""
30 from tensorflow.python.util.protobuf import compare
50 googletest.TestCase.assertEquals(self, compare.ProtoEq(a, b), False)
55 googletest.TestCase.assertEquals(self, compare.ProtoEq(a, b), True)
58 googletest.TestCase.assertEqual(self, True, compare.ProtoEq('a', 'a'))
59 googletest.TestCase.assertEqual(self, False, compare.ProtoEq('b', 'a'))
217 compare.NormalizeNumberFields(pb)
221 compare.NormalizeNumberFields(pb)
225 compare.NormalizeNumberFields(pb)
231 compare.NormalizeNumberFields(pb
    [all...]
  /frameworks/base/libs/hwui/
PatchCache.h 100 static int compare(const PatchDescription& lhs, const PatchDescription& rhs);
102 bool operator==(const PatchDescription& other) const { return compare(*this, other) == 0; }
104 bool operator!=(const PatchDescription& other) const { return compare(*this, other) != 0; }
108 return PatchDescription::compare(lhs, rhs) < 0;
112 return PatchDescription::compare(lhs, rhs);
TextDropShadowCache.h 65 static int compare(const ShadowText& lhs, const ShadowText& rhs);
67 bool operator==(const ShadowText& other) const { return compare(*this, other) == 0; }
69 bool operator!=(const ShadowText& other) const { return compare(*this, other) != 0; }
100 return ShadowText::compare(lhs, rhs) < 0;
104 return ShadowText::compare(lhs, rhs);
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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));
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/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, "" );
  /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) {
  /external/autotest/client/cros/chameleon/
chameleon_screen_test.py 43 return self._resolution_comparer.compare(expected_resolution)
61 error = self._resolution_comparer.compare(expected_resolution)
66 error = self._screen_comparer.compare()
70 error = self._screen_comparer.compare()
75 # affect users, just the tests. So compare it with the
80 # to compare is not feasible due to the size difference.
81 # Skip the error first and think a better way to compare.
85 logging.info('Compare the calibration image directly...')
86 error = self._calib_comparer.compare()
89 error = self._mirror_comparer.compare()
    [all...]
  /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; }

Completed in 829 milliseconds

1 2 3 4 5 6 78 91011>>