Home
last modified time | relevance | path

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

/commonlibrary/c_utils/base/src/rust/
H A Dashmem.rs14 //! Ashmem provides interfaces for operating shared memory.
30 /// Module Ashmem::ffi. Includes interfaces which will call c++ counterparts via
37 /// Create an C++ Ashmem object managed by std::shared_ptr.
39 /// Requires C-style string as parameter to specify the name of Ashmem.
40 pub unsafe fn CreateAshmemStd(name: *const c_char, size: i32) -> SharedPtr<Ashmem>; in CreateAshmemStd()
58 /// C++ Ashmem class.
59 pub type Ashmem; types
63 pub fn CloseAshmem(self: &Ashmem) -> (); in CloseAshmem()
66 pub fn MapAshmem(self: &Ashmem, mapType: i32) -> bool; in MapAshmem()
69 pub fn MapReadAndWriteAshmem(self: &Ashmem)
109 pub struct Ashmem { global() structure names
114 impl Ashmem { global() impls
[all...]
/commonlibrary/c_utils/base/src/
H A Dashmem.cpp39 std::shared_ptr<Ashmem> CreateAshmemStd(const char *name, int32_t size) in CreateAshmemStd()
43 return std::shared_ptr<Ashmem>{}; in CreateAshmemStd()
49 return std::shared_ptr<Ashmem>{}; in CreateAshmemStd()
52 return std::make_shared<Ashmem>(fd, size); in CreateAshmemStd()
148 Ashmem::Ashmem(int fd, int32_t size) : memoryFd_(fd), memorySize_(size), flag_(0), startAddr_(nullptr) in Ashmem() function in OHOS::Ashmem
152 Ashmem::~Ashmem() in ~Ashmem()
158 sptr<Ashmem> Ashmem
[all...]
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_ashmem_test.cpp67 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE); in HWTEST_F()
85 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE); in HWTEST_F()
120 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE); in HWTEST_F()
154 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), MEMORY_SIZE); in HWTEST_F()
191 sptr<Ashmem> ashmem = Ashmem in HWTEST_F()
[all...]
/commonlibrary/c_utils/base/test/benchmarktest/ashemem_benchmark_test/
H A Dashemem_benchmark_test.cpp75 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(MEMORY_NAME.c_str(), 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 in BENCHMARK_F()
[all...]
/commonlibrary/c_utils/base/include/
H A Dashmem.h19 * @brief Provides the <b>Ashmem</b> class implemented in c_utils to operate the
20 * Anonymous Shared Memory (Ashmem).
35 class Ashmem;
41 std::shared_ptr<Ashmem> CreateAshmemStd(const char *name, int32_t size);
45 * @brief Creates an <b>Ashmem</b> region in the kernel.
48 * copied and assigned to the <b>Ashmem</b> region in the kernel.
49 * @param size Indicates the size of the <b>Ashmem</b> region to create.
50 * @return Returns the file descriptor of the <b>Ashmem</b> region.
55 * @brief Sets the protection flag of an <b>Ashmem</b> region in the kernel.
57 * @param fd Indicates the file descriptor of an <b>Ashmem</
82 class Ashmem : public virtual RefBase { global() class
[all...]
/commonlibrary/c_utils/base/test/fuzztest/ashmem_fuzzer/
H A Dashmem_fuzzer.cpp30 sptr<Ashmem> ashmem = Ashmem::CreateAshmem(name.c_str(), memorySize); in AshmemTestFunc()

Completed in 3 milliseconds