/external/mockito/src/test/java/org/mockito/internal/matchers/apachecommons/ |
D | EqualsBuilderTest.java | 555 long[][] array1 = new long[2][2]; in testMultiLongArray() local 557 for (int i = 0; i < array1.length; ++i) { in testMultiLongArray() 558 for (int j = 0; j < array1[0].length; j++) { in testMultiLongArray() 559 array1[i][j] = (i + 1) * (j + 1); in testMultiLongArray() 563 assertTrue(new EqualsBuilder().append(array1, array1).isEquals()); in testMultiLongArray() 564 assertTrue(new EqualsBuilder().append(array1, array2).isEquals()); in testMultiLongArray() 565 array1[1][1] = 0; in testMultiLongArray() 566 assertTrue(!new EqualsBuilder().append(array1, array2).isEquals()); in testMultiLongArray() 570 int[][] array1 = new int[2][2]; in testMultiIntArray() local 572 for (int i = 0; i < array1.length; ++i) { in testMultiIntArray() [all …]
|
/external/clang/test/Sema/ |
D | self-comparison.c | 49 int array1[2]; in array_comparisons() local 55 return array1 == array1; // expected-warning{{self-comparison always evaluates to true}} in array_comparisons() 56 return array1 != array1; // expected-warning{{self-comparison always evaluates to false}} in array_comparisons() 57 return array1 < array1; // expected-warning{{self-comparison always evaluates to false}} in array_comparisons() 58 return array1 <= array1; // expected-warning{{self-comparison always evaluates to true}} in array_comparisons() 59 return array1 > array1; // expected-warning{{self-comparison always evaluates to false}} in array_comparisons() 60 return array1 >= array1; // expected-warning{{self-comparison always evaluates to true}} in array_comparisons() 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() [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/eigen/test/ |
D | mapped_matrix.cpp | 25 Scalar* array1 = internal::aligned_new<Scalar>(size); in map_class_vector() local 31 Map<VectorType, AlignedMax>(array1, size) = VectorType::Random(size); in map_class_vector() 32 Map<VectorType, AlignedMax>(array2, size) = Map<VectorType,AlignedMax>(array1, size); in map_class_vector() 33 Map<VectorType>(array3unaligned, size) = Map<VectorType>(array1, size); in map_class_vector() 34 Map<VectorType>(array4, size) = Map<VectorType,AlignedMax>(array1, size); in map_class_vector() 35 VectorType ma1 = Map<VectorType, AlignedMax>(array1, size); in map_class_vector() 47 internal::aligned_delete(array1, size); in map_class_vector() 61 Scalar* array1 = internal::aligned_new<Scalar>(size); in map_class_matrix() local 62 for(int i = 0; i < size; i++) array1[i] = Scalar(1); in map_class_matrix() 73 Map<MatrixType> map1(array1, rows, cols); in map_class_matrix() [all …]
|
/external/eigen/doc/ |
D | QuickReference.dox | 374 array1 * array2 array1 / array2 array1 *= array2 array1 /= array2 375 array1 + scalar array1 - scalar array1 += scalar array1 -= scalar 378 array1 < array2 array1 > array2 array1 < scalar array1 > scalar 379 array1 <= array2 array1 >= array2 array1 <= scalar array1 >= scalar 380 array1 == array2 array1 != array2 array1 == scalar array1 != scalar 381 array1.min(array2) array1.max(array2) array1.min(scalar) array1.max(scalar) 384 array1.abs2() 385 array1.abs() abs(array1) 386 array1.sqrt() sqrt(array1) 387 array1.log() log(array1) [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ObjectArraysTest.java | 82 private void doTestToArrayImpl2(List<Integer> list, Integer[] array1, in doTestToArrayImpl2() argument 84 Integer[] starting = ObjectArrays.arraysCopyOf(array1, array1.length); in doTestToArrayImpl2() 85 Integer[] array2 = ObjectArrays.arraysCopyOf(array1, array1.length); in doTestToArrayImpl2() 86 Object[] reference = list.toArray(array1); in doTestToArrayImpl2() 96 assertTrue(Arrays.equals(expectedArray1, array1)); 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/tensorflow/tensorflow/core/kernels/neon/ |
D | types.h | 49 int MatchingArraySize(const ArrayType1& array1, int index1, in MatchingArraySize() argument 51 DCHECK_EQ(ArraySize(array1, index1), ArraySize(array2, index2)); in MatchingArraySize() 52 return ArraySize(array1, index1); in MatchingArraySize() 56 int MatchingArraySize(const ArrayType1& array1, int index1, in MatchingArraySize() argument 58 DCHECK_EQ(ArraySize(array1, index1), ArraySize(array2, index2)); in MatchingArraySize() 59 return MatchingArraySize(array1, index1, args...); in MatchingArraySize()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ObjectArraysTest.java | 153 private void doTestToArrayImpl2(List<Integer> list, Integer[] array1, in doTestToArrayImpl2() argument 155 Integer[] starting = ObjectArrays.arraysCopyOf(array1, array1.length); in doTestToArrayImpl2() 156 Integer[] array2 = ObjectArrays.arraysCopyOf(array1, array1.length); in doTestToArrayImpl2() 157 Object[] reference = list.toArray(array1); in doTestToArrayImpl2() 167 assertTrue(Arrays.equals(expectedArray1, array1)); 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/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_stackdepot_test.cc | 59 uptr array1[] = {1, 2, 3, 4, 7}; in TEST() local 60 StackTrace s1(array1, ARRAY_SIZE(array1)); in TEST() 69 uptr array1[] = {1, 2, 3, 4, 5}; in TEST() local 74 StackTrace s1(array1, ARRAY_SIZE(array1)); in TEST()
|
/external/tensorflow/tensorflow/contrib/training/python/training/ |
D | feeding_queue_runner_test.py | 88 array1 = np.arange(32) 90 df = pd.DataFrame({"a": array1, "b": array2}, index=np.arange(64, 96)) 99 j % array1.shape[0] 116 array1 = np.arange(128, 256) 117 array2 = 2 * array1 118 df = pd.DataFrame({"a": array1, "b": array2}, index=np.arange(128))
|
/external/skqp/src/core/ |
D | SkBlurMF.cpp | 130 static uint32_t insert_into_arrays(SkScalar* array1, SkScalar* array2, in insert_into_arrays() argument 134 SkASSERT(lower >= array1[0] && higher <= array1[*num-1]); in insert_into_arrays() 139 if (lower >= array1[i] && lower < array1[i+1]) { in insert_into_arrays() 140 if (!SkScalarNearlyEqual(lower, array1[i])) { in insert_into_arrays() 141 memmove(&array1[i+2], &array1[i+1], (*num-i-1)*sizeof(SkScalar)); in insert_into_arrays() 142 array1[i+1] = lower; in insert_into_arrays() 144 array2[i+1] = interp(array1[i], lower, array1[i+2], array2[i], array2[i+2]); in insert_into_arrays() 153 if (higher > array1[i] && higher <= array1[i+1]) { in insert_into_arrays() 154 if (!SkScalarNearlyEqual(higher, array1[i+1])) { in insert_into_arrays() 155 memmove(&array1[i+2], &array1[i+1], (*num-i-1)*sizeof(SkScalar)); in insert_into_arrays() [all …]
|
/external/skia/src/core/ |
D | SkBlurMF.cpp | 130 static uint32_t insert_into_arrays(SkScalar* array1, SkScalar* array2, in insert_into_arrays() argument 134 SkASSERT(lower >= array1[0] && higher <= array1[*num-1]); in insert_into_arrays() 139 if (lower >= array1[i] && lower < array1[i+1]) { in insert_into_arrays() 140 if (!SkScalarNearlyEqual(lower, array1[i])) { in insert_into_arrays() 141 memmove(&array1[i+2], &array1[i+1], (*num-i-1)*sizeof(SkScalar)); in insert_into_arrays() 142 array1[i+1] = lower; in insert_into_arrays() 144 array2[i+1] = interp(array1[i], lower, array1[i+2], array2[i], array2[i+2]); in insert_into_arrays() 153 if (higher > array1[i] && higher <= array1[i+1]) { in insert_into_arrays() 154 if (!SkScalarNearlyEqual(higher, array1[i+1])) { in insert_into_arrays() 155 memmove(&array1[i+2], &array1[i+1], (*num-i-1)*sizeof(SkScalar)); in insert_into_arrays() [all …]
|
/external/protobuf/objectivec/Tests/ |
D | GPBArrayTests.m | 186 //% GPB##NAME##Array *array1 = 189 //% XCTAssertNotNil(array1); 204 //% XCTAssertNotEqual(array1, array1prime); 205 //% XCTAssertEqualObjects(array1, array1prime); 207 //% XCTAssertEqual([array1 hash], [array1prime hash]); 210 //% XCTAssertNotEqualObjects(array1, array2); 211 //% XCTAssertNotEqualObjects(array1, array3); 214 //% [array1 release]; 519 GPBInt32Array *array1 = 522 XCTAssertNotNil(array1); [all …]
|
/external/skia/tests/ |
D | SkSLMemoryLayoutTest.cpp | 83 SkSL::Type array1(SkSL::String("float[4]"), SkSL::Type::kArray_Kind, *context.fFloat_Type, 4); in DEF_TEST() local 84 REPORTER_ASSERT(r, 64 == layout.size(array1)); in DEF_TEST() 85 REPORTER_ASSERT(r, 16 == layout.alignment(array1)); in DEF_TEST() 86 REPORTER_ASSERT(r, 16 == layout.stride(array1)); in DEF_TEST() 164 SkSL::Type array1(SkSL::String("float[4]"), SkSL::Type::kArray_Kind, *context.fFloat_Type, 4); in DEF_TEST() local 165 REPORTER_ASSERT(r, 16 == layout.size(array1)); in DEF_TEST() 166 REPORTER_ASSERT(r, 4 == layout.alignment(array1)); in DEF_TEST() 167 REPORTER_ASSERT(r, 4 == layout.stride(array1)); in DEF_TEST()
|
/external/skqp/tests/ |
D | SkSLMemoryLayoutTest.cpp | 83 SkSL::Type array1(SkSL::String("float[4]"), SkSL::Type::kArray_Kind, *context.fFloat_Type, 4); in DEF_TEST() local 84 REPORTER_ASSERT(r, 64 == layout.size(array1)); in DEF_TEST() 85 REPORTER_ASSERT(r, 16 == layout.alignment(array1)); in DEF_TEST() 86 REPORTER_ASSERT(r, 16 == layout.stride(array1)); in DEF_TEST() 164 SkSL::Type array1(SkSL::String("float[4]"), SkSL::Type::kArray_Kind, *context.fFloat_Type, 4); in DEF_TEST() local 165 REPORTER_ASSERT(r, 16 == layout.size(array1)); in DEF_TEST() 166 REPORTER_ASSERT(r, 4 == layout.alignment(array1)); in DEF_TEST() 167 REPORTER_ASSERT(r, 4 == layout.stride(array1)); in DEF_TEST()
|
/external/tensorflow/tensorflow/contrib/opt/python/training/ |
D | external_optimizer_test.py | 58 def assertAllClose(self, array1, array2, rtol=1e-5, atol=1e-5): argument 59 array1 = np.asarray(array1) 61 if not array1.shape: 62 array1 = np.array([array1]) 66 super(TestCase, self).assertAllClose(array1, array2, rtol=rtol, atol=atol)
|
/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/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/clang/test/Lexer/ |
D | utf8-char-literal.cpp | 6 int array1['\xF1' != u'\xf1'? 1 : -1]; variable 7 int array1['ñ' != u'\xf1'? 1 : -1]; // expected-error {{character too large for enclosing characte… variable
|
/external/mockftpserver/tags/2.3/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.4/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/2.0-rc1/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/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/MockFtpServer/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/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()
|