Home
last modified time | relevance | path

Searched refs:MEMORY_SIZE (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/commonlibrary/c_utils/base/test/unittest/rust/
H A Drust_utils_ashmem_test.rs19 const MEMORY_SIZE: i32 = 1024; const
27 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_001()
29 assert_eq!(ashmem.GetAshmemSize(), MEMORY_SIZE); in test_ashmem_ffi_write_read_001()
41 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_002()
76 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_003()
116 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_004()
285 assert!(!ashmem.WriteToAshmem(c_content_ptr, MEMORY_SIZE + 1, 0)); in test_ashmem_ffi_invalid_006()
296 let ashmem = unsafe { ashmem::create_ashmem_instance(MEMORY_NAME, MEMORY_SIZE) }; in test_ashmem_write_read_001()
300 assert_eq!(ashmem.get_ashmem_size(), MEMORY_SIZE); in test_ashmem_write_read_001()
313 let ashmem = unsafe { ashmem::create_ashmem_instance(MEMORY_NAME, MEMORY_SIZE) }; in test_ashmem_write_read_002()
[all …]
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_ashmem_test.cpp36 const int32_t MEMORY_SIZE = 1024; variable
67 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
69 ASSERT_TRUE(ashmem->GetAshmemSize() == MEMORY_SIZE);
85 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
120 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
154 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
191 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
226 ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
242 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
258 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
[all …]
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/ashemem_benchmark_test/
H A Dashemem_benchmark_test.cpp36 const int32_t MEMORY_SIZE = 1024; variable
75 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE); in BENCHMARK_F()
77 AssertEqual(ashmem->GetAshmemSize(), MEMORY_SIZE, in BENCHMARK_F()
98 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE); in BENCHMARK_F()
139 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE); in BENCHMARK_F()
178 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE); in BENCHMARK_F()
220 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE); in BENCHMARK_F()
261 ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE); in BENCHMARK_F()
281 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE); in BENCHMARK_F()
402 ret = ashmem->WriteToAshmem(MEMORY_CONTENT.c_str(), MEMORY_SIZE+1, 0); in BENCHMARK_F()
[all …]
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc_utils_guide_rust_ashmem.md65 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) };
67 assert_eq!(ashmem.GetAshmemSize(), MEMORY_SIZE);
76 let ashmem = unsafe { ashmem::create_ashmem_instance(MEMORY_NAME, MEMORY_SIZE) };
80 assert_eq!(ashmem.get_ashmem_size(), MEMORY_SIZE);
H A Dc-utils-guide-ashmem.md50 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE);
/ohos5.0/foundation/multimedia/image_framework/
H A Dhisysevent.yaml62 MEMORY_SIZE: {type: UINT32, desc: memory size}
92 MEMORY_SIZE: {type: UINT32, desc: memory size}