/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_array.py | 9 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 …]
|
D | test_repr.py | 51 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])),
|
D | test_ioctl.py | 1 import array 39 buf = array.array('i')
|
D | test_struct.py | 2 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')
|
/device/google/cuttlefish/host/frontend/gcastv2/webrtc/assets/js/ |
D | logcat.js | 14 function setU32LE(array, offset, x) { argument 15 array[offset] = x & 0xff; 16 array[offset + 1] = (x >> 8) & 0xff; 17 array[offset + 2] = (x >> 16) & 0xff; 18 array[offset + 3] = x >> 24; 21 function getU32LE(array, offset) { argument 22 let x = array[offset] 23 | (array[offset + 1] << 8) 24 | (array[offset + 2] << 16) 25 | (array[offset + 3] << 24); [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/plat/rockchip/rk3399/drivers/pmu/ |
D | pmu.h | 72 #define SAVE_QOS(array, NAME) \ argument 73 RK3399_CPU_AXI_SAVE_QOS(array, CPU_AXI_##NAME##_QOS_BASE) 74 #define RESTORE_QOS(array, NAME) \ argument 75 RK3399_CPU_AXI_RESTORE_QOS(array, CPU_AXI_##NAME##_QOS_BASE) 77 #define RK3399_CPU_AXI_SAVE_QOS(array, base) do { \ argument 78 array[0] = mmio_read_32(base + CPU_AXI_QOS_ID_COREID); \ 79 array[1] = mmio_read_32(base + CPU_AXI_QOS_REVISIONID); \ 80 array[2] = mmio_read_32(base + CPU_AXI_QOS_PRIORITY); \ 81 array[3] = mmio_read_32(base + CPU_AXI_QOS_MODE); \ 82 array[4] = mmio_read_32(base + CPU_AXI_QOS_BANDWIDTH); \ [all …]
|
/device/generic/goldfish-opengl/android-emu/android/base/threads/ |
D | AndroidThreadStore.cpp | 116 TlsSlotArray* array = getArray(); in getValue() local 117 void* ret = (*array)[key]; in getValue() 130 TlsSlotArray* array = getArray(); in setValue() local 131 (*array)[key] = value; in setValue() 138 TlsSlotArray* array = in leaveCurrentThread() local 140 if (!array) { in leaveCurrentThread() 146 void* value = (*array)[n]; in leaveCurrentThread() 150 (*array)[n] = NULL; in leaveCurrentThread() 165 ::free(array); in leaveCurrentThread() 174 TlsSlotArray* array = in getArray() local [all …]
|
/device/google/crosshatch/json-c/ |
D | arraylist.c | 35 if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) { in array_list_new() 47 if(arr->array[i]) arr->free_fn(arr->array[i]); in array_list_free() 48 free(arr->array); in array_list_free() 56 return arr->array[i]; in array_list_get_idx() 68 if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1; in array_list_expand_internal() 69 arr->array = (void**)t; in array_list_expand_internal() 70 (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*)); in array_list_expand_internal() 79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx() 80 arr->array[idx] = data; in array_list_put_idx() 94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
|
/device/google/sunfish/json-c/ |
D | arraylist.c | 35 if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) { in array_list_new() 47 if(arr->array[i]) arr->free_fn(arr->array[i]); in array_list_free() 48 free(arr->array); in array_list_free() 56 return arr->array[i]; in array_list_get_idx() 68 if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1; in array_list_expand_internal() 69 arr->array = (void**)t; in array_list_expand_internal() 70 (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*)); in array_list_expand_internal() 79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx() 80 arr->array[idx] = data; in array_list_put_idx() 94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
|
/device/google/bonito/json-c/ |
D | arraylist.c | 35 if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) { in array_list_new() 47 if(arr->array[i]) arr->free_fn(arr->array[i]); in array_list_free() 48 free(arr->array); in array_list_free() 56 return arr->array[i]; in array_list_get_idx() 68 if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1; in array_list_expand_internal() 69 arr->array = (void**)t; in array_list_expand_internal() 70 (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*)); in array_list_expand_internal() 79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx() 80 arr->array[idx] = data; in array_list_put_idx() 94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
|
/device/google/coral/json-c/ |
D | arraylist.c | 35 if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) { in array_list_new() 47 if(arr->array[i]) arr->free_fn(arr->array[i]); in array_list_free() 48 free(arr->array); in array_list_free() 56 return arr->array[i]; in array_list_get_idx() 68 if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1; in array_list_expand_internal() 69 arr->array = (void**)t; in array_list_expand_internal() 70 (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*)); in array_list_expand_internal() 79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx() 80 arr->array[idx] = data; in array_list_put_idx() 94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
|
/device/google/redbull/json-c/ |
D | arraylist.c | 35 if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) { in array_list_new() 47 if(arr->array[i]) arr->free_fn(arr->array[i]); in array_list_free() 48 free(arr->array); in array_list_free() 56 return arr->array[i]; in array_list_get_idx() 68 if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1; in array_list_expand_internal() 69 arr->array = (void**)t; in array_list_expand_internal() 70 (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*)); in array_list_expand_internal() 79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx() 80 arr->array[idx] = data; in array_list_put_idx() 94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg/ |
D | dlg.r | 11 { /* 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/ |
D | antlr.r | 11 { /* 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/generic/goldfish/MultiDisplayProvider/src/com/android/emulator/multidisplay/ |
D | MultiDisplayService.java | 180 int[] array = {0, 0, 0, 0, 0, 0}; in run() local 181 if (!nativeReadPipe(array)) { in run() 184 switch (array[0]) { in run() 187 Log.d(TAG, "received " + array[j]); in run() 189 int i = array[1]; in run() 190 int width = array[2]; in run() 191 int height = array[3]; in run() 192 int dpi = array[4]; in run() 193 int flag = (array[5] != 0) ? array[5] : mFlags; in run() 203 int i = array[1]; in run()
|
/device/google/bonito/audio/ |
D | convert_config_string.py | 4 import array 128 binarydata=array.array(arrayelementsize) 140 binarydata1=array.array(arrayelementsize) 215 RX=array.array(arrayelementsize) 216 TX=array.array(arrayelementsize) 357 t=array.array(arrayelementsize)
|
/device/google/crosshatch/audio/ |
D | convert_config_string.py | 4 import array 128 binarydata=array.array(arrayelementsize) 140 binarydata1=array.array(arrayelementsize) 215 RX=array.array(arrayelementsize) 216 TX=array.array(arrayelementsize) 357 t=array.array(arrayelementsize)
|
/device/google/redfin/vibrator/drv2624/ |
D | Vibrator.h | 96 virtual bool getEffectCoeffs(std::array<float, 4> *value) = 0; 98 virtual bool getEffectTargetG(std::array<float, 5> *value) = 0; 102 virtual bool getSteadyCoeffs(std::array<float, 4> *value) = 0; 104 virtual bool getSteadyTargetG(std::array<float, 3> *value) = 0; 199 std::array<uint32_t, 5> mEffectTargetOdClamp; 200 std::array<uint32_t, 3> mSteadyTargetOdClamp;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/ |
D | ltable.c | 172 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/generic/goldfish/audio/ |
D | util.cpp | 32 const std::array<uint32_t, 8> kSupportedRatesHz = { 36 const std::array<hidl_bitfield<AudioChannelMask>, 4> kSupportedInChannelMask = { 43 const std::array<hidl_bitfield<AudioChannelMask>, 4> kSupportedOutChannelMask = { 50 const std::array<AudioFormat, 1> kSupportedAudioFormats = {
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/PatchPcdValue/ |
D | PatchPcdValue.py | 27 import array 88 ByteArray = array.array('B') 198 ByteArray = array.array('B')
|
/device/google/contexthub/util/nanotool/ |
D | androidcontexthub.cpp | 68 sp<JSONArray> array; in CopyInt32Array() local 69 if (json->getArray(key, &array)) { in CopyInt32Array() 70 for (size_t i = 0; i < array->size(); i++) { in CopyInt32Array() 72 array->getInt32(i, &val); in CopyInt32Array() 83 sp<JSONArray> array; in CopyFloatArray() local 84 if (json->getArray(key, &array)) { in CopyFloatArray() 85 for (size_t i = 0; i < array->size(); i++) { in CopyFloatArray() 87 array->getFloat(i, &val); in CopyFloatArray()
|
/device/linaro/hikey/installer/hikey/ |
D | hisi-idt.py | 8 import array 118 data = array.array('B', self.startframe[self.chip]).tostring() 135 data = array.array('B', self.headframe[self.chip]).tostring()
|
/device/google/barbet/vibrator/drv2624/ |
D | Vibrator.h | 96 virtual bool getEffectCoeffs(std::array<float, 4> *value) = 0; 100 virtual bool getSteadyCoeffs(std::array<float, 4> *value) = 0; 193 std::array<uint32_t, 5> mEffectTargetOdClamp; 194 std::array<uint32_t, 3> mSteadyTargetOdClamp;
|
/device/google/bramble/vibrator/drv2624/ |
D | Vibrator.h | 96 virtual bool getEffectCoeffs(std::array<float, 4> *value) = 0; 100 virtual bool getSteadyCoeffs(std::array<float, 4> *value) = 0; 193 std::array<uint32_t, 5> mEffectTargetOdClamp; 194 std::array<uint32_t, 3> mSteadyTargetOdClamp;
|