/third_party/pulseaudio/src/pulsecore/ |
H A D | dynarray.c | 39 pa_dynarray *array; in pa_dynarray_new() local 41 array = pa_xnew0(pa_dynarray, 1); in pa_dynarray_new() 42 array->free_cb = free_cb; in pa_dynarray_new() 44 return array; in pa_dynarray_new() 47 void pa_dynarray_free(pa_dynarray *array) { in pa_dynarray_free() argument 49 pa_assert(array); in pa_dynarray_free() 51 if (array->free_cb) in pa_dynarray_free() 52 for (i = 0; i < array->n_entries; i++) in pa_dynarray_free() 53 array->free_cb(array in pa_dynarray_free() 59 pa_dynarray_append(pa_dynarray *array, void *p) pa_dynarray_append() argument 73 pa_dynarray_get(pa_dynarray *array, unsigned i) pa_dynarray_get() argument 82 pa_dynarray_last(pa_dynarray *array) pa_dynarray_last() argument 91 pa_dynarray_remove_by_index(pa_dynarray *array, unsigned i) pa_dynarray_remove_by_index() argument 109 pa_dynarray_remove_by_data(pa_dynarray *array, void *p) pa_dynarray_remove_by_data() argument 129 pa_dynarray_steal_last(pa_dynarray *array) pa_dynarray_steal_last() argument 138 pa_dynarray_size(pa_dynarray *array) pa_dynarray_size() argument 144 pa_dynarray_insert_by_index(pa_dynarray *array, void *p, unsigned i) pa_dynarray_insert_by_index() argument [all...] |
/third_party/python/Lib/test/ |
H A D | test_array.py | 17 import array namespace 18 from array import _array_reconstructor as array_reconstructor 20 sizeof_wchar = array.array('u').itemsize 23 class ArraySubclass(array.array): 26 class ArraySubclassWithKwargs(array.array): 28 array.array [all...] |
/third_party/mesa3d/src/egl/main/ |
H A D | eglarray.c | 38 * Grow the size of the array. 41 _eglGrowArray(_EGLArray *array) in _eglGrowArray() argument 46 new_size = array->MaxSize; in _eglGrowArray() 47 while (new_size <= array->Size) in _eglGrowArray() 50 elems = realloc(array->Elements, new_size * sizeof(array->Elements[0])); in _eglGrowArray() 52 _eglLog(_EGL_DEBUG, "failed to grow %s array to %d", in _eglGrowArray() 53 array->Name, new_size); in _eglGrowArray() 57 array->Elements = elems; in _eglGrowArray() 58 array in _eglGrowArray() 70 _EGLArray *array; _eglCreateArray() local 90 _eglDestroyArray(_EGLArray *array, void (*free_cb)(void *)) _eglDestroyArray() argument 106 _eglAppendArray(_EGLArray *array, void *elem) _eglAppendArray() argument 119 _eglEraseArray(_EGLArray *array, EGLint i, void (*free_cb)(void *)) _eglEraseArray() argument 135 _eglFindArray(_EGLArray *array, void *elem) _eglFindArray() argument 153 _eglFilterArray(_EGLArray *array, void **data, EGLint size, _EGLArrayForEach filter, void *filter_data) _eglFilterArray() argument 181 _eglFlattenArray(_EGLArray *array, void *buffer, EGLint elem_size, EGLint size, _EGLArrayForEach flatten) _eglFlattenArray() argument [all...] |
/third_party/jerryscript/tests/jerry/ |
H A D | array-prototype-splice.js | 22 var array = setDefaultValues(); 23 var array1 = array.splice(); 25 assert (array.length == 4); 26 assert (array[0] == 54); 27 assert (array[1] == undefined); 28 assert (array[2] == -127); 29 assert (array[3] == "sunshine"); 33 array = setDefaultValues(); // 54, undefined, -127, "sunshine" 34 var array2 = array.splice(2); 36 assert (array 135 var array = []; global() variable [all...] |
H A D | array-prototype-indexof.js | 16 var array = ["foo", 19, "bar", obj, "foo", 29, "baz"]; variable 18 var index = array.indexOf("foo"); 20 assert(array[index] === "foo"); 22 assert(array.indexOf("foo", 1) === 4); 23 assert(array.indexOf("foo", 5) === -1); 25 var index = array.indexOf("baz"); 27 assert(array[index] === "baz"); 29 assert(array.indexOf("baz", 7) === -1); 31 var index = array.indexOf(obj); 33 assert(array[inde 91 var array = [1, 2, 3, 4, 5]; global() variable 101 var array = [1, 2, 3]; global() variable 111 var array = [1, 2, 3, 4, 5, 6, 7]; global() variable [all...] |
H A D | array-prototype-lastindexof.js | 18 var array = ["foo", 19, "bar", obj, "foo", 29, "baz"]; variable 20 var index = array.lastIndexOf("foo"); 22 assert(array[index] === "foo"); 24 assert(array.lastIndexOf("foo", 3) === 0); 25 assert(array.lastIndexOf("foo", -8) === -1); 27 var index = array.lastIndexOf("baz"); 29 assert(array[index] === "baz"); 31 assert(array.lastIndexOf("baz", -2) === -1); 33 var index = array.lastIndexOf(obj); 35 assert(array[inde 74 var array = [1, 2, 3, 4, 5]; global() variable 84 var array = [1, 2, 3]; global() variable 94 var array = [1, 2, 3, 4, 5, 6, 7]; global() variable [all...] |
H A D | array-prototype-slice.js | 17 var array = [54, undefined, "Lemon", -127]; variable 19 var array1 = array.slice(); 20 var array2 = array.slice("a", "3"); 21 var array3 = array.slice(-2); 22 var array4 = array.slice(-12, undefined); 23 var array5 = array.slice(undefined, -3); 24 var array6 = array.slice(Infinity, NaN); 25 var array7 = array.slice(-Infinity, Infinity); 26 var array8 = array.slice(NaN, -Infinity); 62 var array variable 164 var array = [1, 2, 3, 4, 5]; global() variable 174 var array = [1, 2, 3, 4, 5]; global() variable 184 var array = [1, 2, 3, 4, 5]; global() variable [all...] |
H A D | array-prototype-sort.js | 15 var array = ["Peach", "Apple", "Orange", "Grape", "Cherry", "Apricot", "Grapefruit"]; variable 16 array.sort(); 18 assert(array[0] === "Apple"); 19 assert(array[1] === "Apricot"); 20 assert(array[2] === "Cherry"); 21 assert(array[3] === "Grape"); 22 assert(array[4] === "Grapefruit"); 23 assert(array[5] === "Orange"); 24 assert(array[6] === "Peach"); 26 var array variable 51 var array = [1,,2,,3,,4,undefined,5]; global() variable [all...] |
/third_party/mesa3d/src/compiler/glsl/ |
H A D | ast_array_index.cpp | 40 * If \c ir is a reference to an array for which we are tracking the max array 44 * This function also checks whether the array is a built-in array whose 58 * the size of a built-in array to be too large. in update_max_array_access() 66 * - Accessing an element of an array that is a member of a named in update_max_array_access() 69 * - Accessing an element of an array that is a member of a named in update_max_array_access() 70 * interface block array (e.g. ifc[j].foo[i]). in update_max_array_access() 72 * - Accessing an element of an array that is a member of a named in update_max_array_access() 73 * interface block array o in update_max_array_access() 116 get_implicit_array_size(struct _mesa_glsl_parse_state *state, ir_rvalue *array) get_implicit_array_size() argument 143 _mesa_ast_array_index_to_hir(void *mem_ctx, struct _mesa_glsl_parse_state *state, ir_rvalue *array, ir_rvalue *idx, YYLTYPE &loc, YYLTYPE &idx_loc) _mesa_ast_array_index_to_hir() argument [all...] |
/third_party/protobuf/js/experimental/runtime/kernel/ |
H A D | kernel.js | 69 * Reads the last entry of the index array using the given read function. 87 * Converts all entries of the index array to the template type using given read 124 * Converts all entries of the index array to the template type using the given 144 * Converts all entries of the index array to the template type using the given 166 * Creates a new bytes array to contain all data of a submessage. 204 * Merges all index entries of the index array using the given read function. 220 * Merges all index entries of the index array using the given read function. 240 * Merges all index entries of the index array using the given read function. 287 * Writes the array of Messages into the writer for the given field number. 299 * Writes the array o [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | USerializedSet.java | 26 * @param src pointer to start of array 28 * @return true if the given array is valid, otherwise false 32 array=null; in getSet() 53 array = new char[length]; in getSet() 54 System.arraycopy(src,srcStart,array,0,length); in getSet() 70 array[0]=(char)c; in setToOne() 71 array[1]=(char)(c+1); in setToOne() 75 array[0]=0xffff; in setToOne() 76 array[1]=1; in setToOne() 77 array[ in setToOne() 184 private char array[] = new char[8]; global() field in USerializedSet [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | USerializedSet.java | 28 * @param src pointer to start of array 30 * @return true if the given array is valid, otherwise false 34 array=null; in getSet() 55 array = new char[length]; in getSet() 56 System.arraycopy(src,srcStart,array,0,length); in getSet() 72 array[0]=(char)c; in setToOne() 73 array[1]=(char)(c+1); in setToOne() 77 array[0]=0xffff; in setToOne() 78 array[1]=1; in setToOne() 79 array[ in setToOne() 186 private char array[] = new char[8]; global() field in USerializedSet [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | array-prototype-copywithin.js | 18 var array = ["foo", 1, "bar", obj, 2, "baz"]; variable 19 assert(array.copyWithin(2,0,6).toString() === "foo,1,foo,1,bar,[object Object]"); 20 assert(array.copyWithin(0,1,3).toString() === "1,foo,foo,1,bar,[object Object]"); 21 assert(array.copyWithin(3,0,4).toString() === "1,foo,foo,1,foo,foo"); 24 var array = ["foo", 1, "bar", obj, 2, "baz"]; variable 25 assert(array.copyWithin().toString() === "foo,1,bar,[object Object],2,baz"); 26 assert(array.copyWithin(2).toString() === "foo,1,foo,1,bar,[object Object]"); 27 assert(array.copyWithin(1,4).toString() === "foo,bar,[object Object],1,bar,[object Object]"); 30 var array = ["foo", 1, "bar", obj, 2, "baz"]; variable 31 assert(array 36 var array = ["foo", 1, "bar", obj, 2, "baz"]; global() variable 41 var array = ["foo", 1, "bar", obj, 2, "baz"]; global() variable 92 var array = [1, 2, 3]; global() variable 102 var array = [1, 2, 3]; global() variable 112 var array = [1, 2, 3, 4, 5, 6, 7]; global() variable [all...] |
/third_party/vk-gl-cts/framework/delibs/depool/ |
H A D | dePoolHeap.h | 63 TYPENAME##Array* array; \ 80 heap->array = TYPENAME##Array_create(pool); \ 81 if (!heap->array) \ 88 return TYPENAME##Array_getNumElements(heap->array); \ 93 return TYPENAME##Array_reserve(heap->array, capacity); \ 98 TYPENAME##Array_setSize(heap->array, 0); \ 103 TYPENAME##Array* array = heap->array; \ 104 int numElements = TYPENAME##Array_getNumElements(array); \ 111 int childCmpRes = CMPFUNC(TYPENAME##Array_get(array, childNdx [all...] |
/third_party/skia/tests/ |
H A D | TemplatesTest.cpp | 13 SkAutoSTMalloc<1, int> array; in test_automalloc_realloc() local 16 array[0] = 1; in test_automalloc_realloc() 17 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc() 20 array.realloc(1); in test_automalloc_realloc() 22 array[0] = 1; in test_automalloc_realloc() 23 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc() 26 array.realloc(2); in test_automalloc_realloc() 27 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc() 30 array.realloc(1); in test_automalloc_realloc() 31 REPORTER_ASSERT(reporter, array[ in test_automalloc_realloc() [all...] |
/third_party/python/Tools/demo/ |
H A D | sortvisu.py | 8 - an array visualizer with methods that implement basic sorting 14 all using the array visualizer for its basic operations and with calls 196 def __init__(self, array, index, value): 197 self.array = array 200 self.canvas = array.canvas 202 self.item_id = array.canvas.create_rectangle(x1, y1, x2, y2, 210 self.array = None 229 if i >= self.array.getsize(): 230 i = self.array [all...] |
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | IntArrayList.java | 41 * An implementation of {@link IntList} on top of a primitive array. 58 private int[] array; field in IntArrayList 61 * The size of the list distinct from the length of the array. That is, it is the number of 75 array = other; in IntArrayList() 86 System.arraycopy(array, toIndex, array, fromIndex, size - toIndex); in removeRange() 104 final int[] arr = other.array; in equals() 106 if (array[i] != arr[i]) { in equals() 118 result = (31 * result) + array[i]; in hashCode() 128 return new IntArrayList(Arrays.copyOf(array, capacit in mutableCopyWithCapacity() [all...] |
H A D | LongArrayList.java | 41 * An implementation of {@link LongList} on top of a primitive array. 58 private long[] array; field in LongArrayList 61 * The size of the list distinct from the length of the array. That is, it is the number of 75 array = other; in LongArrayList() 86 System.arraycopy(array, toIndex, array, fromIndex, size - toIndex); in removeRange() 104 final long[] arr = other.array; in equals() 106 if (array[i] != arr[i]) { in equals() 118 result = (31 * result) + Internal.hashLong(array[i]); in hashCode() 128 return new LongArrayList(Arrays.copyOf(array, capacit in mutableCopyWithCapacity() [all...] |
H A D | FloatArrayList.java | 41 * An implementation of {@link FloatList} on top of a primitive array. 58 private float[] array; field in FloatArrayList 61 * The size of the list distinct from the length of the array. That is, it is the number of 75 array = other; in FloatArrayList() 86 System.arraycopy(array, toIndex, array, fromIndex, size - toIndex); in removeRange() 104 final float[] arr = other.array; in equals() 106 if (Float.floatToIntBits(array[i]) != Float.floatToIntBits(arr[i])) { in equals() 118 result = (31 * result) + Float.floatToIntBits(array[i]); in hashCode() 128 return new FloatArrayList(Arrays.copyOf(array, capacit in mutableCopyWithCapacity() [all...] |
H A D | BooleanArrayList.java | 41 * An implementation of {@link BooleanList} on top of a primitive array. 58 private boolean[] array; field in BooleanArrayList 61 * The size of the list distinct from the length of the array. That is, it is the number of 76 array = other; in BooleanArrayList() 87 System.arraycopy(array, toIndex, array, fromIndex, size - toIndex); in removeRange() 105 final boolean[] arr = other.array; in equals() 107 if (array[i] != arr[i]) { in equals() 119 result = (31 * result) + Internal.hashBoolean(array[i]); in hashCode() 129 return new BooleanArrayList(Arrays.copyOf(array, capacit in mutableCopyWithCapacity() [all...] |
H A D | DoubleArrayList.java | 41 * An implementation of {@link DoubleList} on top of a primitive array. 58 private double[] array; field in DoubleArrayList 61 * The size of the list distinct from the length of the array. That is, it is the number of 75 array = other; in DoubleArrayList() 86 System.arraycopy(array, toIndex, array, fromIndex, size - toIndex); in removeRange() 104 final double[] arr = other.array; in equals() 106 if (Double.doubleToLongBits(array[i]) != Double.doubleToLongBits(arr[i])) { in equals() 118 long bits = Double.doubleToLongBits(array[i]); in hashCode() 129 return new DoubleArrayList(Arrays.copyOf(array, capacit in mutableCopyWithCapacity() [all...] |
H A D | ProtobufArrayList.java | 52 private E[] array; field in ProtobufArrayList 60 private ProtobufArrayList(E[] array, int size) { in ProtobufArrayList() argument 61 this.array = array; in ProtobufArrayList() 71 E[] newArray = Arrays.copyOf(array, capacity); in mutableCopyWithCapacity() 80 if (size == array.length) { in add() 83 E[] newArray = Arrays.copyOf(array, length); in add() 85 array = newArray; in add() 88 array[size++] = element; in add() 102 if (size < array in add() [all...] |
/third_party/unity/auto/ |
H A D | parse_output.rb | 75 # Pushes the suite info as xml to the array list, which will be written later 84 # Pushes xml output data to the array list, which will be written later 89 # Pushes xml output data to the array list, which will be written later 96 # Pushes xml output data to the array list, which will be written later 125 array = line.split(',') 126 array.map { |x| x.to_s.lstrip.chomp } 131 def test_passed_unity_fixture(array) 132 class_name = array[0] 133 test_name = array[1] 142 def test_failed_unity_fixture(array) [all...] |
/third_party/libinput/src/ |
H A D | util-bits.h | 45 bit_is_set(const unsigned char *array, int bit) in bit_is_set() argument 47 return !!(array[bit / 8] & (1 << (bit % 8))); in bit_is_set() 51 set_bit(unsigned char *array, int bit) in set_bit() argument 53 array[bit / 8] |= (1 << (bit % 8)); in set_bit() 57 clear_bit(unsigned char *array, int bit) in clear_bit() argument 59 array[bit / 8] &= ~(1 << (bit % 8)); in clear_bit() 63 long_bit_is_set(const unsigned long *array, int bit) in long_bit_is_set() argument 65 return !!(array[bit / LONG_BITS] & (1ULL << (bit % LONG_BITS))); in long_bit_is_set() 69 long_set_bit(unsigned long *array, int bit) in long_set_bit() argument 71 array[bi in long_set_bit() 75 long_clear_bit(unsigned long *array, int bit) long_clear_bit() argument 81 long_set_bit_state(unsigned long *array, int bit, int state) long_set_bit_state() argument 90 long_any_bit_set(unsigned long *array, size_t size) long_any_bit_set() argument [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | staticAnonymousTypeNotReferencingTypeParameter.js | 14 static clone<T>(dit: typeof ListWrapper2, array: T[]): T[] { return array.slice(0); } 15 static reversed<T>(dit: typeof ListWrapper2, array: T[]): T[] { 16 var a = ListWrapper2.clone(dit, array); 22 * Iterates through 'array' by index and performs the callback on each element of array until the callback 24 * If no such value is found, the callback is applied to each element of array and undefined is returned. 26 export function funkyFor<T, U>(array: T[], callback: (element: T, index: number) => U): U { 27 if (array) { 28 for (let i = 0, len = array [all...] |