/system/core/adb/ |
H A D | commandline.h | 43 static void OnStream(std::string* string, FILE* stream, const char* buffer, int length) { argument 47 fwrite(buffer, 1, length, stream); 48 fflush(stream); 57 // stream or to a string
|
H A D | sysdeps_win32.cpp | 1333 // Returns a console handle if |stream| is a console, otherwise returns nullptr. 1334 static HANDLE _get_console_handle(FILE* const stream) { argument 1337 const int fd = fileno(stream); 2465 static int _console_write_utf8(const char* const buf, const size_t buf_size, FILE* stream, argument 2506 // Flush any stream buffering so that our output is afterwards which 2508 (void)fflush(stream); 2525 static int _console_vfprintf(const HANDLE console, FILE* stream, 2531 static int _console_vfprintf(const HANDLE console, FILE* stream, argument 2540 const int result = _console_write_utf8(output_utf8.c_str(), output_utf8.length(), stream, 2552 int adb_vfprintf(FILE *stream, cons argument 2576 adb_fprintf(FILE *stream, const char *format, ...) argument 2598 adb_fputs(const char* buf, FILE* stream) argument 2607 adb_fputc(int ch, FILE* stream) argument 2631 _console_fwrite(const void* ptr, size_t size, size_t nmemb, FILE* stream, HANDLE console) argument 2643 adb_fwrite(const void* ptr, size_t size, size_t nmemb, FILE* stream) argument [all...] |
/system/update_engine/ |
H A D | libcurl_http_fetcher.h | 152 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/core/libcutils/ |
H A D | open_memstream.c | 63 * 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/weaved/buffet/ |
H A D | http_transport_client.cc | 91 auto stream = brillo::MemoryStream::OpenCopyOf(data, nullptr); local 92 CHECK(stream->GetRemainingSize()); 94 if (!request.AddRequestBody(std::move(stream), &cromeos_error)) {
|
H A D | socket_stream.cc | 163 SocketStream* stream = static_cast<SocketStream*>(socket.get()); local 165 std::move(stream->ptr_), host, base::Bind(&OnSuccess, callback),
|
H A D | webserv_client.cc | 55 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;
|
/system/core/libziparchive/ |
H A D | zip_archive_stream_entry.cc | 17 // 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...] |
H A D | zip_archive_test.cc | 503 std::unique_ptr<ZipArchiveStreamEntry> stream; local 505 stream.reset(ZipArchiveStreamEntry::CreateRaw(handle, *entry)); 512 stream.reset(ZipArchiveStreamEntry::Create(handle, *entry)); 516 ASSERT_TRUE(stream.get() != nullptr); 519 while ((data = stream->Read()) != nullptr) { 524 ASSERT_EQ(verified, stream->Verify());
|
H A D | zip_writer.cc | 80 static void DeleteZStream(z_stream* stream) { argument 81 deflateEnd(stream); 82 delete stream;
|
H A D | zip_archive.cc | 77 // We encountered a Zlib error when inflating a stream from this file. 903 static inline int zlib_inflateInit2(z_stream* stream, int window_bits) { argument 904 return inflateInit2(stream, window_bits); 917 * Initialize the zlib stream struct. 945 auto zstream_deleter = [](z_stream* stream) { 946 inflateEnd(stream); /* free up any allocated structures */ 994 // stream.adler holds the crc32 value for such streams.
|
/system/bt/hci/src/ |
H A D | hci_packet_factory.c | 47 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 D | hci_packet_parser.c | 50 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 D | packet_fragmenter.c | 70 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 D | hci_layer.c | 363 uint8_t *stream = command->data + command->offset; local 364 STREAM_TO_UINT16(wait_entry->opcode, stream); 381 uint8_t *stream = command->data + command->offset; local 382 STREAM_TO_UINT16(wait_entry->opcode, stream); 610 // in the uart stream (like H4). #badnewsbears 629 uint8_t *stream = incoming->buffer->data; local 631 STREAM_TO_UINT8(event_code, stream); 658 uint8_t *stream = packet->data; local 662 STREAM_TO_UINT8(event_code, stream); 663 STREAM_SKIP_UINT8(stream); // Ski [all...] |
/system/extras/tests/binder/benchmarks/ |
H A D | binderAddInts.cpp | 84 static ostream &operator<<(ostream &stream, const String16& str); 85 static ostream &operator<<(ostream &stream, const cpu_set_t& set); 221 static ostream &operator<<(ostream &stream, const String16& str) argument 225 stream << (char) str[n1]; 227 stream << '~'; 231 return stream; 234 static ostream &operator<<(ostream &stream, const cpu_set_t& set) argument 238 if (n1 != 0) { stream << ' '; } 239 stream << n1; 243 return stream; [all...] |
/system/extras/tests/lib/testUtil/ |
H A D | testUtil.c | 146 void testPrint(FILE *stream, const char *fmt, ...) argument 153 if (stream == stderr) { 158 vfprintf(stream, fmt, args); 159 fputc('\n', stream);
|
/system/media/audio/include/system/ |
H A D | audio_policy.h | 95 static inline bool audio_is_low_visibility(audio_stream_type_t stream) argument 97 switch (stream) {
|
H A D | audio.h | 55 /* Audio stream types */ 187 /* session for effects attached to a particular output stream 193 * be moved by audio policy manager to another output stream 299 * the encoded audio stream (e.g. octet alignement for AMR). 774 * output stream with attributes corresponding to the specified flags 776 * hardware module, they indicate that an output stream can be opened that 779 * (when getOuput() is called) to an available output stream. 784 // to one output stream: no software mixer 803 AUDIO_OUTPUT_FLAG_IEC958_NONAUDIO = 0x400, // Audio stream contains compressed audio in 809 * to indicate a preference to be connected to an input stream wit 1009 audio_stream_type_t stream; member in union:audio_port_config_mix_ext::__anon1828 [all...] |
/system/media/audio_utils/ |
H A D | tinysndfile.c | 33 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/core/base/ |
H A D | logging.cpp | 408 std::ostream& LogMessage::stream() { function in class:android::base::LogMessage
|
/system/sepolicy/tools/ |
H A D | checkfc.c | 131 static void dump_char_array(FILE *stream, const char * const *strings) argument 136 fprintf(stream, "\""); 141 fprintf(stream, fmt, s);
|
/system/bt/stack/btu/ |
H A D | btu_hcif.c | 359 uint8_t *stream = p_buf->data + p_buf->offset; local 362 STREAM_TO_UINT16(opcode, stream); 909 uint8_t *stream = hack->response->data + hack->response->offset + 3; // 2 to skip the event headers, 1 to skip the command credits local 910 STREAM_TO_UINT16(opcode, stream); 914 stream, 1106 uint8_t *stream = hack->command->data + hack->command->offset; local 1107 STREAM_TO_UINT16(opcode, stream); 1112 stream,
|
/system/extras/perfprofd/quipper/base/ |
H A D | logging.h | 20 // 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/bt/audio_a2dp_hw/ |
H A D | audio_a2dp_hw.c | 103 /* 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; 596 DEBUG("stream suspended or closing"); 611 ERROR("stream not in stopped or standby"); 626 ERROR("write failed : stream suspende 646 out_get_sample_rate(const struct audio_stream *stream) argument 655 out_set_sample_rate(struct audio_stream *stream, uint32_t rate) argument 672 out_get_buffer_size(const struct audio_stream *stream) argument 687 out_get_channels(const struct audio_stream *stream) argument 696 out_get_format(const struct audio_stream *stream) argument 703 out_set_format(struct audio_stream *stream, audio_format_t format) argument 711 out_standby(struct audio_stream *stream) argument 728 out_dump(const struct audio_stream *stream, int fd) argument 736 out_set_parameters(struct audio_stream *stream, const char *kvpairs) argument 784 out_get_parameters(const struct audio_stream *stream, const char *keys) argument 795 out_get_latency(const struct audio_stream_out *stream) argument 811 out_set_volume(struct audio_stream_out *stream, float left, float right) argument 825 out_get_presentation_position(const struct audio_stream_out *stream, uint64_t *frames, struct timespec *timestamp) argument 846 out_get_render_position(const struct audio_stream_out *stream, uint32_t *dsp_frames) argument 866 out_add_audio_effect(const struct audio_stream *stream, effect_handle_t effect) argument 875 out_remove_audio_effect(const struct audio_stream *stream, effect_handle_t effect) argument 888 in_get_sample_rate(const struct audio_stream *stream) argument 896 in_set_sample_rate(struct audio_stream *stream, uint32_t rate) argument 908 in_get_buffer_size(const struct audio_stream *stream) argument 916 in_get_channels(const struct audio_stream *stream) argument 924 in_get_format(const struct audio_stream *stream) argument 932 in_set_format(struct audio_stream *stream, audio_format_t format) argument 944 in_standby(struct audio_stream *stream) argument 952 in_dump(const struct audio_stream *stream, int fd) argument 961 in_set_parameters(struct audio_stream *stream, const char *kvpairs) argument 970 in_get_parameters(const struct audio_stream *stream, const char *keys) argument 980 in_set_gain(struct audio_stream_in *stream, float gain) argument 989 in_read(struct audio_stream_in *stream, void* buffer, size_t bytes) argument 1055 in_get_input_frames_lost(struct audio_stream_in *stream) argument 1063 in_add_audio_effect(const struct audio_stream *stream, effect_handle_t effect) argument 1072 in_remove_audio_effect(const struct audio_stream *stream, effect_handle_t effect) argument 1164 adev_close_output_stream(struct audio_hw_device *dev, struct audio_stream_out *stream) argument 1359 adev_close_input_stream(struct audio_hw_device *dev, struct audio_stream_in *stream) argument [all...] |