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

1234

/libcore/luni/src/main/java/libcore/icu/
H A DNativeCollation.java23 public static native void closeCollator(long address); argument
24 public static native int compare(long address, String source, String target); argument
25 public static native int getAttribute(long address, int type); argument
26 public static native int getCollationElementIterator(long address, String source); argument
27 public static native String getRules(long address); argument
28 public static native byte[] getSortKey(long address, String source); argument
31 public static native long safeClone(long address); argument
32 public static native void setAttribute(long address, int type, int value); argument
35 public static native void closeElements(long address); argument
36 public static native int getMaxExpansion(long address, in argument
37 getOffset(long address) argument
38 next(long address) argument
39 previous(long address) argument
40 reset(long address) argument
41 setOffset(long address, int offset) argument
42 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.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(long address) { argument
164 this.address
187 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.toString());
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.java95 * The address of the ICU DecimalFormat* on the native heap.
97 private long address; field in class:NativeDecimalFormat
123 this.address = open(pattern, dfs.getCurrencySymbol(),
139 this.address = open(pattern, data.currencySymbol,
148 if (address != 0) {
149 close(address);
150 address = 0;
165 clone.address = cloneImpl(address);
196 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(long 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, long address, long byteCount) { argument
67 super(address, byteCount);
77 address = 0;
86 private UnmanagedBlock(long address, long byteCount) { argument
87 super(address, byteCoun
91 protected long address; field in class:MemoryBlock
130 wrapFromJni(long address, long byteCount) argument
134 MemoryBlock(long address, long size) argument
[all...]
H A DNIOAccess.java29 * address."
36 long address = b.effectiveDirectAddress;
37 if (address == 0) {
40 return address + (b.position << b._elementSizeShift);
H A DMappedByteBuffer.java55 long address = block.toLong();
63 int pageOffset = (int) (address % pageSize);
64 address -= pageOffset;
68 Libcore.os.mincore(address, size, vector);
/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
154 public static native int peekInt(long address, boolean swap); argument
155 public static native long peekLong(long address, boolean swap); argument
156 public static native short peekShort(long address, boolean swap); argument
158 public static native void peekByteArray(long address, byte[] dst, int dstOffset, int byteCount); argument
159 public static native void peekCharArray(long address, char[] dst, int dstOffset, int charCount, boolean swap); argument
160 public static native void peekDoubleArray(long address, double[] dst, int dstOffset, int doubleCount, boolean swap); argument
161 public static native void peekFloatArray(long address, float[] dst, int dstOffset, int floatCount, boolean swap); argument
162 public static native void peekIntArray(long address, int[] dst, int dstOffset, int intCount, boolean swap); argument
163 public static native void peekLongArray(long address, lon argument
164 peekShortArray(long address, short[] dst, int dstOffset, int shortCount, boolean swap) argument
166 pokeByte(long address, byte value) argument
167 pokeInt(long address, int value, boolean swap) argument
168 pokeLong(long address, long value, boolean swap) argument
169 pokeShort(long address, short value, boolean swap) argument
171 pokeByteArray(long address, byte[] src, int offset, int count) argument
172 pokeCharArray(long address, char[] src, int offset, int count, boolean swap) argument
173 pokeDoubleArray(long address, double[] src, int offset, int count, boolean swap) argument
174 pokeFloatArray(long address, float[] src, int offset, int count, boolean swap) argument
175 pokeIntArray(long address, int[] src, int offset, int count, boolean swap) argument
176 pokeLongArray(long address, long[] src, int offset, int count, boolean swap) argument
177 pokeShortArray(long address, short[] src, int offset, int count, boolean swap) argument
[all...]
/libcore/luni/src/main/native/
H A Dlibcore_icu_NativeBreakIterator.cpp30 static BreakIterator* toBreakIterator(jlong address) { argument
31 return reinterpret_cast<BreakIterator*>(static_cast<uintptr_t>(address));
42 BreakIteratorAccessor(JNIEnv* env, jlong address, jstring javaInput, bool reset) { argument
43 init(env, address);
67 BreakIteratorAccessor(JNIEnv* env, jlong address) { argument
68 init(env, address);
88 void init(JNIEnv* env, jlong address) { argument
91 mBreakIterator = toBreakIterator(address);
122 static jint 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.cpp23 static UCollator* toCollator(jlong address) { argument
24 return reinterpret_cast<UCollator*>(static_cast<uintptr_t>(address));
27 static UCollationElements* toCollationElements(jlong address) { argument
28 return reinterpret_cast<UCollationElements*>(static_cast<uintptr_t>(address));
31 static void NativeCollation_closeCollator(JNIEnv*, jclass, jlong address) { argument
32 ucol_close(toCollator(address));
35 static void NativeCollation_closeElements(JNIEnv*, jclass, jlong address) { argument
36 ucol_closeElements(toCollationElements(address));
39 static jint NativeCollation_compare(JNIEnv* env, jclass, jlong address, jstring javaLhs, jstring javaRhs) { argument
48 return ucol_strcoll(toCollator(address), lh
51 NativeCollation_getAttribute(JNIEnv* env, jclass, jlong address, jint type) argument
58 NativeCollation_getCollationElementIterator(JNIEnv* env, jclass, jlong address, jstring javaSource) argument
69 NativeCollation_getMaxExpansion(JNIEnv*, jclass, jlong address, jint order) argument
73 NativeCollation_getOffset(JNIEnv*, jclass, jlong address) argument
77 NativeCollation_getRules(JNIEnv* env, jclass, jlong address) argument
83 NativeCollation_getSortKey(JNIEnv* env, jclass, jlong address, jstring javaSource) argument
107 NativeCollation_next(JNIEnv* env, jclass, jlong address) argument
137 NativeCollation_previous(JNIEnv* env, jclass, jlong address) argument
144 NativeCollation_reset(JNIEnv*, jclass, jlong address) argument
148 NativeCollation_safeClone(JNIEnv* env, jclass, jlong address) argument
156 NativeCollation_setAttribute(JNIEnv* env, jclass, jlong address, jint type, jint value) argument
162 NativeCollation_setOffset(JNIEnv* env, jclass, jlong address, jint offset) argument
168 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.cpp49 static void DateIntervalFormat_destroyDateIntervalFormat(JNIEnv*, jclass, jlong address) { argument
50 delete reinterpret_cast<DateIntervalFormat*>(address);
53 static jstring DateIntervalFormat_formatDateInterval(JNIEnv* env, jclass, jlong address, jlong fromDate, jlong toDate) { argument
54 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/luni/src/main/java/java/nio/charset/
H A DCharsetEncoderICU.java68 long address = 0;
70 address = NativeConverter.openConverter(icuCanonicalName);
71 float averageBytesPerChar = NativeConverter.getAveBytesPerChar(address);
72 float maxBytesPerChar = NativeConverter.getMaxBytesPerChar(address);
73 byte[] replacement = makeReplacement(icuCanonicalName, address);
74 CharsetEncoderICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address);
75 address = 0; // CharsetEncoderICU has taken ownership; its finalizer will do the free.
78 if (address != 0) {
79 NativeConverter.closeConverter(address);
84 private static byte[] makeReplacement(String icuCanonicalName, long address) { argument
94 CharsetEncoderICU(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, long address) argument
[all...]

Completed in 1005 milliseconds

1234