/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | bytes_compare.py | 1 print(b"" == b"") 2 print(b"" > b"") 3 print(b"" < b"") 4 print(b"" == b"1") 5 print(b"1" == b"") 7 print(b"" > b"1") 8 print(b"1" > b"") 9 print(b"" < b"1") 10 print(b"1" < b"") 11 print(b"" >= b"1") [all …]
|
A D | bytes_count.py | 7 print(b"".count(b"")) 8 print(b"".count(b"a")) 9 print(b"a".count(b"")) 10 print(b"a".count(b"a")) 11 print(b"a".count(b"b")) 12 print(b"b".count(b"a")) 14 print(b"aaa".count(b"")) 15 print(b"aaa".count(b"a")) 16 print(b"aaa".count(b"aa")) 17 print(b"aaa".count(b"aaa")) [all …]
|
A D | bytes_find.py | 1 print(b"hello world".find(b"ll")) 2 print(b"hello world".find(b"ll", None)) 3 print(b"hello world".find(b"ll", 1)) 13 print(b"0000".find(b'0')) 14 print(b"0000".find(b'0', 0)) 15 print(b"0000".find(b'0', 1)) 16 print(b"0000".find(b'0', 2)) 17 print(b"0000".find(b'0', 3)) 18 print(b"0000".find(b'0', 4)) 19 print(b"0000".find(b'0', 5)) [all …]
|
A D | unpack1.py | 4 a, b = 2, 3 ; print(a, b) variable 5 a, b, c = 1, 2, 3; print(a, b, c) variable 8 a, b = range(2); print(a, b) variable 9 a, b, c = range(3); print(a, b, c) variable 13 (a, b) = range(2); print(a, b) 14 (a, b, c) = range(3); print(a, b, c) 21 [a, b] = range(2); print(a, b) 30 *a, b = 7, ; print(a, b) 31 *a, b = 8, 9 ; print(a, b) 32 *a, b = 10, 11, 12 ; print(a, b) [all …]
|
A D | bytes_replace.py | 1 print(b"".replace(b"a", b"b")) 2 print(b"aaa".replace(b"a", b"b", 0)) 3 print(b"aaa".replace(b"a", b"b", -5)) 4 print(b"asdfasdf".replace(b"a", b"b")) 5 print(b"aabbaabbaabbaa".replace(b"aa", b"cc", 3)) 6 print(b"a".replace(b"aa", b"bb")) 7 print(b"testingtesting".replace(b"ing", b"")) 10 print(b"".replace(b"", b"1")) 11 print(b"A".replace(b"", b"1")) 12 print(b"AB".replace(b"", b"1")) [all …]
|
A D | memoryview1.py | 17 b = b'1234' variable 34 b = bytearray(b) variable 64 print(memoryview(b'abc') == b'abc') 65 print(memoryview(b'abc') != b'abc') 66 print(memoryview(b'abc') == b'xyz') 67 print(memoryview(b'abc') != b'xyz') 68 print(b'abc' == memoryview(b'abc')) 69 print(b'abc' != memoryview(b'abc')) 70 print(b'abc' == memoryview(b'xyz')) 71 print(b'abc' != memoryview(b'xyz')) [all …]
|
A D | bytes_split.py | 12 b"abc".split(b'') 17 print(b"abc".split(b"a")) 18 print(b"abc".split(b"b")) 19 print(b"abc".split(b"c")) 20 print(b"abc".split(b"z")) 21 print(b"abc".split(b"ab")) 22 print(b"abc".split(b"bc")) 23 print(b"abc".split(b"abc")) 24 print(b"abc".split(b"abcd")) 25 print(b"abcabc".split(b"bc")) [all …]
|
A D | bytes_partition.py | 7 print(b"asdf".partition(b'g')) 8 print(b"asdf".partition(b'a')) 9 print(b"asdf".partition(b's')) 10 print(b"asdf".partition(b'f')) 11 print(b"asdf".partition(b'd')) 12 print(b"asdf".partition(b'asd')) 13 print(b"asdf".partition(b'sdf')) 14 print(b"asdf".partition(b'as')) 15 print(b"asdf".partition(b'df')) 20 print(b"abba".partition(b'a')) [all …]
|
A D | seq_unpack.py | 2 a, b = 1, 2 variable 3 print(a, b) 4 a, b = (1, 2) variable 5 print(a, b) 6 (a, b) = 1, 2 7 print(a, b) 9 print(a, b) 13 print(a, b) 15 print(a, b) 19 b = 2 variable [all …]
|
A D | int_intbig.py | 6 print(b) 7 print(a + b) 8 print(a - b) 9 print(b - a) 20 a += b 28 a %= b 30 a ^= b 32 a |= b 34 a &= b 43 b = a variable [all …]
|
A D | bytes_large.py | 1 b1 = b"long bytes long bytes long bytes long bytes long bytes long bytes long bytes long bytes long… 2 …b"concatenated bytes" b"concatenated bytes" b"concatenated bytes" b"concatenated bytes" b"concaten…
|
A D | bytearray_slice_assign.py | 45 b = bytearray(2) variable 47 print(b) 51 print(len(b), b[0], b[-1]) 54 b = bytearray(x) variable 55 b[4:] = b 56 print(b) 60 b[1:1] = b"12345" 61 print(b) 64 b = bytearray(b'12345678') variable 67 b[-1:] = b'ab' # grow slowly into the unused space [all …]
|
/AliOS-Things-master/components/SDL2/src/dynapi/ |
A D | SDL_dynapi_procs.h | 98 SDL_DYNAPI_PROC(int,SDL_AtomicSet,(SDL_atomic_t *a, int b),(a,b),return) 100 SDL_DYNAPI_PROC(int,SDL_AtomicAdd,(SDL_atomic_t *a, int b),(a,b),return) 152 SDL_DYNAPI_PROC(void,SDL_FlushEvents,(Uint32 a, Uint32 b),(a,b),) 162 SDL_DYNAPI_PROC(Uint8,SDL_EventState,(Uint32 a, int b),(a,b),return) 452 SDL_DYNAPI_PROC(int,SDL_vsnprintf,(SDL_OUT_Z_CAP(b) char *a, size_t b, const char *c, va_list d),(a… 464 SDL_DYNAPI_PROC(double,SDL_pow,(double a, double b),(a,b),return) 465 SDL_DYNAPI_PROC(double,SDL_scalbn,(double a, int b),(a,b),return) 687 SDL_DYNAPI_PROC(float,SDL_atan2f,(float a, float b),(a,b),return) 693 SDL_DYNAPI_PROC(float,SDL_powf,(float a, float b),(a,b),return) 694 SDL_DYNAPI_PROC(float,SDL_scalbnf,(float a, int b),(a,b),return) [all …]
|
/AliOS-Things-master/components/SDL2/src/video/x11/ |
A D | SDL_x11sym.h | 41 SDL_X11_SYM(int,XClearWindow,(Display* a,Window b),(a,b),return) 59 SDL_X11_SYM(int,XEventsQueued,(Display* a,int b),(a,b),return) 64 SDL_X11_SYM(int,XFreeCursor,(Display* a,Cursor b),(a,b),return) 65 SDL_X11_SYM(void,XFreeFontSet,(Display* a, XFontSet b),(a,b),) 66 SDL_X11_SYM(int,XFreeGC,(Display* a,GC b),(a,b),return) 69 SDL_X11_SYM(int,XFreePixmap,(Display* a,Pixmap b),(a,b),return) 71 SDL_X11_SYM(char*,XGetAtomName,(Display *a,Atom b),(a,b),return) 96 SDL_X11_SYM(int,XMapRaised,(Display* a,Window b),(a,b),return) 128 SDL_X11_SYM(int,XSync,(Display* a,Bool b),(a,b),return) 136 SDL_X11_SYM(int,XUnloadFont,(Display* a,Font b),(a,b),return) [all …]
|
/AliOS-Things-master/components/py_engine/tests/cmdline/ |
A D | cmd_showbc.py | 20 h = b'a' 29 m = not (a == b and b == c) 32 n = b.c 33 b.c = n 48 a, b = b, a 49 a, b, c = c, b, a 62 a = {b:b for c in d if e} 68 a(*b) 71 a.b() 82 b [all …]
|
/AliOS-Things-master/components/py_engine/engine/tools/mpremote/mpremote/ |
A D | console.py | 51 b"H": b"A", # UP 52 b"P": b"B", # DOWN 53 b"M": b"C", # RIGHT 54 b"K": b"D", # LEFT 55 b"G": b"H", # POS1 56 b"O": b"F", # END 57 b"Q": b"6~", # PGDN 58 b"I": b"5~", # PGUP 64 b"u": b"1;5F", # CTRL-END 71 b"S": b"3~", # DEL, [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/utils/jansson/ |
A D | lookup3.h | 126 b -= a; b ^= rot(a, 6); a += c; \ 127 c -= b; c ^= rot(b, 8); b += a; \ 129 b -= a; b ^= rot(a,19); a += c; \ 130 c -= b; c ^= rot(b, 4); b += a; \ 160 c ^= b; c -= rot(b,14); \ 162 b ^= a; b -= rot(a,25); \ 163 c ^= b; c -= rot(b,16); \ 165 b ^= a; b -= rot(a,14); \ 166 c ^= b; c -= rot(b,24); \ 231 b += k[1]; in hashlittle() [all …]
|
/AliOS-Things-master/components/py_engine/tests/micropython/ |
A D | import_mpy_native_x64.py | 59 b'M\x05\x0b\x1f\x20' # header 61 b'\x20' # n bytes, bytecode 63 b'\x51' # LOAD_CONST_NONE 64 b'\x63' # RETURN_VALUE 68 b'\x22' # n bytes, viper code 70 b'\x00\x00' # qstr0 74 b'\x23' # n bytes, asm code 83 b'\x20' # n bytes, bytecode 86 b'\x63' # RETURN_VALUE 92 b'\x00' # n_qstr [all …]
|
/AliOS-Things-master/components/py_engine/engine/lib/tinytest/ |
A D | tinytest_macros.h | 91 if (!(b)) { \ 109 #define tt_want(b) tt_want_msg( (b), "want("#b")") argument 111 #define tt_assert(b) tt_assert_msg((b), "assert("#b")") argument 150 tt_assert_test_type(a,b,#a" "#op" "#b,type,(val1_ op val2_),fmt, \ 154 tt_assert_test_type(a,b,#a" "#op" "#b,long,(val1_ op val2_), \ 158 tt_assert_test_type(a,b,#a" "#op" "#b,unsigned long, \ 162 tt_assert_test_type(a,b,#a" "#op" "#b,void*, \ 166 tt_assert_test_type(a,b,#a" "#op" "#b,const char *, \ 173 tt_assert_test_type(a,b,#a" "#op" "#b,unsigned long, \ 177 tt_assert_test_type(a,b,#a" "#op" "#b,void*, \ [all …]
|
/AliOS-Things-master/components/py_engine/tests/extmod/ |
A D | btree1.py | 13 db[b"foo3"] = b"bar3" 14 db[b"foo1"] = b"bar1" 15 db[b"foo2"] = b"bar2" 16 db[b"bar1"] = b"foo1" 21 print(db[b"foo2"]) 27 print(db.get(b"foo", b"dflt")) 29 del db[b"foo2"] 31 del db[b"foo"] 47 for k, v in db.items(b"f", b"foo3"): 55 for k, v in db.items(b"f", b"foo3", btree.INCL): [all …]
|
A D | ubinascii_a2b_base64.py | 10 print(binascii.a2b_base64(b"")) 11 print(binascii.a2b_base64(b"Zg==")) 12 print(binascii.a2b_base64(b"Zm8=")) 13 print(binascii.a2b_base64(b"Zm9v")) 14 print(binascii.a2b_base64(b"Zm9vYg==")) 15 print(binascii.a2b_base64(b"Zm9vYmE=")) 16 print(binascii.a2b_base64(b"Zm9vYmFy")) 20 print(binascii.a2b_base64(b"f4D/")) 25 print(binascii.a2b_base64(b"Zm9v\n")) 27 print(binascii.a2b_base64(b"Zm9v==")) [all …]
|
/AliOS-Things-master/components/SDL2/src/test/ |
A D | SDL_test_md5.c | 84 #define FF(a, b, c, d, x, s, ac) \ argument 87 (a) += (b); \ 89 #define GG(a, b, c, d, x, s, ac) \ argument 92 (a) += (b); \ 94 #define HH(a, b, c, d, x, s, ac) \ argument 97 (a) += (b); \ 99 #define II(a, b, c, d, x, s, ac) \ argument 102 (a) += (b); \ 243 FF(a, b, c, d, in[0], S11, 3614090360u); /* 1 */ in SDLTest_Md5Transform() 244 FF(d, a, b, c, in[1], S12, 3905402710u); /* 2 */ in SDLTest_Md5Transform() [all …]
|
/AliOS-Things-master/components/freetype/src/base/ |
A D | md5.c | 63 (a) += (b); 96 MD5_u32plus a, b, c, d; in body() local 102 b = ctx->b; in body() 108 saved_b = b; in body() 185 b += saved_b; in body() 193 ctx->b = b; in body() 203 ctx->b = 0xefcdab89; in MD5_Init() 280 result[4] = ctx->b; in MD5_Final() 281 result[5] = ctx->b >> 8; in MD5_Final() 282 result[6] = ctx->b >> 16; in MD5_Final() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/test/ |
A D | Makefile.in | 1099 --log-file $$b.log --trs-file $$b.trs \ 1106 --log-file $$b.log --trs-file $$b.trs \ 1113 --log-file $$b.log --trs-file $$b.trs \ 1120 --log-file $$b.log --trs-file $$b.trs \ 1127 --log-file $$b.log --trs-file $$b.trs \ 1134 --log-file $$b.log --trs-file $$b.trs \ 1141 --log-file $$b.log --trs-file $$b.trs \ 1148 --log-file $$b.log --trs-file $$b.trs \ 1155 --log-file $$b.log --trs-file $$b.trs \ 1162 --log-file $$b.log --trs-file $$b.trs \ [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/release/aos_burn_tool/ |
A D | flash_program_ll.py | 37 if pattern == b'': 71 send_and_match(serialport, b'1', b'', 0) 75 match = send_and_match(serialport, address + b'\r\n', b'CCCC', 30) 110 match = send_and_match(serialport, b'\n', b'\(ash', 2) 114 send_and_match(serialport, b'reboot\n', b'', 0) 123 match = send_and_match(serialport, b'\n', b'aos boot', 2) 127 send_and_match(serialport, b'2\n', b'', 0) 161 send_and_match(serialport, b'3\n', b'', 0) 163 send_and_match(serialport, b'4\n', b'', 0) 165 send_and_match(serialport, b'3\n', b'', 0) [all …]
|