Home
last modified time | relevance | path

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

12345678910>>...51

/external/rust/crates/tempfile/tests/
Dspooled.rs13 assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 0); in test_automatic_rollover()
21 assert_eq!(t.seek(SeekFrom::Start(0)).unwrap(), 0); in test_automatic_rollover()
27 assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 15); in test_automatic_rollover()
35 assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 26); in test_explicit_rollover()
41 assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 26); in test_explicit_rollover()
48 assert_eq!(t.seek(SeekFrom::Start(0)).unwrap(), 0); in test_explicit_rollover()
51 assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 26); in test_explicit_rollover()
59 assert_eq!(t.seek(SeekFrom::Current(0)).unwrap(), 26); // tell() in test_seek()
60 assert_eq!(t.seek(SeekFrom::Current(-1)).unwrap(), 25); in test_seek()
61 assert_eq!(t.seek(SeekFrom::Current(1)).unwrap(), 26); in test_seek()
[all …]
Dnamedtempfile.rs18 tmpfile.seek(SeekFrom::Start(0)).unwrap(); in test_basic()
45 f.seek(SeekFrom::Start(0)).unwrap(); in test_persist()
54 f.seek(SeekFrom::Start(0)).unwrap(); in test_persist()
79 f.seek(SeekFrom::Start(0)).unwrap(); in test_persist_noclobber()
104 tmpfile.seek(SeekFrom::Start(0)).unwrap(); in test_append()
107 tmpfile.seek(SeekFrom::Start(0)).unwrap(); in test_append()
136 file.seek(SeekFrom::Start(0)).unwrap(); in test_into_file()
146 (&tmpfile).seek(SeekFrom::Start(0)).unwrap(); in test_immut()
180 f.seek(SeekFrom::Start(0)).unwrap(); in test_temppath_persist()
213 f.seek(SeekFrom::Start(0)).unwrap(); in test_temppath_persist_noclobber()
[all …]
/external/python/cpython3/Lib/test/
Dtest_memoryio.py48 bytesIo.seek(0)
51 bytesIo.seek(3)
53 self.assertRaises(TypeError, bytesIo.seek, 0.0)
60 bytesIo.seek(5)
62 bytesIo.seek(10000)
74 self.assertEqual(f.seek(0), 0)
77 self.assertEqual(f.seek(5), 5)
80 self.assertEqual(f.seek(0), 0)
127 memio.seek(6)
135 memio.seek(0, 2)
[all …]
Dtest_largefile.py39 f.seek(0)
40 f.seek(size)
77 f.seek(0)
79 f.seek(0, 0)
81 f.seek(42)
83 f.seek(42, 0)
85 f.seek(42, 1)
87 f.seek(0, 1)
89 f.seek(0, 2) # seek from the end
91 f.seek(-10, 2)
[all …]
Dtest_mmap.py82 m.seek(0,0)
84 m.seek(42,1)
86 m.seek(0,2)
90 self.assertRaises(ValueError, m.seek, -1)
93 self.assertRaises(ValueError, m.seek, 1, 2)
96 self.assertRaises(ValueError, m.seek, -len(m)-1, 2)
110 self.assertRaises(ValueError, m.seek, 513, 0)
116 f.seek(0, 2)
151 m.seek(0,0)
160 m.seek(0,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.py44 bytesIo.seek(0)
47 bytesIo.seek(3)
49 self.assertRaises(TypeError, bytesIo.seek, 0.0)
56 bytesIo.seek(5)
58 bytesIo.seek(10000)
70 self.assertEqual(f.seek(0), 0)
73 self.assertEqual(f.seek(5), 5)
76 self.assertEqual(f.seek(0), 0)
122 memio.seek(6)
131 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)
/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/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/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/perfetto/src/trace_processor/metrics/sql/experimental/
Dmedia_metric.sql133 seek.*,
139 AND EXTRACT_ARG(s.arg_set_id, 'debug.id') = seek.playback_id
140 AND EXTRACT_ARG(s.arg_set_id, 'debug.target') = seek.seek_target
141 AND s.upid = seek.upid
142 AND s.ts >= seek.seek_start
143 AND (seek.seek_end IS NULL OR s.ts < seek.seek_end)
145 FROM SeekPartitioned seek;
151 seek.*,
157 AND EXTRACT_ARG(s.arg_set_id, 'debug.id') = seek.playback_id
158 AND s.upid = seek.upid
[all …]
/external/icu/android_icu4j/testing/src/com/android/i18n/test/timezone/internal/
DMemoryMappedFileTest.java129 iterator.seek(0); in checkReadByte()
173 iterator.seek(offset); in seekRead()
179 iterator.seek(offset); in seekReadExpectFailure()
246 iterator.seek(1); in testReadShort_bigEndian()
268 iterator.seek(1); in testReadShort_littleEndian()
278 iterator.seek(-1); in checkShortFailureCases()
282 iterator.seek(-2); in checkShortFailureCases()
286 iterator.seek(9); in checkShortFailureCases()
290 iterator.seek(10); in checkShortFailureCases()
308 iterator.seek(1); in testReadInt_bigEndian()
[all …]
/external/libwebm/webm_parser/tests/
Dseek_parser_test.cc39 Seek seek; in TEST_F() local
40 seek.position.Set(0, true); in TEST_F()
42 EXPECT_CALL(callback_, OnSeek(metadata_, seek)).Times(1); in TEST_F()
58 Seek seek; in TEST_F() local
59 seek.id.Set(static_cast<Id>(0x01), true); in TEST_F()
60 seek.position.Set(2, true); in TEST_F()
62 EXPECT_CALL(callback_, OnSeek(metadata_, seek)).Times(1); in TEST_F()
/external/rust/crates/tokio/src/io/
Dseek.rs15 seek: &'a mut S,
23 pub(crate) fn seek<S>(seek: &mut S, pos: SeekFrom) -> Seek<'_, S> in seek() function
28 seek, in seek()
45 ready!(Pin::new(&mut *me.seek).poll_complete(cx))?; in poll()
46 match Pin::new(&mut *me.seek).start_seek(*pos) { in poll()
49 Pin::new(&mut *me.seek).poll_complete(cx) in poll()
54 None => Pin::new(&mut *me.seek).poll_complete(cx), in poll()
/external/rust/crates/tokio/src/io/util/
Dasync_seek_ext.rs1 use crate::io::seek::{seek, Seek};
63 fn seek(&mut self, pos: SeekFrom) -> Seek<'_, Self>
67 seek(self, pos)
77 self.seek(SeekFrom::Start(0))
88 self.seek(SeekFrom::Current(0))
/external/autotest/server/cros/faft/
Dgen_test_images.sh46 dd of="${BOARD}.dev" bs=1 seek=$((ro_version_offset)) count=32 conv=notrunc
48 dd of="${BOARD}.dev" bs=1 seek=$((rw_version_offset)) count=32 conv=notrunc
69 dd of="${BOARD}.dev.rb0" bs=1 seek=$((rb_offset)) count=4 conv=notrunc
72 dd of="${BOARD}.dev.rb0" bs=1 seek=$((rw_version_offset)) \
89 dd of="${BOARD}.dev.rb1" bs=1 seek=$((rb_offset)) count=4 conv=notrunc
92 dd of="${BOARD}.dev.rb1" bs=1 seek=$((rw_version_offset)) \
108 dd of="${BOARD}.dev.rb9" bs=1 seek=$((rb_offset)) count=4 conv=notrunc
111 dd of="${BOARD}.dev.rb9" bs=1 seek=$((rw_version_offset)) \
122 seek=$((offset+100)) count=1 conv=notrunc
129 seek=$((offset-100)) count=1 conv=notrunc
/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/okio/okio/src/jvmTest/java/okio/
DBufferCursorTest.java63 cursor.seek(3); in apiExample()
66 cursor.seek(1); in apiExample()
89 cursor.seek(-1L); in seekToNegativeOneSeeksBeforeFirstSegment()
105 cursor.seek(i); in accessByteByByte()
117 cursor.seek(i); in accessByteByByteReverse()
129 cursor.seek(i); in accessByteByByteAlwaysResettingToZero()
131 cursor.seek(0L); in accessByteByByteAlwaysResettingToZero()
163 assertEquals(2, cursor.seek(5)); // 2 for 2 bytes left in the segment: "fg". in seekWithinSegment()
231 cursor.seek(originalSize); in enlarge()
233 cursor.seek(originalSize + 1); in enlarge()
[all …]
/external/okio/okio/jvm/jmh/src/jmh/java/com/squareup/okio/benchmarks/
DBufferCursorSeekBenchmark.java62 cursor.seek(0); in seekBeginning()
72 cursor.seek(buffer.size() - 1); in seekEnd()
82 cursor.seek(0); in seekForward()
83 cursor.seek(1); in seekForward()
93 cursor.seek(buffer.size() - 1); in seekBackward()
94 cursor.seek(buffer.size() - 2); in seekBackward()
/external/fonttools/Lib/fontTools/ttLib/
Dsfnt.py36 infile.seek(0)
38 infile.seek(0)
53 self.file.seek(0)
55 self.file.seek(0)
62 self.file.seek(header.offsetTable[fontNumber])
148 self.file.seek(state.pop("_filepos"))
240 self.file.seek(self.nextTableOffset)
312 self.file.seek(0,2)
320 self.file.seek(0,2)
330 self.file.seek(0,2)
[all …]
/external/libwebsockets/win32port/zlib/
Dgzwrite.c179 if (state->seek) {
180 state->seek = 0;
240 if (state->seek) {
241 state->seek = 0;
303 if (state->seek) { in gzprintf()
304 state->seek = 0; in gzprintf()
378 if (state->seek) {
379 state->seek = 0;
446 if (state->seek) {
447 state->seek = 0;
[all …]
/external/rust/crates/futures-util/src/io/
Dseek.rs11 seek: &'a mut S, field
18 pub(super) fn new(seek: &'a mut S, pos: SeekFrom) -> Self { in new()
19 Self { seek, pos } in new()
28 Pin::new(&mut this.seek).poll_seek(cx, this.pos) in poll()
/external/openthread/tests/scripts/thread-cert/
Dmac802154.py276 data.seek(-2, io.SEEK_END)
280 data.seek(fcs_start)
290 data.seek(cur_pos)
310 data.seek(payload_pos)
315 data.seek(mhr_start)
324 data.seek(header_ie_start)
414 data.seek(-4, io.SEEK_CUR)
418 data.seek(-8, io.SEEK_CUR)
422 data.seek(-16, io.SEEK_CUR)
431 data.seek(fcs_start)
/external/python/apitools/samples/storage_sample/
Ddownloads_test.py92 self.__buffer.seek(0)
101 self.__buffer.seek(0)
110 self.__buffer.seek(0)
118 self.__buffer.seek(0)
126 self.__buffer.seek(0)
137 self.__buffer.seek(0)
146 self.__buffer.seek(0)
193 self.__buffer.seek(0)

12345678910>>...51