Home
last modified time | relevance | path

Searched refs:ability (Results 1 – 25 of 92) sorted by relevance

1234

/drivers/peripheral/camera/test/ut/v4l2/
Dcamera_ability_test.cpp31 …S::Camera::RetCode CameraAbilityTest::GetSensorOrientation(std::shared_ptr<CameraAbility> &ability) in GetSensorOrientation() argument
33 common_metadata_header_t *data = cameraBase_->ability->get(); in GetSensorOrientation()
46 OHOS::Camera::RetCode CameraAbilityTest::GetFlashAvailable(std::shared_ptr<CameraAbility> &ability) in GetFlashAvailable() argument
48 common_metadata_header_t *data = cameraBase_->ability->get(); in GetFlashAvailable()
61 OHOS::Camera::RetCode CameraAbilityTest::GetAfAvailable(std::shared_ptr<CameraAbility> &ability) in GetAfAvailable() argument
63 common_metadata_header_t *data = cameraBase_->ability->get(); in GetAfAvailable()
84 OHOS::Camera::RetCode CameraAbilityTest::GetZoomRatioRange(std::shared_ptr<CameraAbility> &ability) in GetZoomRatioRange() argument
86 common_metadata_header_t *data = cameraBase_->ability->get(); in GetZoomRatioRange()
107 OHOS::Camera::RetCode CameraAbilityTest::GetJpegOrientation(std::shared_ptr<CameraAbility> &ability) in GetJpegOrientation() argument
109 common_metadata_header_t *data = cameraBase_->ability->get(); in GetJpegOrientation()
[all …]
Dcamera_ability_test.h27 OHOS::Camera::RetCode GetSensorOrientation(std::shared_ptr<CameraAbility> &ability);
28 OHOS::Camera::RetCode GetFlashAvailable(std::shared_ptr<CameraAbility> &ability);
29 OHOS::Camera::RetCode GetAfAvailable(std::shared_ptr<CameraAbility> &ability);
30 OHOS::Camera::RetCode GetZoomRatioRange(std::shared_ptr<CameraAbility> &ability);
31 OHOS::Camera::RetCode GetJpegOrientation(std::shared_ptr<CameraAbility> &ability);
Dcamera_stabili_test.cpp36 std::shared_ptr<CameraAbility> &ability) in GetAvalialbleVideoStabilizationModes() argument
38 common_metadata_header_t* data = ability->get(); in GetAvalialbleVideoStabilizationModes()
64 if (cameraBase_->ability == nullptr) {
68 GetAvalialbleVideoStabilizationModes(cameraBase_->ability);
117 if (cameraBase_->ability == nullptr) {
121 GetAvalialbleVideoStabilizationModes(cameraBase_->ability);
Dcamera_fps_test.cpp35 void CameraFpsTest::GetFpsRange(std::shared_ptr<CameraAbility> &ability) in GetFpsRange() argument
37 common_metadata_header_t* data = ability->get(); in GetFpsRange()
65 if (cameraBase_->ability == nullptr) {
69 GetFpsRange(cameraBase_->ability);
/drivers/peripheral/camera/test/demo/
Dohos_camera_demo.h107 RetCode GetFaceDetectMode(std::shared_ptr<CameraAbility> &ability);
108 RetCode GetFocalLength(std::shared_ptr<CameraAbility> &ability);
109 RetCode GetAvailableFocusModes(std::shared_ptr<CameraAbility> &ability);
110 RetCode GetAvailableExposureModes(std::shared_ptr<CameraAbility> &ability);
111 RetCode GetExposureCompensationRange(std::shared_ptr<CameraAbility> &ability);
112 RetCode GetExposureCompensationSteps(std::shared_ptr<CameraAbility> &ability);
113 RetCode GetAvailableMeterModes(std::shared_ptr<CameraAbility> &ability);
114 RetCode GetAvailableFlashModes(std::shared_ptr<CameraAbility> &ability);
115 RetCode GetMirrorSupported(std::shared_ptr<CameraAbility> &ability);
116 RetCode GetStreamBasicConfigurations(std::shared_ptr<CameraAbility> &ability);
[all …]
Dohos_camera_demo.cpp835 RetCode OhosCameraDemo::GetFaceDetectMode(std::shared_ptr<CameraAbility> &ability) in GetFaceDetectMode() argument
837 common_metadata_header_t* data = ability->get(); in GetFaceDetectMode()
850 RetCode OhosCameraDemo::GetFocalLength(std::shared_ptr<CameraAbility> &ability) in GetFocalLength() argument
852 common_metadata_header_t* data = ability->get(); in GetFocalLength()
865 RetCode OhosCameraDemo::GetAvailableFocusModes(std::shared_ptr<CameraAbility> &ability) in GetAvailableFocusModes() argument
867 common_metadata_header_t* data = ability->get(); in GetAvailableFocusModes()
888 RetCode OhosCameraDemo::GetAvailableExposureModes(std::shared_ptr<CameraAbility> &ability) in GetAvailableExposureModes() argument
890 common_metadata_header_t* data = ability->get(); in GetAvailableExposureModes()
911 RetCode OhosCameraDemo::GetExposureCompensationRange(std::shared_ptr<CameraAbility> &ability) in GetExposureCompensationRange() argument
913 common_metadata_header_t* data = ability->get(); in GetExposureCompensationRange()
[all …]
/drivers/peripheral/camera/test/demo_3A/
Dohos_camera_demo_3a.h106 RetCode GetFaceDetectMode(std::shared_ptr<CameraAbility> &ability);
107 RetCode GetFocalLength(std::shared_ptr<CameraAbility> &ability);
108 RetCode GetAvailableFocusModes(std::shared_ptr<CameraAbility> &ability);
109 RetCode GetAvailableExposureModes(std::shared_ptr<CameraAbility> &ability);
110 RetCode GetExposureCompensationRange(std::shared_ptr<CameraAbility> &ability);
111 RetCode GetExposureCompensationSteps(std::shared_ptr<CameraAbility> &ability);
112 RetCode GetAvailableMeterModes(std::shared_ptr<CameraAbility> &ability);
113 RetCode GetAvailableFlashModes(std::shared_ptr<CameraAbility> &ability);
114 RetCode GetMirrorSupported(std::shared_ptr<CameraAbility> &ability);
115 RetCode GetStreamBasicConfigurations(std::shared_ptr<CameraAbility> &ability);
[all …]
Dohos_camera_demo_3a.cpp843 RetCode OhosCameraDemo::GetFaceDetectMode(std::shared_ptr<CameraAbility> &ability) in GetFaceDetectMode() argument
845 common_metadata_header_t* data = ability->get(); in GetFaceDetectMode()
858 RetCode OhosCameraDemo::GetFocalLength(std::shared_ptr<CameraAbility> &ability) in GetFocalLength() argument
860 common_metadata_header_t* data = ability->get(); in GetFocalLength()
873 RetCode OhosCameraDemo::GetAvailableFocusModes(std::shared_ptr<CameraAbility> &ability) in GetAvailableFocusModes() argument
875 common_metadata_header_t* data = ability->get(); in GetAvailableFocusModes()
896 RetCode OhosCameraDemo::GetAvailableExposureModes(std::shared_ptr<CameraAbility> &ability) in GetAvailableExposureModes() argument
898 common_metadata_header_t* data = ability->get(); in GetAvailableExposureModes()
919 RetCode OhosCameraDemo::GetExposureCompensationRange(std::shared_ptr<CameraAbility> &ability) in GetExposureCompensationRange() argument
921 common_metadata_header_t* data = ability->get(); in GetExposureCompensationRange()
[all …]
/drivers/peripheral/distributed_camera/hdi_service/test/sample/
Ddcamera_hdf_demo.h131 RetCode GetFaceDetectMode(std::shared_ptr<CameraAbility> &ability);
132 RetCode GetFocalLength(std::shared_ptr<CameraAbility> &ability);
133 RetCode GetAvailableFocusModes(std::shared_ptr<CameraAbility> &ability);
134 RetCode GetAvailableExposureModes(std::shared_ptr<CameraAbility> &ability);
135 RetCode GetExposureCompensationRange(std::shared_ptr<CameraAbility> &ability);
136 RetCode GetExposureCompensationSteps(std::shared_ptr<CameraAbility> &ability);
137 RetCode GetAvailableMeterModes(std::shared_ptr<CameraAbility> &ability);
138 RetCode GetAvailableFlashModes(std::shared_ptr<CameraAbility> &ability);
139 RetCode GetMirrorSupported(std::shared_ptr<CameraAbility> &ability);
140 RetCode GetStreamBasicConfigurations(std::shared_ptr<CameraAbility> &ability);
[all …]
Ddcamera_hdf_demo.cpp784 RetCode DcameraHdfDemo::GetFaceDetectMode(std::shared_ptr<CameraAbility> &ability) in GetFaceDetectMode() argument
786 common_metadata_header_t* data = ability->get(); in GetFaceDetectMode()
799 RetCode DcameraHdfDemo::GetFocalLength(std::shared_ptr<CameraAbility> &ability) in GetFocalLength() argument
801 common_metadata_header_t* data = ability->get(); in GetFocalLength()
814 RetCode DcameraHdfDemo::GetAvailableFocusModes(std::shared_ptr<CameraAbility> &ability) in GetAvailableFocusModes() argument
816 common_metadata_header_t* data = ability->get(); in GetAvailableFocusModes()
837 RetCode DcameraHdfDemo::GetAvailableExposureModes(std::shared_ptr<CameraAbility> &ability) in GetAvailableExposureModes() argument
839 common_metadata_header_t* data = ability->get(); in GetAvailableExposureModes()
860 RetCode DcameraHdfDemo::GetExposureCompensationRange(std::shared_ptr<CameraAbility> &ability) in GetExposureCompensationRange() argument
862 common_metadata_header_t* data = ability->get(); in GetExposureCompensationRange()
[all …]
/drivers/peripheral/camera/test/hdi/v1_1/src/
Dfront_camera_tag_uttest_v1_1.cpp36 bool g_isFrontTagValueExistsU8(std::shared_ptr<CameraMetadata> ability, uint32_t tag, uint8_t value) in g_isFrontTagValueExistsU8() argument
38 common_metadata_header_t* data = ability->get(); in g_isFrontTagValueExistsU8()
60 common_metadata_header_t* data = cameraTest->ability->get();
97 common_metadata_header_t* data = cameraTest->ability->get();
99 …bool beautyFaceSlenderFlag = g_isFrontTagValueExistsU8(cameraTest->ability, OHOS_ABILITY_SCENE_BEA…
141 common_metadata_header_t* data = cameraTest->ability->get();
143 bool beautyFaceSlenderFlag = g_isFrontTagValueExistsU8(cameraTest->ability,
185 common_metadata_header_t* data = cameraTest->ability->get();
187 bool beautyFaceSlenderFlag = g_isFrontTagValueExistsU8(cameraTest->ability,
Dcamera_tag_uttest_v1_1.cpp36 bool isTagValueExistsU8(std::shared_ptr<CameraMetadata> ability, uint32_t tag, uint8_t value) in isTagValueExistsU8() argument
38 common_metadata_header_t* data = ability->get(); in isTagValueExistsU8()
84 common_metadata_header_t* data = cameraTest->ability->get();
108 common_metadata_header_t* data = cameraTest->ability->get();
112 bool portraitFlag = isTagValueExistsU8(cameraTest->ability, OHOS_ABILITY_CAMERA_MODES,
153 common_metadata_header_t* data = cameraTest->ability->get();
191 common_metadata_header_t* data = cameraTest->ability->get();
193 bool beautyAutoFlag = isTagValueExistsU8(cameraTest->ability, OHOS_ABILITY_SCENE_BEAUTY_TYPES,
235 common_metadata_header_t* data = cameraTest->ability->get();
/drivers/peripheral/camera/test/hdi/v1_3/src/
Dcamera_professional_uttest_v1_3.cpp48 bool g_isModeExists(std::shared_ptr<CameraMetadata> ability, uint32_t tag, uint8_t value) in g_isModeExists() argument
50 common_metadata_header_t* data = ability->get(); in g_isModeExists()
63 void GetSupportedPhysicalApertureValues(std::shared_ptr<CameraMetadata> ability) in GetSupportedPhysicalApertureValues() argument
66 EXPECT_NE(ability, nullptr); in GetSupportedPhysicalApertureValues()
67 common_metadata_header_t* data = ability->get(); in GetSupportedPhysicalApertureValues()
100 EXPECT_NE(cameraTest->ability, nullptr);
101 common_metadata_header_t* data = cameraTest->ability->get();
127 EXPECT_NE(cameraTest->ability, nullptr);
128 common_metadata_header_t* data = cameraTest->ability->get();
156 …if (!g_isModeExists(cameraTest->ability, OHOS_ABILITY_CAMERA_MODES, OHOS::HDI::Camera::V1_3::PROFE…
[all …]
Dcamera_hdi_uttest_v1_3.cpp47 bool IsTagValueExistsU8(std::shared_ptr<CameraMetadata> ability, uint32_t tag, uint8_t value) in IsTagValueExistsU8() argument
49 common_metadata_header_t* data = ability->get(); in IsTagValueExistsU8()
62 void PrintAllTagDataU8(std::shared_ptr<CameraMetadata> ability, uint32_t tag) in PrintAllTagDataU8() argument
64 common_metadata_header_t* data = ability->get(); in PrintAllTagDataU8()
85 EXPECT_NE(cameraTest->ability, nullptr);
96 PrintAllTagDataU8(cameraTest->ability, OHOS_ABILITY_CAMERA_MODES);
136 EXPECT_NE(cameraTest->ability, nullptr);
137 common_metadata_header_t* data = cameraTest->ability->get();
161 …if (!IsTagValueExistsU8(cameraTest->ability, OHOS_ABILITY_CAMERA_MODES, OHOS::HDI::Camera::V1_3::H…
197 …if (!IsTagValueExistsU8(cameraTest->ability, OHOS_ABILITY_CAMERA_MODES, OHOS::HDI::Camera::V1_3::H…
[all …]
/drivers/external_device_manager/
DREADME_zh.md30 │   ├── driver_ext_ability # ext ability桥接类
40 │   │   ├── driver_extension # driver extension ability 和driver extension context定义和实现
47 │   │   │   ├── driver_ability_controller # ability生命周期管理接口定义
52 │   │   ├── driver_ability_controller # ability生命周期管理接口实现
/drivers/peripheral/camera/hal_c/include/
Dcamera_host_c_if.h37 int (*GetCameraAbility)(const char* cameraId, CameraAbilityCIF* ability);
44 typedef int (*HOST_C_FUNC_GETCAMERAABILITY)(const char* cameraId, CameraAbilityCIF* ability);
/drivers/peripheral/camera/test/hdi/v1_0/src/
Ddevice_ability_uttest.cpp45 EXPECT_NE(cameraTest->ability, nullptr);
46 common_metadata_header_t *data = cameraTest->ability->get();
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/src/
Dcamera_control.cpp235 struct CameraCapability ability = {}; in CameraGetAbility() local
253 ret = ReadAbilitySbufData(respData, ability); in CameraGetAbility()
265 int CameraControl::ReadAbilitySbufData(struct HdfSBuf *respData, struct CameraCapability &ability) in ReadAbilitySbufData() argument
274 …isFailed |= strncpy_s(ability.driver, DRIVER_NAME_NUM, HdfSbufReadString(respData), DRIVER_NAME_NU… in ReadAbilitySbufData()
275 isFailed |= strncpy_s(ability.card, NAME_SIZE, HdfSbufReadString(respData), NAME_SIZE); in ReadAbilitySbufData()
276 isFailed |= strncpy_s(ability.busInfo, NAME_SIZE, HdfSbufReadString(respData), NAME_SIZE); in ReadAbilitySbufData()
277 isFailed |= !HdfSbufReadUint32(respData, &ability.capabilities); in ReadAbilitySbufData()
281 ability.driver, ability.card, ability.busInfo, ability.capabilities); in ReadAbilitySbufData()
/drivers/peripheral/camera/vdi_base/usb_camera/vdi_impl/src/camera_host/
Dcamera_host_usb_config.cpp67 const std::string &cameraId, std::shared_ptr<CameraAbility> &ability) in GetCameraAbility() argument
71 ability = itr->second; in GetCameraAbility()
79 const std::vector<std::string> &physicalCameraIds, const std::shared_ptr<CameraAbility> ability) in AddCameraId() argument
88 cameraAbilityMap_.insert(std::make_pair(logicalCameraId, ability)); in AddCameraId()
/drivers/external_device_manager/test/unittest/driver_extension_context_test/
DBUILD.gn15 import("//foundation/ability/ability_runtime/ability_runtime.gni")
43 "${ability_runtime_native_path}/ability/native:ability_business_error",
44 "${ability_runtime_native_path}/ability/native:abilitykit_native",
/drivers/external_device_manager/test/xts/hats/hdf/driver_extension/extension/
DBUILD.gn17 import("//foundation/ability/ability_runtime/ability_runtime.gni")
46 "${ability_runtime_native_path}/ability/native:ability_business_error",
47 "${ability_runtime_native_path}/ability/native:abilitykit_native",
/drivers/peripheral/camera/test/hdi/v1_2/src/
Dcamera_hdi_uttest_v1_2.cpp41 bool IsTagValueExistsU8(std::shared_ptr<CameraMetadata> ability, uint32_t tag, uint8_t value) in IsTagValueExistsU8() argument
43 common_metadata_header_t* data = ability->get(); in IsTagValueExistsU8()
69 cameraTest->ability->addEntry(OHOS_ABILITY_DEFERRED_IMAGE_DELIVERY,
73 isExit = IsTagValueExistsU8(cameraTest->ability,\
77 isExit = IsTagValueExistsU8(cameraTest->ability,\
132 bool isExit = IsTagValueExistsU8(cameraTest->ability,\
215 bool isExit = IsTagValueExistsU8(cameraTest->ability,\
243 EXPECT_NE(cameraTest->ability, nullptr);
244 common_metadata_header_t* data = cameraTest->ability->get();
275 EXPECT_NE(cameraTest->ability, nullptr);
[all …]
/drivers/peripheral/camera/vdi_base/v4l2/src/camera_host/
Dcamera_host_config.cpp108 const std::string &cameraId, std::shared_ptr<CameraAbility> &ability) in GetCameraAbility() argument
112 ability = itr->second; in GetCameraAbility()
120 const std::vector<std::string> &physicalCameraIds, const std::shared_ptr<CameraAbility> ability) in AddCameraId() argument
129 cameraAbilityMap_.insert(std::make_pair(logicalCameraId, ability)); in AddCameraId()
/drivers/peripheral/distributed_camera/hdi_service/test/unittest/common/dcamera_device/
Ddcamera_device_test.cpp145 std::shared_ptr<CameraAbility> ability = nullptr; variable
146 CamRetCode rc = dcameraDevice_->GetDCameraAbility(ability);
/drivers/peripheral/camera/vdi_base/v4l2/include/camera_host/
Dcamera_host_config.h33 RetCode GetCameraAbility(const std::string &cameraId, std::shared_ptr<CameraAbility> &ability);
35 … const std::vector<std::string> &physicalCameraIds, const std::shared_ptr<CameraAbility> ability);

1234