Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 1736) sorted by relevance

12345678910>>...70

/AliOS-Things-master/components/SDL2/src/video/x11/
A DSDL_x11messagebox.c297 … GetTextWidthHeight( data, data->buttondata[ i ].text, SDL_strlen( data->buttondata[ i ].text ), in X11_MessageBoxInitPositions()
306 data->xtext = data->text_height; in X11_MessageBoxInitPositions()
307 data->ytext = data->text_height + data->text_height; in X11_MessageBoxInitPositions()
310 ybuttons = 3 * data->ytext / 2 + ( data->numlines - 1 ) * data->text_height; in X11_MessageBoxInitPositions()
313 data->dialog_width = IntMax( data->dialog_width, 2 * data->xtext + text_width_max ); in X11_MessageBoxInitPositions()
372 X11_XFreeFontSet( data->display, data->font_set ); in X11_MessageBoxShutdown()
377 X11_XFreeFont( data->display, data->font_struct ); in X11_MessageBoxShutdown()
389 X11_XWithdrawWindow( data->display, data->window, data->screen ); in X11_MessageBoxShutdown()
390 X11_XDestroyWindow( data->display, data->window ); in X11_MessageBoxShutdown()
575 data->xtext, data->ytext + i * data->text_height, in X11_MessageBoxDraw()
[all …]
A DSDL_x11events.c108 p->data=ret; in X11_ReadProperty()
401 if (data->ic) { in X11_DispatchFocusIn()
424 if (data->ic) { in X11_DispatchFocusOut()
729 data = NULL; in X11_DispatchEvent()
739 if (!data) { in X11_DispatchEvent()
1017 data->xdnd_source = xevent.xclient.data.l[0]; in X11_DispatchEvent()
1034data->xdnd_req = X11_PickTargetFromAtoms(display, xevent.xclient.data.l[2], xevent.xclient.data.l[… in X11_DispatchEvent()
1055 m.data.l[0] = data->xwindow; in X11_DispatchEvent()
1056 m.data.l[1] = (data->xdnd_req != None); in X11_DispatchEvent()
1073 m.data.l[0] = data->xwindow; in X11_DispatchEvent()
[all …]
A DSDL_x11window.c259 data = (SDL_WindowData *) SDL_calloc(1, sizeof(*data)); in SetupWindowData()
260 if (!data) { in SetupWindowData()
267 data->ic = in SetupWindowData()
821 …X11_XMoveWindow(display, data->xwindow, window->x - data->border_left, window->y - data->border_to… in X11_SetWindowPosition()
871 …X11_XMoveWindow(display, data->xwindow, window->x - data->border_left, window->y - data->border_to… in X11_SetWindowMinimumSize()
900 …X11_XMoveWindow(display, data->xwindow, window->x - data->border_left, window->y - data->border_to… in X11_SetWindowMaximumSize()
957 …X11_XMoveWindow(display, data->xwindow, window->x - data->border_left, window->y - data->border_to… in X11_SetWindowSize()
1105 …X11_XMoveWindow(display, data->xwindow, window->x - data->border_left, window->y - data->border_to… in X11_SetWindowResizable()
1172 e.xclient.data.l[1] = data->user_time; in SetWindowActive()
1629 if (data) { in X11_DestroyWindow()
[all …]
/AliOS-Things-master/components/SDL2/src/timer/
A DSDL_timer.c95 data->timers = timer; in SDL_AddTimerInternal()
151 while (data->timers) { in SDL_TimerThread()
219 if (!data->sem) { in SDL_TimerInit()
227 data->thread = SDL_CreateThreadInternal(SDL_TimerThread, name, 0, data); in SDL_TimerInit()
228 if (!data->thread) { in SDL_TimerInit()
247 if (data->thread) { in SDL_TimerQuit()
254 data->sem = NULL; in SDL_TimerQuit()
293 timer = data->freelist; in SDL_AddTimer()
326 data->timermap = entry; in SDL_AddTimer()
332 data->pending = timer; in SDL_AddTimer()
[all …]
/AliOS-Things-master/components/SDL2/src/render/opengl/
A DSDL_render_gl.c466 data = (GL_TextureData *) SDL_calloc(1, sizeof(*data)); in GL_CreateTexture()
467 if (!data) { in GL_CreateTexture()
1029 if (data->shaders && (shader != data->drawstate.shader)) { in SetDrawState()
1036 data->glDisable(data->textype); in SetDrawState()
1039 data->glEnable(data->textype); in SetDrawState()
1441 if (!data) { in GL_DestroyTexture()
1461 if (data) { in GL_DestroyRenderer()
1586 data = (GL_RenderData *) SDL_calloc(1, sizeof(*data)); in GL_CreateRenderer()
1587 if (!data) { in GL_CreateRenderer()
1709 if (data->shaders && data->num_texture_units >= 3) { in GL_CreateRenderer()
[all …]
/AliOS-Things-master/components/SDL2/src/render/opengles/
A DSDL_render_gles.c341 data = (GLES_TextureData *) SDL_calloc(1, sizeof(*data)); in GLES_CreateTexture()
342 if (!data) { in GLES_CreateTexture()
348 data->pixels = SDL_calloc(1, texture->h * data->pitch); in GLES_CreateTexture()
386 renderdata->glBindTexture(data->type, data->texture); in GLES_CreateTexture()
446 renderdata->glBindTexture(data->type, data->texture); in GLES_UpdateTexture()
476 (void *) ((Uint8 *) data->pixels + rect->y * data->pitch + in GLES_LockTexture()
503 renderdata->glBindTexture(data->type, data->texture); in GLES_SetTextureScaleMode()
1043 if (!data) { in GLES_DestroyTexture()
1059 if (data) { in GLES_DestroyRenderer()
1143 data = (GLES_RenderData *) SDL_calloc(1, sizeof(*data)); in GLES_CreateRenderer()
[all …]
/AliOS-Things-master/components/SDL2/src/render/opengles2/
A DSDL_render_gles2.c530 data->glDeleteProgram(data->program_cache.tail->id); in GLES2_CacheProgram()
531 data->program_cache.tail = data->program_cache.tail->prev; in GLES2_CacheProgram()
1347 if (data) { in GLES2_DestroyRenderer()
1382 data->glDeleteBuffers(SDL_arraysize(data->vertex_buffers), data->vertex_buffers); in GLES2_DestroyRenderer()
1441 if (!data) { in GLES2_CreateTexture()
1480 if (data->yuv) { in GLES2_CreateTexture()
1530 renderdata->glBindTexture(data->texture_type, data->texture); in GLES2_CreateTexture()
1753 if (data->yuv) { in GLES2_SetTextureScaleMode()
1771 renderdata->glBindTexture(data->texture_type, data->texture); in GLES2_SetTextureScaleMode()
1993 if (!data) { in GLES2_CreateRenderer()
[all …]
/AliOS-Things-master/hardware/board/haas100/drivers/
A Dch395_cmd.c289 ret = ch395_spi_data_write(data, sizeof(data)); in ch395_set_phy_state()
324 ret = ch395_spi_data_write(data, sizeof(data)); in ch395_set_mac_addr()
366 ret = ch395_spi_data_write(data, sizeof(data)); in ch395_set_mac_filt()
383 ret = ch395_spi_data_write(data, sizeof(data)); in ch395_set_ip_addr()
400 ret = ch395_spi_data_write(data, sizeof(data)); in ch395_set_gw_ip_addr()
417 ret = ch395_spi_data_write(data, sizeof(data)); in ch395_set_ip_mask_addr()
480 ret = ch395_spi_data_write(data, sizeof(data)); in ch395_tcp_retran_count_set()
505 ret = ch395_spi_data_write(data, sizeof(data)); in ch395_tcp_retry_period_set()
555 ret = ch395_spi_data_write(data, sizeof(data)); in ch395_clear_sock_recv_buff()
629 ret = ch395_spi_data_write(data, sizeof(data)); in ch395_set_sock_dest_ip()
[all …]
/AliOS-Things-master/components/uservice/src/
A Drpc.c15 if (data->buffer) { in rpc_buffer_free()
23 aos_free(data); in rpc_buffer_free()
56 if (rpc->data && aos_sem_is_valid(&rpc->data->sem)) in rpc_wait()
57 ret = aos_sem_wait(&rpc->data->sem, rpc->data->timeout_ms); in rpc_wait()
64 if (rpc->data) in rpc_free()
82 rpc_buffer_t *data; in rpc_deinit() local
84 if (data == rpc->data) { in rpc_deinit()
106 if (rpc->data) { in rpc_reply()
142 if (rpc->data && rpc->data->buffer) { in rpc_put_reset()
153 if (rpc->data) in rpc_get_reset()
[all …]
/AliOS-Things-master/components/amp-utility/python/
A Diot.py62 def __init__(self,data): argument
73 if not 'productKey' in data:
88 if 'productSecret' in data:
93 if 'region' in data:
94 region = data['region']
98 _lk.init(region,data['productKey'],data['deviceName'],data['deviceSecret'],productSecret)
190 def postProps(self,data): argument
215 if not 'params' in data:
221 def postEvent(self,data): argument
245 if not 'id' in data:
[all …]
/AliOS-Things-master/components/py_engine/framework/
A Diot.py83 def __init__(self,data): argument
94 if not 'productKey' in data:
109 if 'productSecret' in data:
114 if 'region' in data:
119 self.data = data
240 …ret = _lk.init(self.region,self.data['productKey'],self.data['deviceName'],self.data['deviceSecret…
245 def postProps(self,data): argument
276 if not 'params' in data:
282 def postEvent(self,data): argument
316 if not 'id' in data:
[all …]
/AliOS-Things-master/components/SDL2/src/render/direct3d/
A DSDL_render_d3d.c283 SDL_memset(data->scaleMode, 0xFF, sizeof(data->scaleMode)); in D3D_InitRenderState()
813 …const DWORD color = D3DCOLOR_ARGB(cmd->data.draw.a, cmd->data.draw.r, cmd->data.draw.g, cmd->data.… in D3D_QueueDrawPoints()
837 …const DWORD color = D3DCOLOR_ARGB(cmd->data.draw.a, cmd->data.draw.r, cmd->data.draw.g, cmd->data.… in D3D_QueueFillRects()
884 …const DWORD color = D3DCOLOR_ARGB(cmd->data.draw.a, cmd->data.draw.r, cmd->data.draw.g, cmd->data.… in D3D_QueueCopy()
946 …const DWORD color = D3DCOLOR_ARGB(cmd->data.draw.a, cmd->data.draw.r, cmd->data.draw.g, cmd->data.… in D3D_QueueCopyEx()
1316 …const DWORD color = D3DCOLOR_ARGB(cmd->data.color.a, cmd->data.color.r, cmd->data.color.g, cmd->da… in D3D_RunCommandQueue()
1543 if (!data) { in D3D_DestroyTexture()
1560 if (data) { in D3D_DestroyRenderer()
1696 data = (D3D_RenderData *) SDL_calloc(1, sizeof(*data)); in D3D_CreateRenderer()
1697 if (!data) { in D3D_CreateRenderer()
[all …]
/AliOS-Things-master/components/sensor/hal/
A Dsensor_static_calibrate.c14 int32_t data[3]; member
20 int32_t data; member
90 pdata->data[DST_X] = datatmp.data[SRC_X]* ppara->remap_x_coeff ; in sensor_static_calibrate_3axis()
91 pdata->data[DST_X] += datatmp.data[SRC_Y]* ppara->remap_y_coeff; in sensor_static_calibrate_3axis()
92 pdata->data[DST_X] += datatmp.data[SRC_Z]* ppara->remap_z_coeff; in sensor_static_calibrate_3axis()
96 pdata->data[DST_Y] = datatmp.data[SRC_X]* ppara->remap_x_coeff; in sensor_static_calibrate_3axis()
97 pdata->data[DST_Y] += datatmp.data[SRC_Y]* ppara->remap_y_coeff; in sensor_static_calibrate_3axis()
98 pdata->data[DST_Y] += datatmp.data[SRC_Z]* ppara->remap_z_coeff; in sensor_static_calibrate_3axis()
102 pdata->data[DST_Z] = datatmp.data[SRC_X]* ppara->remap_x_coeff ; in sensor_static_calibrate_3axis()
103 pdata->data[DST_Z] += datatmp.data[SRC_Y]* ppara->remap_y_coeff; in sensor_static_calibrate_3axis()
[all …]
/AliOS-Things-master/components/SDL2/src/joystick/hidapi/
A DSDL_hidapi_xboxone.c90 const Uint8 *data; member
245 while ((size = hid_read_timeout(device->dev, data, sizeof(data), 0)) > 0) { in SendControllerInit()
425 paddles_mapped = (SDL_memcmp(&data[4], &data[18], 14) != 0); in HIDAPI_DriverXboxOne_HandleStatePacket()
477 axis = *(Sint16*)(&data[10]); in HIDAPI_DriverXboxOne_HandleStatePacket()
479 axis = *(Sint16*)(&data[12]); in HIDAPI_DriverXboxOne_HandleStatePacket()
492 if (data[1] == 0x30) { in HIDAPI_DriverXboxOne_HandleModePacket()
529 switch (data[13]) { in HIDAPI_DriverXboxOneBluetooth_HandleStatePacketV1()
631 switch (data[13]) { in HIDAPI_DriverXboxOneBluetooth_HandleStatePacketV2()
728 while ((size = hid_read_timeout(device->dev, data, sizeof(data), 0)) > 0) { in HIDAPI_DriverXboxOne_UpdateDevice()
733 switch (data[0]) { in HIDAPI_DriverXboxOne_UpdateDevice()
[all …]
A DSDL_hidapi_xbox360w.c166 if (ctx->last_state[2] != data[2]) { in HIDAPI_DriverXbox360W_HandleStatePacket()
177 if (ctx->last_state[3] != data[3]) { in HIDAPI_DriverXbox360W_HandleStatePacket()
191 axis = *(Sint16*)(&data[6]); in HIDAPI_DriverXbox360W_HandleStatePacket()
193 axis = *(Sint16*)(&data[8]); in HIDAPI_DriverXbox360W_HandleStatePacket()
198 axis = *(Sint16*)(&data[10]); in HIDAPI_DriverXbox360W_HandleStatePacket()
200 axis = *(Sint16*)(&data[12]); in HIDAPI_DriverXbox360W_HandleStatePacket()
214 Uint8 data[USB_PACKET_LENGTH]; in HIDAPI_DriverXbox360W_UpdateDevice() local
221 while ((size = hid_read_timeout(device->dev, data, sizeof(data), 0)) > 0) { in HIDAPI_DriverXbox360W_UpdateDevice()
239 …} else if (size == 29 && data[0] == 0x00 && data[1] == 0x0f && data[2] == 0x00 && data[3] == 0xf0)… in HIDAPI_DriverXbox360W_UpdateDevice()
247 …} else if (size == 29 && data[0] == 0x00 && data[1] == 0x00 && data[2] == 0x00 && data[3] == 0x13)… in HIDAPI_DriverXbox360W_UpdateDevice()
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/microfrontend/
A Daudio_microfrontend.cc68 FrontendPopulateState(&config, data->state, data->sample_rate); in Init()
77 return data; in Init()
83 delete data->state; in Free()
84 delete data; in Free()
88 auto* data = in Prepare() local
110 if (input->dims->data[0] >= data->state->window.size) { in Prepare()
111 num_frames = (input->dims->data[0] - data->state->window.size) / in Prepare()
112 data->state->window.step / data->frame_stride + in Prepare()
116 output_size->data[1] = data->state->filterbank.num_channels * in Prepare()
132 num_frames = (input->dims->data[0] - data->state->window.size) / in GenerateFeatures()
[all …]
/AliOS-Things-master/components/SDL2/src/video/wayland/
A DSDL_waylandvideo.c305 data = SDL_malloc(sizeof *data); in Wayland_add_display()
416 SDL_VideoData *data = SDL_calloc(1, sizeof(*data)); in Wayland_VideoInit() local
417 if (data == NULL) in Wayland_VideoInit()
432 data->registry = wl_display_get_registry(data->display); in Wayland_VideoInit()
437 wl_registry_add_listener(data->registry, &registry_listener, data); in Wayland_VideoInit()
507 if (data->shm) in Wayland_VideoQuit()
513 if (data->shell.wl) in Wayland_VideoQuit()
516 if (data->shell.xdg) in Wayland_VideoQuit()
525 if (data->registry) in Wayland_VideoQuit()
528 if (data->display) { in Wayland_VideoQuit()
[all …]
A DSDL_waylandwindow.c648 data = SDL_calloc(1, sizeof *data); in Wayland_CreateWindow()
649 if (data == NULL) in Wayland_CreateWindow()
687 data->resize.scale_factor = data->scale_factor; in Wayland_CreateWindow()
692 data->surface = in Wayland_CreateWindow()
694 wl_surface_add_listener(data->surface, &surface_listener, data); in Wayland_CreateWindow()
724 data->egl_window = WAYLAND_wl_egl_window_create(data->surface, in Wayland_CreateWindow()
754 qt_extended_surface_set_user_data(data->extended_surface, data); in Wayland_CreateWindow()
817 if (data->scale_factor != data->resize.scale_factor) { in Wayland_HandlePendingResize()
824 data->scale_factor = data->resize.scale_factor; in Wayland_HandlePendingResize()
825 wl_surface_set_buffer_scale(data->surface, data->scale_factor); in Wayland_HandlePendingResize()
[all …]
/AliOS-Things-master/components/ble_host/bt_host/host/
A Datt.c615 data->rsp = net_buf_add(data->buf, sizeof(*data->rsp)); in find_info_cb()
627 data->info16 = net_buf_add(data->buf, sizeof(*data->info16)); in find_info_cb()
643 data->info128 = net_buf_add(data->buf, sizeof(*data->info128)); in find_info_cb()
1059 data.rsp = net_buf_add(data.buf, sizeof(*data.rsp)); in att_read_type_rsp()
1133 data->rsp = net_buf_add(data->buf, sizeof(*data->rsp)); in read_cb()
1288 data->rsp = net_buf_add(data->buf, sizeof(*data->rsp)); in read_vl_cb()
1423 data->group = net_buf_add(data->buf, sizeof(*data->group)); in read_group_cb()
1461 data.rsp = net_buf_add(data.buf, sizeof(*data.rsp)); in att_read_group_rsp()
1562 write = attr->write(data->conn, attr, data->value, data->len, in write_cb()
1667 write = attr->write(data->conn, attr, data->value, data->len, in prep_write_cb()
[all …]
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/snmp/
A Dsnmp_asn1.c59 u8_t data; in snmp_ans1_enc_tlv() local
109 data = 0x00; in snmp_ans1_enc_tlv()
425 u8_t data; in snmp_asn1_dec_tlv() local
429 tlv->type = data; in snmp_asn1_dec_tlv()
487 u8_t data; in snmp_asn1_dec_u32t() local
494 *value = data; in snmp_asn1_dec_u32t()
527 u8_t data; in snmp_asn1_dec_u64t() local
541 *value = data; in snmp_asn1_dec_u64t()
586 u8_t data; in snmp_asn1_dec_s32t() local
592 if (data & 0x80) { in snmp_asn1_dec_s32t()
[all …]
/AliOS-Things-master/components/linksdk/components/data-model/
A Daiot_dm_api.c285 src[2] = data; in _dm_send_alink_rsp()
314 msg->data.property_set_reply.data); in _dm_send_property_set_reply()
321 msg->data.async_service_reply.data); in _dm_send_async_service_reply()
328 msg->data.sync_service_reply.data); in _dm_send_sync_service_reply()
333 …return aiot_mqtt_pub(handle->mqtt_handle, (char *)topic, msg->data.raw_data.data, msg->data.raw_da… in _dm_send_raw_data()
456 &recv.data.generic_reply.data, in _dm_recv_generic_reply_handler()
617 recv.data.raw_data.data = msg->data.pub.payload; in _dm_recv_raw_data_handler()
618 recv.data.raw_data.data_len = msg->data.pub.payload_len; in _dm_recv_raw_data_handler()
646 recv.data.raw_data.data = msg->data.pub.payload; in _dm_recv_up_raw_reply_data_handler()
647 recv.data.raw_data.data_len = msg->data.pub.payload_len; in _dm_recv_up_raw_reply_data_handler()
[all …]
/AliOS-Things-master/components/SDL2/src/video/android/
A DSDL_androidwindow.c42 SDL_WindowData *data; in Android_CreateWindow() local
68 data = (SDL_WindowData *) SDL_calloc(1, sizeof(*data)); in Android_CreateWindow()
69 if (!data) { in Android_CreateWindow()
76 if (!data->native_window) { in Android_CreateWindow()
77 SDL_free(data); in Android_CreateWindow()
85 data->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) data->native_window); in Android_CreateWindow()
89 SDL_free(data); in Android_CreateWindow()
95 window->driverdata = data; in Android_CreateWindow()
135 if (!data || !data->native_window) { in Android_SetWindowFullscreen()
136 if (data && !data->native_window) { in Android_SetWindowFullscreen()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/spi/
A Dspi_test.c79 uint8_t data = 0; in flash_spi_read_device_id() local
91 data = Dummy_Byte; in flash_spi_read_device_id()
117 uint8_t data = 0; in flash_spi_read_id() local
125 data = 0x90; in flash_spi_read_id()
127 data = 0x00; in flash_spi_read_id()
129 data = 0x00; in flash_spi_read_id()
131 data = 0x00; in flash_spi_read_id()
134 data = 0xFF; in flash_spi_read_id()
136 data = 0xFF; in flash_spi_read_id()
149 uint8_t data = 0;
[all …]
/AliOS-Things-master/components/linkkit/dev_model/
A Ddm_opt.c10 int dm_opt_set(dm_opt_t opt, void *data) in dm_opt_set() argument
14 if (data == NULL) { in dm_opt_set()
22 int opt = *(int *)(data); in dm_opt_set()
28 int opt = *(int *)(data); in dm_opt_set()
34 int opt = *(int *)(data); in dm_opt_set()
42 int opt = *(int *)(data); in dm_opt_set()
48 int opt = *(int *)(data); in dm_opt_set()
55 int opt = *(int *)(data); in dm_opt_set()
61 int opt = *(int *)(data); in dm_opt_set()
75 int dm_opt_get(dm_opt_t opt, void *data) in dm_opt_get() argument
[all …]
/AliOS-Things-master/hardware/board/haaseduk1/board_test/
A Dsd_test.c24 char *data = NULL; in sdtest_write() local
46 free(data); in sdtest_write()
52 free(data); in sdtest_write()
67 free(data); in sdtest_write()
76 free(data); in sdtest_write()
87 free(data); in sdtest_write()
100 free(data); in sdtest_write()
106 free(data); in sdtest_write()
117 char *data = NULL; in sdtest_read() local
155 free(data); in sdtest_read()
[all …]

Completed in 3977 milliseconds

12345678910>>...70