/foundation/ability/form_fwk/interfaces/inner_api/src/ |
H A D | form_ashmem.cpp | 25 if (ashmem_ != nullptr) { in ~FormAshmem() 26 ashmem_->CloseAshmem(); in ~FormAshmem() 34 if (!messageParcel->WriteAshmem(ashmem_)) { in Marshalling() 44 ashmem_ = messageParcel->ReadAshmem(); in ReadFromParcel() 45 if (ashmem_ == nullptr) { in ReadFromParcel() 48 HILOG_INFO("fd:%{public}d,size:%{public}d", ashmem_->GetAshmemFd(), ashmem_->GetAshmemSize()); in ReadFromParcel() 68 ashmem_ = Ashmem::CreateAshmem(name.c_str(), size); in WriteToAshmem() 69 if (ashmem_ == nullptr) { in WriteToAshmem() 74 bool ret = ashmem_ in WriteToAshmem() [all...] |
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/buffer_manager/ |
H A D | shared_buffer.cpp | 45 if (ashmem_ != nullptr) { in GetSize() 46 return ashmem_->GetAshmemSize(); in GetSize() 56 DP_CHECK_ERROR_RETURN_RET_LOG(ashmem_ == nullptr, DP_INIT_FAIL, "ashmem is nullptr."); in CopyFrom() 59 auto ret = ashmem_->WriteToAshmem(address, bytes, 0); in CopyFrom() 74 ashmem_ = Ashmem::CreateAshmem(name.data(), capacity_); in AllocateAshmemUnlocked() 75 DP_CHECK_ERROR_RETURN_RET_LOG(ashmem_ == nullptr, DP_INIT_FAIL, in AllocateAshmemUnlocked() 77 int fd = ashmem_->GetAshmemFd(); in AllocateAshmemUnlocked() 79 auto ret = ashmem_->MapReadAndWriteAshmem(); in AllocateAshmemUnlocked() 86 if (ashmem_ != nullptr) { in DeallocAshmem() 87 ashmem_ in DeallocAshmem() [all...] |
/foundation/ability/form_fwk/test/unittest/fms_form_ashmem_test/ |
H A D | fms_form_ashmem_test.cpp | 74 form_ashmem_->ashmem_ = new (std::nothrow) Ashmem(fd, size); in HWTEST_F() 75 EXPECT_TRUE(form_ashmem_->ashmem_ != nullptr); in HWTEST_F() 92 EXPECT_TRUE(form_ashmem_->ashmem_ == nullptr); in HWTEST_F() 106 form_ashmem_->ashmem_ = nullptr; in HWTEST_F() 122 form_ashmem_->ashmem_ = nullptr; in HWTEST_F() 138 form_ashmem_->ashmem_ = new (std::nothrow) Ashmem(fd, size); in HWTEST_F() 140 EXPECT_TRUE(form_ashmem_->ashmem_ != nullptr); in HWTEST_F() 155 form_ashmem_->ashmem_ = new (std::nothrow) Ashmem(fd, size); in HWTEST_F() 157 EXPECT_TRUE(form_ashmem_->ashmem_ != nullptr); in HWTEST_F() 198 form_ashmem_->ashmem_ in HWTEST_F() [all...] |
/foundation/communication/ipc/ipc/native/src/napi_common/include/ |
H A D | napi_ashmem.h | 35 NAPIAshmem() : ashmem_(nullptr) {} in NAPIAshmem() 39 return ashmem_; in GetAshmem() 43 ashmem_ = ashmem; in SetAshmem() 75 sptr<Ashmem> ashmem_; member in OHOS::NAPIAshmem
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/src/ |
H A D | dspeaker_dev.cpp | 243 if (ashmem_ != nullptr) { in Release() 244 ashmem_->UnmapAshmem(); in Release() 245 ashmem_->CloseAshmem(); in Release() 246 ashmem_ = nullptr; in Release() 337 if (ashmem_ != nullptr) { in RefreshAshmemInfo() 341 ashmem_ = sptr<Ashmem>(new Ashmem(fd, ashmemLength)); in RefreshAshmemInfo() 346 bool mapRet = ashmem_->MapReadAndWriteAshmem(); in RefreshAshmemInfo() 358 CHECK_NULL_RETURN(ashmem_, ERR_DH_AUDIO_NULLPTR); in MmapStart() 375 while (ashmem_ != nullptr && isEnqueueRunning_.load()) { in EnqueueThread() 378 auto readData = ashmem_ in EnqueueThread() [all...] |
H A D | dmic_dev.cpp | 313 if (ashmem_ != nullptr) { in Release() 314 ashmem_->UnmapAshmem(); in Release() 315 ashmem_->CloseAshmem(); in Release() 316 ashmem_ = nullptr; in Release() 400 if (ashmem_ != nullptr) { in RefreshAshmemInfo() 404 ashmem_ = sptr<Ashmem>(new Ashmem(fd, ashmemLength)); in RefreshAshmemInfo() 409 bool mapRet = ashmem_->MapReadAndWriteAshmem(); in RefreshAshmemInfo() 421 CHECK_NULL_RETURN(ashmem_, ERR_DH_AUDIO_NULLPTR); in MmapStart() 441 while (ashmem_ != nullptr && isEnqueueRunning_.load()) { in EnqueueThread() 459 bool writeRet = ashmem_ in EnqueueThread() [all...] |
/foundation/distributeddatamgr/data_share/frameworks/native/common/include/ |
H A D | shared_block.h | 217 if (ashmem_ == nullptr) {
in GetFd() 220 return ashmem_->GetAshmemFd();
in GetFd() 255 sptr<Ashmem> ashmem_;
member in OHOS::AppDataFwk::SharedBlock
|
/foundation/distributeddatamgr/data_share/frameworks/native/common/src/ |
H A D | shared_block.cpp | 32 : mName(name), ashmem_(ashmem), mSize(size), mReadOnly(readOnly), mHeader(nullptr)
in SharedBlock() 38 if (ashmem_ != nullptr) {
in ~SharedBlock() 39 ashmem_->UnmapAshmem();
in ~SharedBlock() 40 ashmem_->CloseAshmem();
in ~SharedBlock() 41 ashmem_ = nullptr;
in ~SharedBlock() 58 mData = const_cast<void *>(ashmem_->ReadFromAshmem(sizeof(SharedBlockHeader), 0));
in Init() 113 return parcel.WriteString16(ToUtf16(mName)) && parcel.WriteAshmem(ashmem_);
in WriteMessageParcel()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/appdatafwk/src/ |
H A D | shared_block.cpp | 38 : mName(name), ashmem_(ashmem), mSize(size), mReadOnly(readOnly), mHeader(nullptr)
in SharedBlock() 44 if (ashmem_ != nullptr) {
in ~SharedBlock() 45 ashmem_->UnmapAshmem();
in ~SharedBlock() 46 ashmem_->CloseAshmem();
in ~SharedBlock() 52 mData = static_cast<uint8_t *>(const_cast<void *>(ashmem_->ReadFromAshmem(sizeof(SharedBlockHeader), 0)));
in Init() 110 return parcel.WriteString16(OHOS::Str8ToStr16(mName)) && parcel.WriteAshmem(ashmem_);
in WriteMessageParcel()
|
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/appdatafwk/include/ |
H A D | shared_block.h | 277 if (ashmem_ == nullptr) {
in GetFd() 280 return ashmem_->GetAshmemFd();
in GetFd() 333 sptr<Ashmem> ashmem_;
member in OHOS::AppDataFwk::SharedBlock
|
/foundation/ability/form_fwk/interfaces/inner_api/include/ |
H A D | form_ashmem.h | 43 sptr<Ashmem> ashmem_; member in OHOS::AppExecFwk::FormAshmem
|
/foundation/multimedia/camera_framework/services/deferred_processing_service/include/base/buffer_manager/ |
H A D | shared_buffer.h | 42 sptr<Ashmem> ashmem_ {nullptr};
|
/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() 54 return ashmem_; in GetAshmem() 59 sptr<Ashmem> const ashmem_; member in OHOS::AshmemSmartPointWrapper
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/include/ |
H A D | dspeaker_dev.h | 104 sptr<Ashmem> ashmem_ = nullptr; member in OHOS::DistributedHardware::DSpeakerDev
|
H A D | dmic_dev.h | 126 sptr<Ashmem> ashmem_ = nullptr; member in OHOS::DistributedHardware::DMicDev
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/unittest/sourcedevice/src/ |
H A D | dspeaker_dev_test.cpp | 400 spk_->ashmem_ = nullptr; in HWTEST_F()
|
/foundation/communication/ipc/ipc/native/src/napi_common/source/ |
H A D | napi_ashmem.cpp | 40 NAPIAshmem::NAPIAshmem(sptr<Ashmem> &ashmem) : ashmem_(ashmem) in NAPIAshmem()
|