Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 50) sorted by relevance

12

/system/core/libcutils/
Dopen_memstream.c84 static int ensureCapacity(MemStream* stream, int writeSize) in ensureCapacity() argument
86 DBUG(("+++ ensureCap off=%d size=%d\n", stream->offset, writeSize)); in ensureCapacity()
88 size_t neededSize = stream->offset + writeSize + 1; in ensureCapacity()
89 if (neededSize <= stream->allocSize) in ensureCapacity()
94 if (stream->allocSize == 0) { in ensureCapacity()
97 newSize = stream->allocSize; in ensureCapacity()
104 stream->bufp, *stream->bufp, newSize)); in ensureCapacity()
105 char* newBuf = (char*) realloc(*stream->bufp, newSize); in ensureCapacity()
109 *stream->bufp = newBuf; in ensureCapacity()
110 stream->allocSize = newSize; in ensureCapacity()
[all …]
/system/bt/hci/src/
Dhci_packet_parser.c50 …uint8_t *stream = read_command_complete_header(response, HCI_READ_BUFFER_SIZE, 5 /* bytes after */… in parse_read_buffer_size_response() local
51 assert(stream != NULL); in parse_read_buffer_size_response()
52 STREAM_TO_UINT16(*data_size_ptr, stream); in parse_read_buffer_size_response()
53 STREAM_SKIP_UINT8(stream); // skip the sco packet length in parse_read_buffer_size_response()
54 STREAM_TO_UINT16(*acl_buffer_count_ptr, stream); in parse_read_buffer_size_response()
63 …uint8_t *stream = read_command_complete_header(response, HCI_READ_LOCAL_VERSION_INFO, 8 /* bytes a… in parse_read_local_version_info_response() local
64 assert(stream != NULL); in parse_read_local_version_info_response()
65 STREAM_TO_UINT8(bt_version->hci_version, stream); in parse_read_local_version_info_response()
66 STREAM_TO_UINT16(bt_version->hci_revision, stream); in parse_read_local_version_info_response()
67 STREAM_TO_UINT8(bt_version->lmp_version, stream); in parse_read_local_version_info_response()
[all …]
Dhci_packet_factory.c47 uint8_t *stream; in make_host_buffer_size() local
49 BT_HDR *packet = make_command(HCI_HOST_BUFFER_SIZE, parameter_size, &stream); in make_host_buffer_size()
51 UINT16_TO_STREAM(stream, acl_size); in make_host_buffer_size()
52 UINT8_TO_STREAM(stream, sco_size); in make_host_buffer_size()
53 UINT16_TO_STREAM(stream, acl_count); in make_host_buffer_size()
54 UINT16_TO_STREAM(stream, sco_count); in make_host_buffer_size()
71 uint8_t *stream; in make_read_local_extended_features() local
73 BT_HDR *packet = make_command(HCI_READ_LOCAL_EXT_FEATURES, parameter_size, &stream); in make_read_local_extended_features()
75 UINT8_TO_STREAM(stream, page_number); in make_read_local_extended_features()
80 uint8_t *stream; in make_write_simple_pairing_mode() local
[all …]
Dpacket_fragmenter.c70 uint8_t *stream = packet->data + packet->offset; in fragment_and_dispatch() local
87 STREAM_TO_UINT16(continuation_handle, stream); in fragment_and_dispatch()
92 stream = packet->data + packet->offset; in fragment_and_dispatch()
93 STREAM_SKIP_UINT16(stream); in fragment_and_dispatch()
94 UINT16_TO_STREAM(stream, max_data_size); in fragment_and_dispatch()
104 stream = packet->data + packet->offset; in fragment_and_dispatch()
105 UINT16_TO_STREAM(stream, continuation_handle); in fragment_and_dispatch()
106 UINT16_TO_STREAM(stream, remaining_length - HCI_ACL_PREAMBLE_SIZE); in fragment_and_dispatch()
129 uint8_t *stream = packet->data; in reassemble_and_dispatch() local
134 STREAM_TO_UINT16(handle, stream); in reassemble_and_dispatch()
[all …]
Dhci_layer.c361 uint8_t *stream = command->data + command->offset; in transmit_command() local
362 STREAM_TO_UINT16(wait_entry->opcode, stream); in transmit_command()
379 uint8_t *stream = command->data + command->offset; in transmit_command_futured() local
380 STREAM_TO_UINT16(wait_entry->opcode, stream); in transmit_command_futured()
626 uint8_t *stream = incoming->buffer->data; in hal_says_data_ready() local
628 STREAM_TO_UINT8(event_code, stream); in hal_says_data_ready()
655 uint8_t *stream = packet->data; in filter_incoming_event() local
659 STREAM_TO_UINT8(event_code, stream); in filter_incoming_event()
660 STREAM_SKIP_UINT8(stream); // Skip the parameter total length field in filter_incoming_event()
663 STREAM_TO_UINT8(command_credits, stream); in filter_incoming_event()
[all …]
/system/bt/audio_a2dp_hw/
Daudio_a2dp_hw.c115 struct audio_stream_out stream; member
122 struct audio_stream_in stream; member
134 static size_t out_get_buffer_size(const struct audio_stream *stream);
585 static ssize_t out_write(struct audio_stream_out *stream, const void* buffer, in out_write() argument
588 struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream; in out_write()
632 const size_t frames = bytes / audio_stream_out_frame_size(stream); in out_write()
649 static uint32_t out_get_sample_rate(const struct audio_stream *stream) in out_get_sample_rate() argument
651 struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream; in out_get_sample_rate()
658 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
660 struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream; in out_set_sample_rate()
[all …]
/system/media/audio_utils/
Dtinysndfile.c33 FILE *stream; member
67 FILE *stream = fopen(path, "rb"); in sf_open_read() local
68 if (stream == NULL) { in sf_open_read()
78 handle->stream = stream; in sf_open_read()
84 actual = fread(wav, sizeof(char), sizeof(wav), stream); in sf_open_read()
116 actual = fread(chunk, sizeof(char), sizeof(chunk), stream); in sf_open_read()
145 actual = fread(fmt, sizeof(char), 2, stream); in sf_open_read()
174 actual = fread(&fmt[2], sizeof(char), minSize - 2, stream); in sf_open_read()
182 fseek(stream, (long) (chunkSize - minSize), SEEK_CUR); in sf_open_read()
245 dataTell = ftell(stream); in sf_open_read()
[all …]
/system/core/libziparchive/
Dzip_archive_stream_entry.cc136 static inline int zlib_inflateInit2(z_stream* stream, int window_bits) { in zlib_inflateInit2() argument
137 return inflateInit2(stream, window_bits); in zlib_inflateInit2()
277 ZipArchiveStreamEntry* stream = nullptr; in Create() local
279 stream = new ZipArchiveStreamEntryCompressed(handle); in Create()
281 stream = new ZipArchiveStreamEntryUncompressed(handle); in Create()
283 if (stream && !stream->Init(entry)) { in Create()
284 delete stream; in Create()
285 stream = nullptr; in Create()
288 return stream; in Create()
293 ZipArchiveStreamEntry* stream = nullptr; in CreateRaw() local
[all …]
/system/netd/server/
Dnetd.rc3 socket netd stream 0660 root system
4 socket dnsproxyd stream 0660 root inet
5 socket mdns stream 0660 root system
6 socket fwmarkd stream 0660 root inet
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp84 static ostream &operator<<(ostream &stream, const String16& str);
85 static ostream &operator<<(ostream &stream, const cpu_set_t& set);
222 static ostream &operator<<(ostream &stream, const String16& str) in operator <<() argument
226 stream << (char) str[n1]; in operator <<()
228 stream << '~'; in operator <<()
232 return stream; in operator <<()
235 static ostream &operator<<(ostream &stream, const cpu_set_t& set) in operator <<() argument
239 if (n1 != 0) { stream << ' '; } in operator <<()
240 stream << n1; in operator <<()
244 return stream; in operator <<()
/system/weaved/buffet/
Dwebserv_client.cc55 auto stream = request_->GetDataStream(); in GetData() local
56 if (stream) { in GetData()
57 if (stream->CanGetSize()) in GetData()
58 request_data_->reserve(stream->GetRemainingSize()); in GetData()
61 while (stream->ReadBlocking(buffer.data(), buffer.size(), &sz, nullptr) && in GetData()
76 auto stream = std::unique_ptr<weave::Stream>{ in GetDataStream()
78 return stream; in GetDataStream()
Dhttp_transport_client.cc91 auto stream = brillo::MemoryStream::OpenCopyOf(data, nullptr); in SendRequest() local
92 CHECK(stream->GetRemainingSize()); in SendRequest()
94 if (!request.AddRequestBody(std::move(stream), &cromeos_error)) { in SendRequest()
/system/extras/perfprofd/quipper/base/
Dlogging.h175 #define LAZY_STREAM(stream, condition) \ argument
176 !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)
186 #define LOG_STREAM(severity) COMPACT_GOOGLE_LOG_ ## severity.stream()
194 logging::LogMessage(__FILE__, __LINE__, -verbose_level).stream()
244 logging::LogMessage(__FILE__, __LINE__, _result).stream()
410 _result).stream()
472 std::ostream& stream() { return stream_; } in stream() function
511 LogMessage(__FILE__, __LINE__, log_level).stream() << msg; in LogAtLevel()
548 std::ostream& stream() { return log_message_.stream(); } in stream() function
568 std::ostream& stream() { return log_message_.stream(); } in stream() function
/system/core/adb/
Dprotocol.txt43 message stream will result in state getting out of sync.
101 The OPEN message informs the recipient that the sender has a stream
115 * "local-stream:<identifier>"
123 The READY message informs the recipient that the sender's stream
125 connected to the recipient's stream identified by remote-id.
130 stream on the recipient's side is ignored. The stream may have been
135 not change on later READY messages sent to the same stream.
141 The WRITE message sends data to the recipient's stream identified by
145 stream on the recipient's side is ignored. The stream may have been
158 sender's stream (local-id) and the recipient's stream (remote-id) is
[all …]
Dsysdeps_win32.cpp1334 static HANDLE _get_console_handle(FILE* const stream) { in _get_console_handle() argument
1337 const int fd = fileno(stream); in _get_console_handle()
2489 static int _console_write_utf8(const char* const buf, const size_t buf_size, FILE* stream, in _console_write_utf8() argument
2532 (void)fflush(stream); in _console_write_utf8()
2549 static int _console_vfprintf(const HANDLE console, FILE* stream,
2555 static int _console_vfprintf(const HANDLE console, FILE* stream, in _console_vfprintf() argument
2564 const int result = _console_write_utf8(output_utf8.c_str(), output_utf8.length(), stream, in _console_vfprintf()
2576 int adb_vfprintf(FILE *stream, const char *format, va_list ap) { in adb_vfprintf() argument
2577 const HANDLE console = _get_console_handle(stream); in adb_vfprintf()
2582 return _console_vfprintf(console, stream, format, ap); in adb_vfprintf()
[all …]
/system/vold/
Dvold.rc5 socket vold stream 0660 root mount
6 socket cryptd stream 0660 root mount
/system/media/audio/include/system/
Daudio_policy.h95 static inline bool audio_is_low_visibility(audio_stream_type_t stream) in audio_is_low_visibility() argument
97 switch (stream) { in audio_is_low_visibility()
/system/bt/hci/test/
Dhci_layer_test.cpp640 uint8_t *stream = ret->data;
641 UINT8_TO_STREAM(stream, HCI_COMMAND_COMPLETE_EVT);
642 UINT8_TO_STREAM(stream, 3); // length of the event parameters
643 UINT8_TO_STREAM(stream, 1); // the number of commands that can be sent
644 UINT16_TO_STREAM(stream, opcode);
652 uint8_t *stream = ret->data;
653 UINT8_TO_STREAM(stream, HCI_COMMAND_STATUS_EVT);
654 UINT8_TO_STREAM(stream, 4); // length of the event parameters
655 UINT8_TO_STREAM(stream, HCI_PENDING); // status
656 UINT8_TO_STREAM(stream, 1); // the number of commands that can be sent
[all …]
/system/connectivity/shill/
Derror.cc143 std::ostream& operator<<(std::ostream& stream, const shill::Error& error) { in operator <<() argument
144 stream << error.GetDBusResult(error.type()) << ": " << error.message(); in operator <<()
145 return stream; in operator <<()
Dlogging.h49 ::logging::LogMessage(__FILE__, __LINE__, -verbose_level).stream()
72 ::logging::GetLastSystemErrorCode()).stream()
/system/core/rootdir/
Dinit.zygote64_32.rc3 socket zygote stream 660 root system
14 socket zygote_secondary stream 660 root system
Dinit.zygote32_64.rc3 socket zygote stream 660 root system
14 socket zygote_secondary stream 660 root system
/system/core/base/include/android-base/
Dlogging.h132 ::android::base::severity, -1).stream()
144 ::android::base::severity, errno).stream()
159 ::android::base::FATAL, -1).stream() \
168 ::android::base::FATAL, -1).stream() \
313 std::ostream& stream();
/system/extras/tests/lib/testUtil/
DtestUtil.c146 void testPrint(FILE *stream, const char *fmt, ...) in testPrint() argument
153 if (stream == stderr) { in testPrint()
158 vfprintf(stream, fmt, args); in testPrint()
159 fputc('\n', stream); in testPrint()
/system/update_engine/common/
Dlibcurl_http_fetcher.h152 size_t nmemb, void *stream) { in StaticLibcurlWrite() argument
153 return reinterpret_cast<LibcurlHttpFetcher*>(stream)-> in StaticLibcurlWrite()

12