OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:AudioHardware
(Results
1 - 25
of
35
) sorted by null
1
2
/cts/suite/audio_quality/test/
AudioRecordPlayLocalTest.cpp
25
android::sp<
AudioHardware
> createRecordingHw() {
26
return
AudioHardware
::createAudioHw(true, false);
29
android::sp<
AudioHardware
> createPlaybackHw() {
30
return
AudioHardware
::createAudioHw(true, true);
AudioHardwareTest.cpp
18
#include <audio/
AudioHardware
.h>
27
int hwId =
AudioHardware
::detectAudioHw();
32
android::sp<
AudioHardware
> playback =
AudioHardware
::createAudioHw(true, true);
34
android::sp<
AudioHardware
> recording =
AudioHardware
::createAudioHw(true, false);
41
android::sp<
AudioHardware
> playback =
AudioHardware
::createAudioHw(false, true, testCase);
43
android::sp<
AudioHardware
> recording =
AudioHardware
::createAudioHw(false, false, testCase)
[
all
...]
AudioSignalFactoryTest.cpp
26
AudioHardware
::SamplingRate samplingRate, int signalFreq, int samples) {
27
ASSERT_TRUE(buffer->getSize() == (unsigned int)(
AudioHardware
::E2BPS * 2 * samples));
42
const int signalFreq =
AudioHardware
::ESampleRate_44100/100;
44
android::sp<Buffer> buffer = AudioSignalFactory::generateSineWave(
AudioHardware
::E2BPS,
45
maxPositive,
AudioHardware
::ESampleRate_44100, signalFreq, samples);
46
testSignalBasic(buffer, maxPositive,
AudioHardware
::ESampleRate_44100, signalFreq, samples);
51
const int signalFreq =
AudioHardware
::ESampleRate_44100/100;
53
android::sp<Buffer> buffer = AudioSignalFactory::generateWhiteNoise(
AudioHardware
::E2BPS,
55
testSignalBasic(buffer, maxPositive,
AudioHardware
::ESampleRate_44100, signalFreq, samples);
AudioRecordPlayTestCommon.h
25
#include <audio/
AudioHardware
.h>
37
android::sp<
AudioHardware
> mAudioRecordingHw;
38
android::sp<
AudioHardware
> mAudioPlaybackHw;
42
static const int NUMBER_SAMPLES =
AudioHardware
::SAMPLES_PER_ONE_GO * 4;
50
mBufferPlayback = AudioSignalFactory::generateSineWave(
AudioHardware
::E2BPS,
51
MAX_POSITIVE_AMPLITUDE,
AudioHardware
::ESampleRate_44100,
66
ASSERT_TRUE(mAudioPlaybackHw->prepare(
AudioHardware
::ESampleRate_44100, DEFAULT_VOLUME));
67
ASSERT_TRUE(mAudioRecordingHw->prepare(
AudioHardware
::ESampleRate_44100, DEFAULT_VOLUME));
85
virtual android::sp<
AudioHardware
> createRecordingHw() = 0;
86
virtual android::sp<
AudioHardware
> createPlaybackHw() = 0
[
all
...]
AudioPlayTestCommon.h
24
#include <audio/
AudioHardware
.h>
38
android::sp<
AudioHardware
> mAudioHw;
42
static const int SIGNAL_LENGTH =
AudioHardware
::SAMPLES_PER_ONE_GO * 2;
52
mBuffer = AudioSignalFactory::generateSineWave(
AudioHardware
::E2BPS,
53
MAX_POSITIVE_AMPLITUDE,
AudioHardware
::ESampleRate_44100,
65
ASSERT_TRUE(mAudioHw->prepare(
AudioHardware
::ESampleRate_44100, DEFAULT_VOLUME));
75
ASSERT_TRUE(mAudioHw->prepare(
AudioHardware
::ESampleRate_44100, DEFAULT_VOLUME));
84
ASSERT_TRUE(mAudioHw->prepare(
AudioHardware
::ESampleRate_44100, DEFAULT_VOLUME));
88
virtual android::sp<
AudioHardware
> createAudioHw() = 0;
AudioPlaybackLocalTest.cpp
22
#include <audio/
AudioHardware
.h>
35
android::sp<
AudioHardware
> createAudioHw() {
36
return
AudioHardware
::createAudioHw(true, true);
AudioRecordingLocalTest.cpp
22
#include <audio/
AudioHardware
.h>
35
android::sp<
AudioHardware
> createAudioHw() {
36
return
AudioHardware
::createAudioHw(true, false);
AudioLocalTest.cpp
30
AudioHardware
::SamplingRate mSamplingRate;
39
: mSamplingRate(
AudioHardware
::ESamplingRateInvald),
48
virtual bool doPrepare(
AudioHardware
::SamplingRate samplingRate, int samplesInOneGo) {
71
android::sp<
AudioHardware
> createAudioHw() {
72
android::sp<
AudioHardware
> hw(new AudioPlayerDummy());
ClientInterfaceTest.cpp
65
const int signalFreq =
AudioHardware
::ESampleRate_44100/100;
67
android::sp<Buffer> buffer = AudioSignalFactory::generateSineWave(
AudioHardware
::E2BPS,
68
maxPositive,
AudioHardware
::ESampleRate_44100, signalFreq, samples);
72
ASSERT_TRUE(audio->startPlayback(true,
AudioHardware
::ESampleRate_44100,
73
AudioHardware
::EModeVoice, 100, id, 1));
84
const int signalFreq =
AudioHardware
::ESampleRate_44100 / 100;
88
ASSERT_TRUE(audio->startRecording(false,
AudioHardware
::ESampleRate_44100,
89
AudioHardware
::EModeVoice, 100, buffer));
MixerTest.cpp
22
#include <audio/
AudioHardware
.h>
38
int hwId =
AudioHardware
::detectAudioHw();
/cts/suite/audio_quality/lib/include/audio/
AudioSignalFactory.h
23
#include "
AudioHardware
.h"
30
static android::sp<Buffer> generateSineWave(
AudioHardware
::BytesPerSample BPS,
31
int maxPositive,
AudioHardware
::SamplingRate samplingRate, int signalFreq, int samples,
33
static android::sp<Buffer> generateWhiteNoise(
AudioHardware
::BytesPerSample BPS,
35
static android::sp<Buffer> generateZeroSound(
AudioHardware
::BytesPerSample BPS,
AudioLocal.h
26
#include "
AudioHardware
.h"
33
class AudioLocal: public android::Thread, public
AudioHardware
{
36
virtual bool prepare(
AudioHardware
::SamplingRate samplingRate, int gain,
37
int mode =
AudioHardware
::EModeVoice);
46
virtual bool doPrepare(
AudioHardware
::SamplingRate, int samplesInOneGo) = 0;
71
AudioHardware
::SamplingRate mSamplingRate;
AudioHardware.h
28
class
AudioHardware
: virtual public android::RefBase {
57
static android::sp<
AudioHardware
> createAudioHw(bool local, bool playback,
60
virtual ~
AudioHardware
();
AudioRemote.h
21
#include "
AudioHardware
.h"
26
// wrapper in
AudioHardware
interface
27
class AudioRemote: public
AudioHardware
{
29
virtual bool prepare(
AudioHardware
::SamplingRate samplingRate, int volume,
30
int mode =
AudioHardware
::EModeVoice);
38
AudioHardware
::SamplingRate mSamplingRate;
AudioPlaybackLocal.h
33
bool doPrepare(
AudioHardware
::SamplingRate, int samplesInOneGo);
AudioRecordingLocal.h
33
bool doPrepare(
AudioHardware
::SamplingRate, int samplesInOneGo);
/cts/suite/audio_quality/lib/src/audio/
AudioHardware.cpp
25
#include "audio/
AudioHardware
.h"
32
int
AudioHardware
::mHwId = -1;
34
int
AudioHardware
::detectAudioHw()
76
android::sp<
AudioHardware
>
AudioHardware
::createAudioHw(bool local, bool playback,
79
android::sp<
AudioHardware
> hw;
104
AudioHardware
::~
AudioHardware
()
109
bool
AudioHardware
::startPlaybackOrRecordById(const android::String8& id, TaskCase* testCase)
AudioSignalFactory.cpp
23
android::sp<Buffer> AudioSignalFactory::generateSineWave(
AudioHardware
::BytesPerSample BPS,
24
int maxPositive,
AudioHardware
::SamplingRate samplingRate, int signalFreq,
30
ASSERT(BPS ==
AudioHardware
::E2BPS);
45
android::sp<Buffer> AudioSignalFactory::generateWhiteNoise(
AudioHardware
::BytesPerSample BPS,
51
ASSERT(BPS ==
AudioHardware
::E2BPS);
70
android::sp<Buffer> AudioSignalFactory::generateZeroSound(
AudioHardware
::BytesPerSample BPS,
76
ASSERT(BPS ==
AudioHardware
::E2BPS);
/cts/suite/audio_quality/lib/include/task/
TaskInput.h
23
#include "audio/
AudioHardware
.h"
35
android::sp<
AudioHardware
> mHw;
TaskOutput.h
22
#include "audio/
AudioHardware
.h"
33
android::sp<
AudioHardware
> mHw;
/cts/suite/audio_quality/lib/src/task/
TaskInput.cpp
20
#include "audio/
AudioHardware
.h"
52
android::sp<
AudioHardware
> hw =
AudioHardware
::createAudioHw(localDevice, false,
62
size_t bufferSize = mRecordingTimeInMs *
AudioHardware
::ESampleRate_44100 / 1000 *
69
if (!hw->prepare(
AudioHardware
::ESampleRate_44100, mVolume, mMode)) {
TaskAsync.cpp
26
mMode(
AudioHardware
::EModeVoice),
83
mMode =
AudioHardware
::EModeVoice;
85
mMode =
AudioHardware
::EModeMusic;
TaskOutput.cpp
48
android::sp<
AudioHardware
> hw =
AudioHardware
::createAudioHw(localDevice, true, getTestCase());
53
if (!hw->prepare(
AudioHardware
::ESampleRate_44100, mVolume, mMode)) {
TaskSound.cpp
82
int samples = time *
AudioHardware
::ESampleRate_44100 / 1000;
83
buffer = AudioSignalFactory::generateSineWave(
AudioHardware
::E2BPS, amplitude,
84
AudioHardware
::ESampleRate_44100, freq, samples, true);
92
int samples = time *
AudioHardware
::ESampleRate_44100 / 1000;
93
buffer = AudioSignalFactory::generateWhiteNoise(
AudioHardware
::E2BPS, amplitude,
/external/chromium_org/media/audio/mac/
audio_device_listener_mac.h
8
#include <CoreAudio/
AudioHardware
.h>
Completed in 210 milliseconds
1
2