/libcore/ojluni/src/main/java/java/net/ |
D | Inet4Address.java | 112 holder().address = 0; in Inet4Address() 121 int address = addr[3] & 0xFF; in Inet4Address() local 122 address |= ((addr[2] << 8) & 0xFF00); in Inet4Address() 123 address |= ((addr[1] << 16) & 0xFF0000); in Inet4Address() 124 address |= ((addr[0] << 24) & 0xFF000000); in Inet4Address() 125 holder().address = address; in Inet4Address() 129 Inet4Address(String hostName, int address) { in Inet4Address() argument 132 holder().address = address; in Inet4Address() 147 inet.holder().address = holder().getAddress(); in writeReplace() 208 int address = holder().getAddress(); in isLinkLocalAddress() local [all …]
|
D | DatagramPacket.java | 61 InetAddress address; field in DatagramPacket 79 this.address = null; in DatagramPacket() 114 InetAddress address, int port) { in DatagramPacket() argument 116 setAddress(address); in DatagramPacket() 137 SocketAddress address) throws SocketException { in DatagramPacket() argument 139 setSocketAddress(address); in DatagramPacket() 155 InetAddress address, int port) { in DatagramPacket() argument 156 this(buf, 0, length, address, port); in DatagramPacket() 173 SocketAddress address) throws SocketException { in DatagramPacket() argument 174 this(buf, 0, length, address); in DatagramPacket() [all …]
|
D | InterfaceAddress.java | 38 private InetAddress address = null; field in InterfaceAddress 55 return address; in getAddress() 106 if ( !(address == null ? cmp.address == null : address.equals(cmp.address)) ) in equals() 121 return address.hashCode() + ((broadcast != null) ? broadcast.hashCode() : 0) + maskLength; in hashCode() 131 return address + "/" + maskLength + " [" + broadcast + "]"; in toString()
|
D | Proxy.java | 116 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()
|
D | AbstractPlainSocketImpl.java | 118 InetAddress address = InetAddress.getByName(host); in connect() local 120 this.address = address; in connect() 122 connectToAddress(address, port, timeout); in connect() 142 protected void connect(InetAddress address, int port) throws IOException { in connect() argument 144 this.address = address; in connect() 147 connectToAddress(address, port, timeout); in connect() 166 protected void connect(SocketAddress address, int timeout) in connect() argument 170 if (address == null || !(address instanceof InetSocketAddress)) in connect() 172 InetSocketAddress addr = (InetSocketAddress) address; in connect() 176 this.address = addr.getAddress(); in connect() [all …]
|
D | InetAddress.java | 190 InetAddressHolder(String hostName, int address, int family) { in InetAddressHolder() argument 192 this.address = address; in InetAddressHolder() 205 int address; field in InetAddress.InetAddressHolder 208 return address; in getAddress() 846 int address= gf.get("address", 0); in readObject() local 848 holder = new InetAddressHolder(host, address, family); in readObject() 872 pf.put("address", holder().address); in writeObject() 887 public static boolean isNumeric(String address) { in isNumeric() argument 888 InetAddress inetAddress = parseNumericAddressNoThrow(address); in isNumeric() 889 return inetAddress != null && disallowDeprecatedFormats(address, inetAddress) != null; in isNumeric() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | NativeObject.java | 52 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 …]
|
D | DatagramDispatcher.java | 40 int read(FileDescriptor fd, long address, int len) throws IOException { in read() argument 42 return read0(fd, address, len); in read() 45 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv() argument 47 return readv0(fd, address, len); in readv() 50 int write(FileDescriptor fd, long address, int len) throws IOException { in write() argument 52 return write0(fd, address, len); in write() 55 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev() argument 57 return writev0(fd, address, len); in writev() 68 static native int read0(FileDescriptor fd, long address, int len) in read0() argument 71 static native long readv0(FileDescriptor fd, long address, int len) in readv0() argument [all …]
|
D | FileDispatcherImpl.java | 44 int read(FileDescriptor fd, long address, int len) throws IOException { in read() argument 46 return read0(fd, address, len); in read() 49 int pread(FileDescriptor fd, long address, int len, long position) in pread() argument 53 return pread0(fd, address, len, position); in pread() 56 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv() argument 58 return readv0(fd, address, len); in readv() 61 int write(FileDescriptor fd, long address, int len) throws IOException { in write() argument 63 return write0(fd, address, len); in write() 66 int pwrite(FileDescriptor fd, long address, int len, long position) in pwrite() argument 70 return pwrite0(fd, address, len, position); in pwrite() [all …]
|
D | SocketDispatcher.java | 41 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 48 return FileDispatcherImpl.readv0(fd, address, len); in readv() 51 int write(FileDescriptor fd, long address, int len) throws IOException { in write() argument 53 return FileDispatcherImpl.write0(fd, address, len); in write() 56 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev() argument 58 return FileDispatcherImpl.writev0(fd, address, len); in writev()
|
D | NativeDispatcher.java | 38 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/ojluni/src/main/java/sun/security/x509/ |
D | IPAddressName.java | 71 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/luni/src/main/java/libcore/io/ |
D | Memory.java | 153 public static native byte peekByte(long address); in peekByte() argument 155 public static int peekInt(long address, boolean swap) { in peekInt() argument 156 int result = peekIntNative(address); in peekInt() 162 private static native int peekIntNative(long address); in peekIntNative() argument 164 public static long peekLong(long address, boolean swap) { in peekLong() argument 165 long result = peekLongNative(address); in peekLong() 171 private static native long peekLongNative(long address); in peekLongNative() argument 173 public static short peekShort(long address, boolean swap) { in peekShort() argument 174 short result = peekShortNative(address); in peekShort() 180 private static native short peekShortNative(long address); in peekShortNative() argument [all …]
|
D | MemoryMappedFile.java | 36 private long address; field in MemoryMappedFile 42 public MemoryMappedFile(long address, long size) { in MemoryMappedFile() argument 43 this.address = address; in MemoryMappedFile() 53 long address = Libcore.os.mmap(0L, size, PROT_READ, MAP_SHARED, fd, 0); in mmapRO() local 55 return new MemoryMappedFile(address, size); in mmapRO() 67 if (address != 0) { in close() 68 Libcore.os.munmap(address, size); in close() 69 address = 0; in close() 77 …return new NioBufferIterator(address, (int) size, ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN); in bigEndianIterator() 84 …return new NioBufferIterator(address, (int) size, ByteOrder.nativeOrder() != ByteOrder.LITTLE_ENDI… in littleEndianIterator()
|
D | NioBufferIterator.java | 28 private final long address; field in NioBufferIterator 34 NioBufferIterator(long address, int size, boolean swap) { in NioBufferIterator() argument 35 this.address = address; in NioBufferIterator() 49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); in readByteArray() 54 byte result = Memory.peekByte(address + position); in readByte() 60 int result = Memory.peekInt(address + position, swap); in readInt() 66 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap); in readIntArray() 71 short result = Memory.peekShort(address + position, swap); in readShort()
|
/libcore/luni/src/test/resources/out_dh/ |
D | staff.out | 45 …address$address^$employee$employee^$employeeId$employeeId^$name$name^$position$position^$salary$sa…
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZStreamRef.java | 34 private 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/dom/src/test/resources/ |
D | staffNS.dtd | 2 <!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/luni/src/test/resources/ |
D | simple_ns.dtd | 2 <!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/ |
D | ProxyTest.java | 26 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/ |
D | Unsafe.java | 357 public native void freeMemory(long address); in freeMemory() argument 359 public native void setMemory(long address, long bytes, byte value); in setMemory() argument 361 public native byte getByte(long address); in getByte() argument 363 public native void putByte(long address, byte x); in putByte() argument 365 public native short getShort(long address); in getShort() argument 367 public native void putShort(long address, short x); in putShort() argument 369 public native char getChar(long address); in getChar() argument 371 public native void putChar(long address, char x); in putChar() argument 373 public native int getInt(long address); in getInt() argument 375 public native void putInt(long address, int x); in putInt() argument [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | MappedByteBuffer.java | 107 long offset = address % ps; in mappingOffset() 112 return address - mappingOffset; in mappingAddress() 139 if ((address == 0) || (capacity() == 0)) in isLoaded() 161 if ((address == 0) || (capacity() == 0)) in load() 205 if ((address != 0) && (capacity() != 0)) { in force() 212 private native boolean isLoaded0(long address, long length, int pageCount); in isLoaded0() argument 214 private native void load0(long address, long length); in load0() argument 216 private native void force0(FileDescriptor fd, long address, long length); in force0() argument
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Matcher.java | 116 private long address; field in Matcher 225 address = 0; // In case openImpl throws. in usePattern() 228 address = openImpl(pattern.address); in usePattern() 229 nativeFinalizer = registry.registerNativeAllocation(this, address); in usePattern() 400 return groupCountImpl(address); in groupCount() 415 matchFound = matchesImpl(address, input, matchOffsets); in matches() 437 matchFound = findNextImpl(address, input, matchOffsets); in find() 466 matchFound = findImpl(address, input, start, matchOffsets); in find() 487 matchFound = lookingAtImpl(address, input, matchOffsets); in lookingAt() 852 useTransparentBoundsImpl(address, value); in useTransparentBounds() [all …]
|
/libcore/luni/src/main/java/java/nio/ |
D | NIOAccess.java | 34 long address = b.address; in getBasePointer() local 35 if (address == 0L) { in getBasePointer() 38 return address + (b.position << b._elementSizeShift); in getBasePointer()
|
/libcore/luni/src/main/java/java/nio/charset/ |
D | CharsetEncoderICU.java | 69 long address = 0; in newInstance() local 71 address = NativeConverter.openConverter(icuCanonicalName); in newInstance() 72 float averageBytesPerChar = NativeConverter.getAveBytesPerChar(address); in newInstance() 73 float maxBytesPerChar = NativeConverter.getMaxBytesPerChar(address); in newInstance() 74 byte[] replacement = makeReplacement(icuCanonicalName, address); in newInstance() 75 …ICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address); in newInstance() 76 address = 0; // CharsetEncoderICU has taken ownership; its finalizer will do the free. in newInstance() 79 if (address != 0) { in newInstance() 80 NativeConverter.closeConverter(address); in newInstance() 85 private static byte[] makeReplacement(String icuCanonicalName, long address) { in makeReplacement() argument [all …]
|