HomeSort by relevance Sort by last modified time
    Searched defs:audioRecord (Results 1 - 6 of 6) sorted by null

  /external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
WebRtcAudioRecord.java 19 import android.media.AudioRecord;
54 private AudioRecord audioRecord = null;
74 assertTrue(audioRecord.getRecordingState()
75 == AudioRecord.RECORDSTATE_RECORDING);
79 int bytesRead = audioRecord.read(byteBuffer, byteBuffer.capacity());
83 Logging.e(TAG,"AudioRecord.read failed: " + bytesRead);
84 if (bytesRead == AudioRecord.ERROR_INVALID_OPERATION) {
98 audioRecord.stop();
100 Logging.e(TAG,"AudioRecord.stop failed: " + e.getMessage())
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
RoutingTest.java 25 import android.media.AudioRecord;
40 * AudioTrack / AudioRecord preferred device and routing listener tests.
44 * - the deprecated AudioTrack.OnRoutingChangedListener and AudioRecord.OnRoutingChangedListener
200 private AudioRecord allocAudioRecord() {
202 AudioRecord.getMinBufferSize(
206 AudioRecord audioRecord =
207 new AudioRecord(
212 return audioRecord;
215 private class AudioRecordRoutingListener implements AudioRecord.OnRoutingChangedListener
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
AudioRecordHelper.java 5 import android.media.AudioRecord;
14 * A wrapper on AudioRecord class.
31 private AudioRecord audioRecord;
41 tmpBufferSize = AudioRecord.getMinBufferSize(rate, CHANNEL, ENCODING);
42 AudioRecord testAudioRecord = new AudioRecord(source, rate, CHANNEL, ENCODING,
44 if (testAudioRecord.getState() == AudioRecord.STATE_INITIALIZED) {
76 audioRecord = new AudioRecord(source, sampleRate, CHANNEL, ENCODING, bufferSize)
    [all...]
AudioInputRoutingNotificationsActivity.java 26 import android.media.AudioRecord;
40 * Tests AudioRecord (re)Routing messages.
71 private class AudioRecordRoutingChangeListener implements AudioRecord.OnRoutingChangedListener {
72 public void onRoutingChanged(AudioRecord audioRecord) {
78 AudioDeviceInfo routedDevice = audioRecord.getRoutedDevice();
105 AudioRecord audioRecord = mAudioRecorder.getAudioRecord();
106 audioRecord.addOnRoutingChangedListener(
  /frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
SoundTriggerTestService.java 30 import android.media.AudioRecord;
540 AudioRecord audioRecord = null;
570 int minBufferSize = AudioRecord.getMinBufferSize(
595 audioRecord = new AudioRecord(attributes, format, bytesRequired,
614 audioRecord.startRecording();
616 int bytesRead = audioRecord.read(buffer, 0, buffer.length);
628 audioRecord.stop();
633 if (audioRecord != null)
    [all...]
  /frameworks/av/media/libaudioclient/
AudioRecord.cpp 19 #define LOG_TAG "AudioRecord"
25 #include <media/AudioRecord.h>
36 status_t AudioRecord::getMinFrameCount(
68 AudioRecord::AudioRecord(const String16 &opPackageName)
77 AudioRecord::AudioRecord(
108 AudioRecord::~AudioRecord()
117 mAudioRecordThread->requestExit(); // see comment in AudioRecord.
    [all...]

Completed in 591 milliseconds