/external/mockito/src/org/mockito/internal/matchers/ |
Equality.java | 12 public static boolean areEqual(Object o1, Object o2) {
13 if (o1 == null || o2 == null) {
14 return o1 == null && o2 == null;
16 return isArray(o2) && areArraysEqual(o1, o2);
18 return o1.equals(o2);
22 static boolean areArraysEqual(Object o1, Object o2) {
23 return areArrayLengthsEqual(o1, o2)
24 && areArrayElementsEqual(o1, o2);
27 static boolean areArrayLengthsEqual(Object o1, Object o2) {
[all...] |
/external/llvm/test/MC/Sparc/ |
sparc-mem-instructions.s | 4 ! CHECK: ldsb [%i0+%l6], %o2 ! encoding: [0xd4,0x4e,0x00,0x16] 5 ldsb [%i0 + %l6], %o2 6 ! CHECK: ldsb [%i0+32], %o2 ! encoding: [0xd4,0x4e,0x20,0x20] 7 ldsb [%i0 + 32], %o2 11 ! CHECK: ldsh [%i0+%l6], %o2 ! encoding: [0xd4,0x56,0x00,0x16] 12 ldsh [%i0 + %l6], %o2 13 ! CHECK: ldsh [%i0+32], %o2 ! encoding: [0xd4,0x56,0x20,0x20] 14 ldsh [%i0 + 32], %o2 18 ! CHECK: ldub [%i0+%l6], %o2 ! encoding: [0xd4,0x0e,0x00,0x16] 19 ldub [%i0 + %l6], %o2 [all...] |
sparc-atomic-instructions.s | 9 ! CHECK: swap [%i0+%l6], %o2 ! encoding: [0xd4,0x7e,0x00,0x16] 10 swap [%i0+%l6], %o2 12 ! CHECK: swap [%i0+32], %o2 ! encoding: [0xd4,0x7e,0x20,0x20] 13 swap [%i0+32], %o2 15 ! CHECK: cas [%i0], %l6, %o2 ! encoding: [0xd5,0xe6,0x10,0x16] 16 cas [%i0], %l6, %o2 18 ! CHECK: casx [%i0], %l6, %o2 ! encoding: [0xd5,0xf6,0x10,0x16] 19 casx [%i0], %l6, %o2
|
/external/hamcrest/src/org/hamcrest/core/ |
IsEqual.java | 32 private static boolean areEqual(Object o1, Object o2) { 33 if (o1 == null || o2 == null) { 34 return o1 == null && o2 == null; 36 return isArray(o2) && areArraysEqual(o1, o2); 38 return o1.equals(o2); 42 private static boolean areArraysEqual(Object o1, Object o2) { 43 return areArrayLengthsEqual(o1, o2) 44 && areArrayElementsEqual(o1, o2); 47 private static boolean areArrayLengthsEqual(Object o1, Object o2) { [all...] |
/external/libcxx/test/input.output/iostreams.base/fpos/fpos.operations/ |
streamsize.pass.cpp | 22 std::streamoff o2(sz); 23 assert(o == o2);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostreams.base/fpos/fpos.operations/ |
streamsize.pass.cpp | 22 std::streamoff o2(sz); 23 assert(o == o2);
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
MessageDateComparator.java | 23 public int compare(Message o1, Message o2) { 27 } else if (o2.getSentDate() == null) { 30 return o2.getSentDate().compareTo(o1.getSentDate());
|
/external/libcxx/test/utilities/optional/optional.relops/ |
equal.pass.cpp | 42 constexpr O o2; // disengaged local 48 static_assert ( o1 == o2 , "" ); 53 static_assert ( o2 == o1 , "" ); 54 static_assert ( o2 == o2 , "" ); 55 static_assert ( !(o2 == o3), "" ); 56 static_assert ( !(o2 == o4), "" ); 57 static_assert ( !(o2 == o5), "" ); 60 static_assert ( !(o3 == o2), "" ); 66 static_assert ( !(o4 == o2), "" ); [all...] |
less_than.pass.cpp | 39 constexpr O o2; // disengaged local 45 static_assert ( !(o1 < o2), "" ); 50 static_assert ( !(o2 < o1), "" ); 51 static_assert ( !(o2 < o2), "" ); 52 static_assert ( o2 < o3 , "" ); 53 static_assert ( o2 < o4 , "" ); 54 static_assert ( o2 < o5 , "" ); 57 static_assert ( !(o3 < o2), "" ); 63 static_assert ( !(o4 < o2), "" ); [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.relops/ |
equal.pass.cpp | 42 constexpr O o2; // disengaged local 48 static_assert ( o1 == o2 , "" ); 53 static_assert ( o2 == o1 , "" ); 54 static_assert ( o2 == o2 , "" ); 55 static_assert ( !(o2 == o3), "" ); 56 static_assert ( !(o2 == o4), "" ); 57 static_assert ( !(o2 == o5), "" ); 60 static_assert ( !(o3 == o2), "" ); 66 static_assert ( !(o4 == o2), "" ); [all...] |
less_than.pass.cpp | 39 constexpr O o2; // disengaged local 45 static_assert ( !(o1 < o2), "" ); 50 static_assert ( !(o2 < o1), "" ); 51 static_assert ( !(o2 < o2), "" ); 52 static_assert ( o2 < o3 , "" ); 53 static_assert ( o2 < o4 , "" ); 54 static_assert ( o2 < o5 , "" ); 57 static_assert ( !(o3 < o2), "" ); 63 static_assert ( !(o4 < o2), "" ); [all...] |
/external/libcxx/test/utilities/optional/optional.comp_with_t/ |
less_than.pass.cpp | 43 constexpr O o2{1}; // engaged 47 static_assert ( !(o2 < T(1)), "" ); 49 static_assert ( o2 < T(2) , "" ); 50 static_assert ( o2 < T(val), "" ); 54 static_assert ( !(T(1) < o2), "" ); 56 static_assert ( !(T(2) < o2), "" ); 57 static_assert (!(T(val) < o2), "" );
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.comp_with_t/ |
less_than.pass.cpp | 43 constexpr O o2{1}; // engaged 47 static_assert ( !(o2 < T(1)), "" ); 49 static_assert ( o2 < T(2) , "" ); 50 static_assert ( o2 < T(val), "" ); 54 static_assert ( !(T(1) < o2), "" ); 56 static_assert ( !(T(2) < o2), "" ); 57 static_assert (!(T(val) < o2), "" );
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
CollatorTest.java | 35 Object o, o2; local 39 o2 = "F"; 40 assertTrue("a) Failed on primary difference", c.compare(o, o2) < 0); 42 o2 = "\u00e9"; 43 assertTrue("a) Failed on secondary difference", c.compare(o, o2) < 0); 45 o2 = "E"; 46 assertTrue("a) Failed on tertiary difference", c.compare(o, o2) < 0); 48 o2 = "\u0002"; 49 assertTrue("a) Failed on identical", c.compare(o, o2) < 0); 51 o2 = "e" [all...] |
/external/libexif/libexif/olympus/ |
exif-mnote-data-olympus.c | 103 size_t i, o, s, doff, base = 0, o2 = 6 + 2; local 146 o2 += 4; 179 o2 += 2 + 8; 183 exif_set_long (*buf + o2 + 2 + n->count * 12, n->order, 0); 190 exif_set_short (*buf + o2, n->order, (ExifShort) n->count); 191 o2 += 2; 195 o = o2 + i * 12; 242 size_t i, tcount, o, o2, datao = 6, base = 0; local 249 o2 = 6 + n->offset; /* Start of interesting data */ 250 if ((o2 + 10 < o2) || (o2 + 10 < 10) || (o2 + 10 > buf_size)) [all...] |
/development/ndk/platforms/android-3/include/linux/sunrpc/ |
gss_asn1.h | 34 #define g_OID_equal(o1,o2) (((o1)->len == (o2)->len) && (memcmp((o1)->data,(o2)->data,(int) (o1)->len) == 0))
|
/external/clang/test/SemaCXX/ |
derived-to-base-ambig.cpp | 21 Object2* o2; local 22 o2 = e2; 23 o2 = f2; // expected-error{{ambiguous conversion from derived class 'F2' to base class 'Object2':}} expected-error{{assigning to 'Object2 *' from incompatible type 'F2 *'}}
|
/external/junit/src/org/junit/runner/manipulation/ |
Sorter.java | 18 public int compare(Description o1, Description o2) { 43 public int compare(Description o1, Description o2) { 44 return fComparator.compare(o1, o2);
|
/external/libcxx/test/utilities/optional/optional.nullops/ |
eqaul.pass.cpp | 30 constexpr O o2{1}; // engaged 33 static_assert ( !(nullopt == o2), "" ); 35 static_assert ( !(o2 == nullopt), "" );
|
less_than.pass.cpp | 30 constexpr O o2{1}; // engaged 33 static_assert ( nullopt < o2 , "" ); 35 static_assert ( !(o2 < nullopt), "" );
|
/external/stlport/src/ |
sparc_atomic.s | 16 ld [%o0], %o2 ! Set the current value 19 cas [%o0], %o2, %o3 20 cmp %o2, %o3 ! Check whether successful 23 mov %o2, %o0 ! Set the new value 35 ld [%o0], %o2 ! set the current 36 add %o2, 0x1, %o3 ! Increment and store current 38 cas [%o0], %o2, %o3 39 cmp %o3, %o2 ! Check whether successful 57 ld [%o0], %o2 ! set the current 58 sub %o2, 0x1, %o3 ! decrement and store curren [all...] |
sparc_atomic64.s | 14 ldx [%o0], %o2 ! Set the current value 16 casx [%o0], %o2, %o3 ! Do the compare and swap 17 cmp %o2, %o3 ! Check whether successful 22 mov %o2, %o0 ! Set the new value 33 ldx [%o0], %o2 ! set the current 34 addx %o2, 0x1, %o3 ! Increment and store current 35 casx [%o0], %o2, %o3 ! Do the compare and swap 36 cmp %o3, %o2 ! Check whether successful 53 ldx [%o0], %o2 ! set the current 54 subx %o2, 0x1, %o3 ! decrement and store curren [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.nullops/ |
eqaul.pass.cpp | 30 constexpr O o2{1}; // engaged 33 static_assert ( !(nullopt == o2), "" ); 35 static_assert ( !(o2 == nullopt), "" );
|
less_than.pass.cpp | 30 constexpr O o2{1}; // engaged 33 static_assert ( nullopt < o2 , "" ); 35 static_assert ( !(o2 < nullopt), "" );
|
/ndk/sources/cxx-stl/stlport/src/ |
sparc_atomic.s | 16 ld [%o0], %o2 ! Set the current value 19 cas [%o0], %o2, %o3 20 cmp %o2, %o3 ! Check whether successful 23 mov %o2, %o0 ! Set the new value 35 ld [%o0], %o2 ! set the current 36 add %o2, 0x1, %o3 ! Increment and store current 38 cas [%o0], %o2, %o3 39 cmp %o3, %o2 ! Check whether successful 57 ld [%o0], %o2 ! set the current 58 sub %o2, 0x1, %o3 ! decrement and store curren [all...] |