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

1234

/libcore/luni/src/main/java/libcore/icu/
H A DNativeCollation.java25 public static native void closeCollator(long address); argument
26 public static native int compare(long address, String source, String target); argument
27 public static native int getAttribute(long address, int type); argument
28 public static native long getCollationElementIterator(long address, String source); argument
29 public static native String getRules(long address); argument
30 public static native byte[] getSortKey(long address, String source); argument
36 public static native long safeClone(long address); argument
37 public static native void setAttribute(long address, int type, int value); argument
40 public static native void closeElements(long address); argument
41 public static native int getMaxExpansion(long address, in argument
42 getOffset(long address) argument
43 next(long address) argument
44 previous(long address) argument
45 reset(long address) argument
46 setOffset(long address, int offset) argument
47 setText(long address, String source) argument
[all...]
H A DNativePluralRules.java35 private final long address; field in class:NativePluralRules
37 private NativePluralRules(long address) { argument
38 this.address = address;
43 finalizeImpl(address);
58 return quantityForIntImpl(address, value);
61 private static native void finalizeImpl(long address); argument
63 private static native int quantityForIntImpl(long address, int value); argument
H A DCollationElementIteratorICU.java46 NativeCollation.reset(address);
57 return NativeCollation.next(address);
68 return NativeCollation.previous(address);
81 return NativeCollation.getMaxExpansion(address, order);
90 NativeCollation.setText(address, source);
94 NativeCollation.setText(address, source.toString());
105 return NativeCollation.getOffset(address);
115 NativeCollation.setOffset(address, offset);
154 private CollationElementIteratorICU(long address) { argument
155 this.address
178 private final long address; field in class:CollationElementIteratorICU
[all...]
H A DNativeBreakIterator.java30 // The address of the native peer.
32 private final long address; field in class:NativeBreakIterator
38 private NativeBreakIterator(long address, int type) { argument
39 this.address = address;
46 long cloneAddr = cloneImpl(this.address);
74 closeImpl(this.address);
81 return currentImpl(this.address, this.string);
85 return firstImpl(this.address, this.string);
89 return followingImpl(this.address, thi
164 cloneImpl(long address) argument
166 closeImpl(long address) argument
168 setTextImpl(long address, String text) argument
169 precedingImpl(long address, String text, int offset) argument
170 isBoundaryImpl(long address, String text, int offset) argument
171 nextImpl(long address, String text, int n) argument
172 previousImpl(long address, String text) argument
173 currentImpl(long address, String text) argument
174 firstImpl(long address, String text) argument
175 followingImpl(long address, String text, int offset) argument
176 lastImpl(long address, String text) argument
[all...]
H A DRuleBasedCollatorICU.java44 // The address of the ICU4C native peer.
45 private final long address; field in class:RuleBasedCollatorICU
51 address = NativeCollation.openCollatorFromRules(rules, VALUE_OFF, VALUE_DEFAULT_STRENGTH);
55 address = NativeCollation.openCollator(locale);
58 private RuleBasedCollatorICU(long 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.java135 * The address of the ICU DecimalFormat* on the native heap.
137 private long address; field in class:NativeDecimalFormat
156 this.address = open(pattern, dfs.getCurrencySymbol(),
172 this.address = open(pattern, data.currencySymbol,
181 if (address != 0) {
182 close(address);
183 address = 0;
198 clone.address = cloneImpl(address);
229 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/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(address, (in
[all...]
H A DNioBufferIterator.java28 private final long address; field in class:NioBufferIterator
34 NioBufferIterator(long 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(long address); argument
155 public static int peekInt(long address, boolean swap) { argument
156 int result = peekIntNative(address);
162 private static native int peekIntNative(long address); argument
164 public static long peekLong(long address, boolean swap) { argument
165 long result = peekLongNative(address);
171 private static native long peekLongNative(long address); argument
173 public static short peekShort(long address, boolean swap) { argument
174 short result = peekShortNative(address);
180 private static native short peekShortNative(long address); argument
182 peekByteArray(long address, byte[] dst, int dstOffset, int byteCount) argument
183 peekCharArray(long address, char[] dst, int dstOffset, int charCount, boolean swap) argument
184 peekDoubleArray(long address, double[] dst, int dstOffset, int doubleCount, boolean swap) argument
185 peekFloatArray(long address, float[] dst, int dstOffset, int floatCount, boolean swap) argument
186 peekIntArray(long address, int[] dst, int dstOffset, int intCount, boolean swap) argument
187 peekLongArray(long address, long[] dst, int dstOffset, int longCount, boolean swap) argument
188 peekShortArray(long address, short[] dst, int dstOffset, int shortCount, boolean swap) argument
190 pokeByte(long address, byte value) argument
192 pokeInt(long address, int value, boolean swap) argument
198 pokeIntNative(long address, int value) argument
200 pokeLong(long address, long value, boolean swap) argument
206 pokeLongNative(long address, long value) argument
208 pokeShort(long address, short value, boolean swap) argument
214 pokeShortNative(long address, short value) argument
216 pokeByteArray(long address, byte[] src, int offset, int count) argument
217 pokeCharArray(long address, char[] src, int offset, int count, boolean swap) argument
218 pokeDoubleArray(long address, double[] src, int offset, int count, boolean swap) argument
219 pokeFloatArray(long address, float[] src, int offset, int count, boolean swap) argument
220 pokeIntArray(long address, int[] src, int offset, int count, boolean swap) argument
221 pokeLongArray(long address, long[] src, int offset, int count, boolean swap) argument
222 pokeShortArray(long address, short[] src, int offset, int count, boolean swap) argument
[all...]
/libcore/luni/src/main/java/java/nio/
H A DMemoryBlock.java38 private MemoryMappedBlock(long address, long byteCount) { argument
39 super(address, byteCount);
43 if (address != 0) {
45 Libcore.os.munmap(address, size);
70 private NonMovableHeapBlock(byte[] array, long address, long byteCount) { argument
71 super(address, byteCount);
90 private UnmanagedBlock(long address, long byteCount) { argument
91 super(address, byteCount);
95 protected long address; field in class:MemoryBlock
122 long address
136 wrapFromJni(long address, long byteCount) argument
140 MemoryBlock(long address, long size) argument
[all...]
H A DNIOAccess.java30 long address = b.effectiveDirectAddress;
31 if (address == 0L) {
34 return address + (b.position << b._elementSizeShift);
H A DMappedByteBuffer.java57 long address = block.toLong();
65 int pageOffset = (int) (address % pageSize);
66 address -= pageOffset;
70 Libcore.os.mincore(address, size, vector);
/libcore/luni/src/main/native/
H A Dlibcore_icu_NativeBreakIterator.cpp31 static BreakIterator* toBreakIterator(jlong address) { argument
32 return reinterpret_cast<BreakIterator*>(static_cast<uintptr_t>(address));
43 BreakIteratorAccessor(JNIEnv* env, jlong address, jstring javaInput, bool reset) { argument
44 init(env, address);
68 BreakIteratorAccessor(JNIEnv* env, jlong address) { argument
69 init(env, address);
89 void init(JNIEnv* env, jlong address) { argument
92 mBreakIterator = toBreakIterator(address);
122 static jlong NativeBreakIterator_cloneImpl(JNIEnv* env, jclass, jlong address) { argument
123 BreakIteratorAccessor it(env, address);
127 NativeBreakIterator_closeImpl(JNIEnv*, jclass, jlong address) argument
131 NativeBreakIterator_currentImpl(JNIEnv* env, jclass, jlong address, jstring javaInput) argument
136 NativeBreakIterator_firstImpl(JNIEnv* env, jclass, jlong address, jstring javaInput) argument
141 NativeBreakIterator_followingImpl(JNIEnv* env, jclass, jlong address, jstring javaInput, jint offset) argument
162 NativeBreakIterator_isBoundaryImpl(JNIEnv* env, jclass, jlong address, jstring javaInput, jint offset) argument
167 NativeBreakIterator_lastImpl(JNIEnv* env, jclass, jlong address, jstring javaInput) argument
172 NativeBreakIterator_nextImpl(JNIEnv* env, jclass, jlong address, jstring javaInput, jint n) argument
190 NativeBreakIterator_precedingImpl(JNIEnv* env, jclass, jlong address, jstring javaInput, jint offset) argument
195 NativeBreakIterator_previousImpl(JNIEnv* env, jclass, jlong address, jstring javaInput) argument
200 NativeBreakIterator_setTextImpl(JNIEnv* env, jclass, jlong address, jstring javaInput) argument
[all...]
H A Dlibcore_icu_NativeCollation.cpp84 static UCollator* toCollator(jlong address) { argument
85 return reinterpret_cast<UCollator*>(static_cast<uintptr_t>(address));
88 static CollationElements* toCollationElements(jlong address) { argument
89 return reinterpret_cast<CollationElements*>(static_cast<uintptr_t>(address));
92 static void NativeCollation_closeCollator(JNIEnv*, jclass, jlong address) { argument
93 ucol_close(toCollator(address));
96 static void NativeCollation_closeElements(JNIEnv* env, jclass, jlong address) { argument
97 CollationElements* elements = toCollationElements(address);
102 static jint NativeCollation_compare(JNIEnv* env, jclass, jlong address, jstring javaLhs, jstring javaRhs) { argument
111 return ucol_strcoll(toCollator(address), lh
114 NativeCollation_getAttribute(JNIEnv* env, jclass, jlong address, jint type) argument
121 NativeCollation_getCollationElementIterator(JNIEnv* env, jclass, jlong address, jstring javaSource) argument
137 NativeCollation_getMaxExpansion(JNIEnv*, jclass, jlong address, jint order) argument
141 NativeCollation_getOffset(JNIEnv*, jclass, jlong address) argument
145 NativeCollation_getRules(JNIEnv* env, jclass, jlong address) argument
151 NativeCollation_getSortKey(JNIEnv* env, jclass, jlong address, jstring javaSource) argument
176 NativeCollation_next(JNIEnv* env, jclass, jlong address) argument
207 NativeCollation_previous(JNIEnv* env, jclass, jlong address) argument
214 NativeCollation_reset(JNIEnv*, jclass, jlong address) argument
218 NativeCollation_safeClone(JNIEnv* env, jclass, jlong address) argument
225 NativeCollation_setAttribute(JNIEnv* env, jclass, jlong address, jint type, jint value) argument
231 NativeCollation_setOffset(JNIEnv* env, jclass, jlong address, jint offset) argument
237 NativeCollation_setText(JNIEnv* env, jclass, jlong address, jstring javaSource) argument
[all...]
H A Dlibcore_icu_NativePluralRules.cpp28 static PluralRules* toPluralRules(jlong address) { argument
29 return reinterpret_cast<PluralRules*>(static_cast<uintptr_t>(address));
32 static void NativePluralRules_finalizeImpl(JNIEnv*, jclass, jlong address) { argument
33 delete toPluralRules(address);
58 static jint NativePluralRules_quantityForIntImpl(JNIEnv*, jclass, jlong address, jint value) { argument
59 UnicodeString keyword = toPluralRules(address)->select(value);
H A Dlibcore_icu_DateIntervalFormat.cpp53 static void DateIntervalFormat_destroyDateIntervalFormat(JNIEnv*, jclass, jlong address) { argument
54 delete reinterpret_cast<DateIntervalFormat*>(address);
57 static jstring DateIntervalFormat_formatDateInterval(JNIEnv* env, jclass, jlong address, jlong fromDate, jlong toDate) { argument
58 DateIntervalFormat* formatter(reinterpret_cast<DateIntervalFormat*>(address));
/libcore/support/src/test/java/tests/net/
H A DStuckServer.java33 private InetSocketAddress address; field in class:StuckServer
47 this.address = (InetSocketAddress) serverSocket.getLocalSocketAddress();
65 this.address = new InetSocketAddress(testNet1, 80);
70 return address;
74 return address.getPort();
/libcore/luni/src/main/java/java/util/regex/
H A DMatcher.java31 * The address of the native peer.
34 private long address; field in class:Matcher
234 if (address != 0) {
235 closeImpl(address);
236 address = 0; // In case openImpl throws.
238 address = openImpl(pattern.address);
252 setInputImpl(address, input, regionStart, regionEnd);
253 useAnchoringBoundsImpl(address, anchoringBounds);
254 useTransparentBoundsImpl(address, transparentBound
[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/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DProxyTest.java26 private SocketAddress address = new InetSocketAddress("127.0.0.1", 1234); field in class:ProxyTest
33 Proxy proxy = new Proxy(Proxy.Type.HTTP, address);
35 assertEquals(address, proxy.address());
38 proxy = new Proxy(Proxy.Type.SOCKS, address);
40 assertEquals(address, proxy.address());
45 assertNull(proxy.address());
74 // test DIRECT type proxy, any address is illegal
76 proxy = new Proxy(Proxy.Type.DIRECT, address);
[all...]

Completed in 1337 milliseconds

1234