Home
last modified time | relevance | path

Searched refs:WriteToAshmem (Results 1 – 25 of 60) sorted by relevance

123

/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_ashmem_test.cpp91 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 Dashemem_benchmark_test.cpp104 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 Dfms_form_ashmem_test.cpp123 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 Dmock_ashmem.cpp39 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 Drust_utils_ashmem_test.rs50 …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 Dashmem_fuzzer.cpp41 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 Dform_ashmem.cpp62 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 Dform_provider_data.cpp397 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 Dashmem.h148 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 Dashmem.rs90 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 Drs_ashmem_test.cpp135 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 Dmock_form_ashmem.cpp20 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 Dform_ashmem.h32 bool WriteToAshmem(std::string name, char *data, int32_t size);
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dashmem.cpp255 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 Dashmem.h161 bool WriteToAshmem(const void *data, int32_t size, int32_t offset);
/ohos5.0/foundation/ability/form_fwk/test/fuzztest/formashmem_fuzzer/
H A Dformashmem_fuzzer.cpp43 formAshmem.WriteToAshmem(name, nullptr, sizes); in DoSomethingInterestingWithMyAPI()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/transaction/
H A Drs_ashmem_helper.h30 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 Drs_ashmem_helper_test.cpp152 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 Drs_ashmem_helper.cpp102 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 Drs_ashmem_helper.cpp44 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 Drs_ashmem_helper.cpp44 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 Dash_memory_utils.h42 if (!ashmem->WriteToAshmem(data, dataSize, offset)) { in WriteBulkData()
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/buffer_manager/
H A Dshared_buffer.cpp59 auto ret = ashmem_->WriteToAshmem(address, bytes, 0); in CopyFrom()
/ohos5.0/base/usb/usb_manager/test/fuzztest/usbmgrbulkcancel_fuzzer/
H A Dusbmgrbulkcancel_fuzzer.cpp50 asmptr->WriteToAshmem(tdata.data(), tlen, offset); in GetSharedMem()
/ohos5.0/foundation/multimedia/media_foundation/src/common/
H A Dshare_memory.cpp68 if (!sharedMem_->WriteToAshmem(in, (int32_t)writeSize, (int32_t)start)) { in Write()

123