Home
last modified time | relevance | path

Searched refs:stop (Results 1 – 25 of 144) sorted by relevance

123456

/AliOS-Things-master/components/py_engine/engine/py/
A Dobjslice.c76 dest[0] = self->stop; in slice_attr()
110 o->stop = ostop; in mp_obj_new_slice()
144 stop = length; in mp_obj_slice_indices()
146 stop = mp_obj_get_int(self->stop); in mp_obj_slice_indices()
147 if (stop < 0) { in mp_obj_slice_indices()
150 stop = MIN(length, MAX(stop, 0)); in mp_obj_slice_indices()
165 stop = -1; in mp_obj_slice_indices()
167 stop = mp_obj_get_int(self->stop); in mp_obj_slice_indices()
168 if (stop < 0) { in mp_obj_slice_indices()
171 stop = MIN(length - 1, MAX(stop, -1)); in mp_obj_slice_indices()
[all …]
A Dobjrange.c38 mp_int_t stop; member
44 if ((o->step > 0 && o->cur < o->stop) || (o->step < 0 && o->cur > o->stop)) { in range_it_iternext()
65 o->stop = stop; in mp_obj_new_range_iterator()
77 mp_int_t stop; member
101 o->stop = mp_obj_get_int(args[0]); in range_make_new()
104 o->stop = mp_obj_get_int(args[1]); in range_make_new()
118 mp_int_t len = self->stop - self->start + self->step; in range_len()
174 o->stop = self->start + slice.stop * self->step; in range_subscr()
178 o->stop -= self->step; in range_subscr()
192 return mp_obj_new_range_iterator(o->start, o->stop, o->step, iter_buf); in range_getiter()
[all …]
A Dsequence.c53 indexes->stop++; in mp_seq_get_fast_slice_indexes()
57 if (indexes->step > 0 && indexes->start > indexes->stop) { in mp_seq_get_fast_slice_indexes()
58 indexes->stop = indexes->start; in mp_seq_get_fast_slice_indexes()
59 } else if (indexes->step < 0 && indexes->start < indexes->stop) { in mp_seq_get_fast_slice_indexes()
60 indexes->stop = indexes->start + 1; in mp_seq_get_fast_slice_indexes()
71 mp_int_t start = indexes->start, stop = indexes->stop; in mp_seq_extract_slice() local
77 while (start >= stop) { in mp_seq_extract_slice()
82 while (start < stop) { in mp_seq_extract_slice()
189 size_t stop = len; in mp_seq_index_obj() local
194 stop = mp_get_index(type, len, args[3], true); in mp_seq_index_obj()
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/
A Dstrided_slice_logic.h136 int stop = stop_indices[axis]; in StopForAxis() local
151 stop = std::numeric_limits<int>::max(); in StopForAxis()
154 stop = std::numeric_limits<int>::lowest(); in StopForAxis()
159 if (stop < 0) { in StopForAxis()
160 stop += axis_size; in StopForAxis()
168 stop = Clamp(stop, 0, axis_size); in StopForAxis()
171 stop = Clamp(stop, -1, axis_size - 1); in StopForAxis()
174 return stop; in StopForAxis()
177 inline bool LoopCondition(int index, int stop, int stride) { in LoopCondition() argument
179 return stride > 0 ? index >= stop : index <= stop; in LoopCondition()
/AliOS-Things-master/components/py_engine/tests/extmod/
A Duasyncio_loop_stop.py21 loop.stop()
24 loop.stop()
31 loop.stop()
37 loop.stop()
A Duasyncio_new_event_loop.py.exp3 stop
6 stop
/AliOS-Things-master/components/amp/libjs/lib/
A Dwdg.js14 function stop() { function
15 __native.WDG.stop();
21 stop
A Dtts.js18 stop() {
19 return __native.TTS.stop();
A Daudioplayer.js26 stop() {
27 return __native.audioplayer.stop();
/AliOS-Things-master/components/amp/jslib/src/
A Dwdg.js14 export function stop() { function
15 WDG.stop();
A Daudioplayer.js26 static stop() { method in audioplayer
27 return AUDIOPLAYER.stop();
/AliOS-Things-master/components/py_engine/tests/haas/HaaS100/python-apps/driver/timer/
A Dmain.py8 tim0.stop()
15 tim1.stop()
/AliOS-Things-master/components/py_engine/tests/haas/HaaSEdu/python-apps/driver/timer/
A Dmain.py8 tim0.stop()
15 tim1.stop()
/AliOS-Things-master/components/py_engine/engine/extmod/webrepl/
A Dwebrepl.py53 def stop(): function
63 stop()
80 stop()
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmodurandom.c134 mp_int_t stop = mp_obj_get_int(args[1]); in mod_urandom_randrange() local
137 if (start < stop) { in mod_urandom_randrange()
138 return mp_obj_new_int(start + yasmarang_randbelow(stop - start)); in mod_urandom_randrange()
147 n = (stop - start + step - 1) / step; in mod_urandom_randrange()
149 n = (stop - start + step + 1) / step; in mod_urandom_randrange()
A Dmachine_i2c.c298 unsigned int flags = stop ? MP_MACHINE_I2C_FLAG_STOP : 0; in mp_machine_i2c_writeto()
358 if (i2c_p->stop == NULL) { in machine_i2c_stop()
361 int ret = i2c_p->stop(self); in machine_i2c_stop()
420 bool stop = (n_args == 3) ? true : mp_obj_is_true(args[3]); in machine_i2c_readfrom() local
421 int ret = mp_machine_i2c_readfrom(self, addr, (uint8_t *)vstr.buf, vstr.len, stop); in machine_i2c_readfrom()
434 bool stop = (n_args == 3) ? true : mp_obj_is_true(args[3]); in machine_i2c_readfrom_into() local
435 int ret = mp_machine_i2c_readfrom(self, addr, bufinfo.buf, bufinfo.len, stop); in machine_i2c_readfrom_into()
448 bool stop = (n_args == 3) ? true : mp_obj_is_true(args[3]); in machine_i2c_writeto() local
449 int ret = mp_machine_i2c_writeto(self, addr, bufinfo.buf, bufinfo.len, stop); in machine_i2c_writeto()
468 bool stop = (n_args == 3) ? true : mp_obj_is_true(args[3]); in machine_i2c_writevto() local
[all …]
/AliOS-Things-master/components/py_engine/tests/wipy/
A Di2c.py104 print(1 == i2c.writeto(addr, reg, stop=False)) # just write the register address
109 print(1 == i2c.writeto(addr, reg, stop=False)) # just write the register address
119 print(2 == i2c.writeto(addr, reg2, stop=True)) # write the register address and the data
154 i2c.writeto(addr, reg, stop=False)
/AliOS-Things-master/components/uvoice/media/
A Duvoice_recorder.c39 recorder->stop = 0; in recorder_reset()
211 if (recorder->stop) { in recorder_task()
218 recorder->stop = 0; in recorder_task()
237 recorder->stop = 1; in recorder_task()
268 recorder->stop = 1; in recorder_task()
300 recorder->stop = 1; in recorder_task()
337 recorder->stop = 1; in recorder_task()
349 recorder->stop = 1; in recorder_task()
355 recorder->stop = 1; in recorder_task()
560 if (!recorder->stop) { in recorder_stop()
[all …]
A Duvoice_player.c890 player->stop = 0; in player_reset()
1087 !player->stop) { in player_task()
1550 player->stop) { in player_start()
1551 player->stop = 0; in player_start()
1734 if (!player->stop) { in player_pause()
1883 if (player->stop) { in player_stop()
1888 player->stop = 1; in player_stop()
1958 player->stop = 1; in player_pause_async()
2013 if (!player->stop) { in player_stop_async()
2014 player->stop = 1; in player_stop_async()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/
A Di2c_api.c396 int i2c_read_timeout(i2c_t *obj, int address, char *data, int length, int stop, int timeout_ms) in i2c_read_timeout() argument
399 ( void ) stop; in i2c_read_timeout()
429 int i2c_write_timeout(i2c_t *obj, int address, char *data, int length, int stop, int timeout_ms) in i2c_write_timeout() argument
432 ( void ) stop; in i2c_write_timeout()
463 int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) in i2c_read() argument
466 ( void ) stop; in i2c_read()
513 int i2c_write(i2c_t *obj, int address, const char *data, int length, int stop) in i2c_write() argument
528 if ((!restart_enable) |(1==stop)) { in i2c_write()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/hal/
A Di2c_api.h140 int i2c_read(i2c_t *obj, int address, char *data, int length, int stop);
151 int i2c_write(i2c_t *obj, int address, const char *data, int length, int stop);
/AliOS-Things-master/components/amp_adapter/platform/aos/peripheral/
A Daos_hal_uart.c75 int stop; member
97 if (notify->stop) { in uart_recv_handler()
159 notify->stop = 1; in aos_hal_uart_finalize()
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/contrib/pds/
A Dtif_imageiter.c73 TIFFImageIterBegin(TIFFImageIter* img, TIFF* tif, int stop, char emsg[1024]) in TIFFImageIterBegin() argument
81 img->stoponerr = stop; in TIFFImageIterBegin()
235 uint32 rwidth, uint32 rheight, uint8* raster, int stop) in TIFFReadImageIter() argument
241 if (TIFFImageIterBegin(&img, tif, stop, emsg)) { in TIFFReadImageIter()
485 int stop = 1; in main() local
503 if (TIFFImageIterBegin(&img, tif, stop, emsg)) { in main()
/AliOS-Things-master/components/amp/example-js/
A Dwdg.js8 dog.stop();
/AliOS-Things-master/components/SDL2/src/file/
A DSDL_rwops.c446 return (Sint64)(context->hidden.mem.stop - context->hidden.mem.base); in mem_size()
462 newpos = context->hidden.mem.stop + offset; in mem_seek()
470 if (newpos > context->hidden.mem.stop) { in mem_seek()
471 newpos = context->hidden.mem.stop; in mem_seek()
489 mem_available = (context->hidden.mem.stop - context->hidden.mem.here); in mem_read()
503 if ((context->hidden.mem.here + (num * size)) > context->hidden.mem.stop) { in mem_write()
504 num = (context->hidden.mem.stop - context->hidden.mem.here) / size; in mem_write()
670 rwops->hidden.mem.stop = rwops->hidden.mem.base + size; in SDL_RWFromMem()
698 rwops->hidden.mem.stop = rwops->hidden.mem.base + size; in SDL_RWFromConstMem()

Completed in 41 milliseconds

123456