Home
last modified time | relevance | path

Searched refs:mEnumerator (Results 1 – 15 of 15) sorted by relevance

/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/
DEvsEnumeratorUnitTest.cpp75 mEnumerator = ndk::SharedRefBase::make<Enumerator>(); in EvsEnumeratorUnitTest()
76 EXPECT_NE(nullptr, mEnumerator); in EvsEnumeratorUnitTest()
79 mEnumerator->enablePermissionCheck(/* enable= */ false); in EvsEnumeratorUnitTest()
95 mEnumerator->init(hwEnumerator, /* enableMonitor= */ true); in SetUp()
112 std::shared_ptr<Enumerator> mEnumerator; member in aidl::android::automotive::evs::implementation::EvsEnumeratorUnitTest
146 mEnumerator->enablePermissionCheck(true); in TEST_F()
151 EXPECT_FALSE(mEnumerator->getCameraList(&cameras).isOk()); in TEST_F()
155 mEnumerator->openCamera(/* cameraId= */ "invalidId", emptyConfig, &invalidCamera) in TEST_F()
158 EXPECT_FALSE(mEnumerator->closeCamera(invalidCamera).isOk()); in TEST_F()
161 EXPECT_FALSE(mEnumerator->openDisplay(/* displayId= */ 0xFF, &invalidDisplay).isOk()); in TEST_F()
[all …]
DEvsEnumeratorHidlUnitTest.cpp103 mEnumerator = new (std::nothrow) HidlEnumerator(mAidlEnumerator); in SetUp()
127 ::android::sp<HidlEnumerator> mEnumerator;
189 mEnumerator->getCameraList_1_1([&list](auto received) { list = received; }).isOk()); in TEST_F()
193 mEnumerator->openCamera_1_1(/* cameraId= */ "invalidId", /* streamCfg= */ {}); in TEST_F()
195 EXPECT_TRUE(mEnumerator->closeCamera(invalidCamera).isOk()); in TEST_F()
198 mEnumerator->openDisplay_1_1(/* displayId= */ 0xFF); in TEST_F()
201 hidlevs::V1_0::DisplayState displayState = mEnumerator->getDisplayState(); in TEST_F()
211 EXPECT_FALSE(mEnumerator->isHardware()); in TEST_F()
216 EXPECT_TRUE(mEnumerator->getDisplayIdList([&displays](const auto& list) { displays = list; }) in TEST_F()
222 h0 = mEnumerator->openDisplay_1_1(id); in TEST_F()
[all …]
DEvsEnumeratorHidlUnitTest_1_0.cpp93 mEnumerator = new (std::nothrow) HidlEnumerator(mAidlEnumerator); in SetUp()
110 ::android::sp<HidlEnumerator> mEnumerator;
133 EXPECT_TRUE(mEnumerator->getCameraList([&list](auto received) { list = received; }).isOk()); in TEST_F()
136 ::android::sp<hidlevs::V1_0::IEvsDisplay> display = mEnumerator->openDisplay(); in TEST_F()
138 EXPECT_TRUE(mEnumerator->closeDisplay(display).isOk()); in TEST_F()
147 ::android::sp<hidlevs::V1_0::IEvsDisplay> d = mEnumerator->openDisplay(); in TEST_F()
160 EXPECT_TRUE(mEnumerator->closeDisplay(d).isOk()); in TEST_F()
166 mEnumerator->getCameraList([&hidlCameras](auto received) { hidlCameras = received; }) in TEST_F()
171 ::android::sp<hidlevs::V1_0::IEvsCamera> c = mEnumerator->openCamera(camera.cameraId); in TEST_F()
184 EXPECT_TRUE(mEnumerator->closeCamera(c).isOk()); in TEST_F()
[all …]
/packages/services/Car/cpp/evs/manager/aidl/wrappers/src/
DHidlEnumerator.cpp46 mEnumerator = nullptr; in ~HidlEnumerator()
50 if (!mEnumerator) { in getCameraList()
57 if (auto status = mEnumerator->getCameraList(&aidlCameras); !status.isOk()) { in getCameraList()
75 if (!mEnumerator) { in openCamera()
82 auto status = mEnumerator->openCamera(cameraId, {}, &aidlCamera); in openCamera()
99 if (!mEnumerator) { in closeCamera()
110 mEnumerator->closeCamera(hidlCamera->getAidlCamera()); in closeCamera()
115 if (!mEnumerator) { in openDisplay()
122 if (auto status = mEnumerator->getDisplayIdList(&mAidlDisplayIds); in openDisplay()
131 if (auto status = mEnumerator->openDisplay(displayId, &aidlDisplay); !status.isOk()) { in openDisplay()
[all …]
/packages/services/Car/cpp/evs/manager/aidl/wrappers/include/
DHidlEnumerator.h63 mEnumerator(service) {} in HidlEnumerator()
70 std::shared_ptr<aidlevs::IEvsEnumerator> mEnumerator;
/packages/services/Car/cpp/evs/apps/default/src/
DVideoTex.cpp49 mEnumerator(pEnum), in VideoTex()
61 mEnumerator->closeCamera(mCamera); in ~VideoTex()
DRenderPixelCopy.cpp41 mEnumerator = enumerator; in RenderPixelCopy()
49 if (auto status = mEnumerator->openCamera(mCameraInfo.cameraId.c_str(), emptyConfig, &pCamera); in activate()
DRenderDirectView.cpp55 mEnumerator(enumerator), mCameraDesc(camDesc), mConfig(config) { in RenderDirectView()
127 mTexture.reset(createVideoTexture(mEnumerator, mCameraDesc.id.c_str(), std::move(targetCfg), in activate()
DRenderTopView.cpp99 mEnumerator(enumerator), mConfig(mConfig) { in RenderTopView()
150 cam.tex.reset(createVideoTexture(mEnumerator, cam.info.cameraId.c_str(), in activate()
/packages/services/Car/cpp/evs/manager/aidl/include/
DEnumerator.h85 mEnumerator(enumerator) {} in EvsDeviceStatusCallbackImpl()
90 std::shared_ptr<Enumerator> mEnumerator;
/packages/services/Car/cpp/evs/apps/default/inc/
DRenderPixelCopy.h42 std::shared_ptr<aidl::android::hardware::automotive::evs::IEvsEnumerator> mEnumerator;
DRenderDirectView.h45 std::shared_ptr<aidl::android::hardware::automotive::evs::IEvsEnumerator> mEnumerator;
DRenderTopView.h53 std::shared_ptr<aidl::android::hardware::automotive::evs::IEvsEnumerator> mEnumerator; variable
DVideoTex.h53 std::shared_ptr<aidl::android::hardware::automotive::evs::IEvsEnumerator> mEnumerator; variable
/packages/services/Car/cpp/evs/manager/aidl/src/
DEnumerator.cpp895 mEnumerator->broadcastDeviceStatusChange(list); in deviceStatusChanged()