Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 12 of 12) sorted by relevance

/cts/hostsidetests/securitybulletin/securityPatch/CVE-2014-9803/
Dpoc.c28 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/
Dpoc.c43 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/
Dmemutils.h23 #define DISABLE_MEM_ACCESS(mem, size)\ argument
24 mprotect((char *) mem, size, PROT_NONE);
26 #define ENABLE_MEM_ACCESS(mem, size)\ argument
27 mprotect((char *) mem, size, PROT_READ | PROT_WRITE);
/cts/tests/sensor/jni/
DSensorTest.cpp57 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()
DSensorTestCases.cpp158 std::unique_ptr<TestSharedMemory> mem(TestSharedMemory::create(channelType, kMemSize)); in testDirectReport() local
159 ASSERT_NE(mem, nullptr); in testDirectReport()
160 ASSERT_NE(mem->getBuffer(), nullptr); in testDirectReport()
163 ASSERT_GT(mem->getSharedMemoryFd(), 0); in testDirectReport()
166 ASSERT_NOT_NULL(mem->getHardwareBuffer()); in testDirectReport()
170 char* buffer = mem->getBuffer(); in testDirectReport()
177 channel = mManager->createDirectChannel(*mem); in testDirectReport()
188 auto events = mem->parseEvents(); in testDirectReport()
DSensorTest.h59 int createDirectChannel(const TestSharedMemory &mem);
/cts/tests/tests/security/jni/
Dandroid_security_cts_MMapExecutableTest.cpp59 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/hostsidetests/securitybulletin/securityPatch/CVE-2018-9424/
Dpoc.cpp111 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-2016-8430/
Dpoc.c44 __u32 mem; member
150 g_error_notifier.mem = g_nvmap_hdl.handle; in prepare_data()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8482/
Dpoc.c55 __u32 mem; member
179 err1.mem = dma1; in main()
/cts/tests/tests/media/assets/unmuxed_1500k/
D01.ts5420 …�:�~Z��*�g�l�Sz�f�r�����n�n����ս���m�rv���ye��m靡�?A�r>��'"`�@�� mem��������)��y��'Vc �%…
/cts/tests/tests/media/res/raw/
Dfootball_qvga.yuv304 …tttv|��~ebedl}����yhadces}}|xwxz}wicdccddchsxxz{{wrtvwz�������������������mem}������qeeky��~z{|{�…