/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/ |
D | EvsEnumeratorUnitTest.cpp | 75 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 …]
|
D | EvsEnumeratorHidlUnitTest.cpp | 103 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 …]
|
D | EvsEnumeratorHidlUnitTest_1_0.cpp | 93 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/ |
D | HidlEnumerator.cpp | 46 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/ |
D | HidlEnumerator.h | 63 mEnumerator(service) {} in HidlEnumerator() 70 std::shared_ptr<aidlevs::IEvsEnumerator> mEnumerator;
|
/packages/services/Car/cpp/evs/apps/default/src/ |
D | VideoTex.cpp | 49 mEnumerator(pEnum), in VideoTex() 61 mEnumerator->closeCamera(mCamera); in ~VideoTex()
|
D | RenderPixelCopy.cpp | 41 mEnumerator = enumerator; in RenderPixelCopy() 49 if (auto status = mEnumerator->openCamera(mCameraInfo.cameraId.c_str(), emptyConfig, &pCamera); in activate()
|
D | RenderDirectView.cpp | 55 mEnumerator(enumerator), mCameraDesc(camDesc), mConfig(config) { in RenderDirectView() 127 mTexture.reset(createVideoTexture(mEnumerator, mCameraDesc.id.c_str(), std::move(targetCfg), in activate()
|
D | RenderTopView.cpp | 99 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/ |
D | Enumerator.h | 85 mEnumerator(enumerator) {} in EvsDeviceStatusCallbackImpl() 90 std::shared_ptr<Enumerator> mEnumerator;
|
/packages/services/Car/cpp/evs/apps/default/inc/ |
D | RenderPixelCopy.h | 42 std::shared_ptr<aidl::android::hardware::automotive::evs::IEvsEnumerator> mEnumerator;
|
D | RenderDirectView.h | 45 std::shared_ptr<aidl::android::hardware::automotive::evs::IEvsEnumerator> mEnumerator;
|
D | RenderTopView.h | 53 std::shared_ptr<aidl::android::hardware::automotive::evs::IEvsEnumerator> mEnumerator; variable
|
D | VideoTex.h | 53 std::shared_ptr<aidl::android::hardware::automotive::evs::IEvsEnumerator> mEnumerator; variable
|
/packages/services/Car/cpp/evs/manager/aidl/src/ |
D | Enumerator.cpp | 895 mEnumerator->broadcastDeviceStatusChange(list); in deviceStatusChanged()
|