Home
last modified time | relevance | path

Searched refs:seek (Results 1 – 25 of 624) sorted by relevance

12345678910>>...25

/external/python/cpython3/Lib/test/
Dtest_largefile.py34 f.seek(0)
35 f.seek(size)
56 f.seek(0)
58 f.seek(0, 0)
60 f.seek(42)
62 f.seek(42, 0)
64 f.seek(42, 1)
66 f.seek(0, 1)
68 f.seek(0, 2) # seek from the end
70 f.seek(-10, 2)
[all …]
Dtest_memoryio.py41 bytesIo.seek(0)
44 bytesIo.seek(3)
46 self.assertRaises(TypeError, bytesIo.seek, 0.0)
53 bytesIo.seek(5)
55 bytesIo.seek(10000)
67 self.assertEqual(f.seek(0), 0)
70 self.assertEqual(f.seek(5), 5)
73 self.assertEqual(f.seek(0), 0)
119 memio.seek(6)
125 memio.seek(0, 2)
[all …]
Dtest_mmap.py80 m.seek(0,0)
82 m.seek(42,1)
84 m.seek(0,2)
88 self.assertRaises(ValueError, m.seek, -1)
91 self.assertRaises(ValueError, m.seek, 1, 2)
94 self.assertRaises(ValueError, m.seek, -len(m)-1, 2)
108 self.assertRaises(ValueError, m.seek, 513, 0)
114 f.seek(0, 2)
149 m.seek(0,0)
158 m.seek(0,0)
[all …]
Dtest_csv.py126 fileobj.seek(0)
135 fileobj.seek(0)
211 fileobj.seek(0)
222 fileobj.seek(0)
321 fileobj.seek(0)
330 fileobj.seek(0)
384 fileobj.seek(0)
395 fileobj.seek(0)
445 fileobj.seek(0)
454 fileobj.seek(0)
[all …]
/external/python/cpython2/Lib/test/
Dtest_largefile.py43 f.seek(0)
44 f.seek(size)
63 f.seek(0)
65 f.seek(0, 0)
67 f.seek(42)
69 f.seek(42, 0)
71 f.seek(42, 1)
73 f.seek(0, 1)
75 f.seek(0, 2) # seek from the end
77 f.seek(-10, 2)
[all …]
Dtest_memoryio.py43 bytesIo.seek(0)
46 bytesIo.seek(3)
48 self.assertRaises(TypeError, bytesIo.seek, 0.0)
55 bytesIo.seek(5)
57 bytesIo.seek(10000)
69 self.assertEqual(f.seek(0), 0)
72 self.assertEqual(f.seek(5), 5)
75 self.assertEqual(f.seek(0), 0)
121 memio.seek(6)
130 memio.seek(0, 2)
[all …]
Dtest_StringIO.py28 self.assertRaises(TypeError, self._fp.seek)
34 self._fp.seek(0)
39 self.assertRaises(TypeError, f.seek)
41 f.seek(3)
49 f.seek(0)
63 f.seek(10)
121 f.seek(0)
127 f.seek(0)
130 f.seek(0)
162 f.seek(3)
Dtest_csv.py128 fileobj.seek(0)
142 fileobj.seek(0)
214 fileobj.seek(0)
227 f.seek(0)
328 fileobj.seek(0)
387 fileobj.seek(0)
410 fileobj.seek(0)
421 fileobj.seek(0)
432 fileobj.seek(0)
443 fileobj.seek(0)
[all …]
/external/vboot_reference/scripts/image_signing/
Dfirmware_boot.sh58 dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset}
59 dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset}
64 dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset}
65 dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset}
70 dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset}
71 dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset}
76 dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset}
77 dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset}
82 dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset}
83 dd if=bad.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset}
[all …]
/external/python/cpython2/Tools/iobench/
Diobench.py62 f.seek(0)
70 f.seek(0)
78 f.seek(0)
86 f.seek(0)
94 f.seek(0)
102 f.seek(0, 2)
104 f.seek(0, 0)
106 f.seek(i, 0)
112 f.seek(0, 2)
114 f.seek(0, 0)
[all …]
/external/python/cpython3/Tools/iobench/
Diobench.py63 f.seek(0)
71 f.seek(0)
79 f.seek(0)
87 f.seek(0)
95 f.seek(0)
103 f.seek(0, 2)
105 f.seek(0, 0)
107 f.seek(i, 0)
113 f.seek(0, 2)
115 f.seek(0, 0)
[all …]
/external/avb/test/
Dimage_handler_unittest.py99 f.seek(0, os.SEEK_END)
101 f.seek(old_pos)
129 ih.seek(0x6000 + 1)
133 ih.seek(0x3000 - 10)
135 ih.seek(0x9000 - 3)
139 ih.seek(0xf000 - 2)
167 unsparse_file.seek(self.TEST_FILE_SIZE)
180 unsparse_file.seek(self.TEST_FILE_SIZE)
193 unsparse_file.seek(self.TEST_FILE_SIZE)
206 unsparse_file.seek(self.TEST_FILE_SIZE)
/external/autotest/client/site_tests/platform_DMVerityBitCorruption/
Dplatform_DMVerityBitCorruption.py23 dev.seek(run_count * block_size + self._adjustment)
25 dev.seek(run_count * block_size + self._adjustment)
35 dev.seek(block_count * block_size, os.SEEK_SET)
36 dev.seek(run_count * block_size + self._adjustment, os.SEEK_CUR)
39 dev.seek(block_count * block_size, os.SEEK_SET)
40 dev.seek(run_count * block_size + self._adjustment, os.SEEK_CUR)
/external/swiftshader/third_party/LLVM/test/Scripts/
Dmacho-dumpx24 def seek(self, pos):
25 self.file.seek(pos)
171 f.seek(stroff)
177 f.seek(symoff)
183 f.seek(prev_pos)
228 f.seek(indirectsymoff)
235 f.seek(prev_pos)
265 f.seek(reloc_offset)
274 f.seek(offset)
277 f.seek(prev_pos)
Delf-dump19 def seek(self, pos):
20 self.file.seek(pos)
87 f.seek(self.sh_offset[0])
99 f.seek(section.sh_offset[0] + index * section.sh_entsize[0])
122 f.seek(section.sh_offset[0] + index * section.sh_entsize[0])
166 f.seek(16) # Seek to end of e_ident.
189 f.seek(e_shoff[0] + index * e_shentsize[0])
194 f.seek(sections[e_shstrndx[0]].sh_offset[0])
201 f.seek(section.sh_offset[0])
/external/python/cpython2/Modules/zlib/
Dgzwrite.c200 if (state->seek) {
201 state->seek = 0;
265 if (state->seek) {
266 state->seek = 0;
331 if (state->seek) { in gzvprintf()
332 state->seek = 0; in gzvprintf()
416 if (state->seek) {
417 state->seek = 0;
485 if (state->seek) {
486 state->seek = 0;
[all …]
/external/toybox/toys/posix/
Dgrep.c129 struct arg_list *seek, fseek; in do_grep() local
132 for (seek = TT.e; seek; seek = seek->next) { in do_grep()
136 if ((i ? strcasecmp : strcmp)(seek->arg, line)) s = line; in do_grep()
137 } else if (!*seek->arg) { in do_grep()
138 seek = &fseek; in do_grep()
142 if (toys.optflags & FLAG_i) s = strnstr(line, seek->arg); in do_grep()
143 else s = strstr(line, seek->arg); in do_grep()
149 skip = matches.rm_eo = (s-line)+strlen(seek->arg); in do_grep()
/external/lzma/Java/Tukaani/src/org/tukaani/xz/
DSeekableXZInputStream.java314 in.seek(0); in SeekableXZInputStream()
336 in.seek(pos - DecoderUtil.STREAM_HEADER_SIZE); in SeekableXZInputStream()
367 in.seek(pos - streamFooter.backwardSize); in SeekableXZInputStream()
403 in.seek(pos); in SeekableXZInputStream()
671 seek(); in read()
678 seek(); in read()
785 public void seek(long pos) throws IOException { in seek() method in SeekableXZInputStream
824 private void seek() throws IOException { in seek() method in SeekableXZInputStream
865 in.seek(curBlockInfo.compressedOffset); in seek()
/external/fonttools/Lib/fontTools/ttLib/
Dsfnt.py32 self.file.seek(0)
42 self.file.seek(offsetTable[fontNumber])
124 self.file.seek(self.nextTableOffset)
196 self.file.seek(0,2)
205 self.file.seek(0,2)
215 self.file.seek(0,2)
224 self.file.seek(self.directorySize)
232 self.file.seek(0)
267 self.file.seek(self.tables['head'].offset + 8)
359 file.seek(self.offset)
[all …]
/external/e2fsprogs/tests/m_rootdir/
Dscript12 echo "M" | dd of=$MKFS_DIR/sparsefile bs=1 count=1 seek=1024 2> /dev/null
13 echo "M" | dd of=$MKFS_DIR/sparsefile bs=1 count=1 seek=524288 conv=notrunc 2> /dev/null
14 echo "M" | dd of=$MKFS_DIR/sparsefile bs=1 count=1 seek=1048576 conv=notrunc 2> /dev/null
15 echo "M" | dd of=$MKFS_DIR/sparsefile bs=1 count=1 seek=536870912 conv=notrunc 2> /dev/null
16 echo "M" | dd of=$MKFS_DIR/sparsefile bs=1 count=1 seek=1073741824 conv=notrunc 2> /dev/null
17 dd if=/dev/zero of=$MKFS_DIR/bigzerofile bs=1 count=1 seek=1073741824 2> /dev/null
/external/fio/oslib/
Dlibmtd.c1016 loff_t seek; in mtd_is_bad() local
1025 seek = (loff_t)eb * mtd->eb_size; in mtd_is_bad()
1026 ret = ioctl(fd, MEMGETBADBLOCK, &seek); in mtd_is_bad()
1035 loff_t seek; in mtd_mark_bad() local
1046 seek = (loff_t)eb * mtd->eb_size; in mtd_mark_bad()
1047 ret = ioctl(fd, MEMSETBADBLOCK, &seek); in mtd_mark_bad()
1057 off_t seek; in mtd_read() local
1071 seek = (off_t)eb * mtd->eb_size + offs; in mtd_read()
1072 if (lseek(fd, seek, SEEK_SET) != seek) in mtd_read()
1074 mtd->mtd_num, seek); in mtd_read()
[all …]
/external/e2fsprogs/tests/m_minrootdir/
Dscript12 dd if=/dev/zero of=$MKFS_DIR/bigzerofile bs=1 count=1 seek=1073741824 2> /dev/null
13 echo "M" | dd of=$MKFS_DIR/sparsefile bs=1 count=1 seek=1024 2> /dev/null
14 echo "M" | dd of=$MKFS_DIR/sparsefile bs=1 count=1 seek=524288 conv=notrunc 2> /dev/null
15 echo "M" | dd of=$MKFS_DIR/sparsefile bs=1 count=1 seek=1048576 conv=notrunc 2> /dev/null
16 echo "M" | dd of=$MKFS_DIR/sparsefile bs=1 count=1 seek=536870912 conv=notrunc 2> /dev/null
17 echo "M" | dd of=$MKFS_DIR/sparsefile bs=1 count=1 seek=1073741824 conv=notrunc 2> /dev/null
/external/python/cpython2/Lib/
DStringIO.py95 def seek(self, pos, mode = 0): member in StringIO
294 f.seek(len(lines[0]))
296 f.seek(0)
301 f.seek(-len(line), 1)
305 f.seek(len(line2), 1)
308 f.seek(f.tell() - len(line))
317 f.seek(0, 2)
/external/python/cpython3/Modules/zlib/
Dgzwrite.c194 if (state->seek) {
195 state->seek = 0;
324 if (state->seek) {
325 state->seek = 0;
402 if (state->seek) { in gzvprintf()
403 state->seek = 0; in gzvprintf()
496 if (state->seek) {
497 state->seek = 0;
573 if (state->seek) {
574 state->seek = 0;
[all …]
/external/zlib/src/
Dgzwrite.c194 if (state->seek) {
195 state->seek = 0;
324 if (state->seek) {
325 state->seek = 0;
402 if (state->seek) { in gzvprintf()
403 state->seek = 0; in gzvprintf()
496 if (state->seek) {
497 state->seek = 0;
573 if (state->seek) {
574 state->seek = 0;
[all …]

12345678910>>...25