/third_party/python/Lib/test/ |
H A D | test_wave.py | 120 b = b'SPAM' + struct.pack('<L', 0) 126 b = b'RIFF' + struct.pack('<L', 4) + b'SPAM' 132 b = b'RIFF' + struct.pack('<L', 4) + b'WAVE' 138 b = b'RIFF' + struct.pack('<L', 28) + b'WAVE' 139 b += b'fmt ' + struct.pack('<LHHLLHH', 16, 1, 1, 11025, 11025, 1, 8) 145 b = b'RIFF' + struct.pack('<L', 12) + b'WAVE' 146 b += b'data' + struct.pack('<L', 0) 151 b = b'RIFF' + struct.pack('<L', 36) + b'WAVE' 152 b += b'fmt ' + struct.pack('<LHHLLHH', 16, 2, 1, 11025, 11025, 1, 1) 153 b += b'data' + struct.pack('< [all...] |
H A D | test_aifc.py | 264 b1 = io.BytesIO(b'WRNG' + struct.pack('>L', 0)) 265 b2 = io.BytesIO(b'FORM' + struct.pack('>L', 4) + b'WRNG') 270 b = io.BytesIO(b'FORM' + struct.pack('>L', 4) + b'AIFF') 274 b = b'FORM' + struct.pack('>L', 4) + b'AIFC' 275 b += b'COMM' + struct.pack('>LhlhhLL', 38, 1, 0, 8, 277 b += b'NONE' + struct.pack('B', 14) + b'not compressed' + b'\x00' 283 b = b'FORM' + struct.pack('>L', 4) + b'AIFC' 284 b += b'COMM' + struct.pack('>LhlhhLL', 23, 1, 0, 8, 286 b += b'WRNG' + struct.pack('B', 0) 291 b = b'FORM' + struct.pack('> [all...] |
H A D | test_struct.py | 38 self.assertEqual((struct.pack('=i', 1)[0] == 0), ISBIGENDIAN) 52 self.assertRaises(struct.error, struct.pack, 'iii', 3) 53 self.assertRaises(struct.error, struct.pack, 'i', 3, 3, 3) 54 self.assertRaises((TypeError, struct.error), struct.pack, 'i', 'foo') 55 self.assertRaises((TypeError, struct.error), struct.pack, 'P', 'foo') 57 s = struct.pack('ii', 1, 2) 74 s = struct.pack(format, c, b, h, i, l, f, d, t) 131 res = struct.pack(xfmt, arg) 199 def test_one(self, x, pack=struct.pack, [all...] |
/third_party/astc-encoder/Source/ |
H A D | astcenc_integer_sequence.cpp | 524 // pack a single MX value with the following 1 or 2 T bits. in encode_ise() 525 uint8_t pack; in encode_ise() local 528 pack = (input_data[i++] & mask) | (((T >> 0) & 0x3) << bits); in encode_ise() 529 write_bits(pack, bits + 2, bit_offset, output_data); in encode_ise() 533 pack = (input_data[i++] & mask) | (((T >> 2) & 0x3) << bits); in encode_ise() 534 write_bits(pack, bits + 2, bit_offset, output_data); in encode_ise() 538 pack = (input_data[i++] & mask) | (((T >> 4) & 0x1) << bits); in encode_ise() 539 write_bits(pack, bits + 1, bit_offset, output_data); in encode_ise() 543 pack = (input_data[i++] & mask) | (((T >> 5) & 0x3) << bits); in encode_ise() 544 write_bits(pack, bit in encode_ise() 572 uint8_t pack = (input_data[i] & mask) | encode_ise() local 596 uint8_t pack; encode_ise() local 631 uint8_t pack = (input_data[i] & mask) | encode_ise() local [all...] |
/third_party/python/Tools/demo/ |
H A D | redemo.py | 15 self.promptdisplay.pack(side=TOP, fill=X) 18 self.regexdisplay.pack(fill=X) 24 self.statusdisplay.pack(side=TOP, fill=X) 28 self.labeldisplay.pack(fill=X) 29 self.labeldisplay.pack(fill=X) 32 self.showframe.pack(fill=X, anchor=W) 42 self.showfirstradio.pack(side=LEFT) 49 self.showallradio.pack(side=LEFT) 52 self.stringdisplay.pack(fill=BOTH, expand=1) 56 self.grouplabel.pack(fil [all...] |
H A D | sortvisu.py | 37 self.frame.pack(fill=X) 39 self.label.pack() 41 self.canvas.pack() 43 self.report.pack() 493 self.botframe.pack(side=BOTTOM) 495 self.botleftframe.pack(side=LEFT, fill=Y) 497 self.botrightframe.pack(side=RIGHT, fill=Y) 501 self.b_qsort.pack(fill=X) 504 self.b_isort.pack(fill=X) 507 self.b_ssort.pack(fil [all...] |
/third_party/python/Lib/idlelib/ |
H A D | configdialog.py | 131 note.pack(side=TOP, expand=TRUE, fill=BOTH) 132 self.create_action_buttons().pack(side=BOTTOM) 168 self.buttons[txt].pack(side=LEFT, padx=5) 170 Frame(outer, height=2, borderwidth=0).pack(side=TOP) 171 buttons_frame.pack(side=BOTTOM) 367 # Grid and pack widgets: 374 frame_font_name.pack(side=TOP, padx=5, pady=5, fill=X) 375 frame_font_param.pack(side=TOP, padx=5, pady=5, fill=X) 376 font_name_title.pack(side=TOP, anchor=W) 377 self.fontlist.pack(sid [all...] |
H A D | statusbar.py | 13 label.pack(side=side, pady=0, padx=4) 31 text.pack() 35 msb.pack(side='bottom', fill='x') 42 button.pack(side='bottom') 43 frame.pack()
|
H A D | help_about.py | 63 frame_buttons.pack(side=BOTTOM, fill=X) 64 frame.pack(side=TOP, expand=True, fill=BOTH) 67 self.button_ok.pack(padx=5, pady=5) 70 frame_background.pack(expand=True, fill=BOTH) 112 self.py_license.pack(side=LEFT, padx=10, pady=10) 116 self.py_copyright.pack(side=LEFT, padx=10, pady=10) 120 self.py_credits.pack(side=LEFT, padx=10, pady=10) 135 self.readme.pack(side=LEFT, padx=10, pady=10) 139 self.idle_news.pack(side=LEFT, padx=10, pady=10) 143 self.idle_credits.pack(sid [all...] |
/third_party/python/Lib/ctypes/test/ |
H A D | test_byteswap.py | 53 self.assertEqual(bin(struct.pack(">h", 0x1234)), "1234") 58 self.assertEqual(bin(struct.pack("<h", 0x1234)), "3412") 63 self.assertEqual(bin(struct.pack(">h", 0x1234)), "1234") 68 self.assertEqual(bin(struct.pack("<h", 0x1234)), "3412") 81 self.assertEqual(bin(struct.pack(">i", 0x12345678)), "12345678") 86 self.assertEqual(bin(struct.pack("<i", 0x12345678)), "78563412") 91 self.assertEqual(bin(struct.pack(">I", 0x12345678)), "12345678") 96 self.assertEqual(bin(struct.pack("<I", 0x12345678)), "78563412") 109 self.assertEqual(bin(struct.pack(">q", 0x1234567890ABCDEF)), "1234567890ABCDEF") 114 self.assertEqual(bin(struct.pack("< [all...] |
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_opt_copy_propagation.c | 57 if (inst->dst.pack || inst->cond != QPU_COND_ALWAYS) in is_copy_mov() 98 mov->src[0].pack)) in try_copy_prop() 102 if (mov->src[0].pack) { in try_copy_prop() 117 if (inst->src[j].pack) in try_copy_prop() 123 /* A destination pack requires the PM bit to in try_copy_prop() 127 if (inst->dst.pack) in try_copy_prop() 130 unpack = mov->src[0].pack; in try_copy_prop() 132 unpack = inst->src[i].pack; in try_copy_prop() 142 inst->src[i].pack = unpack; in try_copy_prop()
|
H A D | vc4_qir.c | 239 !inst->dst.pack && in qir_is_raw_mov() 240 !inst->src[0].pack); in qir_is_raw_mov() 303 switch (inst->dst.pack) { in qir_channels_written() 317 switch (inst->dst.pack) { in qir_channels_written() 343 unreachable("Bad pack field"); in qir_channels_written() 479 if (inst->dst.pack) { in qir_dump_inst() 480 if (inst->dst.pack) { in qir_dump_inst() 482 vc4_qpu_disasm_pack_mul(stderr, inst->dst.pack); in qir_dump_inst() 484 vc4_qpu_disasm_pack_a(stderr, inst->dst.pack); in qir_dump_inst() 492 vc4_qpu_disasm_unpack(stderr, inst->src[i].pack); in qir_dump_inst() 721 int pack = reg.pack; qir_follow_movs() local [all...] |
/third_party/python/Tools/unittestgui/ |
H A D | unittestgui.py | 265 self.top.pack(fill=tk.BOTH, expand=1) 296 statusFrame.pack(anchor=tk.SW, fill=tk.X, side=tk.BOTTOM) 297 tk.Label(statusFrame, width=1, textvariable=self.statusVar).pack(side=tk.TOP, fill=tk.X) 301 leftFrame.pack(fill=tk.BOTH, side=tk.LEFT, anchor=tk.NW, expand=1) 303 suiteNameFrame.pack(fill=tk.X) 307 progressFrame.pack(fill=tk.X, expand=0, anchor=tk.NW) 308 tk.Label(progressFrame, text="Progress:").pack(anchor=tk.W) 311 self.progressBar.pack(fill=tk.X, expand=1) 316 buttonFrame.pack(side=tk.LEFT, anchor=tk.NW, fill=tk.Y) 319 command=self.discoverClicked).pack(fil [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | pbo.c | 67 const struct gl_pixelstore_attrib *pack, in _mesa_validate_pbo_access() 80 if (!pack->BufferObj) { in _mesa_validate_pbo_access() 85 size = pack->BufferObj->Size; in _mesa_validate_pbo_access() 112 start = _mesa_image_offset(dimensions, pack, width, height, in _mesa_validate_pbo_access() 116 end = _mesa_image_offset(dimensions, pack, width, height, in _mesa_validate_pbo_access() 284 assert(unpack != &ctx->Pack); /* catch pack/unpack mismatch */ in _mesa_unmap_pbo_source() 301 const struct gl_pixelstore_attrib *pack, in _mesa_map_pbo_dest() 306 if (pack->BufferObj) { in _mesa_map_pbo_dest() 307 /* pack into PBO */ in _mesa_map_pbo_dest() 309 pack in _mesa_map_pbo_dest() 66 _mesa_validate_pbo_access(GLuint dimensions, const struct gl_pixelstore_attrib *pack, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei clientMemSize, const GLvoid *ptr) _mesa_validate_pbo_access() argument 300 _mesa_map_pbo_dest(struct gl_context *ctx, const struct gl_pixelstore_attrib *pack, GLvoid *dest) _mesa_map_pbo_dest() argument 378 _mesa_unmap_pbo_dest(struct gl_context *ctx, const struct gl_pixelstore_attrib *pack) _mesa_unmap_pbo_dest() argument [all...] |
/third_party/mesa3d/src/c11/impl/ |
H A D | threads_posix.c | 65 struct impl_thrd_param pack = *((struct impl_thrd_param *)p); in impl_thrd_routine() local 67 return (void*)(intptr_t)pack.func(pack.arg); in impl_thrd_routine() 257 struct impl_thrd_param *pack; in thrd_create() local 259 pack = (struct impl_thrd_param *)malloc(sizeof(struct impl_thrd_param)); in thrd_create() 260 if (!pack) return thrd_nomem; in thrd_create() 261 pack->func = func; in thrd_create() 262 pack->arg = arg; in thrd_create() 263 if (pthread_create(thr, NULL, impl_thrd_routine, pack) != 0) { in thrd_create() 264 free(pack); in thrd_create() [all...] |
H A D | threads_win32.c | 89 struct impl_thrd_param pack; in impl_thrd_routine() local 91 memcpy(&pack, p, sizeof(struct impl_thrd_param)); in impl_thrd_routine() 93 code = pack.func(pack.arg); in impl_thrd_routine() 313 struct impl_thrd_param *pack; in thrd_create() local 316 pack = (struct impl_thrd_param *)malloc(sizeof(struct impl_thrd_param)); in thrd_create() 317 if (!pack) return thrd_nomem; in thrd_create() 318 pack->func = func; in thrd_create() 319 pack->arg = arg; in thrd_create() 320 handle = _beginthreadex(NULL, 0, impl_thrd_routine, pack, in thrd_create() [all...] |
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_video_dec_h264.h | 81 #pragma pack(push, BeforeDXVApacking, 1) 94 #pragma pack(pop, BeforeDXVApacking) 98 #pragma pack(push, BeforeDXVApacking, 1) 174 #pragma pack(pop, BeforeDXVApacking) 178 #pragma pack(push, BeforeDXVApacking, 1) 185 #pragma pack(pop, BeforeDXVApacking) 209 #pragma pack(push, BeforeDXVApacking, 1) 216 #pragma pack(pop, BeforeDXVApacking)
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/ |
H A D | issue-537-repr-packed-n.h | 3 /// This should not be opaque; we can see the attributes and can pack the 14 #pragma pack(1) 17 /// `#pragma pack(1)`, we can detect that alignment is 1 and add 24 #pragma pack() 26 #pragma pack(2) 34 #pragma pack()
|
H A D | issue-537.h | 1 /// This should not be opaque; we can see the attributes and can pack the 13 #pragma pack(1) 16 /// `#pragma pack(1)`, we can detect that alignment is 1 and add 23 #pragma pack() 25 #pragma pack(2) 28 /// `#pragma pack(2)`, we can't do anything about it because Rust before 1.33 35 #pragma pack()
|
/third_party/python/Lib/tkinter/test/test_tkinter/ |
H A D | test_geometry_managers.py | 18 pack = tkinter.Toplevel(self.root, name='pack') 19 pack.wm_geometry('300x200+0+0') 20 pack.wm_minsize(1, 1) 21 a = tkinter.Frame(pack, name='a', width=20, height=40, bg='red') 22 b = tkinter.Frame(pack, name='b', width=50, height=30, bg='blue') 23 c = tkinter.Frame(pack, name='c', width=80, height=80, bg='green') 24 d = tkinter.Frame(pack, name='d', width=40, height=30, bg='yellow') 25 return pack, a, b, c, d 28 pack, [all...] |
/third_party/vk-gl-cts/framework/opengl/ |
H A D | gluRenderContext.hpp | 78 ApiType (void) : m_bits(pack(0, 0, PROFILE_LAST)) {} in ApiType() 79 ApiType (int major, int minor, Profile profile) : m_bits(pack(major, minor, profile)) {} in ApiType() 99 static deUint32 pack (int major, int minor, Profile profile); 116 inline deUint32 ApiType::pack (int major, int minor, Profile profile) in pack() function in glu::ApiType 160 static deUint32 pack (deUint32 apiBits, ContextFlags flags); 173 m_bits = pack(m_bits, flags); in ContextType() 179 m_bits = pack(m_bits, flags); in ContextType() 182 inline deUint32 ContextType::pack (deUint32 apiBits, ContextFlags flags) in pack() function in glu::ContextType
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
H A D | eapol_common.h | 15 #pragma pack(push, 1) 32 #pragma pack(pop) 61 #pragma pack(push, 1) 89 #pragma pack(pop)
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
H A D | eapol_common.h | 15 #pragma pack(push, 1) 32 #pragma pack(pop) 61 #pragma pack(push, 1) 89 #pragma pack(pop)
|
/third_party/python/Lib/ |
H A D | plistlib.py | 672 self._fp.write(struct.pack(offset_format, *self._object_offsets)) 680 self._fp.write(struct.pack('>5xBBBQQQ', *trailer)) 732 self._fp.write(struct.pack('>B', token | size)) 735 self._fp.write(struct.pack('>BBB', token | 0xF, 0x10, size)) 738 self._fp.write(struct.pack('>BBH', token | 0xF, 0x11, size)) 741 self._fp.write(struct.pack('>BBL', token | 0xF, 0x12, size)) 744 self._fp.write(struct.pack('>BBQ', token | 0xF, 0x13, size)) 761 self._fp.write(struct.pack('>Bq', 0x13, value)) 765 self._fp.write(struct.pack('>BB', 0x10, value)) 767 self._fp.write(struct.pack('>B [all...] |
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_cb_readpixels.c | 101 const struct gl_pixelstore_attrib *pack, void *pixels) in try_pbo_readpixels() 136 if (!st_pbo_addresses_pixelstore(st, GL_TEXTURE_2D, false, pack, pixels, &addr)) in try_pbo_readpixels() 415 const struct gl_pixelstore_attrib *pack, in st_ReadPixels() 481 pack->SwapBytes); in st_ReadPixels() 486 if (st->pbo.download_enabled && pack->BufferObj) { in st_ReadPixels() 491 pack, pixels)) in st_ReadPixels() 513 type, pack->SwapBytes, NULL)) { in st_ReadPixels() 529 pixels = _mesa_map_pbo_dest(ctx, pack, pixels); in st_ReadPixels() 534 _mesa_unmap_pbo_dest(ctx, pack); in st_ReadPixels() 542 const int destStride = _mesa_image_row_stride(pack, widt in st_ReadPixels() 96 try_pbo_readpixels(struct st_context *st, struct gl_renderbuffer *rb, bool invert_y, GLint x, GLint y, GLsizei width, GLsizei height, GLenum gl_format, enum pipe_format src_format, enum pipe_format dst_format, const struct gl_pixelstore_attrib *pack, void *pixels) try_pbo_readpixels() argument 412 st_ReadPixels(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, const struct gl_pixelstore_attrib *pack, void *pixels) st_ReadPixels() argument [all...] |