Searched refs:prot (Results 1 - 10 of 10) sorted by relevance

/frameworks/native/include/android/
H A Dsharedmem.h105 * \param prot any bitwise-or'ed combination of PROT_READ, PROT_WRITE, PROT_EXEC denoting
109 int ASharedMemory_setProt(int fd, int prot);
/frameworks/base/core/java/android/os/
H A DSharedMemory.java97 private static void validateProt(int prot) { argument
98 if ((prot & ~PROT_MASK) != 0) {
99 throw new IllegalArgumentException("Invalid prot value");
104 * Sets the protection on the shared memory to the combination specified in prot, which
120 * @param prot Any bitwise-or'ed combination of
128 public boolean setProtect(int prot) { argument
130 validateProt(prot);
131 int errno = nSetProt(mFileDescriptor, prot);
200 * Creates an mmap of the SharedMemory with the specified prot, offset, and length. This will
205 * @param prot
213 map(int prot, int offset, int length) argument
362 nSetProt(FileDescriptor fd, int prot) argument
[all...]
/frameworks/ml/nn/runtime/
H A DMemory.cpp61 int MemoryFd::set(size_t size, int prot, int fd, size_t offset) { argument
92 mHandle->data[1] = prot;
115 int prot = mHandle->data[1]; local
117 void* data = mmap(nullptr, mHidlMemory.size(), prot, MAP_SHARED, fd, offset);
H A DMemory.h74 // Create the native_handle based on input size, prot, and fd.
77 int set(size_t size, int prot, int fd, size_t offset);
H A DNeuralNetworks.cpp252 int ANeuralNetworksMemory_createFromFd(size_t size, int prot, int fd, size_t offset, argument
259 int n = m->set(size, prot, fd, offset);
/frameworks/base/native/android/
H A Dsharedmem.cpp58 int ASharedMemory_setProt(int fd, int prot) { argument
59 return ashmem_set_prot_region(fd, prot);
/frameworks/compile/mclinker/lib/Support/Unix/
H A DFileSystem.inc163 int prot, flag;
166 prot = PROT_READ;
170 prot = PROT_WRITE;
174 prot = PROT_READ | PROT_WRITE;
182 pMemBuffer = ::mmap(NULL, pLength, prot, flag, m_Handler, pStartOffset);
/frameworks/base/core/jni/
H A Dandroid_os_SharedMemory.cpp81 static jint SharedMemory_setProt(JNIEnv* env, jobject, jobject fileDescriptor, jint prot) { argument
84 if (ashmem_set_prot_region(fd, prot)) {
/frameworks/ml/nn/common/
H A DCpuExecutor.cpp55 int prot = hidlMemory.handle()->data[1]; local
58 buffer = static_cast<uint8_t*>(mmap(nullptr, size, prot, MAP_SHARED, fd, offset));
130 int prot = mHidlMemory.handle()->data[1]; local
131 if (prot & PROT_WRITE) {
/frameworks/opt/setupwizard/tools/docs/
H A Ddoclava.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/ccil/ org/ccil/cowan/ org/ccil/cowan/tagsoup/ ...

Completed in 2760 milliseconds