/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
Inet4AddressTest.java | 39 addrName = "224.0.0.0"; // a multicast addr 1110 = 224-239 40 InetAddress addr = InetAddress.getByName(addrName); local 41 assertTrue("Multicast address " + addrName + " not detected.", addr 44 addrName = "239.255.255.255"; // a multicast addr 1110 = 224-239 45 addr = InetAddress.getByName(addrName); 46 assertTrue("Multicast address " + addrName + " not detected.", addr 50 addr = InetAddress.getByName(addrName); 52 + " reporting as a multicast address.", !addr 68 InetAddress addr = InetAddress.getByName(addrName); local 69 assertTrue("Loopback address " + addrName + " not detected.", addr 96 InetAddress addr = InetAddress.getByName(addrName); local 111 InetAddress addr = InetAddress.getByName(addrName); local 128 InetAddress addr = InetAddress.getByName(addrName); local 174 InetAddress addr = InetAddress.getByName(addrName); local 200 InetAddress addr = InetAddress.getByName(addrName); local 238 InetAddress addr = InetAddress.getByName(addrName); local 283 InetAddress addr = InetAddress.getByName(addrName); local [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
tsan_interface_java.h | 62 // Addr is any unique address associated with the mutex. 64 void __tsan_java_mutex_lock(jptr addr) INTERFACE_ATTRIBUTE; 66 void __tsan_java_mutex_unlock(jptr addr) INTERFACE_ATTRIBUTE; 68 void __tsan_java_mutex_read_lock(jptr addr) INTERFACE_ATTRIBUTE; 70 void __tsan_java_mutex_read_unlock(jptr addr) INTERFACE_ATTRIBUTE; 74 void __tsan_java_mutex_lock_rec(jptr addr, int rec) INTERFACE_ATTRIBUTE; 80 int __tsan_java_mutex_unlock_rec(jptr addr) INTERFACE_ATTRIBUTE; 85 // breaks release sequence on addr (see C++ standard 1.10/7 for details). 86 void __tsan_java_acquire(jptr addr) INTERFACE_ATTRIBUTE; 87 void __tsan_java_release(jptr addr) INTERFACE_ATTRIBUTE [all...] |
/system/bt/service/test/ |
util_unittest.cpp | 34 bt_bdaddr_t addr; local 35 memset(&addr, 0, sizeof(addr)); 37 EXPECT_TRUE(BdAddrFromString("00:00:00:00:00:00", &addr)); 39 EXPECT_EQ(0, memcmp(&addr, &result0, sizeof(addr))); 41 EXPECT_TRUE(BdAddrFromString("ab:01:4C:d5:21:9f", &addr)); 43 EXPECT_EQ(0, memcmp(&addr, &result1, sizeof(addr)));
|
/external/compiler-rt/test/msan/ |
mmap.cc | 14 uintptr_t addr = (uintptr_t)p; local 16 return addr < 0x010000000000ULL || addr >= 0x600000000000ULL; 18 return (addr >= 0x000000000000ULL && addr < 0x010000000000ULL) || 19 (addr >= 0x510000000000ULL && addr < 0x600000000000ULL) || 20 (addr >= 0x700000000000ULL && addr < 0x800000000000ULL); 22 return addr >= 0x00e000000000ULL [all...] |
/external/libgdx/extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/joints/ |
FrictionJoint.java | 34 public FrictionJoint (World world, long addr) { 35 super(world, addr); 39 jniGetLocalAnchorA(addr, tmp); 44 private native void jniGetLocalAnchorA (long addr, float[] anchor); /* 45 b2FrictionJoint* joint = (b2FrictionJoint*)addr; 51 jniGetLocalAnchorB(addr, tmp); 56 private native void jniGetLocalAnchorB (long addr, float[] anchor); /* 57 b2FrictionJoint* joint = (b2FrictionJoint*)addr; 64 jniSetMaxForce(addr, force); 67 private native void jniSetMaxForce (long addr, float force); / [all...] |
WeldJoint.java | 35 public WeldJoint (World world, long addr) { 36 super(world, addr); 40 jniGetLocalAnchorA(addr, tmp); 45 private native void jniGetLocalAnchorA (long addr, float[] anchor); /* 46 b2WeldJoint* joint = (b2WeldJoint*)addr; 52 jniGetLocalAnchorB(addr, tmp); 57 private native void jniGetLocalAnchorB (long addr, float[] anchor); /* 58 b2WeldJoint* joint = (b2WeldJoint*)addr; 64 return jniGetFrequency(addr); 67 private native float jniGetFrequency (long addr); /* [all...] |
/frameworks/base/location/tests/locationtests/src/android/location/ |
GeocoderTest.java | 42 Address addr = addresses1.get(0); local 43 assertEquals("94305", addr.getFeatureName()); 44 assertEquals("Palo Alto, CA 94305", addr.getAddressLine(0)); 45 assertEquals("USA", addr.getAddressLine(1)); 46 assertEquals("94305", addr.getPostalCode()); 47 assertFalse(Math.abs(addr.getLatitude() - 37.4240385) > 0.1); 53 addr = addresses2.get(0); 54 assertEquals("San Francisco", addr.getFeatureName()); 55 assertEquals("San Francisco, CA", addr.getAddressLine(0)); 56 assertEquals("United States", addr.getAddressLine(1)) [all...] |
/external/iproute2/lib/ |
dnet_ntop.c | 8 static __inline__ u_int16_t dn_ntohs(u_int16_t addr) 15 u.word = addr; 19 static __inline__ int do_digit(char *str, u_int16_t *addr, u_int16_t scale, size_t *pos, size_t len, int *started) 21 u_int16_t tmp = *addr / scale; 30 *addr -= (tmp * scale); 39 u_int16_t addr, area; local 43 memcpy(&addr, dna->a_addr, sizeof(addr)); 44 addr = dn_ntohs(addr); [all...] |
/external/strace/tests/ |
unix-yy-accept.awk | 33 addrlen = length(addr) + 3 41 r_bind = "^bind\\(0<UNIX:\\[" inode_listen "\\]>, \\{sa_family=AF_(LOCAL|UNIX|FILE), sun_path=\"" addr "\"\\}, " addrlen "\\) += 0$" 42 r_listen = "^listen\\(0<UNIX:\\[" inode_listen ",\"" addr "\"\\]>, 5\\) += 0$" 43 r_getsockname = "^getsockname\\(0<UNIX:\\[" inode_listen ",\"" addr "\"\\]>, \\{sa_family=AF_(LOCAL|UNIX|FILE), sun_path=\"" addr "\"\\}, \\[" addrlen "\\]\\) += 0$" 44 r_accept = "^accept\\(0<UNIX:\\[" inode_listen ",\"" addr "\"\\]>, \\{sa_family=AF_(LOCAL|UNIX|FILE), NULL\\}, \\[2\\]\\) += 1<UNIX:\\[(" r_i ")->(" r_i "),\"" addr "\"\\]>" 59 r_close_listen = "^close\\(0<UNIX:\\[" inode_listen ",\"" addr "\"\\]>\\) += 0$" 60 r_close_accepted = "^close\\(1<UNIX:\\[" inode_accepted ",\"" addr "\"\\]>\\) += 0$"
|
/external/clang/test/Sema/ |
inline-asm-validate-aarch64.c | 5 uint8_t constraint_r(uint8_t *addr) { 8 __asm__ volatile("ldrb %0, [%1]" : "=r" (byte) : "r" (addr) : "memory"); 16 uint8_t constraint_r_symbolic(uint8_t *addr) { 19 __asm__ volatile("ldrb %[s0], [%[s1]]" : [s0] "=r" (byte) : [s1] "r" (addr) : "memory"); 29 uint8_t constraint_r_symbolic_macro(uint8_t *addr) { 32 __asm__ volatile("ldrb "PERCENT"[s0], [%[s1]]" : [s0] "=r" (byte) : [s1] "r" (addr) : "memory");
|
/prebuilts/go/darwin-x86/src/runtime/ |
atomic_arm.go | 14 func addrLock(addr *uint64) *mutex { 15 return &locktab[(uintptr(unsafe.Pointer(addr))>>3)%uintptr(len(locktab))].l 35 func xchg(addr *uint32, v uint32) uint32 { 37 old := *addr 38 if cas(addr, old, v) { 45 func xchgp1(addr unsafe.Pointer, v unsafe.Pointer) unsafe.Pointer { 47 old := *(*unsafe.Pointer)(addr) 48 if casp1((*unsafe.Pointer)(addr), old, v) { 55 func xchguintptr(addr *uintptr, v uintptr) uintptr { 56 return uintptr(xchg((*uint32)(unsafe.Pointer(addr)), uint32(v)) [all...] |
/prebuilts/go/linux-x86/src/runtime/ |
atomic_arm.go | 14 func addrLock(addr *uint64) *mutex { 15 return &locktab[(uintptr(unsafe.Pointer(addr))>>3)%uintptr(len(locktab))].l 35 func xchg(addr *uint32, v uint32) uint32 { 37 old := *addr 38 if cas(addr, old, v) { 45 func xchgp1(addr unsafe.Pointer, v unsafe.Pointer) unsafe.Pointer { 47 old := *(*unsafe.Pointer)(addr) 48 if casp1((*unsafe.Pointer)(addr), old, v) { 55 func xchguintptr(addr *uintptr, v uintptr) uintptr { 56 return uintptr(xchg((*uint32)(unsafe.Pointer(addr)), uint32(v)) [all...] |
/external/strace/ |
printers.h | 3 bool (*fetch_seccomp_fprog) (struct tcb *tcp, const long addr, void *p); 6 bool (*fetch_struct_flock) (struct tcb *tcp, const long addr, void *p); 9 bool (*fetch_struct_flock64) (struct tcb *tcp, const long addr, void *p); 12 void (*printmqattr) (struct tcb *tcp, const long addr); 15 void (*tprint_msgbuf) (struct tcb *tcp, const long addr, const unsigned long count); 18 void (*print_sigevent) (struct tcb *tcp, const long addr); 21 void (*print_timespec) (struct tcb *tcp, const long addr); 24 const char * (*sprint_timespec) (struct tcb *tcp, const long addr); 27 void (*print_timespec_utime_pair) (struct tcb *tcp, const long addr); 30 void (*print_itimerspec) (struct tcb *tcp, const long addr); [all...] |
/external/libnl/lib/route/ |
addr.c | 2 * lib/route/addr.c Addresses 28 * struct rtnl_addr *addr = rtnl_addr_alloc(); 33 * rtnl_addr_set_ifindex(addr, ifindex); 34 * rtnl_addr_set_local(addr, local_addr); 38 * rtnl_addr_set_label(addr, "mylabel"); 44 * rtnl_addr_set_peer(addr, peer_addr); 49 * rtnl_addr_set_scope(addr, rtnl_str2scope("site")); 54 * rtnl_addr_set_broadcast(addr, broadcast_addr); 60 * rtnl_addr_add(sk, addr, 0); 63 * rtnl_addr_put(addr); 137 struct rtnl_addr *addr = nl_object_priv(obj); local 144 struct rtnl_addr *addr = nl_object_priv(obj); local 193 struct rtnl_addr *addr; local 309 struct rtnl_addr *addr = (struct rtnl_addr *) obj; local 346 struct rtnl_addr *addr = (struct rtnl_addr *) obj; local 405 struct rtnl_addr *addr = (struct rtnl_addr *) obj; local [all...] |
/bionic/libc/bionic/ |
accept4.cpp | 21 int accept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { 22 return __netdClientDispatch.accept4(sockfd, addr, addrlen, flags);
|
posix_madvise.cpp | 34 int posix_madvise(void* addr, size_t len, int advice) { 41 return (madvise(addr, len, advice) == 0 ? 0 : errno);
|
/cts/apps/CtsVerifier/jni/audio_loopback/audio_utils/ |
atomic.h | 26 int32_t android_atomic_acquire_load(volatile const int32_t* addr); 27 void android_atomic_release_store(int32_t value, volatile int32_t* addr);
|
/development/ndk/platforms/android-21/include/sys/ |
cachectl.h | 33 extern int __cachectl (void *addr, __const int nbytes, __const int op); 34 extern int _flush_cache (char *addr, __const int nbytes, __const int op);
|
/development/ndk/platforms/android-9/include/sys/ |
cachectl.h | 33 extern int __cachectl (void *addr, __const int nbytes, __const int op); 34 extern int _flush_cache (char *addr, __const int nbytes, __const int op);
|
/external/android-clat/ |
setif.h | 24 int add_anycast_address(int sock, const struct in6_addr *addr, const char *interface); 25 int del_anycast_address(int sock, const struct in6_addr *addr);
|
/external/autotest/client/site_tests/hardware_I2CProbe/ |
hardware_I2CProbe.py | 19 def i2c_detect(bus, addr): 20 full_cmd = 'i2cdetect -y %d 0x%x 0x%x' % (bus, addr, addr) 26 def i2c_probe(bus, addr): 27 response = i2c_detect(bus, addr) 34 def run_once(self, bus, addr): 35 if not i2c_probe(bus, addr): 36 raise error.TestError('No I2C device on bus %d addr 0x%x' % 37 (bus, addr))
|
/external/compiler-rt/test/tsan/ |
annotate_happens_before.cc | 17 # define ANNOTATE_HAPPENS_BEFORE(addr) \ 18 AnnotateHappensBefore(__FILE__, __LINE__, (void*)(addr)) 19 # define ANNOTATE_HAPPENS_AFTER(addr) \ 20 AnnotateHappensAfter(__FILE__, __LINE__, (void*)(addr)) 21 extern "C" void AnnotateHappensBefore(const char *f, int l, void *addr); 22 extern "C" void AnnotateHappensAfter(const char *f, int l, void *addr); 24 # define ANNOTATE_HAPPENS_BEFORE(addr) 25 # define ANNOTATE_HAPPENS_AFTER(addr)
|
/external/elfutils/libdwfl/ |
dwfl_module_addrname.c | 32 dwfl_module_addrname (Dwfl_Module *mod, GElf_Addr addr) 36 return INTUSE(dwfl_module_addrinfo) (mod, addr, &off, &sym,
|
/external/libdrm/ |
libdrm_macros.h | 49 static inline void *drm_mmap(void *addr, size_t length, int prot, int flags, 58 return mmap64(addr, length, prot, flags, fd, offset); 61 # define drm_munmap(addr, length) \ 62 munmap(addr, length) 68 # define drm_mmap(addr, length, prot, flags, fd, offset) \ 69 mmap(addr, length, prot, flags, fd, offset) 72 static inline int drm_munmap(void *addr, size_t length) 81 return munmap(addr, length);
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/ |
com.badlogic.gdx.physics.box2d.joints.WheelJoint.cpp | 6 JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WheelJoint_jniGetLocalAnchorA(JNIEnv* env, jobject object, jlong addr, jfloatArray obj_anchor) { 12 b2WheelJoint* joint = (b2WheelJoint*)addr; 20 JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WheelJoint_jniGetLocalAnchorB(JNIEnv* env, jobject object, jlong addr, jfloatArray obj_anchor) { 26 b2WheelJoint* joint = (b2WheelJoint*)addr; 34 JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WheelJoint_jniGetLocalAxisA(JNIEnv* env, jobject object, jlong addr, jfloatArray obj_anchor) { 40 b2WheelJoint* joint = (b2WheelJoint*)addr; 48 JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WheelJoint_jniGetJointTranslation(JNIEnv* env, jobject object, jlong addr) { 53 b2WheelJoint* joint = (b2WheelJoint*)addr; 59 JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_WheelJoint_jniGetJointSpeed(JNIEnv* env, jobject object, jlong addr) { 64 b2WheelJoint* joint = (b2WheelJoint*)addr; [all...] |