Home
last modified time | relevance | path

Searched refs:native (Results 1 - 25 of 126) sorted by relevance

123456

/foundation/multimedia/image_framework/frameworks/kits/js/common/pixelmap_ndk/
H A Dimage_pixel_map_ndk.cpp91 int32_t OH_PixelMap_GetBytesNumberPerRow(const NativePixelMap* native, int32_t* num) in OH_PixelMap_GetBytesNumberPerRow() argument
93 if (native == nullptr || native->napi == nullptr) { in OH_PixelMap_GetBytesNumberPerRow()
98 return PixelMapNapiNativeCtxCall(CTX_FUNC_GET_ROW_BYTES, native->napi, &args); in OH_PixelMap_GetBytesNumberPerRow()
102 int32_t OH_PixelMap_GetIsEditable(const NativePixelMap* native, int32_t* editable) in OH_PixelMap_GetIsEditable() argument
104 if (native == nullptr || native->napi == nullptr) { in OH_PixelMap_GetIsEditable()
109 return PixelMapNapiNativeCtxCall(CTX_FUNC_IS_EDITABLE, native->napi, &args); in OH_PixelMap_GetIsEditable()
113 int32_t OH_PixelMap_IsSupportAlpha(const NativePixelMap* native, int32_t* alpha) in OH_PixelMap_IsSupportAlpha() argument
115 if (native in OH_PixelMap_IsSupportAlpha()
124 OH_PixelMap_SetAlphaAble(const NativePixelMap* native, int32_t alpha) OH_PixelMap_SetAlphaAble() argument
135 OH_PixelMap_GetDensity(const NativePixelMap* native, int32_t* density) OH_PixelMap_GetDensity() argument
146 OH_PixelMap_SetDensity(const NativePixelMap* native, int32_t density) OH_PixelMap_SetDensity() argument
157 OH_PixelMap_SetOpacity(const NativePixelMap* native, float opacity) OH_PixelMap_SetOpacity() argument
168 OH_PixelMap_Scale(const NativePixelMap* native, float x, float y) OH_PixelMap_Scale() argument
181 OH_PixelMap_ScaleWithAntiAliasing(const NativePixelMap* native, float x, float y, OH_PixelMap_AntiAliasingLevel level) OH_PixelMap_ScaleWithAntiAliasing() argument
195 OH_PixelMap_Translate(const NativePixelMap* native, float x, float y) OH_PixelMap_Translate() argument
207 OH_PixelMap_Rotate(const NativePixelMap* native, float angle) OH_PixelMap_Rotate() argument
218 OH_PixelMap_Flip(const NativePixelMap* native, int32_t x, int32_t y) OH_PixelMap_Flip() argument
230 OH_PixelMap_Crop(const NativePixelMap* native, int32_t x, int32_t y, int32_t width, int32_t height) OH_PixelMap_Crop() argument
244 OH_PixelMap_GetImageInfo(const NativePixelMap* native, OhosPixelMapInfos *info) OH_PixelMap_GetImageInfo() argument
255 OH_PixelMap_AccessPixels(const NativePixelMap* native, void** addr) OH_PixelMap_AccessPixels() argument
266 OH_PixelMap_UnAccessPixels(const NativePixelMap* native) OH_PixelMap_UnAccessPixels() argument
[all...]
/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/
H A Dimage_receiver_mdk.cpp57 int32_t OH_Image_Receiver_GetReceivingSurfaceId(const ImageReceiverNative* native, char* id, size_t len) in OH_Image_Receiver_GetReceivingSurfaceId() argument
59 if (native == nullptr || native->napi == nullptr) { in OH_Image_Receiver_GetReceivingSurfaceId()
65 return ImageReceiverNativeCtxCall(CTX_FUNC_IMAGE_RECEIVER_GET_RECEIVER_ID, native->napi, &args); in OH_Image_Receiver_GetReceivingSurfaceId()
69 int32_t OH_Image_Receiver_ReadLatestImage(const ImageReceiverNative* native, napi_value* image) in OH_Image_Receiver_ReadLatestImage() argument
71 if (native == nullptr || native->napi == nullptr || native->env == nullptr) { in OH_Image_Receiver_ReadLatestImage()
76 args.inEnv = native->env; in OH_Image_Receiver_ReadLatestImage()
77 return ImageReceiverNativeCtxCall(CTX_FUNC_IMAGE_RECEIVER_READ_LATEST_IMAGE, native in OH_Image_Receiver_ReadLatestImage()
81 OH_Image_Receiver_ReadNextImage(const ImageReceiverNative* native, napi_value* image) OH_Image_Receiver_ReadNextImage() argument
93 OH_Image_Receiver_On(const ImageReceiverNative* native, OH_Image_Receiver_On_Callback callback) OH_Image_Receiver_On() argument
104 OH_Image_Receiver_GetSize(const ImageReceiverNative* native, struct OhosImageSize* size) OH_Image_Receiver_GetSize() argument
115 OH_Image_Receiver_GetCapacity(const ImageReceiverNative* native, int32_t* capacity) OH_Image_Receiver_GetCapacity() argument
126 OH_Image_Receiver_GetFormat(const ImageReceiverNative* native, int32_t* format) OH_Image_Receiver_GetFormat() argument
137 OH_Image_Receiver_Release(ImageReceiverNative* native) OH_Image_Receiver_Release() argument
[all...]
H A Dimage_mdk.cpp42 int32_t OH_Image_ClipRect(const ImageNative* native, struct OhosImageRect* rect) in OH_Image_ClipRect() argument
44 if (native == nullptr || native->napi == nullptr) { in OH_Image_ClipRect()
49 auto res = ImageNapiNativeCtxCall(CTX_FUNC_IMAGE_CLIP_RECT, native->napi, &args); in OH_Image_ClipRect()
54 int32_t OH_Image_Size(const ImageNative* native, struct OhosImageSize* size) in OH_Image_Size() argument
56 if (native == nullptr || native->napi == nullptr) { in OH_Image_Size()
61 auto res = ImageNapiNativeCtxCall(CTX_FUNC_IMAGE_SIZE, native->napi, &args); in OH_Image_Size()
66 int32_t OH_Image_Format(const ImageNative* native, int32_t* format) in OH_Image_Format() argument
68 if (native in OH_Image_Format()
78 OH_Image_GetComponent(const ImageNative* native, int32_t componentType, struct OhosImageComponent* componentNative) OH_Image_GetComponent() argument
92 OH_Image_Release(ImageNative* native) OH_Image_Release() argument
[all...]
H A Dimage_packer_mdk.cpp52 int32_t OH_ImagePacker_PackToData(ImagePacker_Native* native, napi_value source, in OH_ImagePacker_PackToData() argument
55 if (native == nullptr || native->napi == nullptr || native->env == nullptr) { in OH_ImagePacker_PackToData()
59 args.inEnv = native->env; in OH_ImagePacker_PackToData()
60 args.inNapi = native->napi; in OH_ImagePacker_PackToData()
69 int32_t OH_ImagePacker_PackToFile(ImagePacker_Native* native, napi_value source, in OH_ImagePacker_PackToFile() argument
72 if (native == nullptr || native->napi == nullptr || native in OH_ImagePacker_PackToFile()
85 OH_ImagePacker_Release(ImagePacker_Native* native) OH_ImagePacker_Release() argument
[all...]
H A Dimage_source_mdk.cpp158 int32_t OH_ImageSource_CreatePixelMap(const ImageSourceNative* native, in OH_ImageSource_CreatePixelMap() argument
161 if (native == nullptr || native->napi == nullptr) { in OH_ImageSource_CreatePixelMap()
165 args.napi = native->napi; in OH_ImageSource_CreatePixelMap()
166 args.inEnv = native->env; in OH_ImageSource_CreatePixelMap()
174 int32_t OH_ImageSource_CreatePixelMapList(const ImageSourceNative* native, in OH_ImageSource_CreatePixelMapList() argument
177 if (native == nullptr || native->napi == nullptr) { in OH_ImageSource_CreatePixelMapList()
181 args.napi = native->napi; in OH_ImageSource_CreatePixelMapList()
182 args.inEnv = native in OH_ImageSource_CreatePixelMapList()
190 OH_ImageSource_GetDelayTime(const ImageSourceNative* native, struct OhosImageSourceDelayTimeList* res) OH_ImageSource_GetDelayTime() argument
204 OH_ImageSource_GetFrameCount(const ImageSourceNative* native, uint32_t *res) OH_ImageSource_GetFrameCount() argument
217 OH_ImageSource_GetImageInfo(const ImageSourceNative* native, int32_t index, struct OhosImageSourceInfo* info) OH_ImageSource_GetImageInfo() argument
232 OH_ImageSource_GetImageProperty(const ImageSourceNative* native, struct OhosImageSourceProperty* key, struct OhosImageSourceProperty* value) OH_ImageSource_GetImageProperty() argument
247 OH_ImageSource_ModifyImageProperty(const ImageSourceNative* native, struct OhosImageSourceProperty* key, struct OhosImageSourceProperty* value) OH_ImageSource_ModifyImageProperty() argument
262 OH_ImageSource_UpdateData(const ImageSourceNative* native, struct OhosImageSourceUpdateData* data) OH_ImageSource_UpdateData() argument
276 OH_ImageSource_Release(ImageSourceNative* native) OH_ImageSource_Release() argument
[all...]
/foundation/graphic/graphic_2d/interfaces/kits/cj/color_manager/
H A Dcolor_mgr_ffi.cpp37 auto native = FFIData::Create<CjColorManager>(ptr); in CJ_ColorMgrCreateByColorSpace() local
38 if (native == nullptr) { in CJ_ColorMgrCreateByColorSpace()
43 *id = native->GetID(); in CJ_ColorMgrCreateByColorSpace()
54 auto native = FFIData::Create<CjColorManager>(ptr); in CJ_ColorMgrCreate() local
55 if (native == nullptr) { in CJ_ColorMgrCreate()
59 return native->GetID(); in CJ_ColorMgrCreate()
65 auto native = FFIData::GetData<CjColorManager>(id); in CJ_ColorMgrGetColorSpaceName() local
66 if (native == nullptr) { in CJ_ColorMgrGetColorSpaceName()
70 return native->GetColorSpaceName(errCode); in CJ_ColorMgrGetColorSpaceName()
76 auto native in CJ_ColorMgrGetWhitePoint() local
99 auto native = FFIData::GetData<CjColorManager>(id); CJ_ColorMgrGetGamma() local
[all...]
/foundation/multimedia/image_framework/interfaces/kits/native/include/
H A Dimage_pixel_map_mdk.h48 * @brief Defines the native pixel map information.
55 * @brief Defines the data type name of the native pixel map.
292 * @param native Indicates the pointer to a <b>NativePixelMap</b> object.
304 int32_t OH_PixelMap_GetBytesNumberPerRow(const NativePixelMap* native, int32_t* num);
309 * @param native Indicates the pointer to a <b>NativePixelMap</b> object.
321 int32_t OH_PixelMap_GetIsEditable(const NativePixelMap* native, int32_t* editable);
326 * @param native Indicates the pointer to a <b>NativePixelMap</b> object.
338 int32_t OH_PixelMap_IsSupportAlpha(const NativePixelMap* native, int32_t* alpha);
343 * @param native Indicates the pointer to a <b>NativePixelMap</b> object.
355 int32_t OH_PixelMap_SetAlphaAble(const NativePixelMap* native, int32_
[all...]
H A Dimage_receiver_mdk.h20 * @brief Provides APIs for obtaining image data from the native layer.
30 * @brief Declares the APIs for obtaining image data from the native layer.
47 * @brief Defines an <b>ImageReceiver</b> object at the native layer.
55 * @brief Defines the data type name of a native image receiver.
63 * @brief Defines the callbacks for images at the native layer.
111 * @brief Initializes an {@link ImageReceiverNative} object at the native layer
127 * @param native Indicates the pointer to an {@link ImageReceiverNative} object at the native layer.
142 int32_t OH_Image_Receiver_GetReceivingSurfaceId(const ImageReceiverNative* native, char* id, size_t len);
147 * @param native Indicate
[all...]
H A Dimage_mdk.h49 * @brief Defines an image object at the native layer for the image interface.
123 * @brief Parses an {@link ImageNative} object at the native layer from a JavaScript native API <b>image </b> object.
126 * @param source Indicates a JavaScript native API <b>image </b> object.
136 * @brief Obtains {@link OhosImageRect} of an {@link ImageNative} at the native layer.
138 * @param native Indicates the pointer to an {@link ImageNative} object at the native layer.
149 int32_t OH_Image_ClipRect(const ImageNative* native, struct OhosImageRect* rect);
152 * @brief Obtains {@link OhosImageSize} of an {@link ImageNative} object at the native layer.
154 * @param native Indicate
[all...]
H A Dimage_source_mdk.h20 * @brief Provides native APIs for image sources.
48 * @brief Defines a native image source object for the image source APIs.
57 * @brief Defines a native image source object for the image source APIs.
392 * @brief Creates an <b>ImageSource</b> object at the JavaScript native layer based on the specified
399 * @param res Indicates a pointer to the <b>ImageSource</b> object created at the JavaScript native layer.
432 * @brief Creates an <b>ImageSource</b> object at the JavaScript native layer based on the specified
440 * @param res Indicates a pointer to the <b>ImageSource</b> object created at the JavaScript native layer.
455 * @brief Creates an <b>ImageSource</b> object at the JavaScript native layer based on the specified
462 * @param res Indicates a pointer to the <b>ImageSource</b> object created at the JavaScript native layer.
477 * @brief Creates an <b>ImageSource</b> object at the JavaScript native laye
[all...]
H A Dimage_packer_mdk.h20 * @brief Provides native APIs for encoding image data
61 * @brief Defines an image packer object at the native layer for the image packer interface.
90 * @brief Creates an <b>ImagePacker</b> object at the JavaScript native layer.
93 * @param res Indicates a pointer to the <b>ImagePacker</b> object created at the JavaScript native layer.
104 * @brief Parses an {@link ImagePacker_Native} object at the native layer
105 * from a JavaScript native API <b>ImagePacker</b> object.
108 * @param packer Indicates a JavaScript native API <b>ImagePacker</b> object.
120 * @param native Indicates the pointer to an {@link ImagePacker} object at the native layer.
136 int32_t OH_ImagePacker_PackToData(ImagePacker_Native* native, napi_valu
[all...]
/foundation/multimedia/image_framework/frameworks/kits/js/common/
H A Dimage_mdk_kits.cpp28 using ImageNapiCtxFunc = int32_t (*)(ImageNapi* native, struct ImageNapiArgs* args);
41 static NativeImage* CheckAndGetImage(ImageNapi* native, const struct ImageNapiArgs* args) in CheckAndGetImage() argument
46 return GetNativeImage(native); in CheckAndGetImage()
49 static int32_t ImageNapiClipRect(ImageNapi* native, struct ImageNapiArgs* args) in ImageNapiClipRect() argument
51 auto nativeImage = CheckAndGetImage(native, args); in ImageNapiClipRect()
65 static int32_t ImageNapiSize(ImageNapi* native, struct ImageNapiArgs* args) in ImageNapiSize() argument
67 auto nativeImage = CheckAndGetImage(native, args); in ImageNapiSize()
78 static int32_t ImageNapiFormat(ImageNapi* native, struct ImageNapiArgs* args) in ImageNapiFormat() argument
80 auto nativeImage = CheckAndGetImage(native, args); in ImageNapiFormat()
92 static int32_t ImageNapiGetComponent(ImageNapi* native, struc argument
128 ImageNapiNativeCtxCall(int32_t mode, ImageNapi* native, struct ImageNapiArgs* args) ImageNapiNativeCtxCall() argument
[all...]
H A Dimage_receiver_mdk_kits.cpp25 using ImageReceiverNapiCtxFunc = int32_t (*)(ImageReceiverNapi* native, struct ImageReceiverArgs* args);
37 static ImageReceiver* CheckAndGetReceiver(ImageReceiverNapi* native, const struct ImageReceiverArgs* args) in CheckAndGetReceiver() argument
42 return GetNativeReceiver(native); in CheckAndGetReceiver()
63 static int32_t ImageReceiverNapiGetReceiverId(ImageReceiverNapi* native, struct ImageReceiverArgs* args) in ImageReceiverNapiGetReceiverId() argument
65 auto receiver = CheckAndGetReceiver(native, args); in ImageReceiverNapiGetReceiverId()
79 static int32_t ImageReceiverNapiReadLatestImage(ImageReceiverNapi* native, struct ImageReceiverArgs* args) in ImageReceiverNapiReadLatestImage() argument
81 auto receiver = CheckAndGetReceiver(native, args); in ImageReceiverNapiReadLatestImage()
93 static int32_t ImageReceiverNapiReadNextImage(ImageReceiverNapi* native, struct ImageReceiverArgs* args) in ImageReceiverNapiReadNextImage() argument
95 auto receiver = CheckAndGetReceiver(native, args); in ImageReceiverNapiReadNextImage()
107 static int32_t ImageReceiverNapiOn(ImageReceiverNapi* native, struc argument
119 ImageReceiverNapiGetSize(ImageReceiverNapi* native, struct ImageReceiverArgs* args) ImageReceiverNapiGetSize() argument
130 ImageReceiverNapiGetCapacity(ImageReceiverNapi* native, struct ImageReceiverArgs* args) ImageReceiverNapiGetCapacity() argument
140 ImageReceiverNapiGetFormat(ImageReceiverNapi* native, struct ImageReceiverArgs* args) ImageReceiverNapiGetFormat() argument
173 ImageReceiverNativeCtxCall(int32_t mode, ImageReceiverNapi* native, struct ImageReceiverArgs* args) ImageReceiverNativeCtxCall() argument
[all...]
H A Dimage_pixel_map_napi_kits.cpp30 using PixelMapNapiCtxFunc = int32_t (*)(PixelMapNapi* native, PixelMapNapiArgs* args);
168 static std::shared_ptr<PixelMap> CheckAndGetPixelMap(PixelMapNapi* native, PixelMapNapiArgs* args, in CheckAndGetPixelMap() argument
171 return args == nullptr ? nullptr : GetPixelMap(native, args, error); in CheckAndGetPixelMap()
174 static int32_t PixelMapNapiGetRowBytes(PixelMapNapi* native, PixelMapNapiArgs* args) in PixelMapNapiGetRowBytes() argument
177 auto pixelmap = CheckAndGetPixelMap(native, args, error); in PixelMapNapiGetRowBytes()
185 static int32_t PixelMapNapiIsEditable(PixelMapNapi* native, PixelMapNapiArgs* args) in PixelMapNapiIsEditable() argument
188 auto pixelmap = CheckAndGetPixelMap(native, args, error); in PixelMapNapiIsEditable()
197 static int32_t PixelMapNapiIsSupportAlpha(PixelMapNapi* native, PixelMapNapiArgs* args) in PixelMapNapiIsSupportAlpha() argument
200 auto pixelmap = CheckAndGetPixelMap(native, args, error); in PixelMapNapiIsSupportAlpha()
209 static int32_t PixelMapNapiSetAlphaAble(PixelMapNapi* native, PixelMapNapiArg argument
229 PixelMapNapiGetDensity(PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiGetDensity() argument
241 PixelMapNapiSetDensity(PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiSetDensity() argument
260 PixelMapNapiSetOpacity(PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiSetOpacity() argument
274 PixelMapNapiScale(PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiScale() argument
290 PixelMapNapiTranslate(PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiTranslate() argument
302 PixelMapNapiRotate(PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiRotate() argument
314 PixelMapNapiFlip(PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiFlip() argument
326 PixelMapNapiCrop(PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiCrop() argument
342 PixelMapNapiGetImageInfo(PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiGetImageInfo() argument
359 PixelMapNapiAccessPixels(PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiAccessPixels() argument
371 PixelMapNapiUnAccessPixels(PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiUnAccessPixels() argument
414 PixelMapNapiNativeCtxCall(int32_t mode, PixelMapNapi* native, PixelMapNapiArgs* args) PixelMapNapiNativeCtxCall() argument
[all...]
H A Dimage_source_mdk_kits.cpp195 IMAGE_LOGE("ImageSourceNapiCreate native create failed"); in ImageSourceNapiCreate()
229 IMAGE_LOGE("ImageSourceNapiCreateFromUri native create failed"); in ImageSourceNapiCreateFromUri()
262 IMAGE_LOGE("ImageSourceNapiCreateFromFd native create failed"); in ImageSourceNapiCreateFromFd()
298 IMAGE_LOGE("ImageSourceNapiCreateFromData native create failed"); in ImageSourceNapiCreateFromData()
342 IMAGE_LOGE("ImageSourceNapiCreateFromRawFile native create failed"); in ImageSourceNapiCreateFromRawFile()
369 IMAGE_LOGE("ImageSourceNapiCreateIncremental native imagesource failed"); in ImageSourceNapiCreateIncremental()
385 IMAGE_LOGE("ImageSourceNapiCreateIncremental native incremental pixelmap failed"); in ImageSourceNapiCreateIncremental()
412 IMAGE_LOGE("ImageSourceNapiGetSupportedFormats native failed"); in ImageSourceNapiGetSupportedFormats()
464 auto native = GetNativeImageSource(args); in ImageSourceNapiCreatePixelmap() local
465 if (native in ImageSourceNapiCreatePixelmap()
501 auto native = GetNativeImageSource(args); ImageSourceNapiCreatePixelmapList() local
531 auto native = GetNativeImageSource(args); ImageSourceNapiGetDelayTime() local
561 auto native = GetNativeImageSource(args); ImageSourceNapiGetFrameCount() local
578 auto native = GetNativeImageSource(args); ImageSourceNapiGetImageInfo() local
602 auto native = GetNativeImageSource(args); ImageSourceNapiGetImageProperty() local
640 NativePropertyModify(ImageSource* native, ImageResource &imageResource, std::string &key, std::string &val) NativePropertyModify() argument
673 auto native = GetNativeImageSource(args); ImageSourceNapiModifyImageProperty() local
724 auto native = GetNativeImageSource(args); ImageSourceNapiUpdateData() local
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dimage_ndk_test.cpp46 const ImageNative* native = nullptr; in HWTEST_F() local
48 int32_t result = OH_Image_ClipRect(native, rect); in HWTEST_F()
62 const ImageNative* native = nullptr; in HWTEST_F() local
64 int32_t result = OH_Image_Size(native, size); in HWTEST_F()
78 const ImageNative* native = nullptr; in HWTEST_F() local
80 int32_t result = OH_Image_Format(native, format); in HWTEST_F()
94 const ImageNative* native = nullptr; in HWTEST_F() local
97 int32_t result = OH_Image_GetComponent(native, componentType, componentNative); in HWTEST_F()
111 ImageNative* native = nullptr; in HWTEST_F() local
112 int32_t result = OH_Image_Release(native); in HWTEST_F()
432 ImageSourceNative* native = nullptr; HWTEST_F() local
449 ImageSourceNative* native = nullptr; HWTEST_F() local
466 ImageSourceNative* native = nullptr; HWTEST_F() local
482 ImageSourceNative* native = nullptr; HWTEST_F() local
498 ImageSourceNative* native = nullptr; HWTEST_F() local
515 ImageSourceNative* native = nullptr; HWTEST_F() local
532 ImageSourceNative* native = nullptr; HWTEST_F() local
549 ImageSourceNative* native = nullptr; HWTEST_F() local
565 ImageSourceNative* native = nullptr; HWTEST_F() local
[all...]
H A Dimage_packer_mdk_test.cpp71 ImagePacker_Native* native = nullptr; in HWTEST_F() local
76 int32_t ret = OH_ImagePacker_PackToData(native, source, &opts, outData, &size); in HWTEST_F()
89 ImagePacker_Native* native = nullptr; in HWTEST_F() local
93 int32_t ret = OH_ImagePacker_PackToFile(native, source, &opts, fd); in HWTEST_F()
106 ImagePacker_Native* native = nullptr; in HWTEST_F() local
107 int32_t ret = OH_ImagePacker_Release(native); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_pixel_map_test.cpp47 OH_PixelmapNative *native = nullptr; in HWTEST_F() local
48 OH_Drawing_PixelMap* pixelMap = OH_Drawing_PixelMapGetFromOhPixelMapNative(native); in HWTEST_F()
61 OH_PixelmapNative *native = nullptr; in HWTEST_F() local
62 OH_Drawing_PixelMap* pixelMap = OH_Drawing_PixelMapGetFromOhPixelMapNative(native); in HWTEST_F()
/foundation/CastEngine/castengine_wifi_display/services/impl/wfd/
H A Dwfd_message.cpp74 uint8_t native = 0; in SetVideoFormats() local
83 native = (uint8_t)WfdResolutionType::RESOLUTION_CEA | (CEA_1920_1080_P30 << BIT_OFFSET_THREE); in SetVideoFormats()
87 native = (uint8_t)WfdResolutionType::RESOLUTION_CEA | (CEA_1920_1080_P25 << BIT_OFFSET_THREE); in SetVideoFormats()
91 native = (uint8_t)WfdResolutionType::RESOLUTION_CEA | (CEA_1280_720_P30 << BIT_OFFSET_THREE); in SetVideoFormats()
95 native = (uint8_t)WfdResolutionType::RESOLUTION_CEA | (CEA_1280_720_P25 << BIT_OFFSET_THREE); in SetVideoFormats()
100 native = in SetVideoFormats()
106 ss << std::setfill('0') << std::setw(BIT_OFFSET_TWO) << std::hex << (int32_t)native << RTSP_SP << "00" << RTSP_SP; in SetVideoFormats()
254 // 1 byte "native" in GetVideoFormats()
269 * native: 2*2HEXDIG in GetVideoFormats()
289 uint16_t native in GetVideoFormats() local
385 uint32_t native = wfdVideoFormatsInfo.native; SetVideoFormats() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/
H A Djs_query.cpp94 auto& query = reinterpret_cast<JsQuery*>(ctxt->native)->query_; in Reset()
125 auto& query = reinterpret_cast<JsQuery*>(ctxt->native)->query_; in EqualTo()
150 auto& query = reinterpret_cast<JsQuery*>(ctxt->native)->query_; in NotEqualTo()
175 auto& query = reinterpret_cast<JsQuery*>(ctxt->native)->query_; in GreaterThan()
200 auto& query = reinterpret_cast<JsQuery*>(ctxt->native)->query_; in LessThan()
225 auto& query = reinterpret_cast<JsQuery*>(ctxt->native)->query_; in GreaterThanOrEqualTo()
250 auto& query = reinterpret_cast<JsQuery*>(ctxt->native)->query_; in LessThanOrEqualTo()
281 auto& query = reinterpret_cast<JsQuery*>(ctxt->native)->query_; in IsNull()
353 auto& query = reinterpret_cast<JsQuery*>(ctxt->native)->query_; in InNumber()
383 auto& query = reinterpret_cast<JsQuery*>(ctxt->native) in InString()
[all...]
H A Djs_kv_store_resultset.cpp75 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in GetCount()
90 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in GetPosition()
105 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in MoveToFirst()
120 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in MoveToLast()
135 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in MoveToNext()
150 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in MoveToPrevious()
171 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in Move()
192 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in MoveToPosition()
207 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in IsFirst()
222 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native) in IsLast()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/
H A Djs_kv_store_resultset.cpp80 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in GetCount()
95 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in GetPosition()
110 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in MoveToFirst()
125 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in MoveToLast()
140 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in MoveToNext()
155 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in MoveToPrevious()
178 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in Move()
202 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in MoveToPosition()
217 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native)->GetInstance(); in IsFirst()
232 auto resultSet = reinterpret_cast<JsKVStoreResultSet*>(ctxt->native) in IsLast()
[all...]
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/src/
H A Djs_sendable_utils.cpp36 void *native = nullptr; in Convert2Sendable() local
38 napi_status status = napi_create_sendable_arraybuffer(env, value.size(), &native, &buffer); in Convert2Sendable()
44 std::copy(value.begin(), value.end(), static_cast<uint8_t *>(native)); in Convert2Sendable()
82 float *native = nullptr; in Convert2Sendable() local
84 napi_status status = napi_create_sendable_arraybuffer(env, value.size() * sizeof(float), (void **)&native, &buffer); in Convert2Sendable()
90 std::copy(value.begin(), value.end(), static_cast<float *>(native)); in Convert2Sendable()
182 void *native = nullptr; in ToSendableTypedArray() local
184 status = napi_create_sendable_arraybuffer(env, length, (void **)&native, &buffer); in ToSendableTypedArray()
187 errno_t result = memcpy_s(native, length, tmp, length); in ToSendableTypedArray()
/foundation/ai/neural_network_runtime/example/deep_learning_framework/cmake_build/
H A Dbuild_ohos_tflite.sh26 ./tool_chain/native/build-tools/cmake/bin/cmake \
27 -DCMAKE_TOOLCHAIN_FILE=./tool_chain/native/build/cmake/ohos.toolchain.cmake \
/foundation/multimedia/image_framework/frameworks/kits/js/common/sendable/
H A Dsendable_image_receiver_napi.cpp241 IMAGE_ERR("Create native image receiver failed"); in Constructor()
250 IMAGE_ERR("Failure wrapping js to native napi"); in Constructor()
404 ic.result, IMAGE_ERR("empty native receiver")); in JSCommonProcess()
460 auto native = ic.context->constructor_->imageReceiver_; in JsGetSize()
461 if (native == nullptr) { in JsGetSize()
466 if (native->iraContext_ == nullptr) { in JsGetSize()
471 native->iraContext_->GetWidth(), in JsGetSize()
472 native->iraContext_->GetHeight()); in JsGetSize()
490 auto native = ic.context->constructor_->imageReceiver_; in JsGetCapacity()
491 if (native in JsGetCapacity()
[all...]

Completed in 14 milliseconds

123456