/external/mockito/src/test/java/org/mockito/internal/matchers/apachecommons/ |
D | EqualsBuilderTest.java | 556 long[][] array2 = new long[2][2]; in testMultiLongArray() local 560 array2[i][j] = (i + 1) * (j + 1); in testMultiLongArray() 564 assertTrue(new EqualsBuilder().append(array1, array2).isEquals()); in testMultiLongArray() 566 assertTrue(!new EqualsBuilder().append(array1, array2).isEquals()); in testMultiLongArray() 571 int[][] array2 = new int[2][2]; in testMultiIntArray() local 575 array2[i][j] = (i + 1) * (j + 1); in testMultiIntArray() 579 assertTrue(new EqualsBuilder().append(array1, array2).isEquals()); in testMultiIntArray() 581 assertTrue(!new EqualsBuilder().append(array1, array2).isEquals()); in testMultiIntArray() 586 short[][] array2 = new short[2][2]; in testMultiShortArray() local 590 array2[i][j] = i; in testMultiShortArray() [all …]
|
/external/proguard/src/proguard/util/ |
D | ArrayUtil.java | 38 public static boolean equal(byte[] array1, byte[] array2, int size) in equal() argument 42 if (array1[index] != array2[index]) in equal() 59 public static boolean equal(short[] array1, short[] array2, int size) in equal() argument 63 if (array1[index] != array2[index]) in equal() 80 public static boolean equal(int[] array1, int[] array2, int size) in equal() argument 84 if (array1[index] != array2[index]) in equal() 101 public static boolean equal(Object[] array1, Object[] array2, int size) in equal() argument 105 if (!array1[index].equals(array2[index])) in equal() 122 public static boolean equalOrNull(Object[] array1, Object[] array2) in equalOrNull() argument 124 return array1 == null ? array2 == null : in equalOrNull() [all …]
|
/external/clang/test/Sema/ |
D | self-comparison.c | 50 int array2[2]; in array_comparisons() local 65 return array1 == array2; // expected-warning{{array comparison always evaluates to false}} in array_comparisons() 66 return array1 != array2; // expected-warning{{array comparison always evaluates to true}} in array_comparisons() 71 return array1 < array2; // expected-warning{{array comparison always evaluates to a constant}} in array_comparisons() 72 return array1 <= array2; // expected-warning{{array comparison always evaluates to a constant}} in array_comparisons() 73 return array1 > array2; // expected-warning{{array comparison always evaluates to a constant}} in array_comparisons() 74 return array1 >= array2; // expected-warning{{array comparison always evaluates to a constant}} in array_comparisons()
|
D | vector-ops.c | 21 int array2[17]; in test1() local 23 (void)(array2[v2ua]); // expected-error{{array subscript is not an integer}} in test1()
|
/external/protobuf/objectivec/Tests/ |
D | GPBArrayTests.m | 194 //% GPB##NAME##Array *array2 = 197 //% XCTAssertNotNil(array2); 210 //% XCTAssertNotEqualObjects(array1, array2); 212 //% XCTAssertNotEqualObjects(array2, array3); 216 //% [array2 release]; 227 //% GPB##NAME##Array *array2 = [array copy]; 228 //% XCTAssertNotNil(array2); 231 //% XCTAssertNotEqual(array, array2); 232 //% XCTAssertEqualObjects(array, array2); 233 //% [array2 release]; [all …]
|
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | array_common_test.h | 179 ArrayType<int32_t> array2; in Serialization_ArrayOfPOD() local 180 mojo::internal::Deserialize<Array<int32_t>>(data, &array2, nullptr); in Serialization_ArrayOfPOD() 182 EXPECT_EQ(4U, array2.size()); in Serialization_ArrayOfPOD() 183 for (size_t i = 0; i < array2.size(); ++i) in Serialization_ArrayOfPOD() 184 EXPECT_EQ(static_cast<int32_t>(i), array2[i]); in Serialization_ArrayOfPOD() 199 ArrayType<int32_t> array2; in Serialization_EmptyArrayOfPOD() local 200 mojo::internal::Deserialize<Array<int32_t>>(data, &array2, nullptr); in Serialization_EmptyArrayOfPOD() 201 EXPECT_EQ(0U, array2.size()); in Serialization_EmptyArrayOfPOD() 225 ArrayType<ArrayType<int32_t>> array2; in Serialization_ArrayOfArrayOfPOD() local 226 mojo::internal::Deserialize<Array<Array<int32_t>>>(data, &array2, nullptr); in Serialization_ArrayOfArrayOfPOD() [all …]
|
/external/eigen/test/ |
D | mapped_matrix.cpp | 26 Scalar* array2 = internal::aligned_new<Scalar>(size); in map_class_vector() local 32 Map<VectorType, AlignedMax>(array2, size) = Map<VectorType,AlignedMax>(array1, size); in map_class_vector() 36 VectorType ma2 = Map<VectorType, AlignedMax>(array2, size); in map_class_vector() 48 internal::aligned_delete(array2, size); in map_class_vector() 63 Scalar* array2 = internal::aligned_new<Scalar>(size); in map_class_matrix() local 64 for(int i = 0; i < size; i++) array2[i] = Scalar(1); in map_class_matrix() 74 Map<MatrixType, AlignedMax> map2(array2, rows, cols); in map_class_matrix() 118 internal::aligned_delete(array2, size); in map_class_matrix() 130 Scalar* array2 = internal::aligned_new<Scalar>(size); in map_static_methods() local 135 VectorType::Map(array2, size) = VectorType::Map(array1, size); in map_static_methods() [all …]
|
D | mapstride.cpp | 69 Scalar* array2 = a_array2; in map_class_matrix() local 71 …array2 = (Scalar*)(internal::IntPtr(a_array2) + (internal::packet_traits<Scalar>::AlignedOnScalar?… in map_class_matrix() 73 …array2 = (Scalar*)(((internal::UIntPtr(a_array2)+EIGEN_MAX_ALIGN_BYTES-1)/EIGEN_MAX_ALIGN_BYTES)*E… in map_class_matrix() 74 Index maxsize2 = a_array2 - array2 + 256; in map_class_matrix() 81 Scalar* array = (k==0 ? array1 : array2); in map_class_matrix() 103 Scalar* array = (k==0 ? array1 : array2); in map_class_matrix() 129 Scalar* array = (k==0 ? array1 : array2); in map_class_matrix()
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_stackdepot_test.cc | 62 uptr array2[] = {1, 2, 3, 4, 8, 9}; in TEST() local 63 StackTrace s2(array2, ARRAY_SIZE(array2)); in TEST() 70 uptr array2[] = {7, 1, 3, 0}; in TEST() local 75 StackTrace s2(array2, ARRAY_SIZE(array2)); in TEST()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ObjectArraysTest.java | 85 Integer[] array2 = ObjectArrays.arraysCopyOf(array1, array1.length); in doTestToArrayImpl2() local 88 Object[] target = ObjectArrays.toArrayImpl(list, array2); in doTestToArrayImpl2() 97 assertTrue(Arrays.equals(expectedArray2, array2)); in doTestToArrayImpl2() 157 private static boolean arrayEquals(Object[] array1, Object[] array2) { in arrayEquals() argument 158 assertSame(array1.getClass(), array2.getClass()); in arrayEquals() 159 return Arrays.equals(array1, array2); in arrayEquals()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ObjectArraysTest.java | 156 Integer[] array2 = ObjectArrays.arraysCopyOf(array1, array1.length); in doTestToArrayImpl2() local 159 Object[] target = ObjectArrays.toArrayImpl(list, array2); in doTestToArrayImpl2() 168 assertTrue(Arrays.equals(expectedArray2, array2)); in doTestToArrayImpl2() 228 private static boolean arrayEquals(Object[] array1, Object[] array2) { in arrayEquals() argument 229 assertSame(array1.getClass(), array2.getClass()); in arrayEquals() 230 return Arrays.equals(array1, array2); in arrayEquals()
|
/external/llvm/test/Transforms/SeparateConstOffsetFromGEP/AMDGPU/ |
D | split-gep-and-gvn-addrspace-addressing-modes.ll | 35 @array2 = internal addrspace(2) constant [4096 x [4 x float]] zeroinitializer, align 4 40 …ntptr inbounds [4096 x [4 x float]], [4096 x [4 x float]] addrspace(2)* @array2, i64 0, i64 %{{[a-… 43 ; IR: getelementptr inbounds [4096 x [4 x float]], [4096 x [4 x float]] addrspace(2)* @array2, i64 … 44 ; IR: getelementptr inbounds [4096 x [4 x float]], [4096 x [4 x float]] addrspace(2)* @array2, i64 … 48 …%tmp2 = getelementptr inbounds [4096 x [4 x float]], [4096 x [4 x float]] addrspace(2)* @array2, i… 53 …%tmp8 = getelementptr inbounds [4096 x [4 x float]], [4096 x [4 x float]] addrspace(2)* @array2, i… 58 …%tmp14 = getelementptr inbounds [4096 x [4 x float]], [4096 x [4 x float]] addrspace(2)* @array2, … 61 …%tmp18 = getelementptr inbounds [4096 x [4 x float]], [4096 x [4 x float]] addrspace(2)* @array2, …
|
/external/llvm/test/CodeGen/X86/ |
D | atom-fixup-lea3.ll | 11 ;int test(int n, int * array, int * m, int * array2) 17 ; *m += array2[j++]; 23 define i32 @test(i32 %n, i32* nocapture %array, i32* nocapture %m, i32* nocapture %array2) #0 { 37 %arrayidx = getelementptr inbounds i32, i32* %array2, i32 %j.09
|
/external/clang/test/SemaCXX/ |
D | warn-self-comparisons.cpp | 4 void f(int (&array1)[2], int (&array2)[2]) { in f() 5 if (array1 == array2) { } // no warning in f()
|
/external/skia/tests/ |
D | SkSLMemoryLayoutTest.cpp | 90 SkSL::Type array2(SkString("vec4[4]"), SkSL::Type::kArray_Kind, *context.fVec4_Type, 4); in DEF_TEST() local 91 REPORTER_ASSERT(r, 64 == layout.size(array2)); in DEF_TEST() 92 REPORTER_ASSERT(r, 16 == layout.alignment(array2)); in DEF_TEST() 93 REPORTER_ASSERT(r, 16 == layout.stride(array2)); in DEF_TEST() 171 SkSL::Type array2(SkString("vec4[4]"), SkSL::Type::kArray_Kind, *context.fVec4_Type, 4); in DEF_TEST() local 172 REPORTER_ASSERT(r, 64 == layout.size(array2)); in DEF_TEST() 173 REPORTER_ASSERT(r, 16 == layout.alignment(array2)); in DEF_TEST() 174 REPORTER_ASSERT(r, 16 == layout.stride(array2)); in DEF_TEST()
|
/external/mockftpserver/tags/1.0/src/test/java/org/mockftpserver/test/ |
D | AbstractTest.java | 142 protected void assertEquals(String message, byte[] array1, byte[] array2) { in assertEquals() argument 143 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals() 151 protected void assertEquals(String message, Object[] array1, Object[] array2) { in assertEquals() argument 152 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals()
|
/external/mockftpserver/tags/2.5/src/test/java/org/mockftpserver/test/ |
D | AbstractTestCase.java | 157 protected void assertEquals(String message, byte[] array1, byte[] array2) { in assertEquals() argument 158 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals() 167 protected void assertEquals(String message, Object[] array1, Object[] array2) { in assertEquals() argument 168 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals()
|
/external/mockftpserver/tags/1.2.2/src/test/java/org/mockftpserver/test/ |
D | AbstractTest.java | 151 protected void assertEquals(String message, byte[] array1, byte[] array2) { in assertEquals() argument 152 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals() 160 protected void assertEquals(String message, Object[] array1, Object[] array2) { in assertEquals() argument 161 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals()
|
/external/mockftpserver/tags/2.x_Before_IDEA/src/test/java/org/mockftpserver/test/ |
D | AbstractTest.java | 151 protected void assertEquals(String message, byte[] array1, byte[] array2) { in assertEquals() argument 152 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals() 160 protected void assertEquals(String message, Object[] array1, Object[] array2) { in assertEquals() argument 161 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals()
|
/external/mockftpserver/tags/2.0.1/src/test/java/org/mockftpserver/test/ |
D | AbstractTest.java | 156 protected void assertEquals(String message, byte[] array1, byte[] array2) { in assertEquals() argument 157 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals() 166 protected void assertEquals(String message, Object[] array1, Object[] array2) { in assertEquals() argument 167 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals()
|
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/test/ |
D | AbstractTest.java | 151 protected void assertEquals(String message, byte[] array1, byte[] array2) { in assertEquals() argument 152 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals() 160 protected void assertEquals(String message, Object[] array1, Object[] array2) { in assertEquals() argument 161 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals()
|
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/java/org/mockftpserver/test/ |
D | AbstractTest.java | 156 protected void assertEquals(String message, byte[] array1, byte[] array2) { in assertEquals() argument 157 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals() 166 protected void assertEquals(String message, Object[] array1, Object[] array2) { in assertEquals() argument 167 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals()
|
/external/mockftpserver/tags/1.2/src/test/java/org/mockftpserver/test/ |
D | AbstractTest.java | 151 protected void assertEquals(String message, byte[] array1, byte[] array2) { in assertEquals() argument 152 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals() 160 protected void assertEquals(String message, Object[] array1, Object[] array2) { in assertEquals() argument 161 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals()
|
/external/mockftpserver/tags/2.2/src/test/java/org/mockftpserver/test/ |
D | AbstractTestCase.java | 156 protected void assertEquals(String message, byte[] array1, byte[] array2) { in assertEquals() argument 157 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals() 166 protected void assertEquals(String message, Object[] array1, Object[] array2) { in assertEquals() argument 167 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals()
|
/external/mockftpserver/tags/2.0/src/test/java/org/mockftpserver/test/ |
D | AbstractTest.java | 156 protected void assertEquals(String message, byte[] array1, byte[] array2) { in assertEquals() argument 157 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals() 166 protected void assertEquals(String message, Object[] array1, Object[] array2) { in assertEquals() argument 167 assertTrue("Arrays not equal: " + message, Arrays.equals(array1, array2)); in assertEquals()
|