OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:audioRecord
(Results
1 - 8
of
8
) sorted by null
/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
...]
/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/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
;
532
AudioRecord
audioRecord
= null;
562
int minBufferSize =
AudioRecord
.getMinBufferSize(
587
audioRecord
= new
AudioRecord
(attributes, format, bytesRequired,
606
audioRecord
.startRecording();
608
int bytesRead =
audioRecord
.read(buffer, 0, buffer.length);
620
audioRecord
.stop();
625
if (
audioRecord
!= null)
[
all
...]
/frameworks/av/include/media/
AudioRecord.h
36
class
AudioRecord
: public RefBase
40
/* Events used by
AudioRecord
callback function (callback_t).
41
* Keep in sync with frameworks/base/media/java/android/media/
AudioRecord
.java NATIVE_EVENT_*.
93
* event: type of event notified (see enum
AudioRecord
::event_type).
96
* - EVENT_MORE_DATA: pointer to
AudioRecord
::Buffer struct. The callback must not read
108
* an
AudioRecord
object.
123
/* How data is transferred from
AudioRecord
132
/* Constructs an uninitialized
AudioRecord
. No connection with
139
AudioRecord
(const String16& opPackageName);
141
/* Creates an
AudioRecord
object and registers it with AudioFlinger
[
all
...]
/frameworks/av/media/libmedia/
AudioRecord.cpp
19
#define LOG_TAG "
AudioRecord
"
25
#include <media/
AudioRecord
.h>
36
status_t
AudioRecord
::getMinFrameCount(
68
AudioRecord
::
AudioRecord
(const String16 &opPackageName)
75
AudioRecord
::
AudioRecord
(
105
AudioRecord
::~
AudioRecord
()
114
mAudioRecordThread->requestExit(); // see comment in
AudioRecord
.
[
all
...]
/frameworks/base/media/java/android/media/
AudioRecord.java
43
* The
AudioRecord
class manages the audio resources for Java applications
45
* achieved by "pulling" (reading) the data from the
AudioRecord
object. The
46
* application is responsible for polling the
AudioRecord
object in time using one of
49
* on the audio data storage format that is the most convenient for the user of
AudioRecord
.
50
* <p>Upon creation, an
AudioRecord
object initializes its associated audio buffer that it will
52
* determines how long an
AudioRecord
can record before "over-running" data that has not
56
public class
AudioRecord
implements AudioRouting
64
* indicates
AudioRecord
state is not successfully initialized.
68
* indicates
AudioRecord
state is ready to be used
73
* indicates
AudioRecord
recording state is not recordin
[
all
...]
Completed in 184 milliseconds