Home
last modified time | relevance | path

Searched refs:read_offset (Results 1 – 25 of 28) sorted by relevance

12

/external/adhd/cras/src/tests/
Dshm_unittest.cc43 EXPECT_EQ(0, shm_.area->read_offset[0]); in TEST_F()
53 EXPECT_EQ((frames_ - 9) * shm_.config.frame_bytes, shm_.area->read_offset[0]); in TEST_F()
55 EXPECT_EQ(0, shm_.area->read_offset[0]); in TEST_F()
62 shm_.area->read_offset[0] = 50 * shm_.config.frame_bytes; in TEST_F()
65 EXPECT_EQ((shm_.area->samples + shm_.area->read_offset[0]), buf_); in TEST_F()
68 shm_.area->read_offset[0]); in TEST_F()
70 EXPECT_EQ(0, shm_.area->read_offset[0]); in TEST_F()
76 shm_.area->read_offset[0] = 50 * shm_.config.frame_bytes; in TEST_F()
79 EXPECT_EQ(shm_.area->samples + shm_.area->read_offset[0] + in TEST_F()
88 shm_.area->read_offset[0] = 120 * shm_.config.frame_bytes; in TEST_F()
[all …]
Dcras_client_unittest.cc137 shm->area->read_offset[0] = 0; in TEST_F()
148 EXPECT_EQ(0, shm->area->read_offset[0]); in TEST_F()
154 shm->area->read_offset[0] = 0; in TEST_F()
163 shm->area->read_offset[0] = 0; in TEST_F()
Daudio_thread_unittest_obsolete.cc813 EXPECT_EQ(0, shm_->area->read_offset[0]); in TEST_F()
814 EXPECT_EQ(0, shm_->area->read_offset[1]); in TEST_F()
851 EXPECT_EQ(0, shm_->area->read_offset[0]); in TEST_F()
970 EXPECT_EQ(0, shm_->area->read_offset[0]); // No write from first stream. in TEST_F()
971 EXPECT_EQ(written_expected * 4, shm2_->area->read_offset[0]); in TEST_F()
/external/adhd/cras/src/common/
Dcras_shm.h53 uint32_t read_offset[CRAS_NUM_SHM_BUFFERS]; member
114 unsigned read_offset, write_offset; in cras_shm_get_curr_read_frames() local
116 read_offset = in cras_shm_get_curr_read_frames()
117 cras_shm_check_read_offset(shm, shm->area->read_offset[i]); in cras_shm_get_curr_read_frames()
121 if (read_offset > write_offset) in cras_shm_get_curr_read_frames()
124 return (write_offset - read_offset) / shm->config.frame_bytes; in cras_shm_get_curr_read_frames()
178 unsigned read_offset, write_offset, final_offset; in cras_shm_get_readable_frames() local
182 read_offset = in cras_shm_get_readable_frames()
184 shm->area->read_offset[buf_idx]); in cras_shm_get_readable_frames()
188 final_offset = read_offset + offset * shm->config.frame_bytes; in cras_shm_get_readable_frames()
[all …]
Dcras_file_wait.c137 ssize_t read_offset; in cras_file_wait_dispatch() local
144 read_offset = 0; in cras_file_wait_dispatch()
160 } else while (rc == 0 && read_offset < read_rc) { in cras_file_wait_dispatch()
162 (file_wait->event_buf + read_offset); in cras_file_wait_dispatch()
163 read_offset += sizeof(*event) + event->len; in cras_file_wait_dispatch()
/external/grpc-grpc/src/core/lib/slice/
Dslice_string_helpers.cc41 const size_t read_offset, size_t* begin, in slice_find_separator_offset() argument
44 const uint8_t* str_ptr = GRPC_SLICE_START_PTR(str) + read_offset; in slice_find_separator_offset()
45 const size_t str_len = GRPC_SLICE_LENGTH(str) - read_offset; in slice_find_separator_offset()
53 *begin = read_offset; in slice_find_separator_offset()
54 *end = read_offset + i; in slice_find_separator_offset()
/external/piex/src/binary_parse/
Drange_checked_byte_ptr.h491 const size_t read_offset = current_pos_ + i; variable
498 size_t pos_in_page = read_offset - page_begin_offset_;
505 if (read_offset >= sub_array_begin_ && read_offset < sub_array_end_) {
507 loadPageForOffset(read_offset);
510 pos_in_page = read_offset - page_begin_offset_;
/external/freetype/src/cid/
Dcidparse.c115 FT_ULong read_offset = 0; in cid_parser_new() local
152 if ( read_offset + read_len < STARTDATA_LEN ) in cid_parser_new()
160 buffer + read_offset + read_len - STARTDATA_LEN, in cid_parser_new()
165 read_offset = STARTDATA_LEN; in cid_parser_new()
166 p = buffer + read_offset; in cid_parser_new()
/external/tensorflow/tensorflow/contrib/timeseries/python/timeseries/
Dstate_management_test.py159 def _test_pass_to_next(self, read_offset, step, correct_offset): argument
162 length=100 + read_offset, cut_start=None, cut_end=None, offset=100.,
166 {k: v[:-read_offset] for k, v in data.items()}))
169 {k: v[read_offset:] for k, v in data.items()}))
193 read_offset=1, step=1, correct_offset=False))
197 read_offset=1, step=1, correct_offset=True))
201 read_offset=1, step=3, correct_offset=True))
205 read_offset=50, step=20, correct_offset=True))
209 read_offset=100, step=20, correct_offset=True))
/external/llvm/test/Instrumentation/AddressSanitizer/
Dscale-offset.ll8 define i32 @read_offset(i32* %a) sanitize_address {
13 ; CHECK-OFFSET-LABEL: @read_offset
/external/swiftshader/third_party/llvm-7.0/llvm/test/Instrumentation/AddressSanitizer/
Dscale-offset.ll8 define i32 @read_offset(i32* %a) sanitize_address {
13 ; CHECK-OFFSET-LABEL: @read_offset
/external/libchrome/base/strings/
Dstring_util.cc843 size_t read_offset = first_match + expansion; in DoReplaceMatchesAfterOffset() local
850 read_offset += find_length; in DoReplaceMatchesAfterOffset()
853 size_t match = std::min(matcher.Find(*str, read_offset), str_length); in DoReplaceMatchesAfterOffset()
855 size_t length = match - read_offset; in DoReplaceMatchesAfterOffset()
857 CharTraits::move(buffer + write_offset, buffer + read_offset, length); in DoReplaceMatchesAfterOffset()
859 read_offset += length; in DoReplaceMatchesAfterOffset()
861 } while (read_offset < str_length); in DoReplaceMatchesAfterOffset()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_buffer_objects.c598 GLintptr read_offset, GLintptr write_offset, in intel_bufferobj_copy_subdata() argument
620 memmove(ptr + write_offset, ptr + read_offset, size); in intel_bufferobj_copy_subdata()
633 memcpy(dst_ptr + write_offset, src_ptr + read_offset, size); in intel_bufferobj_copy_subdata()
648 src_bo, read_offset + src_offset, size); in intel_bufferobj_copy_subdata()
/external/grpc-grpc/test/core/tsi/
Dtransport_security_test_lib.cc245 size_t read_offset = 0; in tsi_test_frame_protector_receive_message_from_peer() local
261 read_offset = 0; in tsi_test_frame_protector_receive_message_from_peer()
272 protector, read_buffer + read_offset, &processed_size, message_buffer, in tsi_test_frame_protector_receive_message_from_peer()
279 read_offset += processed_size; in tsi_test_frame_protector_receive_message_from_peer()
/external/sfntly/cpp/src/sfntly/table/bitmap/
Dindex_sub_table_format3.cc65 int32_t read_offset = in Loca() local
68 return read_offset; in Loca()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_buffer_objects.c635 GLintptr read_offset, GLintptr write_offset, in brw_copy_buffer_subdata() argument
647 src_bo = intel_bufferobj_buffer(brw, intel_src, read_offset, size, false); in brw_copy_buffer_subdata()
650 src_bo, read_offset, in brw_copy_buffer_subdata()
/external/libchrome/mojo/core/
Ddata_pipe_consumer_dispatcher.cc37 uint32_t read_offset; member
310 state->read_offset = read_offset_; in EndSerialize()
405 dispatcher->read_offset_ = state->read_offset; in Deserialize()
/external/python/cpython3/Lib/
Dzipfile.py1038 read_offset = new_pos - curr_pos
1039 buff_offset = read_offset + self._offset
1044 read_offset = 0
1045 elif read_offset < 0:
1055 read_offset = new_pos
1057 while read_offset > 0:
1058 read_len = min(self.MAX_SEEK_READ, read_offset)
1060 read_offset -= read_len
/external/perfetto/include/perfetto/protozero/
Dproto_decoder.h68 inline size_t read_offset() const { in read_offset() function
/external/libdrm/etnaviv/
Detnaviv_drm.h169 __u32 read_offset; /* in, offset from read_bo */ member
Detnaviv_cmd_stream.c274 pmr->read_offset = p->offset; in etna_cmd_stream_perf()
/external/kernel-headers/original/uapi/drm/
Detnaviv_drm.h169 __u32 read_offset; /* in, offset from read_bo */ member
/external/perfetto/src/trace_processor/
Dproto_trace_tokenizer.cc187 partial_buf_.insert(partial_buf_.end(), &data[decoder.read_offset()], in ParseInternal()
188 &data[decoder.read_offset() + bytes_left]); in ParseInternal()
/external/pdfium/third_party/libtiff/
Dtif_read.c171 uint64 read_offset; in TIFFFillStripPartial() local
229 read_offset = td->td_stripoffset[strip] in TIFFFillStripPartial()
232 if (!SeekOK(tif, read_offset)) { in TIFFFillStripPartial()
Dtif_dirwrite.c2671 uint64 read_offset; in _TIFFRewriteField() local
2707 read_offset = tif->tif_diroff; in _TIFFRewriteField()
2720 read_offset += 2; in _TIFFRewriteField()
2733 read_offset += 8; in _TIFFRewriteField()
2755 read_offset += dirsize; in _TIFFRewriteField()
2880 entry_offset = read_offset + 8; in _TIFFRewriteField()
2888 entry_offset = read_offset + 12; in _TIFFRewriteField()
2976 if (!SeekOK(tif, read_offset )) { in _TIFFRewriteField()

12