/applications/standard/app_samples/code/BasicFeature/Native/NdkRawfile/entry/src/main/cpp/ |
H A D | rawfile_demo.cpp | 65 napi_value buffer;
in CreateJsArrayValue() local 71 nullptr, &buffer);
in CreateJsArrayValue() 73 OH_LOG_Print(LOG_APP, LOG_ERROR, GLOBAL_RESMGR, TAG, "Failed to create external array buffer");
in CreateJsArrayValue() 77 status = napi_create_typedarray(env, napi_uint8_array, length, buffer, 0, &result);
in CreateJsArrayValue()
|
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/device_registrar/ |
H A D | device_registrar_test.cpp | 70 virtual int32_t AllocateBuffer(uint32_t length, V2_0::SharedBuffer& buffer) = 0; 72 virtual int32_t ReleaseBuffer(const V2_0::SharedBuffer& buffer) = 0; 157 OH_NN_ReturnCode ReleaseBuffer(const void* buffer) override
|
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/device_registrar/ |
H A D | device_registrar_test.cpp | 70 virtual int32_t AllocateBuffer(uint32_t length, V1_0::SharedBuffer& buffer) = 0; 72 virtual int32_t ReleaseBuffer(const V1_0::SharedBuffer& buffer) = 0; 157 OH_NN_ReturnCode ReleaseBuffer(const void* buffer) override
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | nnexecutor.h | 64 OH_NN_ReturnCode SetInput(uint32_t index, const OH_NN_Tensor& nnTensor, const void* buffer, size_t length); 66 OH_NN_ReturnCode SetOutput(uint32_t index, void* buffer, size_t length); 90 const void* buffer, size_t dataLength, size_t curBufferLength);
|
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/rtsp/src/ |
H A D | rtsp_channel_manager.cpp | 33 void RtspChannelManager::ChannelListener::OnDataReceived(const uint8_t *buffer, unsigned int length, long timeCost) in OnDataReceived() argument 41 channelManager_->OnData(buffer, length); in OnDataReceived() 48 channelManager_->sessionKeyLength_, { buffer, static_cast<int>(length) }, outputData); in OnDataReceived() 186 CLOGD("SendData, outputData.length %{public}d pktlen %{public}zu send buffer %{public}s.", outputData.length, in SendData()
|
/foundation/CastEngine/castengine_cast_plus_stream/src/rtsp/src/ |
H A D | rtsp_channel_manager.cpp | 33 void RtspChannelManager::ChannelListener::OnDataReceived(const uint8_t *buffer, unsigned int length, long timeCost) in OnDataReceived() argument 41 channelManager_->OnData(buffer, length); in OnDataReceived() 48 channelManager_->sessionKeyLength_, { buffer, static_cast<int>(length) }, outputData); in OnDataReceived() 186 CLOGD("SendData, outputData.length %{public}d pktlen %{public}zu send buffer %{public}s.", outputData.length, in SendData()
|
/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | clip_utils.cpp | 168 Color32* buffer = reinterpret_cast<Color32*>(const_cast<uint8_t*>(imageInfo->data)); in DrawPixel() local 169 buffer[offset].alpha = buffer[offset].alpha * opa / OPA_OPAQUE; in DrawPixel()
|
/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | policy_provider_proxy.cpp | 51 int32_t PolicyProviderProxy::InitSharedVolume(std::shared_ptr<AudioSharedMemory> &buffer) in InitSharedVolume() argument 61 buffer = AudioSharedMemory::ReadFromParcel(reply); in InitSharedVolume() 62 CHECK_AND_RETURN_RET_LOG(buffer != nullptr, ERR_OPERATION_FAILED, "ReadFromParcel failed"); in InitSharedVolume()
|
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | audio_process_proxy.cpp | 66 int32_t AudioProcessProxy::ResolveBuffer(std::shared_ptr<OHAudioBuffer> &buffer) in ResolveBuffer() argument 77 buffer = OHAudioBuffer::ReadFromParcel(reply); in ResolveBuffer() 78 CHECK_AND_RETURN_RET_LOG(buffer != nullptr, ERR_OPERATION_FAILED, "ReadFromParcel failed"); in ResolveBuffer()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/ |
H A D | test_common.cpp | 177 auto buffer = std::make_unique<char[]>(len + 1);
in ConvertStringFromJsValue() local 179 if (napi_get_value_string_utf8(env, jsValue, buffer.get(), len + 1, &strLength) == napi_ok) {
in ConvertStringFromJsValue() 180 value = buffer.get();
in ConvertStringFromJsValue()
|
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/ |
H A D | cube_demo.js | 115 let buffer = gl.createBuffer(); 116 if (buffer === null) { 119 gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
|
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/ |
H A D | cube2_demo.js | 115 let buffer = gl.createBuffer(); 116 if (buffer === null) { 119 gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/include/ |
H A D | exif_maker_note.h | 144 static bool GetUInt16(const std::vector<unsigned char> &buffer, ExifByteOrder order,
146 static bool GetUInt32(const std::vector<unsigned char> &buffer, ExifByteOrder order,
148 static bool GetData(const std::vector<unsigned char> &buffer, size_t offset, size_t count,
|
/foundation/multimedia/media_foundation/src/plugin/ |
H A D | plugin_buffer.cpp | 134 auto buffer = std::make_shared<Buffer>(); in CreateDefaultBuffer() local 136 buffer->data.push_back(memory); in CreateDefaultBuffer() 137 return buffer; in CreateDefaultBuffer()
|
/foundation/multimedia/av_codec/test/unittest/key_type_test/ |
H A D | key_type_test.cpp | 299 uint8_t buffer[] = {1, 2, 3, 4}; in HWTEST_P() local 301 ASSERT_EQ(res, OH_AVFormat_SetBuffer(format, key, buffer, sizeof(buffer))); in HWTEST_P()
|
/foundation/multimedia/player_framework/frameworks/native/soundpool/ |
H A D | sound_parser.h | 29 #include "buffer/avsharedmemory.h" 78 void OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) override; 80 std::shared_ptr<AVSharedMemory> buffer) override; 87 uint32_t index, std::shared_ptr<AVSharedMemory> buffer);
|
/foundation/resourceschedule/ffrt/src/sync/ |
H A D | delayed_worker.cpp | 81 char buffer; in ThreadInit() 82 size_t n = ::read(monitorfd_, &buffer, sizeof buffer); in ThreadInit()
|
/foundation/distributedhardware/distributed_camera/services/data_process/include/pipeline_node/multimedia_codec/decoder/ |
H A D | decode_data_process.h | 28 #include "buffer/avsharedmemory.h" 63 void OnInputBufferAvailable(uint32_t index, std::shared_ptr<Media::AVSharedMemory> buffer); 66 const MediaAVCodec::AVCodecBufferFlag& flag, std::shared_ptr<Media::AVSharedMemory> buffer); 88 void BeforeDecodeDump(uint8_t *buffer, size_t bufSize);
|
/kernel/linux/linux-5.10/drivers/firewire/ |
H A D | core.h | 106 struct fw_iso_buffer *buffer, 158 int fw_iso_buffer_alloc(struct fw_iso_buffer *buffer, int page_count); 159 int fw_iso_buffer_map_dma(struct fw_iso_buffer *buffer, struct fw_card *card,
|
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | dsargs.c | 5 * objects (regions, fields, buffer fields, etc.) 255 node = obj_desc->buffer.node; in acpi_ds_get_buffer_arguments() 258 "No pointer back to namespace node in buffer object %p", in acpi_ds_get_buffer_arguments() 268 obj_desc->buffer.aml_length, in acpi_ds_get_buffer_arguments() 269 obj_desc->buffer.aml_start); in acpi_ds_get_buffer_arguments()
|
H A D | dbobject.c | 131 acpi_os_printf("(%u)", obj_desc->buffer.length); in acpi_db_decode_internal_object() 132 for (i = 0; (i < 8) && (i < obj_desc->buffer.length); i++) { in acpi_db_decode_internal_object() 133 acpi_os_printf(" %2.2X", obj_desc->buffer.pointer[i]); in acpi_db_decode_internal_object() 406 ("No method node (Executing subtree for buffer or opregion)\n"); in acpi_db_decode_locals() 476 ("No method node (Executing subtree for buffer or opregion)\n"); in acpi_db_decode_arguments()
|
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/crypto/ |
H A D | octeon-sha1.c | 103 memcpy(sctx->buffer + partial, data, in __octeon_sha1_update() 105 src = sctx->buffer; in __octeon_sha1_update() 116 memcpy(sctx->buffer + partial, src, len - done); in __octeon_sha1_update()
|
/kernel/linux/linux-5.10/arch/sparc/prom/ |
H A D | tree_32.c | 107 * 'buffer' which has a size of 'bufsize'. If the acquisition 110 int prom_getproperty(phandle node, const char *prop, char *buffer, int bufsize) in prom_getproperty() argument 120 ret = prom_nodeops->no_getprop(node, prop, buffer); in prom_getproperty() 168 * buffer. 221 char *prom_nextprop(phandle node, char *oprop, char *buffer) in prom_nextprop() argument
|
/kernel/linux/linux-6.6/arch/sparc/prom/ |
H A D | tree_32.c | 107 * 'buffer' which has a size of 'bufsize'. If the acquisition 110 int prom_getproperty(phandle node, const char *prop, char *buffer, int bufsize) in prom_getproperty() argument 120 ret = prom_nodeops->no_getprop(node, prop, buffer); in prom_getproperty() 168 * buffer. 221 char *prom_nextprop(phandle node, char *oprop, char *buffer) in prom_nextprop() argument
|
/kernel/linux/linux-5.10/drivers/media/cec/platform/s5p/ |
H A D | exynos_hdmi_cecctrl.c | 195 void s5p_cec_get_rx_buf(struct s5p_cec_dev *cec, u32 size, u8 *buffer) in s5p_cec_get_rx_buf() argument 201 buffer[i] = readb(cec->reg + S5P_CEC_RX_BUFF0 + (i * 4)); in s5p_cec_get_rx_buf() 202 sprintf(debug + i * 2, "%02x ", buffer[i]); in s5p_cec_get_rx_buf()
|