Home
last modified time | relevance | path

Searched refs:array (Results 1 – 25 of 112) sorted by relevance

12345

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_array.py9 import array, cStringIO
12 class ArraySubclass(array.array):
15 class ArraySubclassWithKwargs(array.array):
17 array.array.__init__(self, typecode)
25 self.assertRaises(TypeError, array.array)
26 self.assertRaises(TypeError, array.array, spam=42)
27 self.assertRaises(TypeError, array.array, 'xx')
28 self.assertRaises(ValueError, array.array, 'x')
49 a = array.array(self.typecode)
52 self.assertRaises(TypeError, array.array, self.typecode, None)
[all …]
Dtest_repr.py51 from array import array
94 eq(r(array('i')), "array('i', [])")
95 eq(r(array('i', [1])), "array('i', [1])")
96 eq(r(array('i', [1, 2])), "array('i', [1, 2])")
97 eq(r(array('i', [1, 2, 3])), "array('i', [1, 2, 3])")
98 eq(r(array('i', [1, 2, 3, 4])), "array('i', [1, 2, 3, 4])")
99 eq(r(array('i', [1, 2, 3, 4, 5])), "array('i', [1, 2, 3, 4, 5])")
100 eq(r(array('i', [1, 2, 3, 4, 5, 6])),
Dtest_ioctl.py1 import array
39 buf = array.array('i')
Dtest_struct.py2 import array
437 writable_buf = array.array('c', ' '*100)
452 small_buf = array.array('c', ' '*10)
465 writable_buf = array.array('c', ' '*100)
480 small_buf = array.array('c', ' '*10)
490 data1 = array.array('B', '\x12\x34\x56\x78')
Dtest_file.py9 from array import array
49 a = array('b', b'x'*10)
56 a = array('b', b'x'*10)
247 ("readinto", (array("b", b" "*100),))]
284 buf = array("b", b"\x00" * len(testline))
Dtest_fileio.py9 from array import array
69 a = array(b'b', b'x'*10)
72 self.assertEqual(array(b'b', [1, 2]), a[:n])
231 a = array(b'b', b'x'*10)
Dtest_csv.py762 import array
764 a = array.array('i', contents)
779 import array
781 a = array.array('d', contents)
795 import array
797 a = array.array('f', contents)
811 import array, string
812 a = array.array('c', string.letters)
Dtest_file2k.py6 from array import array
58 a = array('c', 'x'*10)
320 ("readinto", (array("c", " "*100),))]
363 buf = array("c", "\x00" * len(testline))
558 a = array('c', 'xxxxx')
Dtest_hashlib.py9 import array
99 a = array.array("b", range(10))
Dtest_binascii.py6 import array
218 return array.array('c', s)
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg/
Ddlg.r11 { /* array dialogs: 1 elements */
16 { /* array itemArray: 18 elements */
32 { /* array OrArray: 1 elements */
74 { /* array TypesArray: 1 elements */
82 { /* array OrArray: 1 elements */
102 { /* array OrArray: 2 elements */
172 { /* array radioArray: 3 elements */
250 { /* array AndArray: 2 elements */
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/
Dantlr.r11 { /* array dialogs: 5 elements */
16 { /* array itemArray: 12 elements */
51 { /* array MultiTypesArray: 1 elements */
171 { /* array itemArray: 15 elements */
388 { /* array itemArray: 12 elements */
394 { /* array radioArray: 3 elements */
424 { /* array radioArray: 3 elements */
551 { /* array itemArray: 7 elements */
639 { /* array OrArray: 1 elements */
659 { /* array itemArray: 9 elements */
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dltable.c172 if (!ttisnil(&t->array[i])) { /* a non-nil value? */ in luaH_next()
174 setobj2s(L, key+1, &t->array[i]); in luaH_next()
244 if (!ttisnil(&t->array[i-1])) in numusearray()
272 luaM_reallocvector(L, t->array, t->sizearray, size, TValue); in setarrayvector()
274 setnilvalue(&t->array[i]); in setarrayvector()
317 if (!ttisnil(&t->array[i])) in luaH_resize()
318 luaH_setint(L, t, i + 1, &t->array[i]); in luaH_resize()
321 luaM_reallocvector(L, t->array, oldasize, nasize, TValue); in luaH_resize()
372 t->array = NULL; in luaH_new()
382 luaM_freearray(L, t->array, t->sizearray); in luaH_free()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/PatchPcdValue/
DPatchPcdValue.py27 import array
88 ByteArray = array.array('B')
198 ByteArray = array.array('B')
/device/linaro/hikey/installer/hikey/
Dhisi-idt.py8 import array
118 data = array.array('B', self.startframe[self.chip]).tostring()
135 data = array.array('B', self.headframe[self.chip]).tostring()
/device/google/contexthub/util/common/
DJSONObject.cpp66 sp<JSONArray> array = new JSONArray; in Parse() local
90 array->addValue(val); in Parse()
109 out->setArray(array); in Parse()
499 void JSONValue::setArray(const sp<JSONArray> &array) { in setArray() argument
502 mValue.mObjectOrArray = array.get(); in setArray()
643 sp<JSONArray> array; in Parse() local
644 if (value.getArray(&array)) { in Parse()
645 return array; in Parse()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/i18n/
Dmsgfmt.py32 import array
92 output += array.array("i", offsets).tostring()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dwave.py238 import array
240 data = array.array(_array_fmts[self._sampwidth])
422 import array
423 data = array.array(_array_fmts[self._sampwidth], data)
Dsre_compile.py303 import array
346 mapping = array.array('b', mapping).tostring()
348 mapping = array.array(code, mapping)
/device/google/contexthub/util/nanotool/
Dandroidcontexthub.cpp67 sp<JSONArray> array; in CopyInt32Array() local
68 if (json->getArray(key, &array)) { in CopyInt32Array()
69 for (size_t i = 0; i < array->size(); i++) { in CopyInt32Array()
71 array->getInt32(i, &val); in CopyInt32Array()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/PCD/Dxe/
DPcdDxe.uni185 // Offset : indicate the related offset of PCD value in PCD database array.
197 // This table stores all local token number in array, use "Internal
198 // token number" as array index to get PCD entry's offset fastly.
254 // The value of VOID* datum type PCD is a UINT8/UINT16 array in PCD database.
259 // UINT16 string array in PCD database, for example:
265 // UINT8 string array in PCD database, for example:
269 // 3.3.2.2.2 VOID* - byte array
271 // the PCD is used for byte array. The generated structrue is same as
274 // The number of 13 in above sample is max size of byte array.
278 // GuidTable array is used to store all related GUID value in PCD database:
DPcd.inf185 # Offset : indicate the related offset of PCD value in PCD database array.
197 # This table stores all local token number in array, use "Internal
198 # token number" as array index to get PCD entry's offset fastly.
254 # The value of VOID* datum type PCD is a UINT8/UINT16 array in PCD database.
259 # UINT16 string array in PCD database, for example:
265 # UINT8 string array in PCD database, for example:
269 # 3.3.2.2.2 VOID* - byte array
271 # the PCD is used for byte array. The generated structrue is same as
274 # The number of 13 in above sample is max size of byte array.
278 # GuidTable array is used to store all related GUID value in PCD database:
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/PCD/Pei/
DPcdPeim.uni184 // Offset : indicate the related offset of PCD value in PCD database array.
196 // This table stores all local token number in array, use "Internal
197 // token number" as array index to get PCD entry's offset fastly.
253 // The value of VOID* datum type PCD is a UINT8/UINT16 array in PCD database.
258 // UINT16 string array in PCD database, for example:
264 // UINT8 string array in PCD database, for example:
268 // 3.3.2.2.2 VOID* - byte array
270 // the PCD is used for byte array. The generated structrue is same as
273 // The number of 13 in above sample is max size of byte array.
277 // GuidTable array is used to store all related GUID value in PCD database:
DPcd.inf184 # Offset : indicate the related offset of PCD value in PCD database array.
196 # This table stores all local token number in array, use "Internal
197 # token number" as array index to get PCD entry's offset fastly.
253 # The value of VOID* datum type PCD is a UINT8/UINT16 array in PCD database.
258 # UINT16 string array in PCD database, for example:
264 # UINT8 string array in PCD database, for example:
268 # 3.3.2.2.2 VOID* - byte array
270 # the PCD is used for byte array. The generated structrue is same as
273 # The number of 13 in above sample is max size of byte array.
277 # GuidTable array is used to store all related GUID value in PCD database:
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/
DFvImage.py26 from array import array
47 class Image(array):
52 return array.__new__(cls, 'B')
65 array.__init__(m, 'B')
71 Len = array.__len__(m)
564 DecData = array('B')
572 DecData = array('B')
671 DecData = array('B')
692 DecData = array('B')
1314 Buf = array('B')
[all …]

12345