Home
last modified time | relevance | path

Searched refs:Ashmem (Results 1 - 25 of 83) sorted by relevance

1234

/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/base/
H A Ddata_operation_callback.h33 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 Ddata_operation_callback.cpp28 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 Dashmem.h19 * @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 Dmock_message_parcel.cpp145 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 Dmock_ashmem.cpp34 bool Ashmem::MapReadAndWriteAshmem() in MapReadAndWriteAshmem()
39 bool Ashmem::WriteToAshmem(const void *data, int32_t size, int32_t offset) in WriteToAshmem()
H A Dfms_form_ashmem_test.cpp74 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 Dshared_buffer_parser.cpp42 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 Dprepared_model_service.cpp67 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 Dshared_buffer_parser.cpp42 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 Dprepared_model_service.cpp69 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 Dprepared_model_service.h54 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 Dshared_buffer_parser.h42 sptr<Ashmem> m_ashptr {nullptr};
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/include/
H A Dprepared_model_service.h57 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 Dshared_buffer_parser.h42 sptr<Ashmem> m_ashptr {nullptr};
/foundation/communication/ipc/ipc/native/src/napi_common/include/
H A Dnapi_ashmem.h34 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 Ddatashare_template.cpp52 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 Dform_ashmem.h39 sptr<Ashmem> GetAshmem() const;
43 sptr<Ashmem> ashmem_;
/foundation/ability/form_fwk/interfaces/inner_api/src/
H A Dform_ashmem.cpp68 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 Dmessage_parcel.h60 bool WriteAshmem(sptr<Ashmem> ashmem);
61 sptr<Ashmem> ReadAshmem();
/foundation/distributeddatamgr/data_share/interfaces/inner_api/common/include/
H A Ddatashare_template.h89 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 Dashmem.h21 class Ashmem { class
/foundation/ability/form_fwk/test/mock/src/
H A Dmock_message_parcel.cpp134 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 Dmessage_parcel.h151 bool WriteAshmem(sptr<Ashmem> ashmem);
158 sptr<Ashmem> ReadAshmem();
/foundation/distributeddatamgr/data_share/frameworks/native/common/include/
H A Dshared_block.h71 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 Dohos_rpc_message_parcel.cpp44 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()

Completed in 11 milliseconds

1234