/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/media/brillo/audio/audioservice/aidl/android/brillo/brilloaudioservice/ |
H A D | IBrilloAudioService.aidl | 45 // Get the maximum number of steps used for a given stream. 46 int GetMaxVolumeSteps(int stream); 48 // Set the maximum number of steps to use for a given stream. 49 void SetMaxVolumeSteps(int stream, int max_steps); 51 // Set the volume for a given (stream, device) tuple. 52 void SetVolumeIndex(int stream, int device, int index); 54 // Get the current volume for a given (stream, device) tuple. 55 int GetVolumeIndex(int stream, int device); 57 // Get stream used when volume buttons are pressed. 60 // Set default stream t [all...] |
/system/bt/hci/src/ |
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 | 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 | 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...] |
/system/media/brillo/audio/audioservice/ |
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 | audio_volume_handler.h | 62 // Get the stream used when volume buttons are pressed. 64 // Returns an audio_stream_t representing the stream. If 69 // Set the stream to use when volume buttons are pressed. 71 // |stream| is an int representing the stream. Passing STREAM_DEFAULT to this 73 void SetVolumeControlStream(audio_stream_type_t stream); 81 // Set the max steps for an audio stream. 83 // |stream| is an int representing the stream. 84 // |max_index| is an int representing the maximum index to set for |stream| [all...] |
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.h | 44 virtual Status GetMaxVolumeSteps(int stream, int* _aidl_return) = 0; 45 virtual Status SetMaxVolumeSteps(int stream, int max_steps) = 0; 46 virtual Status SetVolumeIndex(int stream, int device, int index) = 0; 47 virtual Status GetVolumeIndex(int stream, int device, int* _aidl_return) = 0; 49 virtual Status SetVolumeControlStream(int stream) = 0; 77 // |stream| is an audio_stream_type_t representing the stream. 80 virtual void OnVolumeChanged(audio_stream_type_t stream,
|
H A D | brillo_audio_service_impl.h | 32 Status GetMaxVolumeSteps(int stream, int* _aidl_return) override; 33 Status SetMaxVolumeSteps(int stream, int max_steps) override; 34 Status SetVolumeIndex(int stream, int device, int index) override; 35 Status GetVolumeIndex(int stream, int device, int* _aidl_return) override; 37 Status SetVolumeControlStream(int stream) override; 65 // |stream| is an int representing the stream. 68 void OnVolumeChanged(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 | brillo_audio_client_helpers.h | 33 static BAudioUsage GetBAudioUsage(audio_stream_type_t stream);
|
H A D | audio_service_callback.cpp | 60 Status AudioServiceCallback::OnVolumeChanged(int stream, argument 64 static_cast<audio_stream_type_t>(stream));
|
/system/media/brillo/audio/audioservice/test/ |
H A D | brillo_audio_service_mock.h | 35 MOCK_METHOD2(GetMaxVolumeSteps, Status(int stream, int* _aidl_return)); 36 MOCK_METHOD2(SetMaxVolumeSteps, Status(int stream, int max_steps)); 37 MOCK_METHOD3(SetVolumeIndex, Status(int stream, int device, int index)); 39 Status(int stream, int device, int* _aidl_return)); 41 MOCK_METHOD1(SetVolumeControlStream, Status(int stream));
|
/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. 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...] |
/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/bt/audio_a2dp_hw/src/ |
H A D | audio_a2dp_hw.cc | 111 /* move ctrl_fd outside output stream and keep open until HAL unloaded ? */ 123 struct audio_stream_out stream; member in struct:a2dp_stream_out 130 struct audio_stream_in stream; member in struct:a2dp_stream_in 151 static size_t out_get_buffer_size(const struct audio_stream* stream); 371 // Sends control info for stream |common|. The data to send is stored in 604 // Update the output stream configuration 797 /* prevent any stray output writes from autostarting the stream 843 static ssize_t out_write(struct audio_stream_out* stream, const void* buffer, argument 845 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; 853 DEBUG("stream suspende 899 out_get_sample_rate(const struct audio_stream* stream) argument 907 out_set_sample_rate(struct audio_stream* stream, uint32_t rate) argument 917 out_get_buffer_size(const struct audio_stream* stream) argument 1029 out_get_channels(const struct audio_stream* stream) argument 1037 out_get_format(const struct audio_stream* stream) argument 1043 out_set_format(UNUSED_ATTR struct audio_stream* stream, UNUSED_ATTR audio_format_t format) argument 1049 out_standby(struct audio_stream* stream) argument 1064 out_dump(UNUSED_ATTR const struct audio_stream* stream, UNUSED_ATTR int fd) argument 1070 out_set_parameters(struct audio_stream* stream, const char* kvpairs) argument 1107 out_get_parameters(const struct audio_stream* stream, const char* keys) argument 1222 out_get_latency(const struct audio_stream_out* stream) argument 1237 out_set_volume(UNUSED_ATTR struct audio_stream_out* stream, UNUSED_ATTR float left, UNUSED_ATTR float right) argument 1246 out_get_presentation_position(const struct audio_stream_out* stream, uint64_t* frames, struct timespec* timestamp) argument 1267 out_get_render_position(const struct audio_stream_out* stream, uint32_t* dsp_frames) argument 1285 out_add_audio_effect(UNUSED_ATTR const struct audio_stream* stream, UNUSED_ATTR effect_handle_t effect) argument 1291 out_remove_audio_effect( UNUSED_ATTR const struct audio_stream* stream, UNUSED_ATTR effect_handle_t effect) argument 1302 in_get_sample_rate(const struct audio_stream* stream) argument 1309 in_set_sample_rate(struct audio_stream* stream, uint32_t rate) argument 1320 in_get_buffer_size( UNUSED_ATTR const struct audio_stream* stream) argument 1326 in_get_channels(const struct audio_stream* stream) argument 1333 in_get_format( UNUSED_ATTR const struct audio_stream* stream) argument 1339 in_set_format(UNUSED_ATTR struct audio_stream* stream, UNUSED_ATTR audio_format_t format) argument 1348 in_standby(UNUSED_ATTR struct audio_stream* stream) argument 1353 in_dump(UNUSED_ATTR const struct audio_stream* stream, UNUSED_ATTR int fd) argument 1359 in_set_parameters(UNUSED_ATTR struct audio_stream* stream, UNUSED_ATTR const char* kvpairs) argument 1365 in_get_parameters(UNUSED_ATTR const struct audio_stream* stream, UNUSED_ATTR const char* keys) argument 1371 in_set_gain(UNUSED_ATTR struct audio_stream_in* stream, UNUSED_ATTR float gain) argument 1377 in_read(struct audio_stream_in* stream, void* buffer, size_t bytes) argument 1435 in_get_input_frames_lost( UNUSED_ATTR struct audio_stream_in* stream) argument 1441 in_add_audio_effect(UNUSED_ATTR const struct audio_stream* stream, UNUSED_ATTR effect_handle_t effect) argument 1447 in_remove_audio_effect(UNUSED_ATTR const struct audio_stream* stream, UNUSED_ATTR effect_handle_t effect) argument 1561 adev_close_output_stream(struct audio_hw_device* dev, struct audio_stream_out* stream) argument 1728 adev_close_input_stream(struct audio_hw_device* dev, struct audio_stream_in* stream) argument [all...] |
/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/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/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/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/ |
H A D | nvram_messages.cpp | 178 BlobOutputStreamBuffer stream(blob); 179 return nvram::proto::Encode(msg, &stream) && stream.Truncate(); 184 ArrayOutputStreamBuffer stream(buffer, *size); 185 if (!nvram::proto::Encode(msg, &stream)) { 188 *size = stream.bytes_written(); 194 InputStreamBuffer stream(data, size); 195 return nvram::proto::Decode(msg, &stream) && stream.Done();
|
/system/nvram/core/ |
H A D | persistence.cpp | 47 BlobOutputStreamBuffer stream(blob); 48 ProtoWriter writer(&stream); 51 !stream.Truncate()) { 68 InputStreamBuffer stream(blob.data(), blob.size()); 69 ProtoReader reader(&stream);
|
/system/tools/hidl/ |
H A D | Hash.cpp | 43 std::ifstream stream(path); 45 fileStream << stream.rdbuf(); 116 std::ifstream stream(path); 117 if (!stream) { 125 while(std::getline(stream, line)) {
|
/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...] |