Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 197) 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/net/src/android/net/cts/
DDnsTest.java84 for (InetAddress addr : addrs) { in testDnsWorks()
85 if (addr instanceof Inet4Address) foundV4 = true; in testDnsWorks()
86 else if (addr instanceof Inet6Address) foundV6 = true; in testDnsWorks()
87 if (DBG) Log.e(TAG, "www.google.com gave " + addr.toString()); in testDnsWorks()
111 for (InetAddress addr : addrs) { in testDnsWorks()
112 msg = "[RERUN] ipv6.google.com returned IPv4 address: " + addr.getHostAddress() + in testDnsWorks()
114 assertFalse (msg, addr instanceof Inet4Address); in testDnsWorks()
115 foundV6 |= (addr instanceof Inet6Address); in testDnsWorks()
116 if (DBG) Log.e(TAG, "ipv6.google.com gave " + addr.toString()); in testDnsWorks()
203 InetAddress addr = InetAddress.getByName(URLS[urlIndex]); in skiptestDnsPerf() local
[all …]
DIpSecBaseTest.java483 for (String addr : LOOPBACK_ADDRS) { in testJavaTcpSocketPair()
484 InetAddress local = InetAddress.getByName(addr); in testJavaTcpSocketPair()
495 for (String addr : LOOPBACK_ADDRS) { in testJavaUdpSocketPair()
496 InetAddress local = InetAddress.getByName(addr); in testJavaUdpSocketPair()
508 for (String addr : LOOPBACK_ADDRS) { in testJavaUdpSocketPairUnconnected()
509 InetAddress local = InetAddress.getByName(addr); in testJavaUdpSocketPairUnconnected()
521 for (String addr : LOOPBACK_ADDRS) { in testNativeTcpSocketPair()
522 InetAddress local = InetAddress.getByName(addr); in testNativeTcpSocketPair()
534 for (String addr : LOOPBACK_ADDRS) { in testNativeUdpSocketPair()
535 InetAddress local = InetAddress.getByName(addr); in testNativeUdpSocketPair()
[all …]
DLocalSocketTest.java141 LocalSocketAddress addr = new LocalSocketAddress(address); in testAccessors() local
144 socket.bind(addr); in testAccessors()
146 assertEquals(addr, socket.getLocalSocketAddress()); in testAccessors()
190 socket.connect(addr, 2005); in testAccessors()
DConnectivityManagerTest.java890 for (InetAddress addr : allAddrs) { in getAddrByName()
891 if (family == AF_INET && addr instanceof Inet4Address) return addr; in getAddrByName()
893 if (family == AF_INET6 && addr instanceof Inet6Address) return addr; in getAddrByName()
895 if (family == AF_UNSPEC) return addr; in getAddrByName()
904 final InetAddress addr = getAddrByName(host, family); in getConnectedSocket() local
905 if (addr == null) fail("Fail to get destination address for " + family); in getConnectedSocket()
907 final InetSocketAddress sockAddr = new InetSocketAddress(addr, port); in getConnectedSocket()
DSSLCertificateSocketFactoryTest.java76 .map(addr -> new InetSocketAddress(addr, HTTPS_PORT)) in setUp()
/cts/tests/tests/selinux/common/jni/
Dandroid_security_SELinuxTargetSdkTest.cpp49 struct sockaddr_nl addr; in checkNetlinkRouteBind() local
50 addr.nl_family = AF_NETLINK; in checkNetlinkRouteBind()
51 addr.nl_pid = getpid(); in checkNetlinkRouteBind()
52 addr.nl_groups = RTMGRP_LINK|RTMGRP_IPV4_IFADDR|RTMGRP_IPV6_IFADDR; in checkNetlinkRouteBind()
54 int ret = bind(sock,(struct sockaddr *)&addr,sizeof(addr)); in checkNetlinkRouteBind()
/cts/apps/CtsVerifier/jni/audio_loopback/audio_utils/
Datomic.c21 int32_t android_atomic_acquire_load(volatile const int32_t* addr) in android_atomic_acquire_load() argument
23 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_acquire_load()
27 void android_atomic_release_store(int32_t value, volatile int32_t* addr) in android_atomic_release_store() argument
29 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_release_store()
Datomic.h26 int32_t android_atomic_acquire_load(volatile const int32_t* addr);
27 void android_atomic_release_store(int32_t value, volatile int32_t* addr);
/cts/tests/tests/security/jni/
Dandroid_security_cts_cve_2019_2213_Test.c939 u32 r32(u64 addr);
940 u64 r64(u64 addr);
941 void w64(u64 addr, u64 val);
942 void w128(u64 addr, u64 v1, u64 v2);
990 u64 find_adrp_add(u64 addr) { in find_adrp_add() argument
993 u32 inst = r32(addr); in find_adrp_add()
995 u64 ret = parse_adrp(addr, inst); in find_adrp_add()
996 inst = r32(addr + 4); in find_adrp_add()
1004 addr += 4; in find_adrp_add()
1457 void winfo32_lo(int addr, u32 dat) { in winfo32_lo() argument
[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/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\}
/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/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java82 byte[] addr = ((Inet4Address) InetAddress.getByName(addrString)).getAddress(); in ipv4AddrToInt()
83 return ((addr[3] & 0xff) << 24) | ((addr[2] & 0xff) << 16) | in ipv4AddrToInt()
84 ((addr[1] & 0xff) << 8) | (addr[0] & 0xff); in ipv4AddrToInt()
/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/tests/tests/location/src/android/location/cts/
DEmergencyCallWifiTest.java85 private static boolean isReachable(String addr, int openPort, int timeOutMillis) { in isReachable() argument
88 soc.connect(new InetSocketAddress(addr, openPort), timeOutMillis); in isReachable()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNetworkLoggingTest.java404 private boolean isIpv4OrIpv6Address(InetAddress addr) { in isIpv4OrIpv6Address() argument
405 return ((addr instanceof Inet4Address) || (addr instanceof Inet6Address)); in isIpv4OrIpv6Address()
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/
DListeningPortsTest.java201 private ParsedProcEntry(InetAddress addr, int port, String state, int uid) { in ParsedProcEntry() argument
202 this.localAddress = addr; in ParsedProcEntry()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_long_2addr/d/
DT_sub_long_2addr_3.smali31 sub-long/2addr v3, v5
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_float_2addr/d/
DT_rem_float_2addr_1.smali30 rem-float/2addr v6, v7
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/or_long_2addr/d/
DT_or_long_2addr_5.smali30 or-long/2addr v11, v12
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_double_2addr/d/
DT_sub_double_2addr_4.smali30 sub-double/2addr v3, v2
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/xor_int_2addr/d/
DT_xor_int_2addr_5.smali30 xor-int/2addr v1, v3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/mul_long_2addr/d/
DT_mul_long_2addr_3.smali30 mul-long/2addr v10, v12
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_int_2addr/d/
DT_rem_int_2addr_1.smali30 rem-int/2addr v6, v7

12345678