/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | string_index.py | 1 print("hello world".index("ll")) 2 print("hello world".index("ll", None)) 3 print("hello world".index("ll", 1)) 32 print("0000".index('0')) 33 print("0000".index('0', 0)) 34 print("0000".index('0', 1)) 35 print("0000".index('0', 2)) 36 print("0000".index('0', 3)) 39 print("0000".index('0', 4)) 46 print("0000".index('0', 5)) [all …]
|
A D | list_index.py | 2 print(a.index(1)) 3 print(a.index(2)) 4 print(a.index(3)) 5 print(a.index(3, 2)) 6 print(a.index(1, -100)) 7 print(a.index(1, False)) 10 print(a.index(1, True)) 25 print(a.index(2)) 26 print(b.index(a)) 27 print(a.index(2, 2)) [all …]
|
A D | tuple_index.py | 2 print(a.index(1)) 3 print(a.index(2)) 4 print(a.index(3)) 5 print(a.index(3, 2)) 7 print(a.index(3, 2, 2)) 15 print(a.index(2)) 16 print(b.index(a)) 17 print(a.index(2, 2)) 20 a.index(2, 2, 2)
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/app/monitor/rom/ |
A D | monitor_rom.c | 245 for (index= 0; index < Len; index++) { in cmd_efuse() 260 for (index = 0; index < 1024; index+=16) { in cmd_efuse() 262 EfuseBuf[index], EfuseBuf[index+1], EfuseBuf[index+2], EfuseBuf[index+3], in cmd_efuse() 263 EfuseBuf[index+4], EfuseBuf[index+5], EfuseBuf[index+6], EfuseBuf[index+7], in cmd_efuse() 264 EfuseBuf[index+8], EfuseBuf[index+9], EfuseBuf[index+10], EfuseBuf[index+11], in cmd_efuse() 265 EfuseBuf[index+12], EfuseBuf[index+13], EfuseBuf[index+14], EfuseBuf[index+15]); in cmd_efuse() 282 EfuseBuf[index], EfuseBuf[index+1], EfuseBuf[index+2], EfuseBuf[index+3], in cmd_efuse() 283 EfuseBuf[index+4], EfuseBuf[index+5], EfuseBuf[index+6], EfuseBuf[index+7], in cmd_efuse() 284 EfuseBuf[index+8], EfuseBuf[index+9], EfuseBuf[index+10], EfuseBuf[index+11], in cmd_efuse() 310 for (index= 0; index < Len; index++) { in cmd_efuse() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/app/monitor/ram/ |
A D | monitor_hp.c | 236 for (index= 0; index < Len; index++) { in cmd_efuse_protect() 251 for (index = 0; index < 1024; index+=16) { in cmd_efuse_protect() 253 EfuseBuf[index], EfuseBuf[index+1], EfuseBuf[index+2], EfuseBuf[index+3], in cmd_efuse_protect() 254 EfuseBuf[index+4], EfuseBuf[index+5], EfuseBuf[index+6], EfuseBuf[index+7], in cmd_efuse_protect() 255 EfuseBuf[index+8], EfuseBuf[index+9], EfuseBuf[index+10], EfuseBuf[index+11], in cmd_efuse_protect() 273 EfuseBuf[index], EfuseBuf[index+1], EfuseBuf[index+2], EfuseBuf[index+3], in cmd_efuse_protect() 274 EfuseBuf[index+4], EfuseBuf[index+5], EfuseBuf[index+6], EfuseBuf[index+7], in cmd_efuse_protect() 275 EfuseBuf[index+8], EfuseBuf[index+9], EfuseBuf[index+10], EfuseBuf[index+11], in cmd_efuse_protect() 301 for (index= 0; index < Len; index++) { in cmd_efuse_protect() 307 for (index = 0; index < Len; index++) { in cmd_efuse_protect() [all …]
|
A D | monitor_lp.c | 235 for (index= 0; index < Len; index++) { in cmd_efuse_protect() 250 for (index = 0; index < 1024; index+=16) { in cmd_efuse_protect() 252 EfuseBuf[index], EfuseBuf[index+1], EfuseBuf[index+2], EfuseBuf[index+3], in cmd_efuse_protect() 253 EfuseBuf[index+4], EfuseBuf[index+5], EfuseBuf[index+6], EfuseBuf[index+7], in cmd_efuse_protect() 254 EfuseBuf[index+8], EfuseBuf[index+9], EfuseBuf[index+10], EfuseBuf[index+11], in cmd_efuse_protect() 272 EfuseBuf[index], EfuseBuf[index+1], EfuseBuf[index+2], EfuseBuf[index+3], in cmd_efuse_protect() 273 EfuseBuf[index+4], EfuseBuf[index+5], EfuseBuf[index+6], EfuseBuf[index+7], in cmd_efuse_protect() 274 EfuseBuf[index+8], EfuseBuf[index+9], EfuseBuf[index+10], EfuseBuf[index+11], in cmd_efuse_protect() 300 for (index= 0; index < Len; index++) { in cmd_efuse_protect() 306 for (index = 0; index < Len; index++) { in cmd_efuse_protect() [all …]
|
/AliOS-Things-master/components/sensor/hal/ |
A D | sensor_hal.c | 185 int index; in sensor_create_obj() local 189 index = g_sensor_cnt; in sensor_create_obj() 194 g_sensor_obj[index] = in sensor_create_obj() 256 int index; in sensor_hal_get_dev_list() local 267 for(index = 0; (index < g_sensor_cnt) && (index < SENSOR_MAX_NUM); index++){ in sensor_hal_get_dev_list() 268 sensor_list->list[index].tag = g_sensor_obj[index]->tag; in sensor_hal_get_dev_list() 269 sensor_list->list[index].instance = g_sensor_obj[index]->instance; in sensor_hal_get_dev_list() 270 sensor_list->list[index].io_port = g_sensor_obj[index]->io_port; in sensor_hal_get_dev_list() 309 uint32_t index; in sensor_hal_open() local 339 uint32_t index; in sensor_hal_close() local [all …]
|
/AliOS-Things-master/components/uvoice/media/ |
A D | uvoice_mlist.c | 25 int index; member 38 int index = 0; in mlist_source_show() local 180 index++; in mlist_source_scan() 183 index--; in mlist_source_scan() 199 if (src_list->index != index) { in mlist_source_scan() 201 src_list->index = index; in mlist_source_scan() 269 if (index <= 0 || index > src_list->count) { in mlist_source_get() 378 if (src_list->index == index && index != 1) { in mlist_source_del() 452 *index = src_list->index; in mlist_index_get() 475 if (src_list->index != index) { in mlist_index_set() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/examples/ |
A D | zran.c | 86 free(index); in free_index() 111 else if (index->have == index->size) { in addpoint() 113 next = realloc(index->list, sizeof(struct point) * index->size); in addpoint() 122 next = index->list + index->have; in addpoint() 130 index->have++; in addpoint() 133 return index; in addpoint() 216 index = addpoint(index, strm.data_type & 7, totin, in build_index() 229 index->list = realloc(index->list, sizeof(struct point) * index->have); in build_index() 230 index->size = index->have; in build_index() 231 *built = index; in build_index() [all …]
|
/AliOS-Things-master/solutions/genie_mesh_demo/light_ctl/ |
A D | light.c | 105 uint8_t index = 0; in light_elem_state_init() local 112 for (index = 0; index < ELEMENT_NUM; index++) { in light_elem_state_init() 113 light_elem_stat[index].element_id = index; in light_elem_state_init() 117 … memcpy(&light_elem_stat[index].powerup, &light_powerup[index], sizeof(sig_model_powerup_t)); in light_elem_state_init() 136 light_elem_stat[index].state.onoff[TYPE_TARGET] = light_elem_stat[index].powerup.last_onoff; in light_elem_state_init() 140 …light_elem_stat[index].state.lightness[TYPE_TARGET] = light_elem_stat[index].powerup.last_lightnes… in light_elem_state_init() 149 light_elem_stat[index].state.scene[TYPE_TARGET] = light_elem_stat[index].powerup.last_scene; in light_elem_state_init() 153 …k_timer_init(&light_elem_stat[index].state.delay_timer, _mesh_delay_timer_cb, &light_elem_stat[ind… in light_elem_state_init() 174 …light_elem_stat[index].state.onoff[TYPE_PRESENT] = light_elem_stat[index].state.onoff[TYPE_TARGET]; in light_elem_state_init() 188 …light_elem_stat[index].state.scene[TYPE_PRESENT] = light_elem_stat[index].state.scene[TYPE_TARGET]; in light_elem_state_init() [all …]
|
/AliOS-Things-master/components/linkkit/wrappers/platform/ssl/ |
A D | iotx_hmac.c | 43 int index = 0; in iotx_hmac_md5() local 53 for (index = 0; index < key_len; index++) { in iotx_hmac_md5() 54 k_ipad[index] = (unsigned char)(k_ipad[index] ^ key[index]); in iotx_hmac_md5() 55 k_opad[index] = (unsigned char)(k_opad[index] ^ key[index]); in iotx_hmac_md5() 80 int index = 0; in iotx_hmac_sha1() local 90 for (index = 0; index < key_len; index++) { in iotx_hmac_sha1() 91 k_ipad[index] = (unsigned char)(k_ipad[index] ^ key[index]); in iotx_hmac_sha1() 92 k_opad[index] = (unsigned char)(k_opad[index] ^ key[index]); in iotx_hmac_sha1()
|
/AliOS-Things-master/components/SDL2/src/events/ |
A D | SDL_touch.c | 60 if (index < 0 || index >= SDL_num_touch) { in SDL_GetTouchDevice() 70 int index; in SDL_GetTouchIndex() local 73 for (index = 0; index < SDL_num_touch; ++index) { in SDL_GetTouchIndex() 86 if (index < 0 || index >= SDL_num_touch) { in SDL_GetTouch() 111 int index; in SDL_GetFingerIndex() local 112 for (index = 0; index < touch->num_fingers; ++index) { in SDL_GetFingerIndex() 124 if (index < 0 || index >= touch->num_fingers) { in SDL_GetFinger() 147 if (index < 0 || index >= touch->num_fingers) { in SDL_GetTouchFinger() 158 int index; in SDL_AddTouch() local 194 return index; in SDL_AddTouch() [all …]
|
/AliOS-Things-master/components/linkkit/dev_model/ |
A D | dm_shadow.c | 534 for (index = 0; index < shadow->event_number; index++) { in _dm_shw_event_search() 590 for (index = 0; index < shadow->service_number; index++) { in _dm_shw_service_search() 773 for (index = 0; index < shadow->event_number; index++) { in dm_shw_get_event() 797 for (index = 0; index < shadow->event_number; index++) { in dm_shw_get_service() 918 for (index = 0; index < shadow->event_number; index++) { in dm_shw_get_event_by_identifier() 2405 for (index = 0; index < number; index++) { in _dm_shw_properties_free() 2426 for (index = 0; index < number; index++) { in _dm_shw_event_outputdatas_free() 2451 for (index = 0; index < number; index++) { in _dm_shw_events_free() 2472 for (index = 0; index < number; index++) { in _dm_shw_service_outputdatas_free() 2493 for (index = 0; index < number; index++) { in _dm_shw_service_inputdatas_free() [all …]
|
A D | dm_utils.c | 45 int index = 0; in dm_utils_strarr_index() local 55 for (index = 0; index < input_len; index++) { in dm_utils_strarr_index() 221 for (index = 0; index < input_len; index++) { in dm_utils_hex_to_str() 245 int index = 0; in dm_utils_str_to_hex() local 260 for (index = 0; index < input_len; index += 2) { in dm_utils_str_to_hex() 261 if (input[index] >= '0' && input[index] <= '9') { in dm_utils_str_to_hex() 263 } else if (input[index] >= 'A' && input[index] <= 'F') { in dm_utils_str_to_hex() 268 if (input[index + 1] >= '0' && input[index + 1] <= '9') { in dm_utils_str_to_hex() 270 } else if (input[index + 1] >= 'A' && input[index + 1] <= 'F') { in dm_utils_str_to_hex() 305 int index = 0; in dm_utils_replace_char() local [all …]
|
A D | dm_tsl_alink.c | 163 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_int_parse() 186 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_float_parse() 209 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_double_parse() 232 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_text_parse() 321 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_struct_parse() 453 for (index = 0; index < complex_struct->size; index++) { in _dm_shw_struct_parse() 589 for (index = 0; index < lite_properties.size; index++) { in _dm_shw_properties_parse() 664 for (index = 0; index < event->output_data_number; index++) { in _dm_shw_event_outputdatas_parse() 757 for (index = 0; index < lite_events.size; index++) { in _dm_shw_events_parse() 912 for (index = 0; index < service->input_data_number; index++) { in _dm_shw_service_inputdatas_parse() [all …]
|
/AliOS-Things-master/components/SDL2/src/test/ |
A D | SDL_test_fuzzer.c | 213 Uint8 index; in SDLTest_GenerateUnsignedBoundaryValues() local 224 index = 0; in SDLTest_GenerateUnsignedBoundaryValues() 234 tempBuf[index] = b1 + index; in SDLTest_GenerateUnsignedBoundaryValues() 239 index++; in SDLTest_GenerateUnsignedBoundaryValues() 241 index++; in SDLTest_GenerateUnsignedBoundaryValues() 243 index++; in SDLTest_GenerateUnsignedBoundaryValues() 245 index++; in SDLTest_GenerateUnsignedBoundaryValues() 345 Uint8 index; in SDLTest_GenerateSignedBoundaryValues() local 356 index = 0; in SDLTest_GenerateSignedBoundaryValues() 366 tempBuf[index] = b1 + index; in SDLTest_GenerateSignedBoundaryValues() [all …]
|
A D | SDL_test_common.c | 122 ++index; in SDLTest_CommonArg() 130 ++index; in SDLTest_CommonArg() 142 ++index; in SDLTest_CommonArg() 171 ++index; in SDLTest_CommonArg() 206 ++index; in SDLTest_CommonArg() 236 ++index; in SDLTest_CommonArg() 237 if (!argv[index] || !SDL_isdigit(*argv[index])) { in SDLTest_CommonArg() 246 ++index; in SDLTest_CommonArg() 254 ++index; in SDLTest_CommonArg() 268 ++index; in SDLTest_CommonArg() [all …]
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | binary.c | 151 val = ((signed char *)p)[index]; in mp_binary_get_val_array() 155 val = ((unsigned char *)p)[index]; in mp_binary_get_val_array() 158 val = ((short *)p)[index]; in mp_binary_get_val_array() 185 return ((mp_obj_t *)p)[index]; in mp_binary_get_val_array() 370 ((mp_obj_t *)p)[index] = val_in; in mp_binary_set_val_array() 388 ((signed char *)p)[index] = val; in mp_binary_set_val_array_from_int() 395 ((short *)p)[index] = val; in mp_binary_set_val_array_from_int() 401 ((int *)p)[index] = val; in mp_binary_set_val_array_from_int() 404 ((unsigned int *)p)[index] = val; in mp_binary_set_val_array_from_int() 407 ((long *)p)[index] = val; in mp_binary_set_val_array_from_int() [all …]
|
/AliOS-Things-master/components/linkkit/external/nghttp2/ |
A D | nghttp2_pq.c | 54 b->index = i; in swap() 56 a->index = j; in swap() 62 while (index != 0) { in bubble_up() 68 index = parent; in bubble_up() 89 item->index = pq->length; in nghttp2_pq_push() 108 j = index * 2 + 1; in bubble_down() 109 minindex = index; in bubble_down() 122 index = minindex; in bubble_down() 130 pq->q[0]->index = 0; in nghttp2_pq_pop() 140 if (item->index == 0) { in nghttp2_pq_remove() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/ |
A D | efuse_api.c | 110 u8 index; in efuse_otp_read() local 115 for (index = 0; index< 32; index++) { in efuse_otp_read() 116 bResult = EFUSE_PMAP_READ8(0, 0x130 + index , content + index, L25EOUTVOLTAGE); in efuse_otp_read() 140 u8 index; in efuse_otp_write() local 147 for (index = 0; index < len; index++) { in efuse_otp_write() 148 bResult = EFUSE_PMAP_WRITE8(0, address + 0x130 +index, buf[index], L25EOUTVOLTAGE); in efuse_otp_write()
|
/AliOS-Things-master/components/freetype/src/cff/ |
A D | cf2intrp.c | 337 CF2_UInt index; in cf2_doFlex() local 344 index = 0; in cf2_doFlex() 658 for ( index = 0; index < count; index += 2 ) in cf2_interpT2CharString() 681 for ( index = 0; index < count; index++ ) in cf2_interpT2CharString() 724 index += 6; in cf2_interpT2CharString() 1261 index += 2; in cf2_interpT2CharString() 1278 index += 6; in cf2_interpT2CharString() 1302 ++index; in cf2_interpT2CharString() 1317 index += 4; in cf2_interpT2CharString() 1341 ++index; in cf2_interpT2CharString() [all …]
|
/AliOS-Things-master/components/linkkit/iot_coap/CoAPPacket/ |
A D | CoAPMessage_common.c | 64 unsigned char index = 0; in CoAPStrOption_get() local 66 for (index = 0; index < message->optcount; index++) { in CoAPStrOption_get() 67 if (message->options[index].num == optnum) { in CoAPStrOption_get() 70 message->options[index].len); in CoAPStrOption_get() 126 unsigned char index = 0; in CoAPUintOption_get() local 128 for (index = 0; index < message->optcount; index++) { in CoAPUintOption_get() 129 if (message->options[index].num == optnum) { in CoAPUintOption_get() 131 switch (message->options[index].len) { in CoAPUintOption_get() 163 unsigned char index = 0; in CoAPOption_present() local 165 for (index = 0; index < message->optcount; index++) { in CoAPOption_present() [all …]
|
/AliOS-Things-master/components/sensor/drv/drv_ps_st_vl53l0x/ |
A D | vl53l0x_platform.c | 29 VL53L0X_Error VL53L0X_RdByte(VL53L0X_DEV Dev, uint8_t index, uint8_t *data) in VL53L0X_RdByte() argument 35 sensor_i2c_read(&vl53l0x_ctx_i2c, index, data, 1, i2c_time_out); in VL53L0X_RdByte() 53 sensor_i2c_write(&vl53l0x_ctx_i2c, index, pdata, count, i2c_time_out); in VL53L0X_WriteMulti() 69 sensor_i2c_read(&vl53l0x_ctx_i2c, index, pdata, count, i2c_time_out); in VL53L0X_ReadMulti() 86 sensor_i2c_read(&vl53l0x_ctx_i2c, index, &mdata[0], 2, i2c_time_out); in VL53L0X_RdWord() 104 sensor_i2c_read(&vl53l0x_ctx_i2c, index, &mdata[0], 4, i2c_time_out); in VL53L0X_RdDWord() 117 VL53L0X_Error VL53L0X_WrByte(VL53L0X_DEV Dev, uint8_t index, uint8_t data) in VL53L0X_WrByte() argument 124 sensor_i2c_write(&vl53l0x_ctx_i2c, index, &mdata, 1, i2c_time_out); in VL53L0X_WrByte() 168 VL53L0X_Error VL53L0X_UpdateByte(VL53L0X_DEV Dev, uint8_t index, in VL53L0X_UpdateByte() argument 174 Status = VL53L0X_RdByte(Dev, index, &data); in VL53L0X_UpdateByte() [all …]
|
/AliOS-Things-master/components/netmgr/netdev/src/ |
A D | netdev_cli.c | 58 int index; in netdev_list_if() local 80 for (index = 0; index < netdev->hwaddr_len; index++) in netdev_list_if() 87 for (index = 0; index < netdev->hwaddr_len; index++) in netdev_list_if() 90 if (netdev->hwaddr[index] < 10 && index != netdev->hwaddr_len - 1) in netdev_list_if() 106 for (index = 0; index < NETDEV_DNS_SERVERS_NUM; index++) in netdev_list_if() 138 for (index = 0; index < netdev->hwaddr_len; index++) in netdev_list_if() 146 for (index = 0; index < netdev->hwaddr_len; index++) in netdev_list_if() 173 for (index = 0; index < NETDEV_DNS_SERVERS_NUM; index++) in netdev_list_if() 454 for (index = 0; index < times; index++) in netdev_cmd_ping() 584 int index = 0; in netdev_list_dns() local [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/ruy/ |
A D | side_pair.h | 45 const int index = static_cast<int>(side); variable 48 RUY_DCHECK(index == 0 || index == 1); 49 return elem_[index]; 53 const int index = static_cast<int>(side); variable 56 RUY_DCHECK(index == 0 || index == 1); 57 return elem_[index];
|