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

12

/system/core/libcutils/
H A Dopen_memstream.c63 * Definition of a seekable, write-only memory stream.
84 static int ensureCapacity(MemStream* stream, int writeSize) argument
86 DBUG(("+++ ensureCap off=%d size=%d\n", stream->offset, writeSize));
88 size_t neededSize = stream->offset + writeSize + 1;
89 if (neededSize <= stream->allocSize)
94 if (stream->allocSize == 0) {
97 newSize = stream->allocSize;
104 stream->bufp, *stream->bufp, newSize));
105 char* newBuf = (char*) realloc(*stream
123 MemStream* stream = (MemStream*) cookie; local
164 MemStream* stream = (MemStream*) cookie; local
226 MemStream* stream; local
[all...]
/system/bt/hci/src/
H A Dhci_packet_parser.c50 uint8_t *stream = read_command_complete_header(response, HCI_READ_BUFFER_SIZE, 5 /* bytes after */); local
51 assert(stream != NULL);
52 STREAM_TO_UINT16(*data_size_ptr, stream);
53 STREAM_SKIP_UINT8(stream); // skip the sco packet length
54 STREAM_TO_UINT16(*acl_buffer_count_ptr, stream);
63 uint8_t *stream = read_command_complete_header(response, HCI_READ_LOCAL_VERSION_INFO, 8 /* bytes after */); local
64 assert(stream != NULL);
65 STREAM_TO_UINT8(bt_version->hci_version, stream);
66 STREAM_TO_UINT16(bt_version->hci_revision, stream);
67 STREAM_TO_UINT8(bt_version->lmp_version, stream);
78 uint8_t *stream = read_command_complete_header(response, HCI_READ_LOCAL_SUPPORTED_CODECS, 0 /* bytes after */); local
95 uint8_t *stream = read_command_complete_header(response, HCI_READ_BD_ADDR, sizeof(bt_bdaddr_t) /* bytes after */); local
107 uint8_t *stream = read_command_complete_header(response, HCI_READ_LOCAL_SUPPORTED_CMDS, supported_commands_length /* bytes after */); local
121 uint8_t *stream = read_command_complete_header(response, HCI_READ_LOCAL_EXT_FEATURES, 2 + sizeof(bt_device_features_t) /* bytes after */); local
140 uint8_t *stream = read_command_complete_header(response, HCI_BLE_READ_WHITE_LIST_SIZE, 1 /* byte after */); local
152 uint8_t *stream = read_command_complete_header(response, HCI_BLE_READ_BUFFER_SIZE, 3 /* bytes after */); local
165 uint8_t *stream = read_command_complete_header(response, HCI_BLE_READ_SUPPORTED_STATES, supported_states_size /* bytes after */); local
176 uint8_t *stream = read_command_complete_header(response, HCI_BLE_READ_LOCAL_SPT_FEAT, sizeof(bt_device_features_t) /* bytes after */); local
187 uint8_t *stream = read_command_complete_header(response, HCI_BLE_READ_RESOLVING_LIST_SIZE, 1 /* bytes after */); local
197 uint8_t *stream = read_command_complete_header(response, HCI_BLE_READ_DEFAULT_DATA_LENGTH, 2 /* bytes after */); local
210 uint8_t *stream = response->data + response->offset; local
[all...]
H A Dhci_packet_factory.c47 uint8_t *stream; local
49 BT_HDR *packet = make_command(HCI_HOST_BUFFER_SIZE, parameter_size, &stream);
51 UINT16_TO_STREAM(stream, acl_size);
52 UINT8_TO_STREAM(stream, sco_size);
53 UINT16_TO_STREAM(stream, acl_count);
54 UINT16_TO_STREAM(stream, sco_count);
71 uint8_t *stream; local
73 BT_HDR *packet = make_command(HCI_READ_LOCAL_EXT_FEATURES, parameter_size, &stream);
75 UINT8_TO_STREAM(stream, page_number);
80 uint8_t *stream; local
89 uint8_t *stream; local
98 uint8_t *stream; local
107 uint8_t *stream; local
145 uint8_t *stream; local
162 uint8_t *stream = packet->data; local
[all...]
H A Dpacket_fragmenter.c70 uint8_t *stream = packet->data + packet->offset; local
87 STREAM_TO_UINT16(continuation_handle, stream);
92 stream = packet->data + packet->offset;
93 STREAM_SKIP_UINT16(stream);
94 UINT16_TO_STREAM(stream, max_data_size);
104 stream = packet->data + packet->offset;
105 UINT16_TO_STREAM(stream, continuation_handle);
106 UINT16_TO_STREAM(stream, remaining_length - HCI_ACL_PREAMBLE_SIZE);
129 uint8_t *stream = packet->data; local
134 STREAM_TO_UINT16(handle, stream);
[all...]
H A Dhci_layer.c361 uint8_t *stream = command->data + command->offset; local
362 STREAM_TO_UINT16(wait_entry->opcode, stream);
379 uint8_t *stream = command->data + command->offset; local
380 STREAM_TO_UINT16(wait_entry->opcode, stream);
607 // in the uart stream (like H4). #badnewsbears
626 uint8_t *stream = incoming->buffer->data; local
628 STREAM_TO_UINT8(event_code, stream);
655 uint8_t *stream = packet->data; local
659 STREAM_TO_UINT8(event_code, stream);
660 STREAM_SKIP_UINT8(stream); // Ski
[all...]
/system/bt/audio_a2dp_hw/
H A Daudio_a2dp_hw.c103 /* move ctrl_fd outside output stream and keep open until HAL unloaded ? */
115 struct audio_stream_out stream; member in struct:a2dp_stream_out
122 struct audio_stream_in stream; member in struct:a2dp_stream_in
134 static size_t out_get_buffer_size(const struct audio_stream *stream);
535 /* prevent any stray output writes from autostarting the stream
585 static ssize_t out_write(struct audio_stream_out *stream, const void* buffer, argument
588 struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream;
597 DEBUG("stream suspended or closing");
612 ERROR("stream not in stopped or standby");
627 ERROR("write failed : stream suspende
649 out_get_sample_rate(const struct audio_stream *stream) argument
658 out_set_sample_rate(struct audio_stream *stream, uint32_t rate) argument
675 out_get_buffer_size(const struct audio_stream *stream) argument
690 out_get_channels(const struct audio_stream *stream) argument
699 out_get_format(const struct audio_stream *stream) argument
706 out_set_format(struct audio_stream *stream, audio_format_t format) argument
714 out_standby(struct audio_stream *stream) argument
731 out_dump(const struct audio_stream *stream, int fd) argument
739 out_set_parameters(struct audio_stream *stream, const char *kvpairs) argument
787 out_get_parameters(const struct audio_stream *stream, const char *keys) argument
798 out_get_latency(const struct audio_stream_out *stream) argument
814 out_set_volume(struct audio_stream_out *stream, float left, float right) argument
828 out_get_presentation_position(const struct audio_stream_out *stream, uint64_t *frames, struct timespec *timestamp) argument
849 out_get_render_position(const struct audio_stream_out *stream, uint32_t *dsp_frames) argument
869 out_add_audio_effect(const struct audio_stream *stream, effect_handle_t effect) argument
878 out_remove_audio_effect(const struct audio_stream *stream, effect_handle_t effect) argument
891 in_get_sample_rate(const struct audio_stream *stream) argument
899 in_set_sample_rate(struct audio_stream *stream, uint32_t rate) argument
911 in_get_buffer_size(const struct audio_stream *stream) argument
919 in_get_channels(const struct audio_stream *stream) argument
927 in_get_format(const struct audio_stream *stream) argument
935 in_set_format(struct audio_stream *stream, audio_format_t format) argument
947 in_standby(struct audio_stream *stream) argument
955 in_dump(const struct audio_stream *stream, int fd) argument
964 in_set_parameters(struct audio_stream *stream, const char *kvpairs) argument
973 in_get_parameters(const struct audio_stream *stream, const char *keys) argument
983 in_set_gain(struct audio_stream_in *stream, float gain) argument
992 in_read(struct audio_stream_in *stream, void* buffer, size_t bytes) argument
1058 in_get_input_frames_lost(struct audio_stream_in *stream) argument
1066 in_add_audio_effect(const struct audio_stream *stream, effect_handle_t effect) argument
1075 in_remove_audio_effect(const struct audio_stream *stream, effect_handle_t effect) argument
1167 adev_close_output_stream(struct audio_hw_device *dev, struct audio_stream_out *stream) argument
1362 adev_close_input_stream(struct audio_hw_device *dev, struct audio_stream_in *stream) argument
[all...]
/system/core/libziparchive/
H A Dzip_archive_stream_entry.cc17 // Read-only stream access to Zip Archive entries.
136 static inline int zlib_inflateInit2(z_stream* stream, int window_bits) { argument
137 return inflateInit2(stream, window_bits);
146 // Initialize the zlib stream struct.
277 ZipArchiveStreamEntry* stream = nullptr; local
279 stream = new ZipArchiveStreamEntryCompressed(handle);
281 stream = new ZipArchiveStreamEntryUncompressed(handle);
283 if (stream && !stream->Init(entry)) {
284 delete stream;
293 ZipArchiveStreamEntry* stream = nullptr; local
[all...]
/system/weaved/buffet/
H A Dflouride_socket_bluetooth_client.h20 #include <brillo/streams/stream.h>
H A Dsocket_stream.h22 #include <brillo/streams/stream.h>
24 #include <weave/stream.h>
H A Dwebserv_client.cc55 auto stream = request_->GetDataStream(); variable
56 if (stream) {
57 if (stream->CanGetSize())
58 request_data_->reserve(stream->GetRemainingSize());
61 while (stream->ReadBlocking(buffer.data(), buffer.size(), &sz, nullptr) &&
76 auto stream = std::unique_ptr<weave::Stream>{ local
78 return stream;
H A Dhttp_transport_client.cc91 auto stream = brillo::MemoryStream::OpenCopyOf(data, nullptr); local
92 CHECK(stream->GetRemainingSize());
94 if (!request.AddRequestBody(std::move(stream), &cromeos_error)) {
/system/media/audio_utils/
H A Dtinysndfile.c33 FILE *stream; member in struct:SNDFILE_
67 FILE *stream = fopen(path, "rb"); local
68 if (stream == NULL) {
78 handle->stream = stream;
84 actual = fread(wav, sizeof(char), sizeof(wav), stream);
116 actual = fread(chunk, sizeof(char), sizeof(chunk), stream);
145 actual = fread(fmt, sizeof(char), 2, stream);
174 actual = fread(&fmt[2], sizeof(char), minSize - 2, stream);
182 fseek(stream, (lon
309 FILE *stream = fopen(path, "w+b"); local
[all...]
/system/media/audio/include/system/
H A Daudio_policy.h95 static inline bool audio_is_low_visibility(audio_stream_type_t stream) argument
97 switch (stream) {
/system/extras/tests/binder/benchmarks/
H A 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) argument
226 stream << (char) str[n1];
228 stream << '~';
232 return stream;
235 static ostream &operator<<(ostream &stream, const cpu_set_t& set) argument
239 if (n1 != 0) { stream << ' '; }
240 stream << n1;
244 return stream;
[all...]
/system/webservd/libwebserv/
H A Drequest_impl.h22 #include <brillo/streams/stream.h>
/system/connectivity/shill/
H A Derror.cc143 std::ostream& operator<<(std::ostream& stream, const shill::Error& error) {
144 stream << error.GetDBusResult(error.type()) << ": " << error.message();
145 return stream;
H A Dlogging.h49 ::logging::LogMessage(__FILE__, __LINE__, -verbose_level).stream()
72 ::logging::GetLastSystemErrorCode()).stream()
/system/extras/perfprofd/quipper/base/
H A Dlogging.h20 // Make a bunch of macros for logging. The way to log things is to stream
173 // Helper macro which avoids evaluating the arguments to a stream if
175 #define LAZY_STREAM(stream, condition) \
176 !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)
183 // impossible to stream something like a string directly to an unnamed
184 // ostream. We employ a neat hack by calling the stream() member
186 #define LOG_STREAM(severity) COMPACT_GOOGLE_LOG_ ## severity.stream()
194 logging::LogMessage(__FILE__, __LINE__, -verbose_level).stream()
216 // The actual stream used isn't important.
244 logging::LogMessage(__FILE__, __LINE__, _result).stream()
472 std::ostream& stream() { return stream_; } function in class:logging::LogMessage
548 std::ostream& stream() { return log_message_.stream(); } function in class:logging::Win32ErrorLogMessage
568 std::ostream& stream() { return log_message_.stream(); } function in class:logging::ErrnoLogMessage
[all...]
/system/extras/tests/include/
H A DtestUtil.h49 void testPrint(FILE *stream, const char *fmt, ...);
/system/webservd/
H A DAndroid.mk48 libbrillo-stream \
/system/core/base/include/android-base/
H A 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() \
311 // Returns the stream associated with the message, the LogMessage performs
313 std::ostream& stream();
/system/update_engine/common/
H A Dlibcurl_http_fetcher.h152 size_t nmemb, void *stream) {
153 return reinterpret_cast<LibcurlHttpFetcher*>(stream)->
151 StaticLibcurlWrite(void *ptr, size_t size, size_t nmemb, void *stream) argument
/system/bt/hci/test/
H A 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,
[all...]
/system/extras/tests/lib/testUtil/
H A DtestUtil.c146 void testPrint(FILE *stream, const char *fmt, ...) argument
153 if (stream == stderr) {
158 vfprintf(stream, fmt, args);
159 fputc('\n', stream);
/system/update_engine/payload_consumer/
H A Dfilesystem_verifier_action.h26 #include <brillo/streams/stream.h>
111 bool read_done_{false}; // true if reached EOF on the input stream.
120 // Reads and hashes this many bytes from the head of the input stream. This

Completed in 5926 milliseconds

12