Lines Matching refs:mAudioHw
38 android::sp<AudioHardware> mAudioHw; variable
50 mAudioHw = createAudioHw(); in SetUp()
51 ASSERT_TRUE(mAudioHw.get() != NULL); in SetUp()
60 mAudioHw->stopPlaybackOrRecord(); // this stops the thread in TearDown()
61 mAudioHw.clear(); in TearDown()
65 ASSERT_TRUE(mAudioHw->prepare(AudioHardware::ESampleRate_44100, DEFAULT_VOLUME)); in playAll()
66 ASSERT_TRUE(mAudioHw->startPlaybackOrRecord(mBuffer, numberRepetition)); in playAll()
67 ASSERT_TRUE(mAudioHw->waitForCompletion()); in playAll()
68 mAudioHw->stopPlaybackOrRecord(); in playAll()
75 ASSERT_TRUE(mAudioHw->prepare(AudioHardware::ESampleRate_44100, DEFAULT_VOLUME)); in repeatPlayStop()
77 ASSERT_TRUE(mAudioHw->startPlaybackOrRecord(mBuffer, 10)); in repeatPlayStop()
78 mAudioHw->stopPlaybackOrRecord(); in repeatPlayStop()
83 ASSERT_FALSE(mAudioHw->startPlaybackOrRecord(mBuffer)); in playWrongUsage()
84 ASSERT_TRUE(mAudioHw->prepare(AudioHardware::ESampleRate_44100, DEFAULT_VOLUME)); in playWrongUsage()