Lines Matching refs:mManager

223     std::unique_ptr<AudioPolicyTestManager> mManager;  member in AudioPolicyManagerTest
231 mManager.reset(new AudioPolicyTestManager(mConfig, mClient.get())); in SetUp()
232 ASSERT_EQ(NO_ERROR, mManager->initialize()); in SetUp()
233 ASSERT_EQ(NO_ERROR, mManager->initCheck()); in SetUp()
237 mManager.reset(); in TearDown()
270 ASSERT_EQ(NO_ERROR, mManager->dump(pipefd[1])); in dumpToLog()
303 ASSERT_EQ(OK, mManager->getOutputForAttr( in getOutputForAttr()
333 ASSERT_EQ(OK, mManager->getInputForAttr( in getInputForAttr()
345 ret = mManager->listAudioPorts(role, type, &numPorts, nullptr, &generation1); in getAudioPorts()
350 ret = mManager->listAudioPorts(role, type, &numPorts, ports->data(), &generation2); in getAudioPorts()
404 ASSERT_EQ(BAD_VALUE, mManager->createAudioPatch(nullptr, &handle, 0)); in TEST_F()
405 ASSERT_EQ(BAD_VALUE, mManager->createAudioPatch(&patch, nullptr, 0)); in TEST_F()
406 ASSERT_EQ(BAD_VALUE, mManager->createAudioPatch(&patch, &handle, 0)); in TEST_F()
409 ASSERT_EQ(BAD_VALUE, mManager->createAudioPatch(&patch, &handle, 0)); in TEST_F()
412 ASSERT_EQ(BAD_VALUE, mManager->createAudioPatch(&patch, &handle, 0)); in TEST_F()
415 ASSERT_EQ(INVALID_OPERATION, mManager->createAudioPatch(&patch, &handle, 0)); in TEST_F()
421 ASSERT_EQ(INVALID_OPERATION, mManager->createAudioPatch(&patch, &handle, 0)); in TEST_F()
427 ASSERT_EQ(INVALID_OPERATION, mManager->createAudioPatch(&patch, &handle, 0)); in TEST_F()
437 ASSERT_FALSE(mManager->getAvailableInputDevices().isEmpty()); in TEST_F()
439 patchBuilder.addSource(mManager->getAvailableInputDevices()[0]). in TEST_F()
440 addSink(mManager->getConfig().getDefaultOutputDevice()); in TEST_F()
441 ASSERT_EQ(NO_ERROR, mManager->createAudioPatch(patchBuilder.patch(), &handle, uid)); in TEST_F()
594 mManager->getDirectProfilesForAttributes(&attr, audioProfilesVector); in getDirectProfilesForAttributes()
610 mManager->setForceUse(AUDIO_POLICY_FORCE_FOR_ENCODED_SURROUND, in TEST_P()
617 DeviceVector devices = mManager->getAvailableOutputDevices(); in TEST_P()
621 mManager->setMsdOutputPatches(&devices); in TEST_P()
625 mManager->releaseMsdOutputPatches(singleDevice); in TEST_P()
627 mManager->setMsdOutputPatches(&devices); in TEST_P()
629 mManager->releaseMsdOutputPatches(devices); in TEST_P()
684 mManager->releaseOutput(portId); in TEST_P()
695 mManager->releaseOutput(portId); in TEST_P()
712 ASSERT_FALSE(mManager->getAvailableInputDevices().isEmpty()); in TEST_P()
715 addSource(mManager->getAvailableInputDevices(). in TEST_P()
717 addSink(mManager->getAvailableOutputDevices(). in TEST_P()
719 ASSERT_EQ(NO_ERROR, mManager->createAudioPatch(patchBuilder.patch(), &handle, uid)); in TEST_P()
721 AudioPatchCollection patches = mManager->getAudioPatches(); in TEST_P()
743 const auto& primary = mManager->getConfig().getHwModules() in TEST_P()
753 const auto& msd = mManager->getConfig().getHwModules() in TEST_P()
764 DeviceVector outputDevices = mManager->getAvailableOutputDevices(); in TEST_P()
767 mManager->setMsdOutputPatches(&outputDevices); in TEST_P()
773 mManager->releaseMsdOutputPatches(outputDevices); in TEST_P()
813 ASSERT_TRUE(mManager->isDirectOutputSupported(directConfig, attr)); in TEST_P()
814 ASSERT_FALSE(mManager->isDirectOutputSupported(nonDirectConfig, attr)); in TEST_P()
815 ASSERT_FALSE(mManager->isDirectOutputSupported(nonExistentConfig, attr)); in TEST_P()
817 ASSERT_FALSE(mManager->isDirectOutputSupported(msdDirectConfig1, attr)); in TEST_P()
818 ASSERT_FALSE(mManager->isDirectOutputSupported(msdDirectConfig2, attr)); in TEST_P()
819 ASSERT_FALSE(mManager->isDirectOutputSupported(msdNonDirectConfig, attr)); in TEST_P()
821 DeviceVector outputDevices = mManager->getAvailableOutputDevices(); in TEST_P()
824 mManager->setMsdOutputPatches(&outputDevices); in TEST_P()
826 ASSERT_TRUE(mManager->isDirectOutputSupported(directConfig, attr)); in TEST_P()
827 ASSERT_FALSE(mManager->isDirectOutputSupported(nonDirectConfig, attr)); in TEST_P()
828 ASSERT_FALSE(mManager->isDirectOutputSupported(nonExistentConfig, attr)); in TEST_P()
830 ASSERT_TRUE(mManager->isDirectOutputSupported(msdDirectConfig1, attr)); in TEST_P()
831 ASSERT_TRUE(mManager->isDirectOutputSupported(msdDirectConfig2, attr)); in TEST_P()
832 ASSERT_FALSE(mManager->isDirectOutputSupported(msdNonDirectConfig, attr)); in TEST_P()
834 mManager->releaseMsdOutputPatches(outputDevices); in TEST_P()
836 ASSERT_TRUE(mManager->isDirectOutputSupported(directConfig, attr)); in TEST_P()
837 ASSERT_FALSE(mManager->isDirectOutputSupported(nonDirectConfig, attr)); in TEST_P()
838 ASSERT_FALSE(mManager->isDirectOutputSupported(nonExistentConfig, attr)); in TEST_P()
840 ASSERT_FALSE(mManager->isDirectOutputSupported(msdDirectConfig1, attr)); in TEST_P()
841 ASSERT_FALSE(mManager->isDirectOutputSupported(msdDirectConfig2, attr)); in TEST_P()
842 ASSERT_FALSE(mManager->isDirectOutputSupported(msdNonDirectConfig, attr)); in TEST_P()
881 mManager->getDirectPlaybackSupport(&attr, &directConfig)); in TEST_P()
883 mManager->getDirectPlaybackSupport(&attr, &nonDirectConfig)); in TEST_P()
885 mManager->getDirectPlaybackSupport(&attr, &nonExistentConfig)); in TEST_P()
888 mManager->getDirectPlaybackSupport(&attr, &msdDirectConfig1)); in TEST_P()
890 mManager->getDirectPlaybackSupport(&attr, &msdDirectConfig2)); in TEST_P()
892 mManager->getDirectPlaybackSupport(&attr, &msdNonDirectConfig)); in TEST_P()
894 DeviceVector outputDevices = mManager->getAvailableOutputDevices(); in TEST_P()
897 mManager->setMsdOutputPatches(&outputDevices); in TEST_P()
900 mManager->getDirectPlaybackSupport(&attr, &directConfig)); in TEST_P()
902 mManager->getDirectPlaybackSupport(&attr, &nonDirectConfig)); in TEST_P()
904 mManager->getDirectPlaybackSupport(&attr, &nonExistentConfig)); in TEST_P()
907 mManager->getDirectPlaybackSupport(&attr, &msdDirectConfig1)); in TEST_P()
909 mManager->getDirectPlaybackSupport(&attr, &msdDirectConfig2)); in TEST_P()
911 mManager->getDirectPlaybackSupport(&attr, &msdNonDirectConfig)); in TEST_P()
913 mManager->releaseMsdOutputPatches(outputDevices); in TEST_P()
916 mManager->getDirectPlaybackSupport(&attr, &directConfig)); in TEST_P()
918 mManager->getDirectPlaybackSupport(&attr, &nonDirectConfig)); in TEST_P()
920 mManager->getDirectPlaybackSupport(&attr, &nonExistentConfig)); in TEST_P()
923 mManager->getDirectPlaybackSupport(&attr, &msdDirectConfig1)); in TEST_P()
925 mManager->getDirectPlaybackSupport(&attr, &msdDirectConfig2)); in TEST_P()
927 mManager->getDirectPlaybackSupport(&attr, &msdNonDirectConfig)); in TEST_P()
1004 EXPECT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, in TEST_F()
1013 EXPECT_EQ(NO_ERROR, mManager->handleDeviceConfigChange(AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, in TEST_F()
1027 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_OUT_USB_DEVICE, in TEST_F()
1030 auto devices = mManager->getAvailableOutputDevices(); in TEST_F()
1055 EXPECT_EQ(NO_ERROR, mManager->getSupportedMixerAttributes(usbPortId, mixerAttributes)); in TEST_F()
1061 mManager->setPreferredMixerAttributes( in TEST_F()
1065 mManager->setPreferredMixerAttributes( in TEST_F()
1069 mManager->setPreferredMixerAttributes(&alarmAttr, usbPortId, uid, &attrToSet)); in TEST_F()
1072 mManager->getPreferredMixerAttributes(&mediaAttr, usbPortId, &attrFromQuery)); in TEST_F()
1074 mManager->setPreferredMixerAttributes( in TEST_F()
1077 mManager->getPreferredMixerAttributes(&mediaAttr, usbPortId, &attrFromQuery)); in TEST_F()
1083 mManager->clearPreferredMixerAttributes(&mediaAttr, speakerPortId, uid)); in TEST_F()
1085 mManager->clearPreferredMixerAttributes(&mediaAttr, usbPortId, otherUid)); in TEST_F()
1087 mManager->clearPreferredMixerAttributes(&mediaAttr, usbPortId, uid)); in TEST_F()
1090 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_OUT_USB_DEVICE, in TEST_F()
1098 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_OUT_USB_DEVICE, in TEST_F()
1101 auto devices = mManager->getAvailableOutputDevices(); in TEST_F()
1118 EXPECT_EQ(NO_ERROR, mManager->getSupportedMixerAttributes(usbPortId, mixerAttributes)); in TEST_F()
1121 mManager->setPreferredMixerAttributes( in TEST_F()
1130 status_t status = mManager->startOutput(portId); in TEST_F()
1135 status = mManager->startOutput(portId); in TEST_F()
1139 EXPECT_NE(nullptr, mManager->getOutputs().valueFor(output)); in TEST_F()
1140 EXPECT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, in TEST_F()
1146 EXPECT_EQ(nullptr, mManager->getOutputs().valueFor(output)); in TEST_F()
1149 mManager->clearPreferredMixerAttributes(&mediaAttr, usbPortId, uid)); in TEST_F()
1151 EXPECT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, in TEST_F()
1154 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_OUT_USB_DEVICE, in TEST_F()
1163 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_IN_USB_DEVICE, in TEST_F()
1181 ASSERT_EQ(OK, mManager->getInputForAttr( in TEST_F()
1195 ASSERT_EQ(OK, mManager->getInputForAttr( in TEST_F()
1202 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_IN_USB_DEVICE, in TEST_F()
1216 sp<DeviceDescriptor> device = mManager->getHwModules().getDeviceDescriptor( in TEST_F()
1220 mManager->checkInputsForDevice(device, AUDIO_POLICY_DEVICE_STATE_AVAILABLE)); in TEST_F()
1230 EXPECT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_IN_USB_DEVICE, in TEST_F()
1294 status_t ret = mManager->registerPolicyMixes(mAudioMixes); in addPolicyMix()
1299 status_t ret = mManager->unregisterPolicyMixes(mixes); in removePolicyMixes()
1305 if (mManager != nullptr) { in getRegisteredPolicyMixes()
1306 status_t ret = mManager->getRegisteredPolicyMixes(audioMixes); in getRegisteredPolicyMixes()
1313 if (mManager != nullptr) { in clearPolicyMix()
1314 mManager->stopInput(mLoopbackInputPortId); in clearPolicyMix()
1315 mManager->unregisterPolicyMixes(mAudioMixes); in clearPolicyMix()
1346 ASSERT_EQ(NO_ERROR, mManager->startInput(mLoopbackInputPortId)); in addPolicyMixAndStartInputForLoopback()
1385 ret = mManager->registerPolicyMixes(mAudioMixes); in TEST_F()
1425 ret = mManager->unregisterPolicyMixes(mAudioMixes); in TEST_F()
1430 ret = mManager->unregisterPolicyMixes(mAudioMixes); in TEST_F()
1622 mManager->setDeviceConnectionState( in SetUp()
1628 mManager->setDeviceConnectionState( in TearDown()
1638 status_t ret = mManager->getSurroundFormats( in getSurroundFormatsHelper()
1649 ret = mManager->getSurroundFormats( in getSurroundFormatsHelper()
1664 status_t ret = mManager->getReportedSurroundFormats( in getReportedSurroundFormatsHelper()
1672 ret = mManager->getReportedSurroundFormats(&numSurroundFormats, surroundFormats); in getReportedSurroundFormatsHelper()
1689 ret = mManager->listAudioPorts( in getFormatsFromPorts()
1696 ret = mManager->listAudioPorts( in getFormatsFromPorts()
1711 mManager->setForceUse( in TEST_P()
1719 mManager->setForceUse( in TEST_P()
1723 mManager->setSurroundFormatEnabled(GetParam(), false /*enabled*/); in TEST_P()
1729 ret = mManager->setSurroundFormatEnabled(GetParam(), true /*enabled*/); in TEST_P()
1735 ret = mManager->setSurroundFormatEnabled(GetParam(), false /*enabled*/); in TEST_P()
1744 mManager->setForceUse( in TEST_P()
1747 ASSERT_EQ(NO_ERROR, mManager->setSurroundFormatEnabled(GetParam(), true /*enabled*/)); in TEST_P()
1751 ASSERT_EQ(NO_ERROR, mManager->setSurroundFormatEnabled(GetParam(), false /*enabled*/)); in TEST_P()
1758 mManager->setForceUse( in TEST_P()
1766 mManager->setForceUse( in TEST_P()
1769 status_t ret = mManager->setSurroundFormatEnabled(GetParam(), false /*enabled*/); in TEST_P()
1774 ret = mManager->setSurroundFormatEnabled(GetParam(), true /*enabled*/); in TEST_P()
1781 mManager->setForceUse( in TEST_P()
1823 ret = mManager->unregisterPolicyMixes(mAudioMixes); in TEST_F()
2083 mManager->getOutputForAttr(&attr, &mOutput, AUDIO_SESSION_NONE, &mStream, in TEST_P()
2102 mManager->getOutputForAttr(&attr, &mOutput, AUDIO_SESSION_NONE, &mStream, in TEST_P()
2111 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_F()
2133 mManager->getOutputForAttr(&attr, &mOutput, AUDIO_SESSION_NONE, &mStream, in TEST_F()
2138 auto outputDesc = mManager->getOutputs().valueFor(mOutput); in TEST_F()
2144 mManager->releaseOutput(mPortId); in TEST_F()
2145 ASSERT_EQ(nullptr, mManager->getOutputs().valueFor(mOutput)); in TEST_F()
2149 mManager->getOutputForAttr(&attr, &mOutput, AUDIO_SESSION_NONE, &mStream, in TEST_F()
2154 outputDesc = mManager->getOutputs().valueFor(mOutput); in TEST_F()
2158 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_F()
2178 mManager->getOutputForAttr(&attr, &mOutput, AUDIO_SESSION_NONE, &mStream, in TEST_F()
2232 ASSERT_EQ(NO_ERROR, mManager->startOutput(mPortId)); in SetUp()
2240 mManager->stopOutput(mPortId); in TearDown()
2352 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_F()
2358 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_F()
2364 ASSERT_EQ(INVALID_OPERATION, mManager->setDeviceConnectionState( in TEST_F()
2370 auto config = mManager->getForceUse(AUDIO_POLICY_FORCE_FOR_MEDIA); in TEST_F()
2373 mManager->setForceUse(AUDIO_POLICY_FORCE_FOR_MEDIA, newConfig); in TEST_F()
2387 ASSERT_EQ(INVALID_OPERATION, mManager->setDeviceConnectionState( in TEST_P()
2392 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_P()
2396 ASSERT_EQ(INVALID_OPERATION, mManager->setDeviceConnectionState( in TEST_P()
2400 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_P()
2404 ASSERT_EQ(INVALID_OPERATION, mManager->setDeviceConnectionState( in TEST_P()
2408 ASSERT_EQ(BAD_VALUE, mManager->setDeviceConnectionState( in TEST_P()
2419 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_P()
2442 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_P()
2467 mManager->deviceToAudioPort(type, address.c_str(), name.c_str(), &audioPort)); in TEST_P()
2474 EXPECT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_P()
2573 ASSERT_EQ(INVALID_OPERATION, mManager->setDeviceConnectionState( in TEST_P()
2657 sp<SwAudioOutputDescriptor> outDesc = mManager->getOutputs().valueFor(output); in TEST_F()
2669 outDesc = mManager->getOutputs().valueFor(output); in TEST_F()
2761 mManager->setUserIdDeviceAffinities(/* userId */ 0, outputDevices); in TEST_F()
2867 mManager->setUserIdDeviceAffinities(/* userId */ 0, outputDevices); in TEST_F()
2905 mManager->setUserIdDeviceAffinities(/* userId */ 0, outputDevices); in TEST_F()
2942 mManager->setUserIdDeviceAffinities(/* userId */ 0, primaryZoneDevices); in TEST_F()
2981 mManager->setUserIdDeviceAffinities(/* userId */ 0, primaryZoneDevices); in TEST_F()
2984 mManager->setUserIdDeviceAffinities(/* userId */ 11, secondaryZoneDevices); in TEST_F()
3023 mManager->setUserIdDeviceAffinities(/* userId */ 0, primaryZoneDevices); in TEST_F()
3026 mManager->setUserIdDeviceAffinities(/* userId */ 11, secondaryZoneDevices); in TEST_F()
3029 mManager->setUserIdDeviceAffinities(/* userId */ 15, tertiaryZoneDevices); in TEST_F()
3068 mManager->setUserIdDeviceAffinities(/* userId */ 0, outputDevices); in TEST_F()
3130 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in testHDMIPortSelection()
3138 sp<SwAudioOutputDescriptor> outDesc = mManager->getOutputs().valueFor(output); in testHDMIPortSelection()
3142 mManager->releaseOutput(portId); in testHDMIPortSelection()
3143 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in testHDMIPortSelection()
3197 mManager->onNewAudioModulesAvailable(); in TEST_F()
3201 mManager->onNewAudioModulesAvailable(); in TEST_F()
3204 mManager->onNewAudioModulesAvailable(); in TEST_F()
3209 ASSERT_EQ(AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE, mManager->getDeviceConnectionState( in TEST_F()
3212 mManager->onNewAudioModulesAvailable(); in TEST_F()
3213 ASSERT_EQ(AUDIO_POLICY_DEVICE_STATE_AVAILABLE, mManager->getDeviceConnectionState( in TEST_F()
3221 mManager->onNewAudioModulesAvailable(); in TEST_F()
3228 const uint32_t prevAudioPortGeneration = mManager->getAudioPortGeneration(); in TEST_F()
3230 mManager->onNewAudioModulesAvailable(); in TEST_F()
3232 EXPECT_GT(mManager->getAudioPortGeneration(), prevAudioPortGeneration); in TEST_F()
3255 mManager->setDevicesRoleForCapturePreset(audioSource, role, outputDevices)); in TEST_P()
3257 mManager->addDevicesRoleForCapturePreset(audioSource, role, outputDevices)); in TEST_P()
3260 mManager->getDevicesForRoleAndCapturePreset(audioSource, role, devices)); in TEST_P()
3263 mManager->removeDevicesRoleForCapturePreset(audioSource, role, outputDevices)); in TEST_P()
3267 mManager->getDevicesForRoleAndCapturePreset(audioSource, role, devices)); in TEST_P()
3269 mManager->removeDevicesRoleForCapturePreset(audioSource, role, devices)); in TEST_P()
3271 mManager->clearDevicesRoleForCapturePreset(audioSource, role)); in TEST_P()
3276 mManager->setDevicesRoleForCapturePreset(audioSource, role, inputDevices)); in TEST_P()
3277 ASSERT_EQ(NO_ERROR, mManager->getDevicesForRoleAndCapturePreset(audioSource, role, devices)); in TEST_P()
3283 mManager->setDevicesRoleForCapturePreset(audioSource, role, inputDevices2)); in TEST_P()
3285 ASSERT_EQ(NO_ERROR, mManager->getDevicesForRoleAndCapturePreset(audioSource, role, devices)); in TEST_P()
3290 mManager->addDevicesRoleForCapturePreset(audioSource, role, inputDevices)); in TEST_P()
3292 ASSERT_EQ(NO_ERROR, mManager->getDevicesForRoleAndCapturePreset(audioSource, role, devices)); in TEST_P()
3297 mManager->removeDevicesRoleForCapturePreset(audioSource, role, inputDevices)); in TEST_P()
3299 ASSERT_EQ(NO_ERROR, mManager->getDevicesForRoleAndCapturePreset(audioSource, role, devices)); in TEST_P()
3304 mManager->removeDevicesRoleForCapturePreset(audioSource, role, inputDevices)); in TEST_P()
3308 mManager->clearDevicesRoleForCapturePreset(audioSource, role)); in TEST_P()
3311 mManager->getDevicesForRoleAndCapturePreset(audioSource, role, devices)); in TEST_P()
3320 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_F()
3323 auto availableDevices = mManager->getAvailableInputDevices(); in TEST_F()
3347 mManager->setDevicesRoleForCapturePreset(source, role, in TEST_F()
3359 mManager->clearDevicesRoleForCapturePreset(source, role)); in TEST_F()
3367 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_F()
3378 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_F()
3381 auto availableDevices = mManager->getAvailableInputDevices(); in TEST_F()
3397 mManager->setDevicesRoleForCapturePreset(source, role, in TEST_F()
3409 mManager->clearDevicesRoleForCapturePreset(source, role)); in TEST_F()
3417 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_F()
3471 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState(type, in TEST_F()
3474 auto availableDevices = mManager->getAvailableInputDevices(); in TEST_F()
3494 ASSERT_EQ(NO_ERROR, mManager->registerEffect(&TEST_EFFECT_DESC, inputClientHandle, in TEST_F()
3497 ASSERT_EQ(NO_ERROR, mManager->startInput(portId)); in TEST_F()
3500 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_F()
3505 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState( in TEST_F()
3520 ASSERT_EQ(NO_ERROR, mManager->unregisterEffect(effectId)); in TEST_F()
3553 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_OUT_USB_DEVICE, in SetUp()
3556 auto devices = mManager->getAvailableOutputDevices(); in SetUp()
3567 EXPECT_EQ(NO_ERROR, mManager->getSupportedMixerAttributes(mUsbPortId, mixerAttributes)); in SetUp()
3580 mManager->setPreferredMixerAttributes( in SetUp()
3586 mManager->clearPreferredMixerAttributes(&sMediaAttr, mUsbPortId, mUid)); in TearDown()
3587 ASSERT_EQ(NO_ERROR, mManager->setDeviceConnectionState(AUDIO_DEVICE_OUT_USB_DEVICE, in TearDown()
3601 status_t status = mManager->startOutput(mBitPerfectPortId); in startBitPerfectOutput()
3606 status = mManager->startOutput(mBitPerfectPortId); in startBitPerfectOutput()
3611 const auto bitPerfectOutputDesc = mManager->getOutputs().valueFor(mBitPerfectOutput); in startBitPerfectOutput()
3636 mManager->getOutputForAttr(&sMediaAttr, &mBitPerfectOutput, AUDIO_SESSION_NONE, in getBitPerfectOutput()
3659 const auto outputDesc = mManager->getOutputs().valueFor(output); in TEST_F()
3730 EXPECT_EQ(NO_ERROR, mManager->startOutput(systemSoundPortId)); in TEST_F_WITH_FLAGS()
3733 EXPECT_EQ(NO_ERROR, mManager->stopOutput(systemSoundPortId)); in TEST_F_WITH_FLAGS()
3751 EXPECT_EQ(NO_ERROR, mManager->startOutput(notificationPortId)); in TEST_F_WITH_FLAGS()
3754 EXPECT_EQ(NO_ERROR, mManager->stopOutput(notificationPortId)); in TEST_F_WITH_FLAGS()
3757 EXPECT_EQ(NO_ERROR, mManager->stopOutput(mBitPerfectPortId)); in TEST_F_WITH_FLAGS()
3774 mManager->setPhoneState(mode); in TEST_P()
3776 EXPECT_EQ(nullptr, mManager->getOutputs().valueFor(mBitPerfectOutput)); in TEST_P()
3781 mManager->setPhoneState(AUDIO_MODE_NORMAL); in TEST_P()
3819 EXPECT_EQ(NO_ERROR, mManager->startOutput(portId)); in TEST_P()
3821 EXPECT_EQ(nullptr, mManager->getOutputs().valueFor(mBitPerfectOutput)); in TEST_P()