| /external/flatbuffers/samples/ |
| SampleBinary.php | 23 $root_dir = join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)))); // `flatbuffers` root. 24 $paths = array(join(DIRECTORY_SEPARATOR, array($root_dir, "php")), 25 join(DIRECTORY_SEPARATOR, array($root_dir, "samples", "MyGame", "Sample"))); 27 $file = join(DIRECTORY_SEPARATOR, array($path, $class . ".php")); 48 $treasure = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); 51 $weaps = array($sword, $axe); 97 $expected_weapon_names = array("Sword", "Axe"); 98 $expected_weapon_damages = array(3, 5);
|
| /external/flatbuffers/tests/ |
| phpUnionVectorTest.php | 3 require join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)), "php", "Constants.php")); 4 require join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)), "php", "ByteBuffer.php")); 5 require join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)), "php", "FlatbufferBuilder.php")); 6 require join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)), "php", "Table.php")); 7 require join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)), "php", "Struct.php")); 9 require join(DIRECTORY_SEPARATOR, array(dirname(__FILE__), "php", 'Attacker.php')); 10 require join(DIRECTORY_SEPARATOR, array(dirname(__FILE__), "php", 'BookReader.php')); 11 require join(DIRECTORY_SEPARATOR, array(dirname(__FILE__), "php", 'Character.php')); 12 require join(DIRECTORY_SEPARATOR, array(dirname(__FILE__), "php", 'Movie.php'));
|
| /external/fonttools/Lib/fontTools/ttLib/tables/ |
| _h_m_t_x.py | 6 import array 23 metrics = array.array("h", data[:4 * numberOfMetrics]) 28 sideBearings = array.array("h", data[:2 * numberOfSideBearings]) 65 allMetrics = array.array("h", allMetrics) 70 additionalMetrics = array.array("h", additionalMetrics)
|
| /external/freetype/builds/atari/ |
| deflinejoiner.awk | 4 function shift( array, \ 7 elm0 = array[0] 8 for ( l = 0; l < asorti( array, junk ) - 1; l++ ) 9 array[l] = array[l+1]; 10 delete array[l] 22 function shift_valid_bp( array, \ 27 if ( 0 < asorti( array, junk ) ) 29 elm = shift( array )
|
| /external/mesa3d/src/compiler/glsl/ |
| ir_array_refcount.cpp | 68 type = type->fields.array) { 96 /* Walk through the list of array dereferences in least- to 98 * linearized offset and the scale factor for each array-of-. 105 /* For each element in the current array, update the count and 109 * array_deref_range list specifies the entire array. In that case, 168 if (!ir->array->type->is_array()) 171 /* If this array dereference is a child of an array dereference that was 177 if (last_array_deref && last_array_deref->array == ir) { 191 assert(deref->array->type->is_array()) 193 ir_rvalue *const array = deref->array; local [all...] |
| link_uniform_block_active_visitor.cpp | 101 process_arrays(mem_ctx, ir->array->as_dereference_array(), block); 134 /* The array index is not a constant, so mark the entire array used. */ 135 assert(ir->array->type->is_array()); 136 if (ub_array->num_array_elements < ir->array->type->length) { 137 ub_array->num_array_elements = ir->array->type->length; 149 return &ub_array->array; 151 return &block->array; 183 assert(b->array == NULL); 191 struct uniform_block_array_elements **ub_array = &b->array; [all...] |
| /external/mesa3d/src/mesa/swrast/ |
| s_zoom.c | 161 zoomed.array = swrast->ZoomedArrays; 162 zoomed.array->ChanType = span->array->ChanType; 163 if (zoomed.array->ChanType == GL_UNSIGNED_BYTE) 164 zoomed.array->rgba = (GLchan (*)[4]) zoomed.array->rgba8; 165 else if (zoomed.array->ChanType == GL_UNSIGNED_SHORT) 166 zoomed.array->rgba = (GLchan (*)[4]) zoomed.array->rgba16; 168 zoomed.array->rgba = (GLchan (*)[4]) zoomed.array->attribs[VARYING_SLOT_COL0] [all...] |
| /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/ |
| CommandTest.java | 40 final String[] PARAMETERS = array("123");
51 final String[] PARAMETERS_ARRAY = array("123");
96 Command command = new Command("abc", array("123", "456"));
105 Command command = new Command("abc", array("123", "456"));
119 Command command = new Command("abc", array("123", "456"));
129 Command command = new Command("abc", array("123", "456"));
164 final Command COMMAND3 = new Command("b", array("1"));
165 final Command COMMAND4 = new Command("b", array("2"));
166 final Command COMMAND5 = new Command("c", array("1"));
|
| /external/python/cpython2/Lib/ctypes/test/ |
| test_frombuffer.py | 2 import array 14 a = array.array("i", range(16)) 39 a = array.array("i", range(16)) 47 a = array.array("i", range(16)) 71 a = array.array("i", range(16)) 81 self.assertRaises(TypeError, Array.from_buffer, bytearray(10) [all...] |
| /external/swiftshader/src/OpenGL/compiler/ |
| Types.h | 231 int mArraySize; // 0 if not an array 246 primarySize(s0), secondarySize(s1), array(false), arraySize(0), maxArraySize(0), arrayInformationType(0), interfaceBlock(0), layoutQualifier(TLayoutQualifier::create()), 253 primarySize(s0), secondarySize(s1), array(a), arraySize(0), maxArraySize(0), arrayInformationType(0), interfaceBlock(0), layoutQualifier(TLayoutQualifier::create()), 260 primarySize(1), secondarySize(1), array(false), arraySize(0), maxArraySize(0), arrayInformationType(0), interfaceBlock(0), layoutQualifier(TLayoutQualifier::create()), 268 primarySize(1), secondarySize(1), array(arraySizeIn > 0), arraySize(arraySizeIn), maxArraySize(0), arrayInformationType(0), 400 if(array) 412 if(array) 431 bool isArray() const { return array ? true : false; } 432 bool isUnsizedArray() const { return array && arraySize == 0; } 434 void setArraySize(int s) { array = true; arraySize = s; 539 bool array = false; member in class:TType 571 bool array; member in struct:TPublicType [all...] |
| /frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
| MarshalQueryableArray.java | 24 import java.lang.reflect.Array; 29 * Marshal any array {@code T}. 37 * @param <T> the type of the array (e.g. T = int[], or T = Rational[]) 62 int length = Array.getLength(value); 70 Object array; local 86 "Attempting to unpack array (count = %d, element size = %d, bytes " 91 array = Array.newInstance(mComponentClass, arraySize); 94 Array.set(array, i, elem) [all...] |
| /frameworks/base/core/java/android/util/ |
| ArrayMap.java | 29 * It keeps its mappings in an array data structure -- an integer array of hash 30 * codes for each item, and an Object array of the key/value pairs. This allows it to 33 * (since growing them only requires copying the entries in the array, not rebuilding 39 * and deleting entries in the array. For containers holding up to hundreds of items, 43 * standard Java containers it will shrink its array as items are removed from it. Currently 71 * Maximum number of entries to have in array caches. 76 * Special hash array value that indicates the container is immutable. 86 * Caches of small array objects to avoid spamming garbage. The cache 87 * Object[] variable is a pointer to a linked list of array objects 197 final Object[] array = mTwiceBaseCache; local 211 final Object[] array = mBaseCache; local 330 final Object[] array = mArray; local 383 final Object[] array = mArray; local 758 final Object[] array = mArray; local [all...] |
| /libcore/luni/src/test/java/libcore/libcore/io/ |
| MemoryTest.java | 37 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, scale * values.length + 1); 38 long base_ptr = runtime.addressOf(array); 42 Arrays.fill(array, (byte) 0); 78 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, scale * values.length + 1); 79 long base_ptr = runtime.addressOf(array); 83 Arrays.fill(array, (byte) 0); 116 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, scale * values.length + 1); 117 long base_ptr = runtime.addressOf(array); 121 Arrays.fill(array, (byte) 0);
|
| /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
| rtutils.h | 87 #define RouterLogErrorA(h,msg,count,array,err) RouterLogEventA(h,EVENTLOG_ERROR_TYPE,msg,count,array,err) 88 #define RouterLogWarningA(h,msg,count,array,err) RouterLogEventA(h,EVENTLOG_WARNING_TYPE,msg,count,array,err) 89 #define RouterLogInformationA(h,msg,count,array,err) RouterLogEventA(h,EVENTLOG_INFORMATION_TYPE,msg,count,array,err) 91 #define RouterLogErrorDataA(h,msg,count,array,c,buf) RouterLogEventDataA(h,EVENTLOG_ERROR_TYPE,msg,count,array,c,buf) 92 #define RouterLogWarningDataA(h,msg,count,array,c,buf) RouterLogEventDataA(h,EVENTLOG_WARNING_TYPE,msg,count,array,c,buf [all...] |
| /prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/ |
| test_frombuffer.py | 2 import array 14 a = array.array("i", range(16)) 39 a = array.array("i", range(16)) 47 a = array.array("i", range(16)) 71 a = array.array("i", range(16))
|
| /prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/ |
| test_frombuffer.py | 2 import array 14 a = array.array("i", range(16)) 39 a = array.array("i", range(16)) 47 a = array.array("i", range(16)) 71 a = array.array("i", range(16))
|
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
| test_frombuffer.py | 2 import array 14 a = array.array("i", range(16)) 39 a = array.array("i", range(16)) 47 a = array.array("i", range(16)) 71 a = array.array("i", range(16))
|
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
| test_frombuffer.py | 2 import array 14 a = array.array("i", range(16)) 39 a = array.array("i", range(16)) 47 a = array.array("i", range(16)) 71 a = array.array("i", range(16))
|
| /bionic/linker/tests/ |
| linker_memory_allocator_test.cpp | 78 uint32_t* array = reinterpret_cast<uint32_t*>(allocator.alloc(512)); local 90 memcpy(array, model, array_size); 92 uint32_t* reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 1024)); 95 ASSERT_TRUE(reallocated_ptr != array); 99 array = reallocated_ptr; 101 memcpy(array, model, 2*array_size); 103 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 62)); 105 ASSERT_TRUE(reallocated_ptr == array); 107 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 4000)); 110 ASSERT_TRUE(reallocated_ptr != array); [all...] |
| /external/icu/icu4c/source/tools/toolutil/ |
| toolutil.cpp | 245 void *array; member in struct:UToolMemory 262 mem->array=mem->staticArray; 275 if(mem->array!=mem->staticArray) { 276 uprv_free(mem->array); 285 return (char *)mem->array; 305 /* try to allocate a larger array */ 314 if(mem->array==mem->staticArray) { 315 mem->array=uprv_malloc(newCapacity*mem->size); 316 if(mem->array!=NULL) { 317 uprv_memcpy(mem->array, mem->staticArray, (size_t)mem->idx*mem->size) [all...] |
| /external/jemalloc/test/include/test/ |
| SFMT-alti.h | 57 * @param a a 128-bit part of the interal state array 58 * @param b a 128-bit part of the interal state array 59 * @param c a 128-bit part of the interal state array 60 * @param d a 128-bit part of the interal state array 95 * This function fills the internal state array with pseudorandom 119 * This function fills the user-specified array with pseudorandom 122 * @param array an 128-bit array to be filled by pseudorandom numbers. 125 JEMALLOC_INLINE void gen_rand_array(sfmt_t *ctx, w128_t *array, int size) { 133 array[i].s = r [all...] |
| /external/v8/src/debug/ |
| liveedit.h | 46 // information is returned as a serialized array. 114 // Checks listed functions on stack and return array with corresponding 115 // FunctionPatchabilityStatus statuses; extra array element may 140 // of array of triplets (pos1, pos1_end, pos2_end) describing list 154 // element from the first array and element from the second array. 191 Handle<JSArray> array = factory->NewJSArray(S::kSize_); local 192 return S(array); 196 JSArray* array = JSArray::cast(object); local 197 Handle<JSArray> array_handle(array); [all...] |
| /libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
| AtomicReferenceArray.java | 38 import java.lang.reflect.Array; 44 * An array of object references in which elements may be updated 50 * @param <E> The base class of elements held in this array 56 private static final long ARRAY; 59 private final Object[] array; // must have exact type Object[] field in class:AtomicReferenceArray 63 ARRAY = U.objectFieldOffset 64 (AtomicReferenceArray.class.getDeclaredField("array")); 68 throw new Error("array index scale not a power of two"); 76 if (i < 0 || i >= array.length) 90 * @param length the length of the array [all...] |
| /libcore/ojluni/src/main/java/java/util/stream/ |
| SpinedBuffer.java | 48 * arrays has better performance characteristics than a single array used by 73 * array, curChunk becomes the first element in it. When we clear the 165 // Casts to int are safe since the spine array index is the index minus 186 * array. 188 public void copyInto(E[] array, int offset) { 190 if (finalOffset > array.length || finalOffset < offset) { 195 System.arraycopy(curChunk, 0, array, offset, elementIndex); 199 System.arraycopy(spine[i], 0, array, offset, spine[i].length); 203 System.arraycopy(curChunk, 0, array, offset, elementIndex); 208 * Create a new array using the specified array factory, and copy th 821 int[] array = asPrimitiveArray(); local 936 long[] array = asPrimitiveArray(); local 1051 double[] array = asPrimitiveArray(); local [all...] |
| /prebuilts/jdk/jdk8/darwin-x86/sample/scripting/scriptpad/src/resources/ |
| mm.js | 160 // wraps a script array as java.lang.Object[] 161 function objectArray(array) { 162 return Java.to(array, "java.lang.Object[]"); 165 // wraps a script (string) array as java.lang.String[] 166 function stringArray(array) { 167 return Java.to(array, "java.lang.String[]"); 170 // script array to Java List 171 function toAttrList(array) { 173 if (array instanceof AttributeList) { 174 return array; [all...] |