Home
last modified time | relevance | path

Searched refs:tmpBuffer (Results 1 – 25 of 26) sorted by relevance

12

/ohos5.0/foundation/graphic/surface_lite/frameworks/
H A Dbuffer_queue.cpp158 return tmpBuffer; in GetBuffer()
168 if (tmpBuffer == nullptr || tmpBuffer->GetState() != BUFFER_STATE_REQUEST) { in FlushBuffer()
173 dirtyList_.push_back(tmpBuffer); in FlushBuffer()
174 if (&buffer != tmpBuffer) { in FlushBuffer()
232 if (tmpBuffer == nullptr || tmpBuffer->GetState() != state) { in ReleaseBuffer()
240 Detach(tmpBuffer); in ReleaseBuffer()
248 Detach(tmpBuffer); in ReleaseBuffer()
253 freeList_.push_back(tmpBuffer); in ReleaseBuffer()
255 tmpBuffer->ClearExtraData(); in ReleaseBuffer()
285 dirtyList_.remove(tmpBuffer); in Reset()
[all …]
/ohos5.0/base/security/code_signature/test/unittest/
H A Dcert_chain_verifier_test.cpp236 std::vector<uint32_t> tmpBuffer = {0}; variable
237 … cert.CopyFrom(reinterpret_cast<uint8_t *>(tmpBuffer.data()), tmpBuffer.size() * sizeof(uint32_t));
241 tmpBuffer[0] = 1;
243 … cert.CopyFrom(reinterpret_cast<uint8_t *>(tmpBuffer.data()), tmpBuffer.size() * sizeof(uint32_t));
247 tmpBuffer[0] = 2;
249 tmpBuffer.push_back(sizeof(uint32_t));
250 … cert.CopyFrom(reinterpret_cast<uint8_t *>(tmpBuffer.data()), tmpBuffer.size() * sizeof(uint32_t));
255 tmpBuffer.push_back(0);
256 … cert.CopyFrom(reinterpret_cast<uint8_t *>(tmpBuffer.data()), tmpBuffer.size() * sizeof(uint32_t));
H A Djit_code_sign_test.cpp497 Byte tmpBuffer[INSTRUCTIONS_SET_SIZE_BYTES] = {0}; variable
652 uint32_t *tmpBuffer = reinterpret_cast<uint32_t *>(malloc(BUFFER_SIZE)); variable
654 tmpBuffer[i] = i;
663 AppendInstruction(signer, tmpBuffer[i]);
672 EXPECT_EQ(memcmp(tmpJitMemory, tmpBuffer, BUFFER_SIZE), 0);
677 free(tmpBuffer);
678 tmpBuffer = nullptr;
807 uint32_t tmpBuffer[INSTRUCTIONS_SET_SIZE]; variable
811 AppendInstruction(signer, tmpBuffer[j]);
813 *(reinterpret_cast<Byte *>(tmpBuffer) + i) = 0;
[all …]
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/filters/
H A Dvideo_decoder_adapter.cpp259 std::shared_ptr<AVBuffer> tmpBuffer; in AquireAvailableInputBuffer() local
260 if (inputBufferQueueConsumer_->AcquireBuffer(tmpBuffer) == Status::OK) { in AquireAvailableInputBuffer()
261 FALSE_RETURN_MSG(tmpBuffer->meta_ != nullptr, "tmpBuffer is nullptr."); in AquireAvailableInputBuffer()
263 … FALSE_RETURN_MSG(tmpBuffer->meta_->GetData(Tag::REGULAR_TRACK_ID, index), "get index failed."); in AquireAvailableInputBuffer()
264 if (tmpBuffer->flag_ & (uint32_t)(Plugins::AVBufferFlag::EOS)) { in AquireAvailableInputBuffer()
266 ", pts: %{public}" PRIu64", flag: %{public}u", index, tmpBuffer->GetUniqueId(), in AquireAvailableInputBuffer()
267 tmpBuffer->pts_, tmpBuffer->flag_); in AquireAvailableInputBuffer()
268 tmpBuffer->memory_->SetSize(0); // to make sure hisi codec know this eos buffer in AquireAvailableInputBuffer()
275 tmpBuffer->pts_, tmpBuffer->flag_, ret); in AquireAvailableInputBuffer()
282 ", pts: %{public}" PRIu64", flag: %{public}u", index, tmpBuffer->GetUniqueId(), in AquireAvailableInputBuffer()
[all …]
/ohos5.0/foundation/arkui/napi/sample/native_module_systemtest/
H A Djs_test_buffer_napi.cpp66 static char tmpBuffer[TMP_BUJJER_SIZE]; variable
82 if (memset_s(tmpBuffer, sizeof(tmpBuffer), 0, sizeof(tmpBuffer)) != 0) { in NewExternalBufferFun()
86 if (memcpy_s(tmpBuffer, sizeof(tmpBuffer), paraStr.c_str(), sizeof(tmpBuffer)) != 0) { in NewExternalBufferFun()
90 NAPI_CALL(env, napi_create_external_buffer(env, TMP_BUJJER_SIZE, tmpBuffer, in NewExternalBufferFun()
/ohos5.0/base/security/code_signature/interfaces/innerkits/jit_code_sign/src/
H A Djit_code_signer_base.cpp41 void JitCodeSignerBase::RegisterTmpBuffer(Byte *tmpBuffer) in RegisterTmpBuffer() argument
43 tmpBuffer_ = tmpBuffer; in RegisterTmpBuffer()
128 int32_t JitCodeSignerBase::CheckDataCopy(Instr *jitMemory, Byte *tmpBuffer, int size) in CheckDataCopy() argument
133 if (tmpBuffer == nullptr) { in CheckDataCopy()
138 tmpBuffer_ = tmpBuffer; in CheckDataCopy()
H A Djit_code_signer_single.cpp72 Byte *tmpBuffer, int size) in ValidateCodeCopy() argument
74 int32_t ret = CheckDataCopy(jitMemory, tmpBuffer, size); in ValidateCodeCopy()
H A Djit_code_signer_hybrid.cpp131 Instr *jitMemory, Byte *tmpBuffer, int size) in ValidateCodeCopy() argument
133 int32_t ret = CheckDataCopy(jitMemory, tmpBuffer, size); in ValidateCodeCopy()
/ohos5.0/base/security/code_signature/interfaces/innerkits/jit_code_sign/include/
H A Djit_buffer_integrity.h66 static inline int32_t RegisterTmpBuffer(JitCodeSignerBase *signer, void *tmpBuffer) in RegisterTmpBuffer() argument
69 signer->RegisterTmpBuffer(CAST_TO_BYTES(tmpBuffer)); in RegisterTmpBuffer()
205 JitCodeSignerBase *signer, void *jitMemory, void *tmpBuffer, int size) in CopyToJitCode() argument
218 reinterpret_cast<Byte *>(tmpBuffer), size); in CopyToJitCode()
220 void *ptr = __builtin_memcpy(jitMemory, tmpBuffer, size); in CopyToJitCode()
H A Djit_code_signer_base.h47 void RegisterTmpBuffer(Byte *tmpBuffer);
/ohos5.0/base/hiviewdfx/hievent_lite/frameworks/
H A Dhiview_output_event.c287 char tmpBuffer[LOG_FMT_MAX_LEN] = {0}; in OutputEventRealtime() local
309 EventContentFmt(tmpBuffer, LOG_FMT_MAX_LEN, (uint8 *)&event); in OutputEventRealtime()
310 HIVIEW_UartPrint(tmpBuffer); in OutputEventRealtime()
325 uint8 *tmpBuffer = NULL; in Output2Flash() local
339 tmpBuffer = (uint8 *)HIVIEW_MemAlloc(MEM_POOL_HIVIEW_ID, outputSize); in Output2Flash()
340 if (tmpBuffer == NULL) { in Output2Flash()
345 if (ReadFromCache(c, tmpBuffer + len, sizeof(HiEventCommon)) != sizeof(HiEventCommon)) { in Output2Flash()
348 pEventCommon = (HiEventCommon *)(tmpBuffer + len); in Output2Flash()
357 if (ReadFromCache(c, tmpBuffer + len, payloadLen) != payloadLen) { in Output2Flash()
366 if (len > 0 && WriteToFile(f, tmpBuffer, len) != len) { in Output2Flash()
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/
H A Dobex_packet.h54 Buffer *tmpBuffer = PacketContinuousPayload(obexPacket_); in GetBuffer() local
55 return (uint8_t *)BufferPtr(tmpBuffer); in GetBuffer()
H A Dobex_utils.cpp103 Buffer *tmpBuffer = PacketContinuousPayload(&obexPacket); in ToDebugString() local
104 uint8_t *packetBuf = (uint8_t *)BufferPtr(tmpBuffer); in ToDebugString()
105 size_t packetBufSize = BufferGetSize(tmpBuffer); in ToDebugString()
/ohos5.0/base/hiviewdfx/hilog_lite/frameworks/mini/
H A Dhiview_output_log.c289 uint8 *tmpBuffer = NULL; in OutputLog2BinFile() local
296 tmpBuffer = (uint8 *)HIVIEW_MemAlloc(MEM_POOL_HIVIEW_ID, outputSize); in OutputLog2BinFile()
297 if (tmpBuffer == NULL) { in OutputLog2BinFile()
302 … if (ReadFromCache(&g_logCache, tmpBuffer + len, sizeof(HiLogCommon)) != sizeof(HiLogCommon)) { in OutputLog2BinFile()
305 pCommonContent = (HiLogCommon *)(tmpBuffer + len); in OutputLog2BinFile()
319 if (ReadFromCache(&g_logCache, tmpBuffer + len, valueLen) != valueLen) { in OutputLog2BinFile()
334 if (len > 0 && WriteToFile(&g_logFile, tmpBuffer, len) != len) { in OutputLog2BinFile()
338 HIVIEW_MemFree(MEM_POOL_HIVIEW_ID, tmpBuffer); in OutputLog2BinFile()
/ohos5.0/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/base/
H A Dengine_util.cpp145 const uint8_t *tmpBuffer = static_cast<const uint8_t *>(ashmem->ReadFromAshmem(size, 0)); in WriteBufferFromAshmem() local
146 if (tmpBuffer == nullptr) { in WriteBufferFromAshmem()
157 if (memcpy_s(buffer, size, tmpBuffer, size) != 0) { in WriteBufferFromAshmem()
/ohos5.0/base/startup/appspawn/modules/sandbox/
H A Dsandbox_cfgvar.c312 SandboxBuffer *tmpBuffer = &((SandboxContext *)context)->buffer[BUFFER_FOR_TMP]; in GetSandboxRealVar() local
313 ret = HandleVariableReplace(context, tmpBuffer, sandboxBuffer->buffer, extraData); in GetSandboxRealVar()
315 tmpBuffer->buffer[tmpBuffer->current] = '\0'; in GetSandboxRealVar()
316 ret = strcpy_s(sandboxBuffer->buffer, sandboxBuffer->bufferLen, tmpBuffer->buffer); in GetSandboxRealVar()
/ohos5.0/foundation/graphic/graphic_surface/surface/test/unittest/
H A Dsurface_utils_test.cpp218 sptr<SurfaceBuffer> tmpBuffer = nullptr; variable
219 utils->ComputeTransformMatrix(matrix, TRANSFORM_MATRIX_SIZE, tmpBuffer, transform, crop);
221 utils->ComputeTransformMatrixV2(matrix, TRANSFORM_MATRIX_SIZE, tmpBuffer, transform, crop);
/ohos5.0/drivers/peripheral/usb/ddk_service/src/
H A Dusb_ddk_service.cpp192 std::vector<uint8_t> tmpBuffer(tmpDesc.wTotalLength); in GetConfigDescriptor() local
193 ret = GetRawConfigDescriptor(rawHandle, configIndex, tmpBuffer.data(), tmpDesc.wTotalLength); in GetConfigDescriptor()
200 if (static_cast<size_t>(ret) != tmpBuffer.size()) { in GetConfigDescriptor()
202 tmpBuffer.size()); in GetConfigDescriptor()
206 configDesc = tmpBuffer; in GetConfigDescriptor()
/ohos5.0/base/security/code_signature/
H A DREADME_zh.md56 | int32_t RegisterTmpBuffer(JitCodeSignerBase *signer, void *tmpBuffer); | 注册临时Buffer起始地址 |
65 | int32_t CopyToJitCode(JitCodeSignerBase *signer, void *jitMemory, void *tmpBuffer, int size); | 将…
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/InnerAPI/
H A Dvideodec_ndk_inner_sample.cpp640 uint8_t *tmpBuffer = new uint8_t[info.size]; in ProcessOutputData() local
641 if (memcpy_s(tmpBuffer, info.size, buffer->GetBase(), info.size) != EOK) { in ProcessOutputData()
644 fwrite(tmpBuffer, 1, info.size, file); in ProcessOutputData()
645 SHA512_Update(&g_ctx, tmpBuffer, info.size); in ProcessOutputData()
646 delete[] tmpBuffer; in ProcessOutputData()
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/
H A Dvideodec_ndk_sample.cpp397 uint8_t *tmpBuffer = new uint8_t[attr.size]; in WriteOutputFrame() local
398 if (memcpy_s(tmpBuffer, attr.size, OH_AVMemory_GetAddr(buffer), attr.size) != EOK) { in WriteOutputFrame()
401 fwrite(tmpBuffer, 1, attr.size, outFile); in WriteOutputFrame()
402 SHA512_Update(&c, tmpBuffer, attr.size); in WriteOutputFrame()
403 delete[] tmpBuffer; in WriteOutputFrame()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/sink/
H A Daudio_server_sink_plugin.cpp867 … std::vector<uint8_t> tmpBuffer(destBuffer + destLength - remained, destBuffer + destLength); in DrainCacheData() local
869 cachedBuffers_.emplace_front(std::move(tmpBuffer)); in DrainCacheData()
881 std::vector<uint8_t> tmpBuffer(inputBuffer, inputBuffer + bufferSize); in CacheData() local
882 cachedBuffers_.emplace_back(std::move(tmpBuffer)); in CacheData()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/codec/src/
H A Dimage_source.cpp1608 auto tmpBuffer = ReadSourceBuffer(bufferSize, error); in CreatExifMetadataByImageSource() local
1609 if (tmpBuffer == nullptr) { in CreatExifMetadataByImageSource()
1612 uint32_t result = CreateExifMetadata(tmpBuffer, bufferSize, addFlag); in CreatExifMetadataByImageSource()
2558 auto tmpBuffer = new (std::nothrow) uint8_t[bufferSize]; in ReadSourceBuffer() local
2559 if (tmpBuffer == nullptr) { in ReadSourceBuffer()
2571 delete[] tmpBuffer; in ReadSourceBuffer()
2576 return tmpBuffer; in ReadSourceBuffer()
2602 auto tmpBuffer = ReadSourceBuffer(bufferSize, error); in GetFilterArea() local
2603 if (tmpBuffer == nullptr) { in GetFilterArea()
2610 delete[] tmpBuffer; in GetFilterArea()
[all …]
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_decoder.cpp902 std::unique_ptr<uint8_t[]> tmpBuffer; in HeapMemAlloc() local
904 tmpBuffer = make_unique<uint8_t[]>(byteCount); in HeapMemAlloc()
905 dstBuffer = tmpBuffer.get(); in HeapMemAlloc()
1693 auto tmpBuffer = std::make_unique<uint8_t[]>(copySize); in HeapMemAlloc() local
1697 bool ret = input->Read(copySize, tmpBuffer.get(), copySize, readSize); in HeapMemAlloc()
1703 return process(tmpBuffer.get(), copySize); in HeapMemAlloc()
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/primary/
H A Daudio_capturer_source.cpp645 BufferDesc tmpBuffer = {reinterpret_cast<uint8_t*>(frame), replyBytes, replyBytes}; in CaptureFrame() local
646 …DfxOperation(tmpBuffer, static_cast<AudioSampleFormat>(attr_.format), static_cast<AudioChannel>(at… in CaptureFrame()

12