Home
last modified time | relevance | path

Searched refs:cbOld (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libaudioclient/tests/
Daudiotrack_tests.cpp153 sp<OnAudioDeviceUpdateNotifier> cbOld = sp<OnAudioDeviceUpdateNotifier>::make(); in TEST() local
154 EXPECT_EQ(OK, ap->getAudioTrackHandle()->addAudioDeviceCallback(cbOld)); in TEST()
155 EXPECT_EQ(INVALID_OPERATION, ap->getAudioTrackHandle()->addAudioDeviceCallback(cbOld)); in TEST()
160 EXPECT_EQ(AUDIO_IO_HANDLE_NONE, cbOld->mAudioIo); in TEST()
161 EXPECT_EQ(AUDIO_PORT_HANDLE_NONE, cbOld->mDeviceId); in TEST()
173 EXPECT_EQ(INVALID_OPERATION, ap->getAudioTrackHandle()->removeAudioDeviceCallback(cbOld)); in TEST()
Daudiorecord_tests.cpp117 sp<OnAudioDeviceUpdateNotifier> cbOld = sp<OnAudioDeviceUpdateNotifier>::make(); in TEST_F() local
118 EXPECT_EQ(OK, mAC->getAudioRecordHandle()->addAudioDeviceCallback(cbOld)); in TEST_F()
119 EXPECT_EQ(INVALID_OPERATION, mAC->getAudioRecordHandle()->addAudioDeviceCallback(cbOld)); in TEST_F()
123 EXPECT_EQ(AUDIO_IO_HANDLE_NONE, cbOld->mAudioIo); in TEST_F()
124 EXPECT_EQ(AUDIO_PORT_HANDLE_NONE, cbOld->mDeviceId); in TEST_F()
128 EXPECT_EQ(INVALID_OPERATION, mAC->getAudioRecordHandle()->removeAudioDeviceCallback(cbOld)); in TEST_F()