Home
last modified time | relevance | path

Searched refs:cameraId (Results 1 – 25 of 95) sorted by relevance

1234

/hardware/interfaces/camera/provider/2.4/default/
DLegacyCameraProviderImpl_2_4.cpp50 std::string* cameraId) { in matchDeviceName() argument
57 if (cameraId != nullptr) { in matchDeviceName()
58 *cameraId = sm[2]; in matchDeviceName()
72 char cameraId[kMaxCameraIdLen]; in addDeviceNames() local
73 snprintf(cameraId, sizeof(cameraId), "%d", camera_id); in addDeviceNames()
74 std::string cameraIdStr(cameraId); in addDeviceNames()
91 int ret = mModule->openLegacy(cameraId, CAMERA_DEVICE_API_VERSION_1_0, &halDev); in addDeviceNames()
149 char cameraId[kMaxCameraIdLen]; in sCameraDeviceStatusChange() local
150 snprintf(cameraId, sizeof(cameraId), "%d", camera_id); in sCameraDeviceStatusChange()
151 std::string cameraIdStr(cameraId); in sCameraDeviceStatusChange()
[all …]
DExternalCameraProviderImpl_2_4.cpp217 std::string cameraId = std::to_string(mCfg.cameraIdOffset + in addExternalCamera() local
220 deviceName = std::string("device@3.6/external/") + cameraId; in addExternalCamera()
222 deviceName = std::string("device@3.5/external/") + cameraId; in addExternalCamera()
224 deviceName = std::string("device@3.4/external/") + cameraId; in addExternalCamera()
268 std::string cameraId = std::to_string(mCfg.cameraIdOffset + in deviceRemoved() local
271 deviceName = std::string("device@3.6/external/") + cameraId; in deviceRemoved()
273 deviceName = std::string("device@3.5/external/") + cameraId; in deviceRemoved()
275 deviceName = std::string("device@3.4/external/") + cameraId; in deviceRemoved()
/hardware/interfaces/automotive/evs/1.1/default/
DEvsEnumerator.cpp109 Return<sp<evs_v1_0::IEvsCamera>> EvsEnumerator::openCamera(const hidl_string& cameraId) { in openCamera() argument
113 auto it = std::find_if(sCameraList.begin(), sCameraList.end(), [&cameraId](const auto& cam) { in openCamera()
114 return cameraId == cam.desc.v1.cameraId; in openCamera()
117 ALOGE("Requested camera %s not found", cameraId.c_str()); in openCamera()
130 pActiveCamera = EvsCamera::Create(cameraId.c_str()); in openCamera()
133 EvsCamera::Create(cameraId.c_str(), sConfigManager->getCameraInfo(cameraId)); in openCamera()
137 ALOGE("Failed to allocate new EvsCamera object for %s\n", cameraId.c_str()); in openCamera()
153 std::string cameraId; in closeCamera() local
154 pCamera_1_1->getCameraInfo_1_1([&cameraId](CameraDesc desc) { cameraId = desc.v1.cameraId; }); in closeCamera()
157 auto it = std::find_if(sCameraList.begin(), sCameraList.end(), [&cameraId](const auto& cam) { in closeCamera()
[all …]
DEvsEnumerator.h42 Return<sp<evs_v1_0::IEvsCamera>> openCamera(const hidl_string& cameraId) override;
50 Return<sp<IEvsCamera>> openCamera_1_1(const hidl_string& cameraId,
73 CameraRecord(const char* cameraId) : desc() { desc.v1.cameraId = cameraId; } in CameraRecord()
83 static CameraRecord* findCameraById(const std::string& cameraId);
/hardware/interfaces/automotive/evs/1.0/default/
DEvsEnumerator.cpp75 Return<sp<IEvsCamera>> EvsEnumerator::openCamera(const hidl_string& cameraId) { in openCamera() argument
81 if (cam.desc.cameraId == cameraId) { in openCamera()
90 ALOGE("Requested camera %s not found", cameraId.c_str()); in openCamera()
102 pActiveCamera = new EvsCamera(cameraId.c_str()); in openCamera()
105 ALOGE("Failed to allocate new EvsCamera object for %s\n", cameraId.c_str()); in openCamera()
121 std::string cameraId; in closeCamera() local
122 pCamera->getCameraInfo([&cameraId](CameraDesc desc) { in closeCamera()
125 cameraId.assign(desc.cameraId.c_str()); in closeCamera()
132 if (cam.desc.cameraId == cameraId) { in closeCamera()
DEvsEnumerator.h42 Return<sp<IEvsCamera>> openCamera(const hidl_string& cameraId) override;
59 CameraRecord(const char *cameraId) : desc() { desc.cameraId = cameraId; } in CameraRecord()
/hardware/interfaces/automotive/evs/1.0/vts/functional/
DVtsHalEvsV1_0TargetTest.cpp87 ALOGI("Found camera %s", cam.cameraId.c_str()); in loadCameraList()
121 sp<IEvsCamera> pCam = pEnumerator->openCamera(cam.cameraId); in TEST_P()
126 ALOGD("Found camera %s", desc.cameraId.c_str()); in TEST_P()
127 EXPECT_EQ(cam.cameraId, desc.cameraId); in TEST_P()
152 sp<IEvsCamera> pCam = pEnumerator->openCamera(cam.cameraId); in TEST_P()
157 ALOGD("Found camera %s", desc.cameraId.c_str()); in TEST_P()
158 EXPECT_EQ(cam.cameraId, desc.cameraId); in TEST_P()
162 sp<IEvsCamera> pCam2 = pEnumerator->openCamera(cam.cameraId); in TEST_P()
180 ALOGD("Found camera %s", desc.cameraId.c_str()); in TEST_P()
181 EXPECT_EQ(cam.cameraId, desc.cameraId); in TEST_P()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/
DQCamera2Factory.cpp120 uint32_t cameraId = 0; in QCamera2Factory() local
122 for (int i = 0; i < mNumOfCameras ; i++, cameraId++) { in QCamera2Factory()
123 mHalDescriptors[i].cameraId = cameraId; in QCamera2Factory()
125 if (isHAL3Enabled && !(is_yuv_sensor(cameraId))) { in QCamera2Factory()
412 mHalDescriptors[camera_id].cameraId, info); in QCamera2Factory()
476 … QCamera3HardwareInterface *hw = new QCamera3HardwareInterface(mHalDescriptors[camera_id].cameraId, in QCamera2Factory()
564 int32_t cameraId, uint32_t halVersion, struct hw_device_t** hw_device) in QCamera2Factory() argument
568 LOGI("openLegacy halVersion: %d cameraId = %d", halVersion, cameraId); in QCamera2Factory()
570 if (cameraId < 0 || cameraId >= gQCamera2Factory->getNumberOfCameras()) in QCamera2Factory()
580 new QCamera2HardwareInterface((uint32_t)cameraId); in QCamera2Factory()
[all …]
DQCamera2Factory.h39 uint32_t cameraId; member
71 int32_t cameraId, uint32_t halVersion, struct hw_device_t** hw_device);
/hardware/interfaces/camera/common/default/
DCameraModule.cpp259 int CameraModule::getCameraInfo(int cameraId, struct camera_info* info) { in getCameraInfo() argument
262 if (cameraId < 0) { in getCameraInfo()
263 ALOGE("%s: Invalid camera ID %d", __FUNCTION__, cameraId); in getCameraInfo()
272 ret = mModule->get_camera_info(cameraId, info); in getCameraInfo()
280 ssize_t index = mCameraInfoMap.indexOfKey(cameraId); in getCameraInfo()
285 int ret = mModule->get_camera_info(cameraId, &rawInfo); in getCameraInfo()
301 index = mCameraInfoMap.add(cameraId, cameraInfo); in getCameraInfo()
356 int CameraModule::getDeviceVersion(int cameraId) { in getDeviceVersion() argument
357 ssize_t index = mDeviceVersionMap.indexOfKey(cameraId); in getDeviceVersion()
362 getCameraInfo(cameraId, &info); in getDeviceVersion()
[all …]
/hardware/interfaces/camera/common/default/include/
DCameraModule.h51 int getCameraInfo(int cameraId, struct camera_info* info);
52 int getDeviceVersion(int cameraId);
69 void removeCamera(int cameraId);
71 int isStreamCombinationSupported(int cameraId, camera_stream_combination_t* streams);
/hardware/interfaces/camera/device/3.6/default/
DExternalCameraDevice.cpp31 const std::string& cameraId, const ExternalCameraConfig& cfg) : in ExternalCameraDevice() argument
32 V3_5::implementation::ExternalCameraDevice(cameraId, cfg) {} in ExternalCameraDevice()
42 const std::string& cameraId, in createSession() argument
45 cb, cfg, sortedFormats, croppingType, chars, cameraId, std::move(v4l2Fd)); in createSession()
/hardware/interfaces/automotive/evs/1.1/vts/functional/
DVtsHalEvsV1_1TargetTest.cpp138 LOG(INFO) << "Found camera " << cam.v1.cameraId; in loadCameraList()
194 if (it->v1.cameraId == id) { in getPhysicalCameraIds()
297 auto devices = getPhysicalCameraIds(cam.v1.cameraId, isLogicalCam); in TEST_P()
299 LOG(INFO) << "Skip a logical device, " << cam.v1.cameraId << " for HW target."; in TEST_P()
310 sp<IEvsCamera_1_1> pCam = pEnumerator->openCamera_1_1(cam.v1.cameraId, targetCfg); in TEST_P()
317 matched = devName == info.v1.cameraId; in TEST_P()
327 LOG(DEBUG) << "Found camera " << desc.v1.cameraId; in TEST_P()
328 EXPECT_EQ(cam.v1.cameraId, desc.v1.cameraId); in TEST_P()
377 getPhysicalCameraIds(cam.v1.cameraId, isLogicalCam); in TEST_P()
379 LOG(INFO) << "Skip a logical device, " << cam.v1.cameraId << " for HW target."; in TEST_P()
[all …]
/hardware/interfaces/camera/device/3.5/default/
DExternalCameraDevice.cpp31 const std::string& cameraId, const ExternalCameraConfig& cfg) : in ExternalCameraDevice() argument
32 V3_4::implementation::ExternalCameraDevice(cameraId, cfg) {} in ExternalCameraDevice()
50 const std::string& cameraId, in createSession() argument
53 cb, cfg, sortedFormats, croppingType, chars, cameraId, std::move(v4l2Fd)); in createSession()
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3HWI.cpp473 QCamera3HardwareInterface::QCamera3HardwareInterface(uint32_t cameraId, in QCamera3HardwareInterface() argument
475 : mCameraId(cameraId), in QCamera3HardwareInterface()
563 mCommon.init(gCamCapability[cameraId]); in QCamera3HardwareInterface()
573 gCamCapability[cameraId]->version = CAM_HAL_V3; in QCamera3HardwareInterface()
576 gCamCapability[cameraId]->min_num_pp_bufs = 3; in QCamera3HardwareInterface()
644 mPDIndex = getPDStatIndex(gCamCapability[cameraId]); in QCamera3HardwareInterface()
1262 int QCamera3HardwareInterface::validateStreamDimensions(uint32_t cameraId, in validateStreamDimensions() argument
1269 auto pDIndex = getPDStatIndex(gCamCapability[cameraId]); in validateStreamDimensions()
1272 depthWidth = gCamCapability[cameraId]->raw_meta_dim[pDIndex].width; in validateStreamDimensions()
1273 depthHeight = gCamCapability[cameraId]->raw_meta_dim[pDIndex].height; in validateStreamDimensions()
[all …]
/hardware/interfaces/automotive/evs/aidl/impl/default/include/
DEvsEnumerator.h45 ndk::ScopedAStatus openCamera(const std::string& cameraId, const evs::Stream& streamConfig,
78 CameraRecord(const char* cameraId) : desc() { desc.id = cameraId; } in CameraRecord()
105 const std::string& cameraId);
110 static CameraRecord* findCameraById(const std::string& cameraId);
/hardware/google/camera/common/hal/utils/
Dhdrplus_process_block.cc31 CameraDeviceSessionHwl* device_session_hwl, uint32_t cameraId) { in Create() argument
37 ALOGI("%s: cameraId: %d", __FUNCTION__, cameraId); in Create()
39 new HdrplusProcessBlock(cameraId, device_session_hwl)); in Create()
59 uint32_t cameraId, CameraDeviceSessionHwl* device_session_hwl) in HdrplusProcessBlock() argument
60 : kCameraId(cameraId), device_session_hwl_(device_session_hwl) { in HdrplusProcessBlock()
Dhdrplus_process_block.h33 CameraDeviceSessionHwl* device_session_hwl, uint32_t cameraId);
57 HdrplusProcessBlock(uint32_t cameraId,
/hardware/interfaces/camera/provider/2.7/default/
DExternalCameraProviderImpl_2_7.cpp236 std::string cameraId = in addExternalCamera() local
239 deviceName = std::string("device@3.6/external/") + cameraId; in addExternalCamera()
241 deviceName = std::string("device@3.5/external/") + cameraId; in addExternalCamera()
243 deviceName = std::string("device@3.4/external/") + cameraId; in addExternalCamera()
287 std::string cameraId = in deviceRemoved() local
290 deviceName = std::string("device@3.6/external/") + cameraId; in deviceRemoved()
292 deviceName = std::string("device@3.5/external/") + cameraId; in deviceRemoved()
294 deviceName = std::string("device@3.4/external/") + cameraId; in deviceRemoved()
/hardware/google/camera/common/sensor_listener/tests/
Drun_goog_sensor_sync_test.sh3 adb shell am start -n com.google.android.mcamera/.MainActivity --es type photo --es cameraId 0
10 adb shell am start -n com.google.android.mcamera/.MainActivity --es type photo --es cameraId 2
/hardware/interfaces/camera/device/3.4/default/
DCameraDevice.cpp36 sp<CameraModule> module, const std::string& cameraId, in CameraDevice() argument
38 V3_2::implementation::CameraDevice(module, cameraId, cameraDeviceNames) { in CameraDevice()
/hardware/interfaces/camera/device/3.3/default/
DCameraDevice.cpp36 sp<CameraModule> module, const std::string& cameraId, in CameraDevice() argument
38 V3_2::implementation::CameraDevice(module, cameraId, cameraDeviceNames) { in CameraDevice()
/hardware/interfaces/automotive/evs/1.0/
DIEvsEnumerator.hal36 * Get the IEvsCamera associated with a cameraId from a CameraDesc
38 * Given a camera's unique cameraId from CameraDesc, returns the
42 * @param cameraId A unique identifier of the camera.
43 * @return carCamera EvsCamera object associated with a given cameraId.
45 openCamera(string cameraId) generates (IEvsCamera carCamera);
/hardware/google/easel/amber/camera/libhdrplusclient/include/
DEaselManagerClient.h86 virtual status_t startMipi(uint32_t cameraId, uint32_t outputPixelClkHz,
94 virtual status_t stopMipi(uint32_t cameraId) = 0;
/hardware/interfaces/automotive/evs/1.1/
DIEvsEnumerator.hal38 * Gets the IEvsCamera associated with a cameraId from a CameraDesc
40 * Given a camera's unique cameraId from CameraDesc, returns the
44 * @param cameraId A unique identifier of the camera.
46 * @return evsCamera EvsCamera object associated with a given cameraId.
51 openCamera_1_1(string cameraId, Stream streamCfg) generates (IEvsCamera evsCamera);

1234