Home
last modified time | relevance | path

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

/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()
172 unsigned read_offset, write_offset, final_offset; in cras_shm_get_readable_frames() local
176 read_offset = in cras_shm_get_readable_frames()
178 shm->area->read_offset[buf_idx]); in cras_shm_get_readable_frames()
182 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/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/mesa3d/src/gallium/drivers/ilo/core/
Dilo_state_compute.c374 uint16_t read_offset, per_thread_read_len, cross_thread_read_len; in compute_set_gen6_INTERFACE_DESCRIPTOR_DATA() local
381 read_offset = interface->curbe_read_offset / 32; in compute_set_gen6_INTERFACE_DESCRIPTOR_DATA()
395 read_offset << GEN6_IDRT_DW4_CURBE_READ_OFFSET__SHIFT; in compute_set_gen6_INTERFACE_DESCRIPTOR_DATA()
/external/libchrome/base/strings/
Dstring_util.cc765 size_t read_offset = offset + find_length; in DoReplaceSubstringsAfterOffset() local
767 str->find(find_this.data(), read_offset, find_this.size()), in DoReplaceSubstringsAfterOffset()
769 size_t length = offset - read_offset; in DoReplaceSubstringsAfterOffset()
771 memmove(&(*str)[write_offset], &(*str)[read_offset], in DoReplaceSubstringsAfterOffset()
806 size_t read_offset = current_match + find_length; in DoReplaceSubstringsAfterOffset() local
807 size_t length = prev_match - read_offset; in DoReplaceSubstringsAfterOffset()
810 memmove(&(*str)[write_offset], &(*str)[read_offset], in DoReplaceSubstringsAfterOffset()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_buffer_objects.c612 GLintptr read_offset, GLintptr write_offset, in brw_copy_buffer_subdata() argument
624 src_bo = intel_bufferobj_buffer(brw, intel_src, read_offset, size); in brw_copy_buffer_subdata()
628 src_bo, read_offset, size); in brw_copy_buffer_subdata()
Dbrw_fs_nir.cpp2182 fs_reg read_offset = bld.vgrf(BRW_REGISTER_TYPE_UD); in do_untyped_vector_read() local
2183 bld.MOV(read_offset, offset_reg); in do_untyped_vector_read()
2198 fs_reg read_result = emit_untyped_read(bld, surf_index, read_offset, in do_untyped_vector_read()
2215 bld.ADD(read_offset, read_offset, brw_imm_ud(16)); in do_untyped_vector_read()
Dbrw_fs_generator.cpp1143 uint32_t read_offset = offset.ud; in generate_uniform_pull_constant_load() local
1146 read_offset, surf_index); in generate_uniform_pull_constant_load()
/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/syslinux/gpxe/src/drivers/net/
Datl1e.c363 rx_page_desc->rx_page[j].read_offset = 0; in atl1e_init_ring_ptrs()
768 if (rx_page->read_offset >= write_offset) in atl1e_clean_rx_irq()
774 rx_page->read_offset); in atl1e_clean_rx_irq()
814 rx_page->read_offset += in atl1e_clean_rx_irq()
820 if (rx_page->read_offset >= rx_ring->page_size) { in atl1e_clean_rx_irq()
825 rx_page->read_offset = in atl1e_clean_rx_irq()
835 } while (rx_page->read_offset < write_offset); in atl1e_clean_rx_irq()
Datl1e.h187 u32 read_offset; /* the offset where we have read */ member
/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/libmojo/mojo/edk/system/
Ddata_pipe_consumer_dispatcher.cc39 uint32_t read_offset; member
345 state->read_offset = read_offset_; in EndSerialize()
423 dispatcher->read_offset_ = state->read_offset; in Deserialize()
/external/kernel-headers/original/uapi/drm/
Detnaviv_drm.h163 __u32 read_offset; /* in, offset from read_bo */ member
/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()
/external/curl/tests/python_dependencies/impacket/
Dsmb.py2939 read_offset = offset
2940 while read_offset < datasize:
2941 data = self.read_andx(tid, fid, read_offset, max_buf_size)
2944 read_offset += len(data)