Searched refs:address (Results 1 - 25 of 72) sorted by relevance

123

/libcore/luni/src/main/java/libcore/icu/
H A DNativeCollation.java23 public static native void closeCollator(int address); argument
24 public static native int compare(int address, String source, String target); argument
25 public static native int getAttribute(int address, int type); argument
26 public static native int getCollationElementIterator(int address, String source); argument
27 public static native String getRules(int address); argument
28 public static native byte[] getSortKey(int address, String source); argument
31 public static native int safeClone(int address); argument
32 public static native void setAttribute(int address, int type, int value); argument
35 public static native void closeElements(int address); argument
36 public static native int getMaxExpansion(int address, in argument
37 getOffset(int address) argument
38 next(int address) argument
39 previous(int address) argument
40 reset(int address) argument
41 setOffset(int address, int offset) argument
42 setText(int address, String source) argument
[all...]
H A DNativePluralRules.java35 private final int address; field in class:NativePluralRules
37 private NativePluralRules(int address) { argument
38 this.address = address;
43 finalizeImpl(address);
58 return quantityForIntImpl(address, value);
61 private static native void finalizeImpl(int address); argument
63 private static native int quantityForIntImpl(int address, int value); argument
H A DCollationElementIteratorICU.java55 NativeCollation.reset(address);
66 return NativeCollation.next(address);
77 return NativeCollation.previous(address);
90 return NativeCollation.getMaxExpansion(address, order);
99 NativeCollation.setText(address, source);
103 NativeCollation.setText(address, source.toString());
114 return NativeCollation.getOffset(address);
124 NativeCollation.setOffset(address, offset);
163 private CollationElementIteratorICU(int address) { argument
164 this.address
187 private int address; field in class:CollationElementIteratorICU
[all...]
H A DNativeBreakIterator.java30 private final int address; field in class:NativeBreakIterator
34 private NativeBreakIterator(int address, int type) { argument
35 this.address = address;
42 int cloneAddr = cloneImpl(this.address);
69 closeBreakIteratorImpl(this.address);
76 return currentImpl(this.address);
80 return firstImpl(this.address);
84 return followingImpl(this.address, offset);
88 int newLoc = currentImpl(this.address);
154 closeBreakIteratorImpl(int address) argument
155 setTextImpl(int address, String text) argument
156 cloneImpl(int address) argument
157 precedingImpl(int address, int offset) argument
158 isBoundaryImpl(int address, int offset) argument
159 nextImpl(int address, int n) argument
160 previousImpl(int address) argument
161 currentImpl(int address) argument
162 firstImpl(int address) argument
163 followingImpl(int address, int offset) argument
164 lastImpl(int address) argument
[all...]
H A DRuleBasedCollatorICU.java44 // The address of the ICU4C native peer.
45 private int address; field in class:RuleBasedCollatorICU
51 address = NativeCollation.openCollatorFromRules(rules, VALUE_OFF, VALUE_DEFAULT_STRENGTH);
55 address = NativeCollation.openCollator(locale.toString());
58 private RuleBasedCollatorICU(int address) { argument
59 this.address = address;
63 return new RuleBasedCollatorICU(NativeCollation.safeClone(address));
67 return NativeCollation.compare(address, source, target);
71 return NativeCollation.getAttribute(address, DECOMPOSITION_MOD
[all...]
H A DNativeDecimalFormat.java95 * The address of the ICU DecimalFormat* on the native heap.
97 private int address; field in class:NativeDecimalFormat
123 this.address = open(pattern, dfs.getCurrencySymbol(),
139 this.address = open(pattern, data.currencySymbol,
149 this.address = cloneImpl(other.address);
164 if (address != 0) {
165 close(address);
166 address = 0;
194 if (obj.address
[all...]
/libcore/luni/src/main/java/java/net/
H A DInterfaceAddress.java28 * An IPv4 or IPv6 address.
30 private final InetAddress address; field in class:InterfaceAddress
33 * The IPv4 broadcast address, or null for IPv6.
42 InterfaceAddress(Inet4Address address, Inet4Address broadcastAddress, Inet4Address mask) { argument
43 this.address = address;
51 InterfaceAddress(Inet6Address address, short prefixLength) { argument
52 this.address = address;
71 * the address, broadcas
[all...]
H A DProxy.java20 * Proxy} stores a type and an address and is immutable. There are three types
31 * protocol handlers that there is no proxy to be used. The address is set
38 private SocketAddress address; field in class:Proxy
50 * the proxy address of this instance.
65 address = sa;
74 address = null;
87 * Gets the address of this {@code Proxy} instance.
89 * @return the stored proxy address or {@code null} if the proxy type is
92 public SocketAddress address() { method in class:Proxy
93 return address;
[all...]
H A DProxySelector.java124 * @param address the address of the proxy.
129 public abstract void connectFailed(URI uri, SocketAddress address, IOException failure); argument
H A DSocketImpl.java37 * The remote address this socket is connected to.
39 protected InetAddress address; field in class:SocketImpl
78 * Binds this socket to the specified local host address and port number.
80 * @param address
81 * the local machine address to bind this socket to.
87 protected abstract void bind(InetAddress address, int port) throws IOException; argument
110 * Connects this socket to the specified remote host address and port
113 * @param address
114 * the remote host address this socket has to be connected to.
120 protected abstract void connect(InetAddress address, in argument
[all...]
H A DInet6Address.java29 * An IPv6 address. See {@link InetAddress}.
55 * Constructs an {@code InetAddress} representing the {@code address} and
58 * @param address
59 * the network address.
61 * the name associated with the address.
72 * Constructs an IPv6 address according to the given {@code host}, {@code
76 * the host name associated with the address.
78 * the network address.
81 * @return the Inet6Address instance representing the IP address.
83 * if the address i
[all...]
/libcore/luni/src/main/java/java/nio/
H A DMemoryBlock.java34 private MemoryMappedBlock(int address, long byteCount) { argument
35 super(address, byteCount);
39 if (address != 0) {
41 Libcore.os.munmap(address, size);
47 address = 0;
66 private NonMovableHeapBlock(byte[] array, int address, long byteCount) { argument
67 super(address, byteCount);
77 address = 0;
86 private UnmanagedBlock(int address, long byteCount) { argument
87 super(address, byteCoun
92 protected int address; field in class:MemoryBlock
131 wrapFromJni(int address, long byteCount) argument
135 MemoryBlock(int address, long size) argument
[all...]
H A DNIOAccess.java29 * address."
36 int address = b.effectiveDirectAddress;
37 if (address == 0) {
40 return address + (b.position << b._elementSizeShift);
/libcore/luni/src/main/java/libcore/io/
H A DMemoryMappedFile.java36 private long address; field in class:MemoryMappedFile
42 public MemoryMappedFile(long address, long size) { argument
43 this.address = address;
53 long address = Libcore.os.mmap(0L, size, PROT_READ, MAP_SHARED, fd, 0);
55 return new MemoryMappedFile(address, size);
67 if (address != 0) {
68 Libcore.os.munmap(address, size);
69 address = 0;
77 return new NioBufferIterator((int) address, (in
[all...]
H A DNioBufferIterator.java28 private final int address; field in class:NioBufferIterator
34 NioBufferIterator(int address, int size, boolean swap) { argument
35 this.address = address;
49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount);
54 byte result = Memory.peekByte(address + position);
60 int result = Memory.peekInt(address + position, swap);
66 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap);
71 short result = Memory.peekShort(address + position, swap);
H A DMemory.java153 public static native byte peekByte(int address); argument
154 public static native int peekInt(int address, boolean swap); argument
155 public static native long peekLong(int address, boolean swap); argument
156 public static native short peekShort(int address, boolean swap); argument
158 public static native void peekByteArray(int address, byte[] dst, int dstOffset, int byteCount); argument
159 public static native void peekCharArray(int address, char[] dst, int dstOffset, int charCount, boolean swap); argument
160 public static native void peekDoubleArray(int address, double[] dst, int dstOffset, int doubleCount, boolean swap); argument
161 public static native void peekFloatArray(int address, float[] dst, int dstOffset, int floatCount, boolean swap); argument
162 public static native void peekIntArray(int address, int[] dst, int dstOffset, int intCount, boolean swap); argument
163 public static native void peekLongArray(int address, lon argument
164 peekShortArray(int address, short[] dst, int dstOffset, int shortCount, boolean swap) argument
166 pokeByte(int address, byte value) argument
167 pokeInt(int address, int value, boolean swap) argument
168 pokeLong(int address, long value, boolean swap) argument
169 pokeShort(int address, short value, boolean swap) argument
171 pokeByteArray(int address, byte[] src, int offset, int count) argument
172 pokeCharArray(int address, char[] src, int offset, int count, boolean swap) argument
173 pokeDoubleArray(int address, double[] src, int offset, int count, boolean swap) argument
174 pokeFloatArray(int address, float[] src, int offset, int count, boolean swap) argument
175 pokeIntArray(int address, int[] src, int offset, int count, boolean swap) argument
176 pokeLongArray(int address, long[] src, int offset, int count, boolean swap) argument
177 pokeShortArray(int address, short[] src, int offset, int count, boolean swap) argument
[all...]
/libcore/luni/src/main/native/
H A Dlibcore_icu_NativeCollation.cpp22 static UCollator* toCollator(jint address) { argument
23 return reinterpret_cast<UCollator*>(static_cast<uintptr_t>(address));
26 static UCollationElements* toCollationElements(jint address) { argument
27 return reinterpret_cast<UCollationElements*>(static_cast<uintptr_t>(address));
30 static void NativeCollation_closeCollator(JNIEnv*, jclass, jint address) { argument
31 ucol_close(toCollator(address));
34 static void NativeCollation_closeElements(JNIEnv*, jclass, jint address) { argument
35 ucol_closeElements(toCollationElements(address));
38 static jint NativeCollation_compare(JNIEnv* env, jclass, jint address, jstring javaLhs, jstring javaRhs) { argument
47 return ucol_strcoll(toCollator(address), lh
50 NativeCollation_getAttribute(JNIEnv* env, jclass, jint address, jint type) argument
57 NativeCollation_getCollationElementIterator(JNIEnv* env, jclass, jint address, jstring javaSource) argument
68 NativeCollation_getMaxExpansion(JNIEnv*, jclass, jint address, jint order) argument
72 NativeCollation_getOffset(JNIEnv*, jclass, jint address) argument
76 NativeCollation_getRules(JNIEnv* env, jclass, jint address) argument
82 NativeCollation_getSortKey(JNIEnv* env, jclass, jint address, jstring javaSource) argument
106 NativeCollation_next(JNIEnv* env, jclass, jint address) argument
136 NativeCollation_previous(JNIEnv* env, jclass, jint address) argument
143 NativeCollation_reset(JNIEnv*, jclass, jint address) argument
147 NativeCollation_safeClone(JNIEnv* env, jclass, jint address) argument
155 NativeCollation_setAttribute(JNIEnv* env, jclass, jint address, jint type, jint value) argument
161 NativeCollation_setOffset(JNIEnv* env, jclass, jint address, jint offset) argument
167 NativeCollation_setText(JNIEnv* env, jclass, jint address, jstring javaSource) argument
[all...]
H A Dlibcore_icu_NativeBreakIterator.cpp35 static BreakIteratorPeer* fromAddress(jint address) { argument
36 return reinterpret_cast<BreakIteratorPeer*>(static_cast<uintptr_t>(address));
112 static UBreakIterator* breakIterator(jint address) { argument
113 return BreakIteratorPeer::fromAddress(address)->breakIterator();
145 static void NativeBreakIterator_closeBreakIteratorImpl(JNIEnv* env, jclass, jint address) { argument
146 BreakIteratorPeer* peer = BreakIteratorPeer::fromAddress(address);
151 static jint NativeBreakIterator_cloneImpl(JNIEnv* env, jclass, jint address) { argument
152 return BreakIteratorPeer::fromAddress(address)->clone(env)->toAddress();
155 static void NativeBreakIterator_setTextImpl(JNIEnv* env, jclass, jint address, jstring javaText) { argument
156 BreakIteratorPeer* peer = BreakIteratorPeer::fromAddress(address);
160 NativeBreakIterator_isBoundaryImpl(JNIEnv*, jclass, jint address, jint offset) argument
164 NativeBreakIterator_nextImpl(JNIEnv*, jclass, jint address, jint n) argument
182 NativeBreakIterator_precedingImpl(JNIEnv*, jclass, jint address, jint offset) argument
186 NativeBreakIterator_firstImpl(JNIEnv*, jclass, jint address) argument
190 NativeBreakIterator_followingImpl(JNIEnv*, jclass, jint address, jint offset) argument
194 NativeBreakIterator_currentImpl(JNIEnv*, jclass, jint address) argument
198 NativeBreakIterator_previousImpl(JNIEnv*, jclass, jint address) argument
202 NativeBreakIterator_lastImpl(JNIEnv*, jclass, jint address) argument
[all...]
H A Dlibcore_icu_NativePluralRules.cpp25 static PluralRules* toPluralRules(jint address) { argument
26 return reinterpret_cast<PluralRules*>(static_cast<uintptr_t>(address));
29 static void NativePluralRules_finalizeImpl(JNIEnv*, jclass, jint address) { argument
30 delete toPluralRules(address);
41 static jint NativePluralRules_quantityForIntImpl(JNIEnv*, jclass, jint address, jint value) { argument
42 UnicodeString keyword = toPluralRules(address)->select(value);
/libcore/luni/src/main/java/libcore/net/http/
H A DHttpConnectionPool.java63 public HttpConnection get(HttpConnection.Address address, int connectTimeout) argument
67 List<HttpConnection> connections = connectionPool.get(address);
78 connectionPool.remove(address);
86 return address.connect(connectTimeout);
101 HttpConnection.Address address = connection.getAddress();
103 List<HttpConnection> connections = connectionPool.get(address);
106 connectionPool.put(address, connections);
H A DHttpConnection.java51 private final Address address; field in class:HttpConnection
63 this.address = config;
96 Address address = (proxy.type() == Proxy.Type.DIRECT)
99 return HttpConnectionPool.INSTANCE.get(address, connectTimeout);
116 Address address = new Address(uri, selectedProxy, requiresTunnel);
117 return HttpConnectionPool.INSTANCE.get(address, connectTimeout);
120 selector.connectFailed(uri, selectedProxy.address(), e);
170 inputStream = address.requiresTunnel
182 return address;
198 address
[all...]
/libcore/luni/src/main/java/java/util/regex/
H A DMatcher.java33 private int address; field in class:Matcher
238 if (address != 0) {
239 closeImpl(address);
240 address = 0;
242 address = openImpl(pattern.address);
254 setInputImpl(address, input, regionStart, regionEnd);
255 useAnchoringBoundsImpl(address, anchoringBounds);
256 useTransparentBoundsImpl(address, transparentBounds);
400 matchFound = findImpl(address, inpu
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DOldProxyTest.java25 private SocketAddress address = new InetSocketAddress("127.0.0.1", 1234); field in class:OldProxyTest
28 Proxy proxy = new Proxy(Proxy.Type.SOCKS, address);
29 assertEquals(address, proxy.address());
61 Proxy proxy = new Proxy(Proxy.Type.HTTP, address);
64 proxy = new Proxy(Proxy.Type.SOCKS, address);
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsetEncoderICU.java69 long address = 0;
71 address = NativeConverter.openConverter(icuCanonicalName);
72 float averageBytesPerChar = NativeConverter.getAveBytesPerChar(address);
73 float maxBytesPerChar = NativeConverter.getMaxBytesPerChar(address);
74 byte[] replacement = makeReplacement(icuCanonicalName, address);
75 CharsetEncoderICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address);
76 address = 0; // CharsetEncoderICU has taken ownership; its finalizer will do the free.
79 if (address != 0) {
80 NativeConverter.closeConverter(address);
85 private static byte[] makeReplacement(String icuCanonicalName, long address) { argument
95 CharsetEncoderICU(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, long address) argument
[all...]
/libcore/luni/src/main/java/javax/net/
H A DDefaultSocketFactory.java55 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, argument
57 return new Socket(address, port, localAddress, localPort);

Completed in 229 milliseconds

123