/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/base/ |
H A D | data_operation_callback.h | 33 int32_t OnIntellVoiceDataOprEvent(IntellVoiceDataOprType type, const sptr<Ashmem> &inBuffer, 34 sptr<Ashmem> &outBuffer) override; 37 std::unique_ptr<OHOS::IntellVoiceUtils::Uint8ArrayBuffer> CreateArrayBufferFromAshmem(const sptr<Ashmem> &ashmem); 38 sptr<Ashmem> CreateAshmemFromArrayBuffer(const std::unique_ptr<OHOS::IntellVoiceUtils::Uint8ArrayBuffer> &buffer,
|
H A D | data_operation_callback.cpp | 28 const sptr<Ashmem> &inBuffer, in OnIntellVoiceDataOprEvent() 29 sptr<Ashmem> &outBuffer) in OnIntellVoiceDataOprEvent() 84 const sptr<Ashmem> &ashmem) in CreateArrayBufferFromAshmem() 111 sptr<Ashmem> DataOperationCallback::CreateAshmemFromArrayBuffer( in CreateAshmemFromArrayBuffer() 124 sptr<Ashmem> ashmem = OHOS::Ashmem::CreateAshmem(name.c_str(), buffer->GetSize() * sizeof(uint8_t)); in CreateAshmemFromArrayBuffer()
|
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | ashmem.h | 19 * @brief Provide class Ashmem implemented in c_utils to operate the 20 * Anonymous Shared Memory(Ashmem). 59 * @brief Ashmem implemented in c_utils, to operate the 60 * Anonymous Shared Memory(Ashmem). 64 * @note Ashmem object should be unmapped and closed manually, though managed 67 class Ashmem : public virtual RefBase { class 70 * @brief Create an Ashmem object with specified name and region size. 73 * this Ashmem object. 77 * @return An Ashmem object referenced by a smart pointer. 81 static sptr<Ashmem> CreateAshme [all...] |
/foundation/ability/form_fwk/test/unittest/fms_form_ashmem_test/ |
H A D | mock_message_parcel.cpp | 145 bool MessageParcel::WriteAshmem(sptr<Ashmem> ashmem) in WriteAshmem() 150 sptr<Ashmem> MessageParcel::ReadAshmem() in ReadAshmem() 155 sptr<Ashmem> ashmem = new (std::nothrow) Ashmem(fd, size); in ReadAshmem()
|
H A D | mock_ashmem.cpp | 34 bool Ashmem::MapReadAndWriteAshmem() in MapReadAndWriteAshmem() 39 bool Ashmem::WriteToAshmem(const void *data, int32_t size, int32_t offset) in WriteToAshmem()
|
H A D | fms_form_ashmem_test.cpp | 74 form_ashmem_->ashmem_ = new (std::nothrow) Ashmem(fd, size); in HWTEST_F() 138 form_ashmem_->ashmem_ = new (std::nothrow) Ashmem(fd, size); in HWTEST_F() 155 form_ashmem_->ashmem_ = new (std::nothrow) Ashmem(fd, size); in HWTEST_F() 228 form_ashmem_->ashmem_ = new (std::nothrow) Ashmem(fd, size); in HWTEST_F() 248 form_ashmem_->ashmem_ = new (std::nothrow) Ashmem(fd, size); in HWTEST_F() 268 form_ashmem_->ashmem_ = new (std::nothrow) Ashmem(fd, size); in HWTEST_F()
|
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/src/ |
H A D | shared_buffer_parser.cpp | 42 sptr<Ashmem> ashptr = Ashmem::CreateAshmem(name.c_str(), size); in Init() 69 m_ashptr = new (std::nothrow) Ashmem(buffer.fd, buffer.bufferSize); in Init()
|
H A D | prepared_model_service.cpp | 67 sptr<Ashmem> cache = Ashmem::CreateAshmem(name, size); in ExportModelCache() 296 sptr<Ashmem> ashptr = ParseBuffer(input.data); in SetInputs() 326 sptr<Ashmem> ashptr = ParseBuffer(output.data); in SetOutputs() 380 sptr<Ashmem> PreparedModelService::ParseBuffer(const SharedBuffer& buffer) in ParseBuffer() 389 sptr<Ashmem> ashptr = new (std::nothrow) Ashmem(buffer.fd, buffer.bufferSize); in ParseBuffer()
|
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/src/ |
H A D | shared_buffer_parser.cpp | 42 sptr<Ashmem> ashptr = Ashmem::CreateAshmem(name.c_str(), size); in Init() 69 m_ashptr = new (std::nothrow) Ashmem(buffer.fd, buffer.bufferSize); in Init()
|
H A D | prepared_model_service.cpp | 69 sptr<Ashmem> cache = Ashmem::CreateAshmem(name, size); in ExportModelCache() 346 sptr<Ashmem> ashptr = ParseBuffer(input.data); in SetInputs() 376 sptr<Ashmem> ashptr = ParseBuffer(output.data); in SetOutputs() 442 sptr<Ashmem> PreparedModelService::ParseBuffer(const SharedBuffer& buffer) in ParseBuffer() 451 sptr<Ashmem> ashptr = new (std::nothrow) Ashmem(buffer.fd, buffer.bufferSize); in ParseBuffer()
|
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/include/ |
H A D | prepared_model_service.h | 54 sptr<Ashmem> ParseBuffer(const SharedBuffer& buffer); 64 sptr<Ashmem> m_cacheBuffer {nullptr}; 65 std::vector<sptr<Ashmem>> m_inputAshmems; 67 std::vector<sptr<Ashmem>> m_outputAshmems;
|
H A D | shared_buffer_parser.h | 42 sptr<Ashmem> m_ashptr {nullptr};
|
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/include/ |
H A D | prepared_model_service.h | 57 sptr<Ashmem> ParseBuffer(const SharedBuffer& buffer); 67 sptr<Ashmem> m_cacheBuffer {nullptr}; 68 std::vector<sptr<Ashmem>> m_inputAshmems; 70 std::vector<sptr<Ashmem>> m_outputAshmems;
|
H A D | shared_buffer_parser.h | 42 sptr<Ashmem> m_ashptr {nullptr};
|
/foundation/communication/ipc/ipc/native/src/napi_common/include/ |
H A D | napi_ashmem.h | 34 explicit NAPIAshmem(sptr<Ashmem> &ashmem); 37 const sptr<Ashmem> &GetAshmem() in GetAshmem() 41 void SetAshmem(sptr<Ashmem> &ashmem) in SetAshmem() 75 sptr<Ashmem> ashmem_;
|
/foundation/distributeddatamgr/data_share/frameworks/native/common/src/ |
H A D | datashare_template.cpp | 52 sptr<Ashmem> PublishedDataItem::MoveOutAshmem()
in MoveOutAshmem() 81 sptr<Ashmem> mem = Ashmem::CreateAshmem((key_ + std::to_string(subscriberId_)).c_str(), size);
in Set() 119 void PublishedDataItem::SetAshmem(sptr<Ashmem> ashmem, bool isManaged)
in SetAshmem()
|
/foundation/ability/form_fwk/interfaces/inner_api/include/ |
H A D | form_ashmem.h | 39 sptr<Ashmem> GetAshmem() const; 43 sptr<Ashmem> ashmem_;
|
/foundation/ability/form_fwk/interfaces/inner_api/src/ |
H A D | form_ashmem.cpp | 68 ashmem_ = Ashmem::CreateAshmem(name.c_str(), size); in WriteToAshmem() 91 sptr<Ashmem> FormAshmem::GetAshmem() const in GetAshmem()
|
/foundation/graphic/graphic_2d/rosen/modules/platform/ipc_core/ |
H A D | message_parcel.h | 60 bool WriteAshmem(sptr<Ashmem> ashmem); 61 sptr<Ashmem> ReadAshmem();
|
/foundation/distributeddatamgr/data_share/interfaces/inner_api/common/include/ |
H A D | datashare_template.h | 89 sptr<Ashmem> ashmem; 102 /** The published data. If the data is large, use Ashmem. Do not access, only for ipc */ 113 sptr<Ashmem> MoveOutAshmem(); 114 void SetAshmem(sptr<Ashmem> ashmem, bool isManaged = false);
|
/foundation/distributeddatamgr/relational_store/rdbmock/frameworks/native/rdb/ |
H A D | ashmem.h | 21 class Ashmem { class
|
/foundation/ability/form_fwk/test/mock/src/ |
H A D | mock_message_parcel.cpp | 134 bool MessageParcel::WriteAshmem(sptr<Ashmem> ashmem) in WriteAshmem() 139 sptr<Ashmem> MessageParcel::ReadAshmem() in ReadAshmem()
|
/foundation/communication/ipc/interfaces/innerkits/ipc_core/include/ |
H A D | message_parcel.h | 151 bool WriteAshmem(sptr<Ashmem> ashmem); 158 sptr<Ashmem> ReadAshmem();
|
/foundation/distributeddatamgr/data_share/frameworks/native/common/include/ |
H A D | shared_block.h | 71 SharedBlock(const std::string &name, sptr<Ashmem> ashmem, size_t size, bool readOnly);
255 sptr<Ashmem> ashmem_;
302 static int CreateSharedBlock(const std::string &name, size_t size, sptr<Ashmem> ashmem,
|
/foundation/communication/ipc/ipc/native/src/jni/source/ |
H A D | ohos_rpc_message_parcel.cpp | 44 explicit AshmemSmartPointWrapper(const sptr<Ashmem> &ashmem) : ashmem_(ashmem) in AshmemSmartPointWrapper() 52 const sptr<Ashmem> &GetAshmem() const in GetAshmem() 59 sptr<Ashmem> const ashmem_; 76 sptr<Ashmem> Java_ohos_rpc_Ashmem_getSptrAshmem(JNIEnv *env, jobject object, jlong id) in Java_ohos_rpc_Ashmem_getSptrAshmem() 497 sptr<Ashmem> ashmem = Java_ohos_rpc_Ashmem_getSptrAshmem(env, object, id); in Java_ohos_rpc_MessageParcel_nativeWriteAshmem() 521 sptr<Ashmem> nativeAshmem = nativeParcel->ReadAshmem(); in Java_ohos_rpc_MessageParcel_nativeReadAshmem()
|