Home
last modified time | relevance | path

Searched refs:address (Results 1 – 25 of 163) sorted by relevance

1234567

/libcore/ojluni/src/main/java/java/net/
DInet4Address.java135 holder().address = 0; in Inet4Address()
144 int address = addr[3] & 0xFF; in Inet4Address() local
145 address |= ((addr[2] << 8) & 0xFF00); in Inet4Address()
146 address |= ((addr[1] << 16) & 0xFF0000); in Inet4Address()
147 address |= ((addr[0] << 24) & 0xFF000000); in Inet4Address()
148 holder().address = address; in Inet4Address()
153 Inet4Address(String hostName, int address) { in Inet4Address() argument
156 holder().address = address; in Inet4Address()
172 inet.holder().address = holder().getAddress(); in writeReplace()
232 int address = holder().getAddress(); in isLinkLocalAddress() local
[all …]
DDatagramPacket.java71 InetAddress address; field in DatagramPacket
89 this.address = null; in DatagramPacket()
124 InetAddress address, int port) { in DatagramPacket() argument
126 setAddress(address); in DatagramPacket()
152 public DatagramPacket(byte buf[], int offset, int length, SocketAddress address) { in DatagramPacket() argument
154 setSocketAddress(address); in DatagramPacket()
176 InetAddress address, int port) { in DatagramPacket() argument
177 this(buf, 0, length, address, port); in DatagramPacket()
193 public DatagramPacket(byte buf[], int length, SocketAddress address) { in DatagramPacket() argument
194 this(buf, 0, length, address); in DatagramPacket()
[all …]
DInterfaceAddress.java38 private InetAddress address = null; field in InterfaceAddress
50 InterfaceAddress(InetAddress address, Inet4Address broadcast, InetAddress netmask) { in InterfaceAddress() argument
51 this.address = address; in InterfaceAddress()
77 return address; in getAddress()
128 if ( !(address == null ? cmp.address == null : address.equals(cmp.address)) ) in equals()
143 return address.hashCode() + ((broadcast != null) ? broadcast.hashCode() : 0) + maskLength; in hashCode()
153 return address + "/" + maskLength + " [" + broadcast + "]"; in toString()
DAbstractPlainSocketImpl.java152 InetAddress address = InetAddress.getByName(host); in connect() local
154 this.address = address; in connect()
156 connectToAddress(address, port, timeout); in connect()
176 protected void connect(InetAddress address, int port) throws IOException { in connect() argument
178 this.address = address; in connect()
181 connectToAddress(address, port, timeout); in connect()
200 protected void connect(SocketAddress address, int timeout) in connect() argument
204 if (address == null || !(address instanceof InetSocketAddress)) in connect()
206 InetSocketAddress addr = (InetSocketAddress) address; in connect()
210 this.address = addr.getAddress(); in connect()
[all …]
DProxy.java116 public SocketAddress address() { in address() method in Proxy
131 return type() + " @ " + address(); in toString()
153 if (address() == null) { in equals()
154 return (p.address() == null); in equals()
156 return address().equals(p.address()); in equals()
167 if (address() == null) in hashCode()
169 return type().hashCode() + address().hashCode(); in hashCode()
/libcore/ojluni/src/main/java/sun/security/x509/
DIPAddressName.java71 private byte[] address; field in IPAddressName
91 public IPAddressName(byte[] address) throws IOException { in IPAddressName() argument
97 if (address.length == 4 || address.length == 8) { in IPAddressName()
99 } else if (address.length == 16 || address.length == 32) { in IPAddressName()
104 this.address = address; in IPAddressName()
161 address = InetAddress.getByName(name).getAddress(); in parseIPv4()
163 address = new byte[8]; in parseIPv4()
173 System.arraycopy(host, 0, address, 0, 4); in parseIPv4()
174 System.arraycopy(mask, 0, address, 4, 4); in parseIPv4()
191 address = InetAddress.getByName(name).getAddress(); in parseIPv6()
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DNativeObject.java52 private final long address; field in NativeObject
57 NativeObject(long address) { in NativeObject() argument
58 this.allocationAddress = address; in NativeObject()
59 this.address = address; in NativeObject()
66 NativeObject(long address, long offset) { in NativeObject() argument
67 this.allocationAddress = address; in NativeObject()
68 this.address = address + offset; in NativeObject()
76 this.address = this.allocationAddress; in NativeObject()
81 this.address = a + ps - (a & (ps - 1)); in NativeObject()
90 long address() { in address() method in NativeObject
[all …]
DDatagramDispatcher.java45 int read(FileDescriptor fd, long address, int len) throws IOException { in read() argument
48 return read0(fd, address, len); in read()
51 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv() argument
54 return readv0(fd, address, len); in readv()
57 int write(FileDescriptor fd, long address, int len) throws IOException { in write() argument
60 return write0(fd, address, len); in write()
63 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev() argument
66 return writev0(fd, address, len); in writev()
77 static native int read0(FileDescriptor fd, long address, int len) in read0() argument
80 static native long readv0(FileDescriptor fd, long address, int len) in readv0() argument
[all …]
DFileDispatcherImpl.java50 int read(FileDescriptor fd, long address, int len) throws IOException { in read() argument
53 return read0(fd, address, len); in read()
56 int pread(FileDescriptor fd, long address, int len, long position) in pread() argument
61 return pread0(fd, address, len, position); in pread()
64 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv() argument
67 return readv0(fd, address, len); in readv()
70 int write(FileDescriptor fd, long address, int len) throws IOException { in write() argument
73 return write0(fd, address, len); in write()
76 int pwrite(FileDescriptor fd, long address, int len, long position) in pwrite() argument
81 return pwrite0(fd, address, len, position); in pwrite()
[all …]
DSocketDispatcher.java40 int read(FileDescriptor fd, long address, int len) throws IOException { in read() argument
43 return FileDispatcherImpl.read0(fd, address, len); in read()
46 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv() argument
49 return FileDispatcherImpl.readv0(fd, address, len); in readv()
52 int write(FileDescriptor fd, long address, int len) throws IOException { in write() argument
55 return FileDispatcherImpl.write0(fd, address, len); in write()
58 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev() argument
61 return FileDispatcherImpl.writev0(fd, address, len); in writev()
DNativeDispatcher.java38 abstract int read(FileDescriptor fd, long address, int len) in read() argument
49 int pread(FileDescriptor fd, long address, int len, long position) in pread() argument
55 abstract long readv(FileDescriptor fd, long address, int len) in readv() argument
58 abstract int write(FileDescriptor fd, long address, int len) in write() argument
61 int pwrite(FileDescriptor fd, long address, int len, long position) in pwrite() argument
67 abstract long writev(FileDescriptor fd, long address, int len) in writev() argument
/libcore/luni/src/main/java/libcore/net/
DInetAddressUtils.java63 public static boolean isNumericAddress(String address) { in isNumericAddress() argument
64 return parseNumericAddressNoThrow(address) != null; in isNumericAddress()
84 public static InetAddress parseNumericAddress(String address) { in parseNumericAddress() argument
85 InetAddress result = parseNumericAddressNoThrow(address); in parseNumericAddress()
87 throw new IllegalArgumentException("Not a numeric address: " + address); in parseNumericAddress()
95 public static InetAddress parseNumericAddressNoThrow(String address) { in parseNumericAddressNoThrow() argument
100 addresses = Libcore.os.android_getaddrinfo(address, hints, NETID_UNSET); in parseNumericAddressNoThrow()
115 public static InetAddress parseNumericAddressNoThrowStripOptionalBrackets(String address) { in parseNumericAddressNoThrowStripOptionalBrackets() argument
117 if (address.startsWith("[") && address.endsWith("]") && address.indexOf(':') != -1) { in parseNumericAddressNoThrowStripOptionalBrackets()
118 address = address.substring(1, address.length() - 1); in parseNumericAddressNoThrowStripOptionalBrackets()
[all …]
/libcore/luni/src/test/resources/out_dh/
Dstaff.out45address$address^$employee$employee^$employeeId$employeeId^$name$name^$position$position^$salary$sa…
/libcore/luni/src/main/java/libcore/io/
DMemory.java251 public static native byte peekByte(long address); in peekByte() argument
257 public static int peekInt(long address, boolean swap) { in peekInt() argument
258 int result = peekIntNative(address); in peekInt()
265 private static native int peekIntNative(long address); in peekIntNative() argument
271 public static long peekLong(long address, boolean swap) { in peekLong() argument
272 long result = peekLongNative(address); in peekLong()
279 private static native long peekLongNative(long address); in peekLongNative() argument
284 public static short peekShort(long address, boolean swap) { in peekShort() argument
285 short result = peekShortNative(address); in peekShort()
292 private static native short peekShortNative(long address); in peekShortNative() argument
[all …]
DMemoryMappedFile.java36 private final long address; field in MemoryMappedFile
40 public MemoryMappedFile(long address, long size) { in MemoryMappedFile() argument
41 this.address = address; in MemoryMappedFile()
57 long address = Libcore.os.mmap(0L, size, PROT_READ, MAP_SHARED, fd, 0); in mmapRO() local
58 return new MemoryMappedFile(address, size); in mmapRO()
75 Libcore.os.munmap(address, size); in close()
89 this, address, size, ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN); in bigEndianIterator()
97 this, this.address, this.size, ByteOrder.nativeOrder() != ByteOrder.LITTLE_ENDIAN); in littleEndianIterator()
DNioBufferIterator.java28 private final long address; field in NioBufferIterator
34 NioBufferIterator(MemoryMappedFile file, long address, int length, boolean swap) { in NioBufferIterator() argument
38 this.address = address; in NioBufferIterator()
44 if (Long.compareUnsigned(address, MAX_VALID_ADDRESS - length) > 0) { in NioBufferIterator()
73 Memory.peekByteArray(address + position, bytes, arrayOffset, byteCount); in readByteArray()
81 byte result = Memory.peekByte(address + position); in readByte()
90 int result = Memory.peekInt(address + position, swap); in readInt()
101 Memory.peekIntArray(address + position, ints, arrayOffset, intCount, swap); in readIntArray()
111 Memory.peekLongArray(address + position, longs, arrayOffset, longCount, swap); in readLongArray()
119 short result = Memory.peekShort(address + position, swap); in readShort()
/libcore/ojluni/src/main/java/sun/nio/fs/
DNativeBuffer.java38 private final long address; field in NativeBuffer
47 private final long address; field in NativeBuffer.Deallocator
48 Deallocator(long address) { in Deallocator() argument
49 this.address = address; in Deallocator()
52 unsafe.freeMemory(address); in run()
57 this.address = unsafe.allocateMemory(size); in NativeBuffer()
59 this.cleaner = Cleaner.create(this, new Deallocator(address)); in NativeBuffer()
72 long address() { in address() method in NativeBuffer
73 return address; in address()
DLinuxUserDefinedFileAttributeView.java65 private List<String> asList(long address, int size) { in asList() argument
70 if (unsafe.getByte(address + pos) == 0) { in asList()
77 value[i] = unsafe.getByte(address + start + i); in asList()
111 int n = flistxattr(fd, buffer.address(), size); in list()
112 List<String> list = asList(buffer.address(), n); in list()
166 long address; in read() local
169 address = ((sun.nio.ch.DirectBuffer)dst).address() + pos; in read()
173 address = nb.address(); in read()
179 int n = fgetxattr(fd, nameAsBytes(file,name), address, rem); in read()
194 dst.put(unsafe.getByte(address + i)); in read()
[all …]
DUnixNativeDispatcher.java71 return open0(buffer.address(), flags, mode); in open()
85 return openat0(dfd, buffer.address(), flags, mode); in openat()
105 return fopen0(pathBuffer.address(), modeBuffer.address()); in fopen()
126 link0(existingBuffer.address(), newBuffer.address()); in link()
141 unlink0(buffer.address()); in unlink()
154 unlinkat0(dfd, buffer.address(), flag); in unlinkat()
168 mknod0(buffer.address(), mode, dev); in mknod()
183 rename0(fromBuffer.address(), toBuffer.address()); in rename()
199 renameat0(fromfd, fromBuffer.address(), tofd, toBuffer.address()); in renameat()
214 mkdir0(buffer.address(), mode); in mkdir()
[all …]
/libcore/ojluni/src/main/java/java/util/zip/
DZStreamRef.java34 private volatile long address; field in ZStreamRef
35 ZStreamRef (long address) { in ZStreamRef() argument
36 this.address = address; in ZStreamRef()
39 long address() { in address() method in ZStreamRef
40 return address; in address()
44 address = 0; in clear()
/libcore/luni/src/test/java/libcore/libcore/net/
DInetAddressUtilsTest.java84 public void parseNumericAddress(String address, String expectedString) { in parseNumericAddress() argument
85 InetAddress inetAddress = InetAddressUtils.parseNumericAddress(address); in parseNumericAddress()
91 public void test_parseNonNumericAddress(String address) { in test_parseNonNumericAddress() argument
93 InetAddress inetAddress = InetAddressUtils.parseNumericAddress(address); in test_parseNonNumericAddress()
95 "Address %s is not numeric but was parsed as %s", address, inetAddress)); in test_parseNonNumericAddress()
97 assertThat(e.getMessage()).contains(address); in test_parseNonNumericAddress()
113 public void test_isNumericAddress(String address, String unused) { in test_isNumericAddress() argument
114 assertTrue("expected '" + address + "' to be treated as numeric", in test_isNumericAddress()
115 InetAddressUtils.isNumericAddress(address)); in test_isNumericAddress()
120 public void test_isNotNumericAddress(String address) { in test_isNotNumericAddress() argument
[all …]
/libcore/luni/src/test/resources/
Dsimple_ns.dtd2 <!ELEMENT employee (employeeId,name,position,salary,gender,address) >
19 <!ELEMENT address (#PCDATA) > element
20 <!ATTLIST address dmstc:domestic CDATA #IMPLIED>
21 <!ATTLIST address street CDATA #IMPLIED>
22 <!ATTLIST address domestic CDATA #IMPLIED>
23 <!ATTLIST address xmlns CDATA #IMPLIED>
25 <!ELEMENT emp:employee (emp:employeeId,nm:name,emp:position,emp:salary,emp:gender,emp:address) >
40 <!ELEMENT emp:address (#PCDATA) >
41 <!ATTLIST emp:address emp:domestic CDATA #IMPLIED>
42 <!ATTLIST emp:address street CDATA #IMPLIED>
[all …]
/libcore/dom/src/test/resources/
DstaffNS.dtd2 <!ELEMENT employee (employeeId,name,position,salary,gender,address) >
19 <!ELEMENT address (#PCDATA) > element
20 <!ATTLIST address dmstc:domestic CDATA #IMPLIED>
21 <!ATTLIST address street CDATA #IMPLIED>
22 <!ATTLIST address domestic CDATA #IMPLIED>
23 <!ATTLIST address xmlns CDATA #IMPLIED>
25 <!ELEMENT emp:employee (emp:employeeId,nm:name,emp:position,emp:salary,emp:gender,emp:address) >
40 <!ELEMENT emp:address (#PCDATA) >
41 <!ATTLIST emp:address emp:domestic CDATA #IMPLIED>
42 <!ATTLIST emp:address street CDATA #IMPLIED>
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProxyTest.java26 private SocketAddress address = new InetSocketAddress("127.0.0.1", 1234); field in ProxyTest
33 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()
35 assertEquals(address, proxy.address()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()
38 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()
40 assertEquals(address, proxy.address()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()
45 assertNull(proxy.address()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal()
76 proxy = new Proxy(Proxy.Type.DIRECT, address); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_IllegalAddress()
111 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); in test_toString()
115 assertTrue(proxy.toString().indexOf(proxy.address().toString()) != -1); in test_toString()
117 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_toString()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java512 public native void freeMemory(long address); in freeMemory() argument
522 public native void setMemory(long address, long bytes, byte value); in setMemory() argument
531 public native byte getByte(long address); in getByte() argument
540 public native void putByte(long address, byte x); in putByte() argument
549 public native short getShort(long address); in getShort() argument
558 public native void putShort(long address, short x); in putShort() argument
567 public native char getChar(long address); in getChar() argument
576 public native void putChar(long address, char x); in putChar() argument
585 public native int getInt(long address); in getInt() argument
594 public native void putInt(long address, int x); in putInt() argument
[all …]

1234567