Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 195) sorted by relevance

12345678

/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-10229/
Dpoc.c31 struct sockaddr_in6 addr; in udp_send() local
34 memset(&addr, 0, sizeof(addr)); in udp_send()
35 addr.sin6_family = AF_INET6; in udp_send()
36 addr.sin6_port = htons(43786); in udp_send()
37 inet_pton(AF_INET6, "::1", &(addr.sin6_addr)); in udp_send()
38 sendto(s, "data", 4, 0, (struct sockaddr*)&addr, sizeof(addr)); in udp_send()
41 sendto(s, data, sizeof(data), 0, (struct sockaddr*)&addr, sizeof(addr)); in udp_send()
48 struct sockaddr_in6 addr; in udp_recv() local
54 memset(&addr, 0, sizeof(addr)); in udp_recv()
55 addr.sin6_family = AF_INET6; in udp_recv()
[all …]
/cts/tests/tests/os/jni/
Dandroid_os_cts_SharedMemory.cpp27 void* addr = mmap(nullptr, 1, PROT_READ | PROT_WRITE, MAP_SHARED, fd, index); in nWriteByte() local
28 if (addr == nullptr) { in nWriteByte()
32 reinterpret_cast<int8_t*>(addr)[0] = value; in nWriteByte()
33 munmap(addr, 1); in nWriteByte()
/cts/tests/tests/selinux/common/jni/
Dandroid_security_SELinuxTargetSdkTest.cpp125 struct sockaddr_nl addr; in checkNetlinkRouteBind() local
126 addr.nl_family = AF_NETLINK; in checkNetlinkRouteBind()
127 addr.nl_pid = getpid(); in checkNetlinkRouteBind()
128 addr.nl_groups = RTMGRP_LINK|RTMGRP_IPV4_IFADDR|RTMGRP_IPV6_IFADDR; in checkNetlinkRouteBind()
130 int ret = bind(sock,(struct sockaddr *)&addr,sizeof(addr)); in checkNetlinkRouteBind()
/cts/tools/incremental-cts/testdata/
Dperf_dump.txt2 pid 23365, tid 23365, addr 0x58b817b000, len 0x3228000
10 pid 23365, tid 23365, addr 0x58b817b000, len 0x3228000
30 pid 23365, tid 23365, addr 0x58b817b000, len 0x3228000
38 pid 23365, tid 23365, addr 0x58b817b000, len 0x3228000
46 pid 23365, tid 23365, addr 0x58b817b000, len 0x3228000
54 pid 23365, tid 23365, addr 0x58b817b000, len 0x3228000
62 pid 23365, tid 23365, addr 0x58b817b000, len 0x3228000
/cts/tests/tests/security/jni/
Dandroid_security_cts_cve_2019_2213_Test.c940 u32 r32(u64 addr);
941 u64 r64(u64 addr);
942 void w64(u64 addr, u64 val);
943 void w128(u64 addr, u64 v1, u64 v2);
991 u64 find_adrp_add(u64 addr) { in find_adrp_add() argument
994 u32 inst = r32(addr); in find_adrp_add()
996 u64 ret = parse_adrp(addr, inst); in find_adrp_add()
997 inst = r32(addr + 4); in find_adrp_add()
1005 addr += 4; in find_adrp_add()
1458 void winfo32_lo(int addr, u32 dat) { in winfo32_lo() argument
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-1906/
Dpoc.c52 struct kgsl_sharedmem_free addr; in gpu_sharedmem_free() local
54 addr.gpuaddr = gpu_addr; in gpu_sharedmem_free()
55 ret = ioctl(fd, IOCTL_KGSL_SHAREDMEM_FREE, &addr); in gpu_sharedmem_free()
95 int gpu_map_user_mem(int fd, uintptr_t addr, size_t size, size_t offset, in gpu_map_user_mem() argument
104 user_mem.hostptr = addr; in gpu_map_user_mem()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8460/
Dpoc.c54 unsigned long *addr; /* array of addresses to return */ member
67 __u32 addr; /* array of addresses to return */ member
76 __u32 addr; /* user pointer*/ member
150 err_pin.addr = leak_addr + 8; in main()
/cts/tests/tests/os/UffdGc/jni/
Dandroid_os_cts_uffdgc_UserfaultfdTest.cc153 void* addr = nullptr; in Java_android_os_cts_uffdgc_UserfaultfdTest_performKernelSpaceUffd() local
178 addr = mmap(nullptr, page_sz, PROT_READ | PROT_WRITE, in Java_android_os_cts_uffdgc_UserfaultfdTest_performKernelSpaceUffd()
180 if (addr == MAP_FAILED) { in Java_android_os_cts_uffdgc_UserfaultfdTest_performKernelSpaceUffd()
195 uffdio_register.range.start = reinterpret_cast<size_t>(addr); in Java_android_os_cts_uffdgc_UserfaultfdTest_performKernelSpaceUffd()
212 if (write(write_fd, addr, page_sz) >= 0) { in Java_android_os_cts_uffdgc_UserfaultfdTest_performKernelSpaceUffd()
219 static_cast<char*>(addr)[42] = 'a'; in Java_android_os_cts_uffdgc_UserfaultfdTest_performKernelSpaceUffd()
223 munmap(addr, page_sz); in Java_android_os_cts_uffdgc_UserfaultfdTest_performKernelSpaceUffd()
/cts/hostsidetests/hdmicec/
Dcec_adapter.md114 [osd] \{addr\} \{string\}
117 [ver] \{addr\}
120 [ven] \{addr\}
123 [lang] \{addr\}
126 [pow] \{addr\}
129 [name] \{addr\}
132 [poll] \{addr\}
138 [ad] \{addr\}
144 [sp] \{addr\}
147 [spl] \{addr\}
DREADME.md27 --module-arg CtsHdmiCecHostTestCases:set-option:cec-phy-addr:<address_in_decimal>
29 Thus, for a device that is taking an address `3.0.0.0`, pass `12288` as the `cec-phy-addr` argument.
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-39623/
Dpoc.cpp44 void *mmap(void *addr, size_t length, int prot, int flags, int fd, in mmap() argument
52 char *tmp_ptr = (char *)real_mmap(addr, length + page_size, prot, in mmap()
57 return real_mmap(addr, length, prot, flags, fd, offset); in mmap()
/cts/tests/app/AppExitTest/src/android/app/cts/
DMemoryConsumerService.java96 long addr = 0L; in fillUpMemoryAndCheck() local
98 addr = Os.mmap(0, oneMb, OsConstants.PROT_WRITE, in fillUpMemoryAndCheck()
107 if (addr == 0) { in fillUpMemoryAndCheck()
112 DirectByteBuffer buf = new DirectByteBuffer(oneMb, addr, fd, null, false); in fillUpMemoryAndCheck()
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DWorkProfileNetworkLoggingDelegateTest.java149 private boolean isIpv4OrIpv6Address(InetAddress addr) { in isIpv4OrIpv6Address() argument
150 return ((addr instanceof Inet4Address) || (addr instanceof Inet6Address)); in isIpv4OrIpv6Address()
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java88 byte[] addr = ((Inet4Address) InetAddress.getByName(addrString)).getAddress(); in ipv4AddrToInt()
89 return ((addr[3] & 0xff) << 24) | ((addr[2] & 0xff) << 16) | in ipv4AddrToInt()
90 ((addr[1] & 0xff) << 8) | (addr[0] & 0xff); in ipv4AddrToInt()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...
/cts/tests/tests/rscpp/librscpptest/
Drs_jni.cpp32 #define align_addr(addr,align) (void *)(((size_t)(addr) + ((align) - 1)) & (size_t) - (align)) argument
36 void * addr, * x = NULL; in aligned_alloc() local
37 addr = malloc(size + align - 1 + ADDRESS_STORAGE_SIZE); in aligned_alloc()
38 if (addr) { in aligned_alloc()
39 x = align_addr((unsigned char *) addr + ADDRESS_STORAGE_SIZE, (int) align); in aligned_alloc()
41 ((size_t *) x)[-1] = (size_t) addr; in aligned_alloc()
48 void * addr = (void *) (((size_t *) memblk)[-1]); in aligned_free() local
49 free(addr); in aligned_free()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DNetworkLoggingTest.java167 private boolean isIpv4OrIpv6Address(InetAddress addr) { in isIpv4OrIpv6Address() argument
168 return ((addr instanceof Inet4Address) || (addr instanceof Inet6Address)); in isIpv4OrIpv6Address()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_int_2addr/d/
DT_div_int_2addr_6.smali30 div-int/2addr v2, v4
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/and_long_2addr/d/
DT_and_long_2addr_3.smali31 and-long/2addr v12, v0
DT_and_long_2addr_1.smali30 and-long/2addr v10, v12
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_float_2addr/d/
DT_rem_float_2addr_2.smali30 rem-float/2addr v6, v8
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_float_2addr/d/
DT_div_float_2addr_2.smali30 div-float/2addr v0, v7
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/and_int_2addr/d/
DT_and_int_2addr_6.smali30 and-int/2addr v2, v4
DT_and_int_2addr_5.smali29 and-int/2addr v2, v3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_long_2addr/d/
DT_add_long_2addr_2.smali30 add-long/2addr v3, v7

12345678