/external/proguard/src/proguard/util/ |
D | ArrayUtil.java | 23 import java.lang.reflect.Array; 33 * @param array1 the first array. 34 * @param array2 the second array. 54 * @param array1 the first array. 55 * @param array2 the second array. 75 * @param array1 the first array. 76 * @param array2 the second array. 96 * @param array1 the first array. 97 * @param array2 the second array. 118 * @param array1 the first array. [all …]
|
/external/protobuf/objectivec/Tests/ |
D | GPBArrayTests.m | 101 //% GPB##NAME##Array *array = [[GPB##NAME##Array alloc] init]; 102 //% XCTAssertNotNil(array); 103 //% XCTAssertEqual(array.count, 0U); 104 //% XCTAssertThrowsSpecificNamed([array valueAtIndex:0], NSException, NSRangeException); 105 //% [array enumerateValuesWithBlock:^(TYPE value, NSUInteger idx, BOOL *stop) { 109 //% [array enumerateValuesWithOptions:NSEnumerationReverse 114 //% [array release]; 118 //% GPB##NAME##Array *array = [GPB##NAME##Array arrayWithValue:VAL1]; 119 //% XCTAssertNotNil(array); 120 //% XCTAssertEqual(array.count, 1U); [all …]
|
/external/kmod/testsuite/ |
D | test-array.c | 25 #include <shared/array.h> 31 struct array array; in test_array_append1() local 34 array_init(&array, 2); in test_array_append1() 35 array_append(&array, c1); in test_array_append1() 36 assert_return(array.count == 1, EXIT_FAILURE); in test_array_append1() 37 assert_return(array.array[0] == c1, EXIT_FAILURE); in test_array_append1() 38 array_free_array(&array); in test_array_append1() 43 .description = "test simple array append"); 48 struct array array; in test_array_append2() local 53 array_init(&array, 2); in test_array_append2() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_array.py | 9 import array, cStringIO 13 class ArraySubclass(array.array): 16 class ArraySubclassWithKwargs(array.array): 18 array.array.__init__(self, typecode) 28 self.assertRaises(TypeError, array.array) 29 self.assertRaises(TypeError, array.array, spam=42) 30 self.assertRaises(TypeError, array.array, 'xx') 31 self.assertRaises(TypeError, array.array, '') 32 self.assertRaises(TypeError, array.array, 1) 33 self.assertRaises(ValueError, array.array, 'x') [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/ |
D | 430AofA.frag.out | 2 ERROR: 0:6: '[]' : only outermost dimension of an array of arrays can be implicitly sized 3 ERROR: 0:14: 'constructor' : constructing non-array constituent from array argument 4 ERROR: 0:15: 'constructor' : array constructor argument not correct type to construct array element 5 ERROR: 0:28: '[' : array index out of range '4' 6 …t convert parameter 2 from ' const 3-element array of 4-component vector of float' to ' temp 2-ele… 7 …t convert parameter 2 from ' const 2-element array of 4-component vector of float' to ' temp 3-ele… 8 …rt from ' const 3-element array of 2-element array of 4-component vector of float' to ' temp 4-ele… 9 …not convert from ' global 4-element array of 7-element array of float' to ' global 5-element array… 10 …convert from ' global 4-element array of 7-element array of float' to ' global unsized 1-element a… 12 …ype ' global 4-element array of 7-element array of float' and a right operand of type ' global 5-e… [all …]
|
D | 310AofA.vert.out | 2 ERROR: 0:17: '' : array size required 3 ERROR: 0:23: '' : array size required 4 ERROR: 0:28: '[]' : only outermost dimension of an array of arrays can be implicitly sized 5 ERROR: 0:40: '' : array size required 6 ERROR: 0:48: 'constructor' : constructing non-array constituent from array argument 7 ERROR: 0:49: 'constructor' : array constructor argument not correct type to construct array element 8 ERROR: 0:62: '[' : array index out of range '4' 9 … convert from ' global 4-element array of 7-element array of highp float' to ' global 5-element ar… 10 …vert from ' global 4-element array of 7-element array of highp float' to ' global unsized 1-elemen… 12 … ' global 4-element array of 7-element array of highp float' and a right operand of type ' global … [all …]
|
D | mixedArrayDecls.frag.out | 8 …on Definition: foo(i1[14][15][6]; ( global 14-element array of 15-element array of 6-element array… 10 0:16 'p' ( in 14-element array of 15-element array of 6-element array of int) 13 0:16 'p' ( in 14-element array of 15-element array of 6-element array of int) 17 0:20 direct index ( temp 14-element array of int) 18 0:20 'g' ( global unsized 4-element array of 14-element array of int) 21 0:21 direct index ( temp 14-element array of int) 22 0:21 'h' ( global unsized 3-element array of 14-element array of int) 25 0:24 Function Definition: bar( ( global 4-element array of 3-element array of 2-element array of f… 29 0:24 'a' ( temp 4-element array of 3-element array of 2-element array of float) 31 … ( global structure{ global 2-element array of 3-element array of int a, global 5-element array o… [all …]
|
D | glsl.460.subgroup.mesh.out | 358 …array of float ClipDistance gl_ClipDistance, out unsized 3-element array of float CullDistance gl… 359 …array of block{ out 4-component vector of float Position gl_Position, out float PointSize gl_Poin… 370 …array of float ClipDistance gl_ClipDistance, out unsized 3-element array of float CullDistance gl… 371 …array of block{ out 4-component vector of float Position gl_Position, out float PointSize gl_Poin… 379 0:127 gl_ClipDistance: direct index for structure ( out unsized 4-element array of float C… 380 …array of float ClipDistance gl_ClipDistance, out unsized 3-element array of float CullDistance gl… 381 …array of block{ out 4-component vector of float Position gl_Position, out float PointSize gl_Poin… 391 0:128 gl_CullDistance: direct index for structure ( out unsized 3-element array of float C… 392 …array of float ClipDistance gl_ClipDistance, out unsized 3-element array of float CullDistance gl… 393 …array of block{ out 4-component vector of float Position gl_Position, out float PointSize gl_Poin… [all …]
|
/external/deqp-deps/glslang/Test/baseResults/ |
D | 430AofA.frag.out | 2 ERROR: 0:6: '[]' : only outermost dimension of an array of arrays can be implicitly sized 3 ERROR: 0:14: 'constructor' : constructing non-array constituent from array argument 4 ERROR: 0:15: 'constructor' : array constructor argument not correct type to construct array element 5 ERROR: 0:28: '[' : array index out of range '4' 6 …t convert parameter 2 from ' const 3-element array of 4-component vector of float' to ' temp 2-ele… 7 …t convert parameter 2 from ' const 2-element array of 4-component vector of float' to ' temp 3-ele… 8 …rt from ' const 3-element array of 2-element array of 4-component vector of float' to ' temp 4-ele… 9 …not convert from ' global 4-element array of 7-element array of float' to ' global 5-element array… 10 …convert from ' global 4-element array of 7-element array of float' to ' global unsized 1-element a… 12 …ype ' global 4-element array of 7-element array of float' and a right operand of type ' global 5-e… [all …]
|
D | 310AofA.vert.out | 2 ERROR: 0:17: '' : array size required 3 ERROR: 0:23: '' : array size required 4 ERROR: 0:28: '[]' : only outermost dimension of an array of arrays can be implicitly sized 5 ERROR: 0:40: '' : array size required 6 ERROR: 0:48: 'constructor' : constructing non-array constituent from array argument 7 ERROR: 0:49: 'constructor' : array constructor argument not correct type to construct array element 8 ERROR: 0:62: '[' : array index out of range '4' 9 … convert from ' global 4-element array of 7-element array of highp float' to ' global 5-element ar… 10 …vert from ' global 4-element array of 7-element array of highp float' to ' global unsized 1-elemen… 12 … ' global 4-element array of 7-element array of highp float' and a right operand of type ' global … [all …]
|
D | mixedArrayDecls.frag.out | 8 …on Definition: foo(i1[14][15][6]; ( global 14-element array of 15-element array of 6-element array… 10 0:16 'p' ( in 14-element array of 15-element array of 6-element array of int) 13 0:16 'p' ( in 14-element array of 15-element array of 6-element array of int) 17 0:20 direct index ( temp 14-element array of int) 18 0:20 'g' ( global unsized 4-element array of 14-element array of int) 21 0:21 direct index ( temp 14-element array of int) 22 0:21 'h' ( global unsized 3-element array of 14-element array of int) 25 0:24 Function Definition: bar( ( global 4-element array of 3-element array of 2-element array of f… 29 0:24 'a' ( temp 4-element array of 3-element array of 2-element array of float) 31 … ( global structure{ global 2-element array of 3-element array of int a, global 5-element array o… [all …]
|
D | glsl.460.subgroup.mesh.out | 358 …array of float ClipDistance gl_ClipDistance, out unsized 3-element array of float CullDistance gl… 359 …array of block{ out 4-component vector of float Position gl_Position, out float PointSize gl_Poin… 370 …array of float ClipDistance gl_ClipDistance, out unsized 3-element array of float CullDistance gl… 371 …array of block{ out 4-component vector of float Position gl_Position, out float PointSize gl_Poin… 379 0:127 gl_ClipDistance: direct index for structure ( out unsized 4-element array of float C… 380 …array of float ClipDistance gl_ClipDistance, out unsized 3-element array of float CullDistance gl… 381 …array of block{ out 4-component vector of float Position gl_Position, out float PointSize gl_Poin… 391 0:128 gl_CullDistance: direct index for structure ( out unsized 3-element array of float C… 392 …array of float ClipDistance gl_ClipDistance, out unsized 3-element array of float CullDistance gl… 393 …array of block{ out 4-component vector of float Position gl_Position, out float PointSize gl_Poin… [all …]
|
D | runtimeArray.vert.out | 2 …[]' : assuming binding count of one for compile-time checking of binding numbers for unsized array 3 …[]' : assuming binding count of one for compile-time checking of binding numbers for unsized array 4 …[]' : assuming binding count of one for compile-time checking of binding numbers for unsized array 5 …[]' : assuming binding count of one for compile-time checking of binding numbers for unsized array 6 …[]' : assuming binding count of one for compile-time checking of binding numbers for unsized array 7 …[]' : assuming binding count of one for compile-time checking of binding numbers for unsized array 8 ERROR: 0:61: '[' : array must be redeclared with a size before being indexed with a variable 9 ERROR: 0:62: '[' : array must be redeclared with a size before being indexed with a variable 10 ERROR: 0:63: '[' : array must be redeclared with a size before being indexed with a variable 11 ERROR: 0:66: 'length' : array must be declared with a size before using this method [all …]
|
/external/llvm-project/libcxx/test/std/containers/sequences/array/array.cons/ |
D | implicit_copy.pass.cpp | 9 // <array> 11 // implicitly generated array constructors / assignment operators 13 #include <array> 18 // std::array is explicitly allowed to be initialized with A a = { init-list };. 44 typedef std::array<double, 3> Array; in tests() typedef 45 Array array = {1.1, 2.2, 3.3}; in tests() local 46 Array copy = array; in tests() 47 copy = array; in tests() 48 static_assert(std::is_copy_constructible<Array>::value, ""); in tests() 49 static_assert(std::is_copy_assignable<Array>::value, ""); in tests() [all …]
|
/external/kmod/shared/ |
D | array.c | 25 #include <shared/array.h> 27 /* basic pointer array growing in steps */ 30 static int array_realloc(struct array *array, size_t new_total) in array_realloc() argument 32 void *tmp = realloc(array->array, sizeof(void *) * new_total); in array_realloc() 35 array->array = tmp; in array_realloc() 36 array->total = new_total; in array_realloc() 40 void array_init(struct array *array, size_t step) in array_init() argument 43 array->array = NULL; in array_init() 44 array->count = 0; in array_init() 45 array->total = 0; in array_init() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_array.py | 14 import array 15 from array import _array_reconstructor as array_reconstructor 17 sizeof_wchar = array.array('u').itemsize 20 class ArraySubclass(array.array): 23 class ArraySubclassWithKwargs(array.array): 25 array.array.__init__(self) 32 self.assertRaises(TypeError, array.array) 33 self.assertRaises(TypeError, array.array, spam=42) 34 self.assertRaises(TypeError, array.array, 'xx') 35 self.assertRaises(ValueError, array.array, 'x') [all …]
|
/external/caliper/examples/src/main/java/examples/ |
D | CopyArrayBenchmark.java | 27 * Tests each of four ways to copy an array, for all nine array types. 29 * <p>Once upon a time, {@code clone} was much slower than the other array copy techniques, but 33 * array clone() much slower than Arrays.copyOf</a> 43 * <li>As array sizes get large, the runtime is indeed proportional to the size of the array in 50 @Override Object[] copy(Object[] array) { in copy() argument 51 return array.clone(); in copy() 53 @Override boolean[] copy(boolean[] array) { in copy() argument 54 return array.clone(); in copy() 56 @Override byte[] copy(byte[] array) { in copy() argument 57 return array.clone(); in copy() [all …]
|
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/ |
D | stable_partition.pass.cpp | 42 P array[] = in test() local 55 const unsigned size = sizeof(array)/sizeof(array[0]); in test() 56 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); in test() 57 assert(base(r) == array + 4); in test() 58 assert(array[0] == P(1, 1)); in test() 59 assert(array[1] == P(1, 2)); in test() 60 assert(array[2] == P(3, 1)); in test() 61 assert(array[3] == P(3, 2)); in test() 62 assert(array[4] == P(0, 1)); in test() 63 assert(array[5] == P(0, 2)); in test() [all …]
|
/external/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/ |
D | stable_partition.pass.cpp | 41 P array[] = in test() local 54 const unsigned size = sizeof(array)/sizeof(array[0]); in test() 55 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); in test() 56 assert(base(r) == array + 4); in test() 57 assert(array[0] == P(1, 1)); in test() 58 assert(array[1] == P(1, 2)); in test() 59 assert(array[2] == P(3, 1)); in test() 60 assert(array[3] == P(3, 2)); in test() 61 assert(array[4] == P(0, 1)); in test() 62 assert(array[5] == P(0, 2)); in test() [all …]
|
/external/llvm-project/clang/test/Sema/ |
D | warn-tautological-compare.c | 15 if (!b) {} // expected-warning {{address of array 'b' will always evaluate to 'true'}} in test() 16 …if (b == 0) {} // expected-warning {{comparison of array 'b' equal to a null pointer is always fal… in test() 17 if (!c.x) {} // expected-warning {{address of array 'c.x' will always evaluate to 'true'}} in test() 18 …if (c.x == 0) {} // expected-warning {{comparison of array 'c.x' equal to a null pointer is always… in test() 19 if (!str) {} // expected-warning {{address of array 'str' will always evaluate to 'true'}} in test() 20 …if (0 == str) {} // expected-warning {{comparison of array 'str' equal to a null pointer is always… in test() 23 int array[2]; variable 26 if (!array) { // expected-warning {{address of array 'array' will always evaluate to 'true'}} in test1() 27 return array[0]; in test1() 28 …} else if (array != 0) { // expected-warning {{comparison of array 'array' not equal to a null poi… in test1() [all …]
|
/external/clang/test/Sema/ |
D | warn-tautological-compare.c | 15 if (!b) {} // expected-warning {{address of array 'b' will always evaluate to 'true'}} in test() 16 …if (b == 0) {} // expected-warning {{comparison of array 'b' equal to a null pointer is always fal… in test() 17 if (!c.x) {} // expected-warning {{address of array 'c.x' will always evaluate to 'true'}} in test() 18 …if (c.x == 0) {} // expected-warning {{comparison of array 'c.x' equal to a null pointer is always… in test() 19 if (!str) {} // expected-warning {{address of array 'str' will always evaluate to 'true'}} in test() 20 …if (0 == str) {} // expected-warning {{comparison of array 'str' equal to a null pointer is always… in test() 23 int array[2]; variable 26 if (!array) { // expected-warning {{address of array 'array' will always evaluate to 'true'}} in test1() 27 return array[0]; in test1() 28 …} else if (array != 0) { // expected-warning {{comparison of array 'array' not equal to a null poi… in test1() [all …]
|
/external/minigbm/ |
D | helpers_array.c | 23 struct drv_array *array; in drv_array_init() local 25 array = calloc(1, sizeof(*array)); in drv_array_init() 28 array->allocations = 2; in drv_array_init() 29 array->items = calloc(array->allocations, sizeof(*array->items)); in drv_array_init() 30 array->item_size = item_size; in drv_array_init() 31 return array; in drv_array_init() 34 void *drv_array_append(struct drv_array *array, void *data) in drv_array_append() argument 38 if (array->size >= array->allocations) { in drv_array_append() 40 array->allocations *= 2; in drv_array_append() 41 new_items = realloc(array->items, array->allocations * sizeof(*array->items)); in drv_array_append() [all …]
|
/external/llvm-project/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/ |
D | midpoint.pointer.pass.cpp | 26 constexpr T array[1000] = {}; in constexpr_test() local 27 ASSERT_SAME_TYPE(decltype(std::midpoint(array, array)), const T*); in constexpr_test() 28 ASSERT_NOEXCEPT( std::midpoint(array, array)); in constexpr_test() 30 static_assert(std::midpoint(array, array) == array, ""); in constexpr_test() 31 static_assert(std::midpoint(array, array + 1000) == array + 500, ""); in constexpr_test() 33 static_assert(std::midpoint(array, array + 9) == array + 4, ""); in constexpr_test() 34 static_assert(std::midpoint(array, array + 10) == array + 5, ""); in constexpr_test() 35 static_assert(std::midpoint(array, array + 11) == array + 5, ""); in constexpr_test() 36 static_assert(std::midpoint(array + 9, array) == array + 5, ""); in constexpr_test() 37 static_assert(std::midpoint(array + 10, array) == array + 5, ""); in constexpr_test() [all …]
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | ObjectArrays.java | 24 import java.lang.reflect.Array; 41 * Returns a new array of the given length with the specified component type. 44 * @param length the length of the new array 46 @GwtIncompatible // Array.newInstance(Class, int) 49 return (T[]) Array.newInstance(type, length); in newArray() 53 * Returns a new array of the given length with the same type as a reference array. 55 * @param reference any array of the desired type 56 * @param length the length of the new array 63 * Returns a new array that contains the concatenated contents of two arrays. 65 * @param first the first array of elements to concatenate [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | ObjectArrays.java | 24 import java.lang.reflect.Array; 41 * Returns a new array of the given length with the specified component type. 44 * @param length the length of the new array 46 @GwtIncompatible // Array.newInstance(Class, int) 49 return (T[]) Array.newInstance(type, length); in newArray() 53 * Returns a new array of the given length with the same type as a reference array. 55 * @param reference any array of the desired type 56 * @param length the length of the new array 63 * Returns a new array that contains the concatenated contents of two arrays. 65 * @param first the first array of elements to concatenate [all …]
|