Home
last modified time | relevance | path

Searched refs:header_fd (Results 1 – 9 of 9) sorted by relevance

/external/openscreen/tools/cddl/
Dmain.cc126 int header_fd = open(header_filename.c_str(), O_CREAT | O_TRUNC | O_WRONLY, in main() local
128 if (header_fd == -1) { in main()
186 if (!WriteHeaderPrologue(header_fd, args.header_filename)) { in main()
193 if (!WriteTypeDefinitions(header_fd, &cpp_result.second)) { in main()
200 if (!WriteFunctionDeclarations(header_fd, &cpp_result.second)) { in main()
207 if (!WriteHeaderEpilogue(header_fd, args.header_filename)) { in main()
248 close(header_fd); in main()
/external/adhd/cras/src/tests/
Drstream_unittest.cc132 int rc, header_fd = -1, samples_fd = -1; in TEST_F() local
150 cras_rstream_get_shm_fds(s, &header_fd, &samples_fd); in TEST_F()
155 header_fd, 0); in TEST_F()
169 int rc, header_fd = -1, samples_fd = -1; in TEST_F() local
188 cras_rstream_get_shm_fds(s, &header_fd, &samples_fd); in TEST_F()
193 header_fd, 0); in TEST_F()
/external/adhd/cras/src/server/
Dcras_rstream.h196 int *header_fd, int *samples_fd) in cras_rstream_get_shm_fds() argument
198 if (!header_fd || !samples_fd) in cras_rstream_get_shm_fds()
201 *header_fd = stream->shm->header_info.fd; in cras_rstream_get_shm_fds()
Dcras_rclient_util.c142 int rc, header_fd, samples_fd; in rclient_handle_client_stream_connect() local
196 rc = cras_rstream_get_shm_fds(stream, &header_fd, &samples_fd); in rclient_handle_client_stream_connect()
200 stream_fds[0] = header_fd; in rclient_handle_client_stream_connect()
/external/tpm2-tss/script/
Dgen_fuzz.py191 with open(header, 'r') as header_fd:
193 for line in header_fd:
/external/adhd/cras/client/libcras/src/
Dcras_shm_stream.rs84 header_fd: CrasAudioShmHeaderFd, in try_new()
87 let header = cras_shm::create_header(header_fd, samples_len)?; in try_new()
Dcras_shm.rs99 fn new(header_fd: CrasAudioShmHeaderFd, samples_len: usize) -> io::Result<Self> { in new()
104 header_fd.fd.size, in new()
106 header_fd.fd.as_raw_fd(), in new()
824 header_fd: CrasAudioShmHeaderFd, in create_header_and_buffers()
827 let header = CrasAudioHeader::new(header_fd, samples_fd.size)?; in create_header_and_buffers()
837 header_fd: CrasAudioShmHeaderFd, in create_header()
840 Ok(CrasAudioHeader::new(header_fd, samples_len)?) in create_header()
1165 let header_fd = cras_audio_header_fd(); in create_header_and_buffers_test() localVariable
1167 let res = create_header_and_buffers(header_fd, samples_fd); in create_header_and_buffers_test()
Dlibcras.rs440 if let ServerResult::StreamConnected(_stream_id, header_fd, samples_fd) = result { in create_stream()
450 header_fd, in create_stream()
678 if let ServerResult::StreamConnected(_stream_id, header_fd, _samples_fd) = result {
688 header_fd,
Dcras_stream.rs147 header_fd: CrasAudioShmHeaderFd, in try_new()
150 let (header, audio_buffer) = create_header_and_buffers(header_fd, samples_fd)?; in try_new()