Home
last modified time | relevance | path

Searched refs:getDevice (Results 1 – 17 of 17) sorted by relevance

/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/
DAudioPrimaryHidlHalTest.cpp44 ASSERT_OK(getDevice()->getMicrophones(returnIn(res, microphones))); in TEST_P()
71 return getDevice()->openInputStream(handle, microphone.deviceAddress, in TEST_P()
126 auto ret = getDevice()->setConnectedState(address, state); in TEST_P()
184 TEST_IO_STREAM(GetHwAvSync, "Get hardware sync can not fail", checkGetHwAVSync(getDevice().get()));
254 ASSERT_RESULT(Result::INVALID_ARGUMENTS, getDevice()->setMode(AudioMode(mode))) in TEST_P()
260 ASSERT_OK(getDevice()->setMode(mode)) << "mode=" << toString(mode); in TEST_P()
264 ASSERT_RESULT(okOrNotSupportedOrInvalidArgs, getDevice()->setMode(AudioMode::CALL_SCREEN)); in TEST_P()
273 ASSERT_RESULT(okOrNotSupportedOrInvalidArgs, getDevice()->setBtHfpSampleRate(samplingRate)); in TEST_P()
281 auto ret = getDevice()->setBtHfpVolume(0.0); in TEST_P()
287 testUnitaryGain([this](float volume) { return getDevice()->setBtHfpVolume(volume); }); in TEST_P()
[all …]
/hardware/interfaces/audio/core/all-versions/vts/functional/2.0/
DAudioPrimaryHidlHalTest.cpp23 auto ret = stream->getDevice(); in testGetDevice()
64 ASSERT_IS_OK(getDevice()->getHwAvSync()));
71 ASSERT_RESULT(Result::INVALID_ARGUMENTS, getDevice()->setMode(mode)); in TEST_P()
77 ASSERT_OK(getDevice()->setMode(mode)); in TEST_P()
/hardware/interfaces/audio/core/all-versions/vts/functional/6.0/
DAudioPrimaryHidlHalTest.cpp102 return getDevice()->openOutputStream(handle, address, config, flags, initMetadata, in TEST_P()
106 ASSERT_RESULT(Result::INVALID_STATE, getDevice()->close()); in TEST_P()
108 ASSERT_OK(getDevice()->close()); in TEST_P()
127 return getDevice()->openInputStream(handle, address, config, flags, initMetadata, in TEST_P()
131 ASSERT_RESULT(Result::INVALID_STATE, getDevice()->close()); in TEST_P()
133 ASSERT_OK(getDevice()->close()); in TEST_P()
140 ASSERT_OK(getDevice()->updateAudioPatch( in TEST_P()
/hardware/interfaces/audio/core/all-versions/vts/functional/
DAudioPrimaryHidlHalTest.h114 sp<IDevice> getDevice() const { in getDevice() function
129 bool areAudioPatchesSupported() { return extract(getDevice()->supportsAudioPatches()); } in areAudioPatchesSupported()
379 ASSERT_TRUE(getDevice() != nullptr); in SetUp()
389 ASSERT_OK(getDevice()->initCheck()); in TEST_P()
404 ASSERT_TRUE(getDevice() != nullptr); in SetUp()
409 sp<IPrimaryDevice> getDevice() const { in getDevice() function
489 testAccessors<optionality>(&BaseTestClass::getDevice, propertyName, expectedInitial,
625 ASSERT_TRUE(getDevice() != nullptr); in SetUp()
667 ASSERT_OK(getDevice()->getInputBufferSize(audioConfig, returnIn(res, bufferSize))); in inputBufferSizeTest()
733 ASSERT_RESULT(okOrNotSupported, getDevice()->setScreenState(turnedOn)); in TEST_P()
[all …]
DConfigHelper.h40 return devs.getDevice(AUDIO_DEVICE_IN_BUILTIN_MIC, {}, AUDIO_FORMAT_DEFAULT); in primaryHasMic()
/hardware/interfaces/audio/core/all-versions/default/include/core/default/
DStreamIn.h77 Return<AudioDevice> getDevice() override;
DStreamOut.h77 Return<AudioDevice> getDevice() override;
DStream.h80 Return<AudioDevice> getDevice() override;
/hardware/interfaces/audio/core/all-versions/default/
DStreamIn.cpp251 Return<AudioDevice> StreamIn::getDevice() { in getDevice() function in android::hardware::audio::CPP_VERSION::implementation::StreamIn
252 return mStreamCommon->getDevice(); in getDevice()
DStreamOut.cpp256 Return<AudioDevice> StreamOut::getDevice() { in getDevice() function in android::hardware::audio::CPP_VERSION::implementation::StreamOut
257 return mStreamCommon->getDevice(); in getDevice()
DStream.cpp234 Return<AudioDevice> Stream::getDevice() { in getDevice() function in android::hardware::audio::CPP_VERSION::implementation::Stream
/hardware/interfaces/graphics/composer/2.1/utils/hwc2on1adapter/include/hwc2on1adapter/
DHWC2On1Adapter.h194 HWC2On1Adapter& getDevice() const { return mDevice; } in getDevice() function
576 !mDisplay.getDevice().supportsBackgroundColor()); in hasUnsupportedBackgroundColor()
/hardware/interfaces/graphics/allocator/2.0/utils/gralloc1-adapter/
DGralloc1On0Adapter.h42 gralloc1_device_t* getDevice() { in getDevice() function
/hardware/interfaces/graphics/composer/2.1/utils/hwc2on1adapter/
DHWC2On1Adapter.cpp1947 auto hwc1Device = mDisplay.getDevice().getHwc1Device(); in setCursorPosition()
1954 if (mDisplay.getDevice().mHwc1MinorVersion < 5) { in setSurfaceDamage()
2126 auto minorVersion = mDisplay.getDevice().getHwc1MinorVersion(); in applyCommonState()
2217 if (mDisplay.getDevice().getHwc1MinorVersion() >= 4) { in applyCompositionType()
2222 if (mDisplay.getDevice().getHwc1MinorVersion() < 4) { in applyCompositionType()
/hardware/interfaces/audio/2.0/
DIStream.hal165 getDevice() generates (AudioDevice device);
/hardware/qcom/display/msm8994/libhwcomposer/
DHWC2On1Adapter.cpp2022 auto hwc1Device = mDisplay.getDevice().getHwc1Device(); in setCursorPosition()
2206 auto minorVersion = mDisplay.getDevice().getHwc1MinorVersion(); in applyCommonState()
2320 if (mDisplay.getDevice().getHwc1MinorVersion() >= 4) { in applyCompositionType()
2325 if (mDisplay.getDevice().getHwc1MinorVersion() < 4) { in applyCompositionType()
DHWC2On1Adapter.h177 HWC2On1Adapter& getDevice() const { return mDevice; } in getDevice() function