Home
last modified time | relevance | path

Searched refs:isTorchSupported (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/docs/zh-cn/application-dev/media/camera/
H A Dnative-camera-torch-use.md37 bool isTorchSupported = false;
38 Camera_ErrorCode ret = OH_CameraManager_IsTorchSupported(cameraManager, &isTorchSupported);
42 if (isTorchSupported) {
43 OH_LOG_INFO(LOG_APP, "isTorchSupported success.");
45 OH_LOG_ERROR(LOG_APP, "isTorchSupported failed.");
H A Dcamera-torch-use.md21 …../../reference/apis-camera-kit/js-apis-camera.md#cameramanager)类中的[isTorchSupported](../../refere…
24 function isTorchSupported(cameraManager: camera.CameraManager) : boolean {
27 torchSupport = cameraManager.isTorchSupported();
/ohos5.0/docs/en/application-dev/media/camera/
H A Dnative-camera-torch-use.md37 bool isTorchSupported = false;
38 Camera_ErrorCode ret = OH_CameraManager_IsTorchSupported(cameraManager, &isTorchSupported);
42 if (isTorchSupported) {
43 OH_LOG_INFO(LOG_APP, "isTorchSupported success.");
45 OH_LOG_ERROR(LOG_APP, "isTorchSupported failed.");
H A Dcamera-torch-use.md21 2. Call [isTorchSupported](../../reference/apis-camera-kit/js-apis-camera.md#istorchsupported11) in…
24 function isTorchSupported(cameraManager: camera.CameraManager) : boolean {
27 torchSupport = cameraManager.isTorchSupported();
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/ndk/
H A Dcamera_manager.cpp375 bool* isTorchSupported) in OH_CameraManager_IsTorchSupported() argument
379 CHECK_AND_RETURN_RET_LOG(isTorchSupported != nullptr, CAMERA_INVALID_ARGUMENT, in OH_CameraManager_IsTorchSupported()
382 return cameraManager->IsTorchSupported(isTorchSupported); in OH_CameraManager_IsTorchSupported()
390 Camera_TorchMode torchMode, bool* isTorchSupported) in OH_CameraManager_IsTorchSupportedByTorchMode() argument
394 CHECK_AND_RETURN_RET_LOG(isTorchSupported != nullptr, CAMERA_INVALID_ARGUMENT, in OH_CameraManager_IsTorchSupportedByTorchMode()
397 return cameraManager->IsTorchSupportedByTorchMode(torchMode, isTorchSupported); in OH_CameraManager_IsTorchSupportedByTorchMode()
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/ndk/impl/
H A Dcamera_manager_impl.h84 Camera_ErrorCode IsTorchSupported(bool* isTorchSupported);
86 … Camera_ErrorCode IsTorchSupportedByTorchMode(Camera_TorchMode torchMode, bool* isTorchSupported);
H A Dcamera_manager_impl.cpp776 Camera_ErrorCode Camera_Manager::IsTorchSupported(bool* isTorchSupported) in IsTorchSupported() argument
780 *isTorchSupported = CameraManager::GetInstance()->IsTorchSupported(); in IsTorchSupported()
781 MEDIA_DEBUG_LOG("IsTorchSupported[%{public}d]", *isTorchSupported); in IsTorchSupported()
785 …ode Camera_Manager::IsTorchSupportedByTorchMode(Camera_TorchMode torchMode, bool* isTorchSupported) in IsTorchSupportedByTorchMode() argument
794 *isTorchSupported = CameraManager::GetInstance()->IsTorchModeSupported(itr->second); in IsTorchSupportedByTorchMode()
795 MEDIA_DEBUG_LOG("IsTorchSupportedByTorchMode[%{public}d]", *isTorchSupported); in IsTorchSupportedByTorchMode()
/ohos5.0/foundation/multimedia/camera_framework/interfaces/kits/native/include/camera/
H A Dcamera_manager.h445 bool* isTorchSupported);
459 Camera_TorchMode torchMode, bool* isTorchSupported);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-camera-kit/
H A Dcamera__manager_8h.md65 …a_Manager](_o_h___camera.md#camera_manager) \*cameraManager, bool \*isTorchSupported) | 检查设备是否支持手电…
66 …era_TorchMode](_o_h___camera.md#camera_torchmode) torchMode, bool \*isTorchSupported) | 检查设备是否支持指定…
H A D_o_h___camera.md224 …pported) ([Camera_Manager](#camera_manager) \*cameraManager, bool \*isTorchSupported) | 检查设备是否支持手电…
225 …eraManager, [Camera_TorchMode](#camera_torchmode) torchMode, bool \*isTorchSupported) | 检查设备是否支持指定…
2862 …_ErrorCode OH_CameraManager_IsTorchSupported(Camera_Manager* cameraManager, bool* isTorchSupported)
2876 | isTorchSupported | 设备是否支持手电筒。 |
2890 …ortedByTorchMode(Camera_Manager* cameraManager, Camera_TorchMode torchMode, bool* isTorchSupported)
2905 | isTorchSupported | 设备是否支持指定的手电筒模式。 |
H A Djs-apis-camera.md1051 ### isTorchSupported<sup>11+</sup>
1053 isTorchSupported(): boolean
1068 function isTorchSupported(cameraManager: camera.CameraManager): boolean {
1069 let isSupported = cameraManager.isTorchSupported();
/ohos5.0/docs/en/application-dev/reference/apis-camera-kit/
H A Dcamera__manager_8h.md65 …a_Manager](_o_h___camera.md#camera_manager) \*cameraManager, bool \*isTorchSupported) | Checks whe…
66 …era_TorchMode](_o_h___camera.md#camera_torchmode) torchMode, bool \*isTorchSupported) | Checks whe…
H A D_o_h___camera.md221 …pported) ([Camera_Manager](#camera_manager) \*cameraManager, bool \*isTorchSupported) | Checks whe…
222 …eraManager, [Camera_TorchMode](#camera_torchmode) torchMode, bool \*isTorchSupported) | Checks whe…
2830 …_ErrorCode OH_CameraManager_IsTorchSupported(Camera_Manager* cameraManager, bool* isTorchSupported)
2844 | isTorchSupported | Pointer to the result indicating whether the device supports the flashlight.|
2858 …ortedByTorchMode(Camera_Manager* cameraManager, Camera_TorchMode torchMode, bool* isTorchSupported)
2873 | isTorchSupported | Pointer to the result indicating whether the device supports the flashlight mo…
H A Djs-apis-camera.md1054 ### isTorchSupported<sup>11+</sup>
1056 isTorchSupported(): boolean
1071 function isTorchSupported(cameraManager: camera.CameraManager): boolean {
1072 let isSupported = cameraManager.isTorchSupported();
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/src/v1_1/
H A Dcamera_ndk_unittest.cpp3877 bool isTorchSupported = false; variable
3879 ret = OH_CameraManager_IsTorchSupported(cameraManager, &isTorchSupported);
3881 if (isTorchSupported == true) {
3882 … ret = OH_CameraManager_IsTorchSupportedByTorchMode(cameraManager, torchMode, &isTorchSupported);
3884 if (isTorchSupported == true) {
3892 … ret = OH_CameraManager_IsTorchSupportedByTorchMode(nullptr, torchMode, &isTorchSupported);
3899 ret = OH_CameraManager_IsTorchSupported(nullptr, &isTorchSupported);
3938 bool isTorchSupported = false; variable
3940 ret = OH_CameraManager_IsTorchSupported(cameraManager, &isTorchSupported);
3942 if (isTorchSupported == true) {
[all …]
H A Dcamera_framework_unittest.cpp5447 bool isTorchSupported = cameraManager->IsTorchSupported(); variable
5448 EXPECT_EQ(isTorchSupported, false);
5478 bool isTorchSupported = cameraManager->IsTorchSupported(); variable
5479 EXPECT_EQ(isTorchSupported, false);
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/input/
H A Dcamera_manager_napi.cpp1643 bool isTorchSupported = CameraManager::GetInstance()->IsTorchSupported(); in IsTorchSupported() local
1644 MEDIA_DEBUG_LOG("IsTorchSupported : %{public}d", isTorchSupported); in IsTorchSupported()
1645 napi_get_boolean(env, isTorchSupported, &result); in IsTorchSupported()
/ohos5.0/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/
H A D@ohos.multimedia.camera.d.ts1000 isTorchSupported(): boolean;