/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_ashmem_test.cpp | 91 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); 126 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); 160 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); 197 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); 203 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); 266 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); 288 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); 338 ret = ashmem->WriteToAshmem(nullptr, sizeof(MEMORY_CONTENT), 0); 344 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), -1); 347 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), MEMORY_SIZE+1, 0); [all …]
|
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/ashemem_benchmark_test/ |
H A D | ashemem_benchmark_test.cpp | 104 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 145 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 184 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 226 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 232 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 309 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 335 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 393 ret = ashmem->WriteToAshmem(nullptr, sizeof(MEMORY_CONTENT), 0); in BENCHMARK_F() 399 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), sizeof(MEMORY_CONTENT), -1); in BENCHMARK_F() 402 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), MEMORY_SIZE+1, 0); in BENCHMARK_F() [all …]
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_ashmem_test/ |
H A D | fms_form_ashmem_test.cpp | 123 form_ashmem_->WriteToAshmem(name, data, size); 124 EXPECT_FALSE(form_ashmem_->WriteToAshmem(name, data, size)); 230 form_ashmem_->WriteToAshmem(name, data, size); 232 EXPECT_FALSE(form_ashmem_->WriteToAshmem(name, data, size)); 251 form_ashmem_->WriteToAshmem(name, data, size); 252 EXPECT_FALSE(form_ashmem_->WriteToAshmem(name, data, size)); 271 form_ashmem_->WriteToAshmem(name, data, size); 272 EXPECT_TRUE(form_ashmem_->WriteToAshmem(name, data, size));
|
H A D | mock_ashmem.cpp | 39 bool Ashmem::WriteToAshmem(const void *data, int32_t size, int32_t offset) in WriteToAshmem() function in OHOS::Ashmem
|
/ohos5.0/commonlibrary/c_utils/base/test/unittest/rust/ |
H A D | rust_utils_ashmem_test.rs | 50 …assert!(ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid conten… in test_ashmem_ffi_write_read_002() 51 …assert!(ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid conten… in test_ashmem_ffi_write_read_002() 85 …assert!(ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid conten… in test_ashmem_ffi_write_read_003() 92 …assert!(!ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid conte… in test_ashmem_ffi_write_read_003() 123 …assert!(ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid conten… in test_ashmem_ffi_write_read_004() 158 …assert!(!ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid conte… in test_ashmem_ffi_write_read_005() 217 …assert!(!ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid conte… in test_ashmem_ffi_invalid_003() 240 …assert!(!ashmem.WriteToAshmem(c_content_ptr, MEMORY_CONTENT.len().try_into().expect("Invalid conte… in test_ashmem_ffi_invalid_004() 281 …assert!(!ashmem.WriteToAshmem(ptr::null(), MEMORY_CONTENT.len().try_into().expect("Invalid content… in test_ashmem_ffi_invalid_006() 285 assert!(!ashmem.WriteToAshmem(c_content_ptr, MEMORY_SIZE + 1, 0)); in test_ashmem_ffi_invalid_006() [all …]
|
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/ashmem_fuzzer/ |
H A D | ashmem_fuzzer.cpp | 41 ret = ashmem->WriteToAshmem(memoryContent.c_str(), memoryContent.size(), 0); in AshmemTestFunc() 47 … ret = ashmem->WriteToAshmem(memoryContent2.c_str(), memoryContent2.size(), memoryContent.size()); in AshmemTestFunc()
|
/ohos5.0/foundation/ability/form_fwk/interfaces/inner_api/src/ |
H A D | form_ashmem.cpp | 62 bool FormAshmem::WriteToAshmem(std::string name, char *data, int32_t size) in WriteToAshmem() function in OHOS::AppExecFwk::FormAshmem 80 ret = ashmem_->WriteToAshmem(data, size, 0); in WriteToAshmem()
|
H A D | form_provider_data.cpp | 397 if (!formAshmem.WriteToAshmem(picName, data.get(), size)) { in WriteImageDataToParcel() 419 … if (!formAshmem->WriteToAshmem(entry.first, entry.second.first.get(), entry.second.second)) { in ConvertRawImageData()
|
/ohos5.0/commonlibrary/c_utils/base/include/ |
H A D | ashmem.h | 148 bool WriteToAshmem(const void *data, int32_t size, int32_t offset) const; 210 bool WriteToAshmem(const void *data, int32_t size, int32_t offset);
|
/ohos5.0/commonlibrary/c_utils/base/src/rust/ |
H A D | ashmem.rs | 90 pub unsafe fn WriteToAshmem( in WriteToAshmem() function 170 self.c_ashmem.WriteToAshmem(c_void_ptr, size, offset) in write_to_ashmem()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/transaction/ |
H A D | rs_ashmem_test.cpp | 135 ASSERT_FALSE(ashmemAllocator->WriteToAshmem(nullptr, arrBytes)); 136 ASSERT_FALSE(ashmemAllocator->WriteToAshmem(arr, arrBytes + 5)); 137 ashmemAllocator->WriteToAshmem(arr, arrBytes);
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_provider_data_new_leg_test/ |
H A D | mock_form_ashmem.cpp | 20 bool FormAshmem::WriteToAshmem(std::string name, char *data, int32_t size) in WriteToAshmem() function in OHOS::AppExecFwk::FormAshmem
|
/ohos5.0/foundation/ability/form_fwk/interfaces/inner_api/include/ |
H A D | form_ashmem.h | 32 bool WriteToAshmem(std::string name, char *data, int32_t size);
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | ashmem.cpp | 255 bool Ashmem::WriteToAshmem(const void *data, int32_t size, int32_t offset) const in WriteToAshmem() function in OHOS::Ashmem 257 bool Ashmem::WriteToAshmem(const void *data, int32_t size, int32_t offset) in WriteToAshmem()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | ashmem.h | 161 bool WriteToAshmem(const void *data, int32_t size, int32_t offset);
|
/ohos5.0/foundation/ability/form_fwk/test/fuzztest/formashmem_fuzzer/ |
H A D | formashmem_fuzzer.cpp | 43 formAshmem.WriteToAshmem(name, nullptr, sizes); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/transaction/ |
H A D | rs_ashmem_helper.h | 30 bool WriteToAshmem(const void *data, size_t size);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/ |
H A D | rs_ashmem_helper_test.cpp | 152 ashmemAllocator.WriteToAshmem(nullptr, size); 153 ASSERT_FALSE(ashmemAllocator.WriteToAshmem(nullptr, size));
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/ |
H A D | rs_ashmem_helper.cpp | 102 bool AshmemAllocator::WriteToAshmem(const void *data, size_t size) in WriteToAshmem() function in OHOS::Rosen::AshmemAllocator 233 if (!ashmemAllocator->WriteToAshmem(reinterpret_cast<void*>(dataParcel->GetData()), dataSize)) { in CreateAshmemParcel()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/ |
H A D | rs_ashmem_helper.cpp | 44 bool AshmemAllocator::WriteToAshmem(const void *data, size_t size) in WriteToAshmem() function in OHOS::Rosen::AshmemAllocator
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/windows/ |
H A D | rs_ashmem_helper.cpp | 44 bool AshmemAllocator::WriteToAshmem(const void *data, size_t size) in WriteToAshmem() function in OHOS::Rosen::AshmemAllocator
|
/ohos5.0/base/hiviewdfx/hiview/base/utility/include/ |
H A D | ash_memory_utils.h | 42 if (!ashmem->WriteToAshmem(data, dataSize, offset)) { in WriteBulkData()
|
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/buffer_manager/ |
H A D | shared_buffer.cpp | 59 auto ret = ashmem_->WriteToAshmem(address, bytes, 0); in CopyFrom()
|
/ohos5.0/base/usb/usb_manager/test/fuzztest/usbmgrbulkcancel_fuzzer/ |
H A D | usbmgrbulkcancel_fuzzer.cpp | 50 asmptr->WriteToAshmem(tdata.data(), tlen, offset); in GetSharedMem()
|
/ohos5.0/foundation/multimedia/media_foundation/src/common/ |
H A D | share_memory.cpp | 68 if (!sharedMem_->WriteToAshmem(in, (int32_t)writeSize, (int32_t)start)) { in Write()
|