/system/media/brillo/audio/audioservice/ |
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 | audio_service_callback.cpp | 60 Status AudioServiceCallback::OnVolumeChanged(int stream, argument 64 static_cast<audio_stream_type_t>(stream));
|
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 | 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_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...] |
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...] |
/system/core/debuggerd/common/include/ |
H A D | dump_type.h | 30 inline std::ostream& operator<<(std::ostream& stream, const DebuggerdDumpType& rhs) { argument 33 stream << "kDebuggerdNativeBacktrace"; 36 stream << "kDebuggerdTombstone"; 39 stream << "kDebuggerdJavaBacktrace"; 42 stream << "kDebuggerdAnyIntercept"; 45 stream << "[unknown]"; 48 return 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
|
/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/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/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/core/libziparchive/ |
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. 280 ZipArchiveStreamEntry* stream = nullptr; local 282 stream = new ZipArchiveStreamEntryCompressed(handle); 284 stream = new ZipArchiveStreamEntryUncompressed(handle); 286 if (stream && !stream->Init(entry)) { 287 delete stream; 296 ZipArchiveStreamEntry* stream = nullptr; local [all...] |
H A D | zip_archive_test.cc | 518 std::unique_ptr<ZipArchiveStreamEntry> stream; local 520 stream.reset(ZipArchiveStreamEntry::CreateRaw(handle, *entry)); 527 stream.reset(ZipArchiveStreamEntry::Create(handle, *entry)); 531 ASSERT_TRUE(stream.get() != nullptr); 534 while ((data = stream->Read()) != nullptr) { 539 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;
|
/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/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/bt/hci/src/ |
H A D | hci_packet_factory.cc | 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 74 make_command(HCI_READ_LOCAL_EXT_FEATURES, parameter_size, &stream); 76 UINT8_TO_STREAM(stream, page_number); 81 uint8_t* stream; local 91 uint8_t* stream; local 101 uint8_t* stream; local 111 uint8_t* stream; local 159 uint8_t* stream; local 178 uint8_t* stream = packet->data; local [all...] |
H A D | hci_packet_parser.cc | 48 uint8_t* stream = read_command_complete_header(response, HCI_READ_BUFFER_SIZE, local 50 CHECK(stream != NULL); 51 STREAM_TO_UINT16(*data_size_ptr, stream); 52 STREAM_SKIP_UINT8(stream); // skip the sco packet length 53 STREAM_TO_UINT16(*acl_buffer_count_ptr, stream); 60 uint8_t* stream = read_command_complete_header( local 62 CHECK(stream != NULL); 63 STREAM_TO_UINT8(bt_version->hci_version, stream); 64 STREAM_TO_UINT16(bt_version->hci_revision, stream); 65 STREAM_TO_UINT8(bt_version->lmp_version, stream); 75 uint8_t* stream = read_command_complete_header( local 90 uint8_t* stream = read_command_complete_header( local 101 uint8_t* stream = local 114 uint8_t* stream = read_command_complete_header( local 131 uint8_t* stream = read_command_complete_header( local 142 uint8_t* stream = read_command_complete_header( local 153 uint8_t* stream = local 164 uint8_t* stream = read_command_complete_header( local 176 uint8_t* stream = read_command_complete_header( local 185 uint8_t* stream = read_command_complete_header( local 192 uint8_t* stream = read_command_complete_header( local 202 uint8_t* stream = read_command_complete_header( local 215 uint8_t* stream = response->data + response->offset; local [all...] |
H A D | packet_fragmenter.cc | 62 uint8_t* stream = packet->data + packet->offset; local 79 STREAM_TO_UINT16(continuation_handle, stream); 84 stream = packet->data + packet->offset; 85 STREAM_SKIP_UINT16(stream); 86 UINT16_TO_STREAM(stream, max_data_size); 96 stream = packet->data + packet->offset; 97 UINT16_TO_STREAM(stream, continuation_handle); 98 UINT16_TO_STREAM(stream, remaining_length - HCI_ACL_PREAMBLE_SIZE); 122 uint8_t* stream = packet->data; local 127 STREAM_TO_UINT16(handle, stream); [all...] |
H A D | hci_layer.cc | 314 uint8_t* stream = command->data + command->offset; local 315 STREAM_TO_UINT16(wait_entry->opcode, stream); 333 uint8_t* stream = command->data + command->offset; local 334 STREAM_TO_UINT16(wait_entry->opcode, stream); 541 uint8_t* stream = packet->data; local 546 STREAM_TO_UINT8(event_code, stream); 547 STREAM_SKIP_UINT8(stream); // Skip the parameter total length field 550 STREAM_TO_UINT8(credits, stream); 551 STREAM_TO_UINT16(opcode, stream); 576 STREAM_TO_UINT8(status, stream); [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/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) {
|
/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/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);
|