Lines Matching refs:mStream
33 mStream(stream) { in StreamHalLocal()
36 if (mStream != nullptr /* && mStreamPowerLog.isUserDebugOrEngBuild() */) { in StreamHalLocal()
37 mStreamPowerLog.init(mStream->get_sample_rate(mStream), in StreamHalLocal()
38 mStream->get_channels(mStream), in StreamHalLocal()
39 mStream->get_format(mStream)); in StreamHalLocal()
44 mStream = 0; in ~StreamHalLocal()
49 *rate = mStream->get_sample_rate(mStream); in getSampleRate()
54 *size = mStream->get_buffer_size(mStream); in getBufferSize()
59 *mask = mStream->get_channels(mStream); in getChannelMask()
64 *format = mStream->get_format(mStream); in getFormat()
70 *sampleRate = mStream->get_sample_rate(mStream); in getAudioProperties()
71 *mask = mStream->get_channels(mStream); in getAudioProperties()
72 *format = mStream->get_format(mStream); in getAudioProperties()
77 return mStream->set_parameters(mStream, kvPairs.string()); in setParameters()
81 char *halValues = mStream->get_parameters(mStream, keys.string()); in getParameters()
102 return mStream->standby(mStream); in standby()
106 status_t status = mStream->dump(mStream, fd); in dump()
118 : StreamHalLocal(&stream->common, device), mStream(stream) { in StreamOutHalLocal()
123 mDevice->closeOutputStream(mStream); in ~StreamOutHalLocal()
124 mStream = 0; in ~StreamOutHalLocal()
128 *size = audio_stream_out_frame_size(mStream); in getFrameSize()
133 *latency = mStream->get_latency(mStream); in getLatency()
138 if (mStream->set_volume == NULL) return INVALID_OPERATION; in setVolume()
139 return mStream->set_volume(mStream, left, right); in setVolume()
150 ssize_t writeResult = mStream->write(mStream, buffer, bytes); in write()
162 return mStream->get_render_position(mStream, dspFrames); in getRenderPosition()
166 if (mStream->get_next_write_timestamp == NULL) return INVALID_OPERATION; in getNextWriteTimestamp()
167 return mStream->get_next_write_timestamp(mStream, timestamp); in getNextWriteTimestamp()
171 if (mStream->set_callback == NULL) return INVALID_OPERATION; in setCallback()
172 status_t result = mStream->set_callback(mStream, StreamOutHalLocal::asyncCallback, this); in setCallback()
209 *supportsPause = mStream->pause != NULL; in supportsPauseAndResume()
210 *supportsResume = mStream->resume != NULL; in supportsPauseAndResume()
215 if (mStream->pause == NULL) return INVALID_OPERATION; in pause()
216 return mStream->pause(mStream); in pause()
220 if (mStream->resume == NULL) return INVALID_OPERATION; in resume()
221 return mStream->resume(mStream); in resume()
225 *supportsDrain = mStream->drain != NULL; in supportsDrain()
230 if (mStream->drain == NULL) return INVALID_OPERATION; in drain()
231 return mStream->drain(mStream, earlyNotify ? AUDIO_DRAIN_EARLY_NOTIFY : AUDIO_DRAIN_ALL); in drain()
235 if (mStream->flush == NULL) return INVALID_OPERATION; in flush()
236 return mStream->flush(mStream); in flush()
240 if (mStream->get_presentation_position == NULL) return INVALID_OPERATION; in getPresentationPosition()
241 return mStream->get_presentation_position(mStream, frames, timestamp); in getPresentationPosition()
245 if (mStream->update_source_metadata == nullptr) { in updateSourceMetadata()
253 mStream->update_source_metadata(mStream, &metadata); in updateSourceMetadata()
258 if (mStream->start == NULL) return INVALID_OPERATION; in start()
259 return mStream->start(mStream); in start()
263 if (mStream->stop == NULL) return INVALID_OPERATION; in stop()
264 return mStream->stop(mStream); in stop()
269 if (mStream->create_mmap_buffer == NULL) return INVALID_OPERATION; in createMmapBuffer()
270 return mStream->create_mmap_buffer(mStream, minSizeFrames, info); in createMmapBuffer()
274 if (mStream->get_mmap_position == NULL) return INVALID_OPERATION; in getMmapPosition()
275 return mStream->get_mmap_position(mStream, position); in getMmapPosition()
279 : StreamHalLocal(&stream->common, device), mStream(stream) { in StreamInHalLocal()
283 mDevice->closeInputStream(mStream); in ~StreamInHalLocal()
284 mStream = 0; in ~StreamInHalLocal()
288 *size = audio_stream_in_frame_size(mStream); in getFrameSize()
293 return mStream->set_gain(mStream, gain); in setGain()
297 ssize_t readResult = mStream->read(mStream, buffer, bytes); in read()
309 *framesLost = mStream->get_input_frames_lost(mStream); in getInputFramesLost()
314 if (mStream->get_capture_position == NULL) return INVALID_OPERATION; in getCapturePosition()
315 return mStream->get_capture_position(mStream, frames, time); in getCapturePosition()
319 if (mStream->update_sink_metadata == nullptr) { in updateSinkMetadata()
327 mStream->update_sink_metadata(mStream, &metadata); in updateSinkMetadata()
332 if (mStream->start == NULL) return INVALID_OPERATION; in start()
333 return mStream->start(mStream); in start()
337 if (mStream->stop == NULL) return INVALID_OPERATION; in stop()
338 return mStream->stop(mStream); in stop()
343 if (mStream->create_mmap_buffer == NULL) return INVALID_OPERATION; in createMmapBuffer()
344 return mStream->create_mmap_buffer(mStream, minSizeFrames, info); in createMmapBuffer()
348 if (mStream->get_mmap_position == NULL) return INVALID_OPERATION; in getMmapPosition()
349 return mStream->get_mmap_position(mStream, position); in getMmapPosition()
359 if (mStream->get_active_microphones == NULL) return INVALID_OPERATION; in getActiveMicrophones()
362 status_t status = mStream->get_active_microphones(mStream, &mic_array[0], &actual_mics); in getActiveMicrophones()
382 if (mStream->set_microphone_direction == NULL) return INVALID_OPERATION; in setPreferredMicrophoneDirection()
383 return mStream->set_microphone_direction(mStream, direction); in setPreferredMicrophoneDirection()
387 if (mStream->set_microphone_field_dimension == NULL) return INVALID_OPERATION; in setPreferredMicrophoneFieldDimension()
388 return mStream->set_microphone_field_dimension(mStream, zoom); in setPreferredMicrophoneFieldDimension()