/system/update_engine/ |
H A D | libcurl_http_fetcher.h | 156 size_t nmemb, void *stream) { 157 return reinterpret_cast<LibcurlHttpFetcher*>(stream)-> 155 StaticLibcurlWrite(void *ptr, size_t size, size_t nmemb, void *stream) argument
|
/system/nvram/messages/include/nvram/messages/ |
H A D | proto.hpp | 55 // nvram::OutputStream stream(buffer, sizeof(buffer)); 56 // if (!nvram::proto::Encode(employee, &stream)) { 66 // nvram::InputStreamBuffer stream(buffer_start, buffer_size); 67 // if (!nvram::proto::Decode(&employee, &stream)) { 454 // Encode |object| and write the result to |stream|. Returns true if successful, 455 // false if encoding fails. Encoding may fail because |stream| doesn't have 458 bool Encode(const Struct& object, OutputStreamBuffer* stream) { argument 459 ProtoWriter writer(stream); 464 // Decode |stream| and update |object| with the decoded information. Returns 467 // * |stream| end 470 Decode(Struct* object, InputStreamBuffer* stream) argument [all...] |
/system/nvram/messages/ |
H A D | io.cpp | 38 // Encodes |value| in varint format and writes the result to |stream|. 39 bool EncodeVarint(OutputStreamBuffer* stream, uint64_t value) { argument 42 if (!stream->WriteByte(byte)) { 50 // Read a varint-encoded number from stream, decode it and store the result in
|
/system/sepolicy/tools/ |
H A D | checkfc.c | 139 static void dump_char_array(FILE *stream, const char * const *strings) argument 144 fprintf(stream, "\""); 149 fprintf(stream, fmt, s);
|
/system/media/audio/include/system/ |
H A D | audio.h | 235 audio_stream_type_t stream_type; // stream type 238 bool has_video; // true if stream is tied to a video stream 267 /* common audio stream configuration parameters 392 audio_module_handle_t hw_module; /* module the stream is attached to */ 393 audio_io_handle_t handle; /* I/O handle of the input/output stream */ 396 audio_stream_type_t stream; member in union:audio_port_config_mix_ext::__anon1837 444 audio_module_handle_t hw_module; /* module the stream is attached to */ 445 audio_io_handle_t handle; /* I/O handle of the input.output stream */ 523 int32_t position_frames; /**< increasing 32 bit frame count reset when stream [all...] |
H A D | audio_policy.h | 95 static inline bool audio_is_low_visibility(audio_stream_type_t stream) argument 97 switch (stream) {
|
/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/media/brillo/audio/audioservice/ |
H A D | audio_daemon.cpp | 177 void AudioDaemon::VolumeCallback(audio_stream_type_t stream, argument 185 VolumeCallback(stream, previous_index, current_index); 188 brillo_audio_service_->OnVolumeChanged(stream, previous_index, current_index);
|
H A D | audio_service_callback.cpp | 60 Status AudioServiceCallback::OnVolumeChanged(int stream, argument 64 static_cast<audio_stream_type_t>(stream));
|
H A D | audio_volume_handler.cpp | 35 for (auto stream : kSupportedStreams_) { 36 step_sizes_.emplace(stream, kDefaultStepSize_); 57 int AudioVolumeHandler::ConvertToUserDefinedIndex(audio_stream_type_t stream, argument 59 return index / step_sizes_[stream]; 62 int AudioVolumeHandler::ConvertToInternalIndex(audio_stream_type_t stream, argument 64 return index * step_sizes_[stream]; 67 void AudioVolumeHandler::TriggerCallback(audio_stream_type_t stream, argument 71 ConvertToUserDefinedIndex(stream, previous_index); 73 ConvertToUserDefinedIndex(stream, current_index); 75 stream, 91 GetVolumeMaxSteps(audio_stream_type_t stream) argument 95 SetVolumeMaxSteps(audio_stream_type_t stream, int max_steps) argument 103 GetVolumeCurrentIndex(audio_stream_type_t stream, audio_devices_t device) argument 112 GetVolumeIndex(audio_stream_type_t stream, audio_devices_t device) argument 118 SetVolumeIndex(audio_stream_type_t stream, audio_devices_t device, int index) argument 131 PersistVolumeConfiguration(audio_stream_type_t stream, audio_devices_t device, int index) argument 176 SetVolumeControlStream(audio_stream_type_t stream) argument 180 GetNewVolumeIndex(int previous_index, int direction, audio_stream_type_t stream) argument 192 AdjustStreamVolume(audio_stream_type_t stream, int direction) argument [all...] |
H A D | brillo_audio_client.cpp | 151 int stream; local 152 auto status = brillo_audio_service_->GetVolumeControlStream(&stream); 154 static_cast<audio_stream_type_t>(stream));
|
H A D | brillo_audio_client_helpers.cpp | 44 audio_stream_type_t stream) { 45 switch (stream) { 43 GetBAudioUsage( audio_stream_type_t stream) argument
|
H A D | brillo_audio_service_impl.cpp | 74 Status BrilloAudioServiceImpl::GetMaxVolumeSteps(int stream, argument 82 static_cast<audio_stream_type_t>(stream)); 86 Status BrilloAudioServiceImpl::SetMaxVolumeSteps(int stream, int max_steps) { argument 93 static_cast<audio_stream_type_t>(stream), max_steps); 99 Status BrilloAudioServiceImpl::SetVolumeIndex(int stream, argument 108 volume_handler->SetVolumeIndex(static_cast<audio_stream_type_t>(stream), 116 Status BrilloAudioServiceImpl::GetVolumeIndex(int stream, argument 125 volume_handler->GetVolumeIndex(static_cast<audio_stream_type_t>(stream), 150 Status BrilloAudioServiceImpl::SetVolumeControlStream(int stream) { argument 157 static_cast<audio_stream_type_t>(stream)); 185 OnVolumeChanged(audio_stream_type_t stream, int previous_index, int current_index) argument [all...] |
/system/libhidl/base/ |
H A D | Status.cpp | 126 std::ostream& operator<< (std::ostream& stream, const Status& s) { argument 128 stream << "No error"; 130 stream << "Status(" << exceptionToString(s.exceptionCode()) << "): '"; 132 stream << statusToString(s.transactionError()) << ": "; 134 stream << s.exceptionMessage() << "'"; 136 return 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) /* NOLINT */ 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/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 | 145 void testPrint(FILE *stream, const char *fmt, ...) argument 152 if (stream == stderr) { 157 vfprintf(stream, fmt, args); 158 fputc('\n', stream);
|
/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 | 1228 // Returns a console handle if |stream| is a console, otherwise returns nullptr. 1229 static HANDLE _get_console_handle(FILE* const stream) { argument 1232 const int fd = fileno(stream); 2358 static int _console_write_utf8(const char* const buf, const size_t buf_size, FILE* stream, argument 2403 // Flush any stream buffering so that our output is afterwards which 2405 (void)fflush(stream); 2422 static int _console_vfprintf(const HANDLE console, FILE* stream, 2428 static int _console_vfprintf(const HANDLE console, FILE* stream, argument 2437 const int result = _console_write_utf8(output_utf8.c_str(), output_utf8.length(), stream, 2449 int adb_vfprintf(FILE *stream, cons argument 2473 adb_fprintf(FILE *stream, const char *format, ...) argument 2495 adb_fputs(const char* buf, FILE* stream) argument 2504 adb_fputc(int ch, FILE* stream) argument 2528 _console_fwrite(const void* ptr, size_t size, size_t nmemb, FILE* stream, HANDLE console) argument 2540 adb_fwrite(const void* ptr, size_t size, size_t nmemb, FILE* stream) argument [all...] |
/system/core/base/ |
H A D | logging.cpp | 437 std::ostream& LogMessage::stream() { function in class:android::base::LogMessage
|
/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/core/libziparchive/ |
H A D | zip_archive.cc | 80 // We encountered a Zlib error when inflating a stream from this file. 898 static inline int zlib_inflateInit2(z_stream* stream, int window_bits) { argument 899 return inflateInit2(stream, window_bits); 912 * Initialize the zlib stream struct. 940 auto zstream_deleter = [](z_stream* stream) { 941 inflateEnd(stream); /* free up any allocated structures */ 989 // stream.adler holds the crc32 value for such streams.
|
H A D | zip_archive_stream_entry.cc | 19 // Read-only stream access to Zip Archive entries. 140 static inline int zlib_inflateInit2(z_stream* stream, int window_bits) { argument 141 return inflateInit2(stream, window_bits); 150 // Initialize the zlib stream struct. 281 ZipArchiveStreamEntry* stream = nullptr; local 283 stream = new ZipArchiveStreamEntryCompressed(handle); 285 stream = new ZipArchiveStreamEntryUncompressed(handle); 287 if (stream && !stream->Init(entry)) { 288 delete stream; 297 ZipArchiveStreamEntry* stream = nullptr; local [all...] |
H A D | zip_archive_test.cc | 542 std::unique_ptr<ZipArchiveStreamEntry> stream; local 544 stream.reset(ZipArchiveStreamEntry::CreateRaw(handle, *entry)); 551 stream.reset(ZipArchiveStreamEntry::Create(handle, *entry)); 555 ASSERT_TRUE(stream.get() != nullptr); 558 while ((data = stream->Read()) != nullptr) { 563 ASSERT_EQ(verified, stream->Verify());
|
H A D | zip_writer.cc | 83 static void DeleteZStream(z_stream* stream) { argument 84 deflateEnd(stream); 85 delete stream;
|