/cts/tests/tests/os/src/android/os/cts/ |
D | HidlMemoryTest.java | 36 HidlMemory mem = new HidlMemory("some name", 123, handle); in testAccessors() local 37 assertEquals("some name", mem.getName()); in testAccessors() 38 assertEquals(123, mem.getSize()); in testAccessors() 39 assertTrue(handle == mem.getHandle()); in testAccessors() 45 HidlMemory mem = new HidlMemory("some name", 123, handle); in testClose() local 47 mem.close(); in testClose() 53 HidlMemory mem = new HidlMemory("some name", 123, null); in testCloseNullHandle() local 54 mem.close(); in testCloseNullHandle() 60 HidlMemory mem = new HidlMemory("some name", 123, handle); in testRelease() local 61 assertTrue(mem.getHandle() == handle); in testRelease() [all …]
|
D | SharedMemoryFileDescriptorTest.java | 106 ByteBufferSession(SharedMemory mem, int offset, int length) in ByteBufferSession() argument 108 mBuf = mem.map(OsConstants.PROT_READ | OsConstants.PROT_WRITE, offset, length); in ByteBufferSession()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2014-9803/ |
D | poc.c | 28 volatile char *mem = 0; variable 45 mprotect((void *)mem, 4096, PROT_READ | PROT_WRITE); in do_child() 48 mem[0] = val; in do_child() 62 status = ptrace(PTRACE_PEEKDATA, child, mem, 0); in do_trace() 74 mem = (volatile char *)mmap(0, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in main() 75 mprotect((void *)mem, 4096, PROT_NONE); in main() 89 munmap((void *)mem, 4096); in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3818/ |
D | poc.c | 43 char *mem = (char *)malloc(to_alloc); in main() local 45 printf("%p\n", mem); in main() 46 if (mem) { in main() 48 mem[i] = 0; in main() 53 free(mem); in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/includes/ |
D | memutils.h | 24 #define DISABLE_MEM_ACCESS(mem, size)\ argument 25 mprotect((char *) mem, size, PROT_NONE); 27 #define ENABLE_MEM_ACCESS(mem, size)\ argument 28 mprotect((char *) mem, size, PROT_READ | PROT_WRITE);
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_MMapExecutableTest.cpp | 59 void * mem = in mmap_executable() local 62 if (mem == MAP_FAILED) { in mmap_executable() 67 if (munmap(mem, stat_buf.st_size - kOffset) == -1) { in mmap_executable()
|
/cts/tests/sensor/jni/ |
D | SensorTest.cpp | 57 int TestSensorManager::createDirectChannel(const TestSharedMemory &mem) { in createDirectChannel() argument 61 switch (mem.getType()) { in createDirectChannel() 64 mem.getSharedMemoryFd(), mem.getSize()); in createDirectChannel() 67 mem.getHardwareBuffer(), mem.getSize()); in createDirectChannel()
|
D | SensorTestCases.cpp | 160 std::unique_ptr<TestSharedMemory> mem(TestSharedMemory::create(channelType, kMemSize)); in testDirectReport() local 161 ASSERT_NE(mem, nullptr); in testDirectReport() 162 ASSERT_NE(mem->getBuffer(), nullptr); in testDirectReport() 165 ASSERT_GT(mem->getSharedMemoryFd(), 0); in testDirectReport() 168 ASSERT_NOT_NULL(mem->getHardwareBuffer()); in testDirectReport() 172 char* buffer = mem->getBuffer(); in testDirectReport() 179 channel = mManager->createDirectChannel(*mem); in testDirectReport() 190 auto events = mem->parseEvents(); in testDirectReport()
|
D | SensorTest.h | 59 int createDirectChannel(const TestSharedMemory &mem);
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9424/ |
D | poc.cpp | 111 sp<IMemory> mem = memoryDealer->allocate(4096 * 4); in decrypt() local 112 data.writeStrongBinder(IInterface::asBinder(mem)); in decrypt() 133 data.writeStrongBinder(IInterface::asBinder(mem)); in decrypt()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2022-20127/ |
D | poc.cpp | 92 ce_cb.mem.t4t.selected_aid_idx = CE_T4T_MAX_REG_AID; in main() 93 ce_cb.mem.t4t.status = CE_T4T_STATUS_REG_AID_SELECTED; in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8430/ |
D | poc.c | 44 __u32 mem; member 150 g_error_notifier.mem = g_nvmap_hdl.handle; in prepare_data()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0817/ |
D | poc.cpp | 87 sp < android::hidl::memory::V1_0::IMemory > mem = mapMemory( in poc() local 89 memset((void *) mem->getPointer(), 0xCF, inBufferSize); in poc()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8482/ |
D | poc.c | 55 __u32 mem; member 179 err1.mem = dma1; in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2019/ |
D | poc.cpp | 43 ce_cb.mem.t4t.status = CE_T4T_STATUS_REG_AID_SELECTED; in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2485/ |
D | poc.cpp | 122 sp<android::hidl::memory::V1_0::IMemory> mem = in main() local 124 memcpy((void *)mem->getPointer(), (void *)(buffer + INPUT_BUFFER_SIZE * i), in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-11173/ |
D | local_poc.h | 70 void *mem; member
|
D | poc.c | 77 init.mem = (void *)0xdeadbeef; in init_thread()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2022-23852/ |
D | poc.cpp | 131 const XML_Memory_Handling_Suite *mem; member 145 const XML_Memory_Handling_Suite *mem; member
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | OutputManager.java | 581 public void dumpYuv(byte[] mem, int offset, int size) { in dumpYuv() argument 589 outputStream.write(mem, offset, size); in dumpYuv() 597 public void dumpY(byte[] mem, int offset, int size) { in dumpY() argument 604 outputStream.write(mem, offset, size); in dumpY()
|