/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...] |
/toolchain/binutils/binutils-2.25/gold/testsuite/ |
tls_test_file2.cc | 29 __thread int o2 = -2; variable
|
/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 10 ! CHECK: ldsba [%i0+%l6] 131, %o2 ! encoding: [0xd4,0xce,0x10,0x76] 11 ldsba [%i0 + %l6] 131, %o2 13 ! CHECK: ldsh [%i0+%l6], %o2 ! encoding: [0xd4,0x56,0x00,0x16] 14 ldsh [%i0 + %l6], %o2 15 ! CHECK: ldsh [%i0+32], %o2 ! encoding: [0xd4,0x56,0x20,0x20] 16 ldsh [%i0 + 32], %o2 [all...] |
/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/std/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);
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/sparc/ |
ldd_std.s | 4 ldda [%g3] 0x04, %o2 6 stda %o2, [%g3] 0x04
|
edge.s | 15 edge32cc %o5, %o4, %o2 16 edge32 %o5, %o4, %o2 17 edge32n %o5, %o4, %o2 18 edge32lcc %o2, %g5, %l1 19 edge32l %o2, %g5, %l1 20 edge32ln %o2, %g5, %l1
|
ldtw_sttw.s | 4 ldtwa [%g3] 0x04, %o2 7 sttwa %o2, [%g3] 0x04
|
ldx_stx.s | 4 ldxa [%g3] 0x04, %o2 7 stxa %o2, [%g3] 0x04
|
/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());
|
/packages/services/Telephony/src/com/android/phone/common/mail/ |
MessageDateComparator.java | 22 public int compare(Message o1, Message o2) { 26 } else if (o2.getSentDate() == null) { 29 return o2.getSentDate().compareTo(o1.getSentDate());
|
/external/libcxx/test/std/experimental/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...] |
greater_equal.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...] |
greater_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...] |
less_equal.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...] |
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...] |
not_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...] |
/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...] |
/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/v8/test/mjsunit/regress/ |
regress-migrate-callbacks.js | 8 var o2 = {} 9 o2.x = 1.5; 10 o2.__defineSetter__('y', function(v) { });
|
/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...] |
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/ |
StartPositionComparator.java | 25 public int compare(ASTNode o1, ASTNode o2) { 26 return Integer.compare(o1.getStartPosition(), o2.getStartPosition());
|