Searched refs:data (Results 226 - 250 of 260) sorted by relevance

1234567891011

/libcore/luni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java67 * Holds the latest snapshot of the list's data. This field is volatile so
68 * that data can be read without synchronization. As a consequence, all
471 static int lastIndexOf(Object o, Object[] data, int from, int to) { argument
474 if (data[i] == null) {
480 if (o.equals(data[i])) {
488 static int indexOf(Object o, Object[] data, int from, int to) { argument
491 if (data[i] == null) {
497 if (o.equals(data[i])) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSocketChannelTest.java1589 // Original tests. Test method for CFII with real data.
1900 // End of original tests. Test method for CFII with real data.
1916 // use OutputStream.write to send CAPACITY_NORMAL bytes data
1919 // use close to guarantee all data is sent
1926 // use SocketChannel.read to read data
1959 // use OutputStream.write to write CAPACITY_NORMAL bytes data.
1962 // use close to guarantee all data is sent
1970 // use SocketChannel.read to read data
2007 // data
2012 // use close to guarantee all data i
[all...]
H A DDatagramChannelTest.java1263 private void sendOnChannel2(String data, SocketAddress address) argument
1265 assertEquals(data.length(), channel2.send(ByteBuffer.wrap(data.getBytes()), address));
1268 private void sendOnDatagramSocket1(String data, InetSocketAddress address) argument
1270 DatagramPacket rdp = new DatagramPacket(data.getBytes(), data.length(), address);
1282 // continue loop when channel1 is non-blocking and no data was
1890 * the data into targetArray
1976 // Connect channel2 after data has been written.
2168 // Connect channel2 after data ha
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DStringTest.java47 private static String newString(int start, int len, char[] data) throws Exception { argument
49 return new String(data, start, len);
53 data);
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DNodeImpl.java698 public final Object setUserData(String key, Object data, UserDataHandler handler) { argument
703 UserData previous = data == null
705 : map.put(key, new UserData(data, handler));
/libcore/luni/src/test/java/libcore/java/net/
H A DSocketTest.java300 final byte[] data = "foo".getBytes();
307 socket.getOutputStream().write(data);
320 while (total < data.length) {
/libcore/ojluni/src/main/java/java/util/
H A DVector.java152 * Constructs an empty vector so that its internal data array
199 * its internal data array, kept in the field {@code elementData},
218 * internal data array, kept in the field {@code elementData}, with a
219 * larger one. The size of the new data array will be the old size plus
302 * data array, kept in the field {@code elementData}
666 * reference to a clone of the internal data array, not a reference
667 * to the original internal data array of this {@code Vector} object.
1065 * of the serialized data.
1070 final Object[] data;
1074 data
[all...]
/libcore/ojluni/src/main/java/sun/security/pkcs/
H A DPKCS7.java56 * type, where to the type of data signed is plain Data.
88 byte[] data = new byte[dis.available()];
89 dis.readFully(data);
91 parse(new DerInputStream(data));
458 * Encodes the signed data to an output stream.
460 * @param out the output stream to write the encoded data to.
470 * Encodes the signed data to a DerOutputStream.
472 * @param out the DerOutputStream to write the encoded data to.
509 // to the signed data
533 // to the signed data
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
H A DDocumentBuilderImpl.java199 String data = (dot != -1 ? text.substring(dot + 1) : "");
202 data));
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DParserAdapter.java679 * @param data The remainder of the processing instruction
684 public void processingInstruction (String target, String data)
688 contentHandler.processingInstruction(target, data);
682 processingInstruction(String target, String data) argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DObservableTest.java243 final Observer observer = (observable1, data) -> updated.set(observable1);
H A DVectorTest.java1028 int[] data = { 1, 2, 3, 4 };
1029 for (int i = 0; i < data.length; i++) {
1030 myVector.add(i, data[i]);
1034 assertEquals(data[2], myVector.get(0));
1035 assertEquals(data[3], myVector.get(1));
H A DCollectionsTest.java247 int data; field in class:CollectionsTest.MyInt
250 data = value;
254 return data > object.data ? 1 : (data < object.data ? -1 : 0);
/libcore/jsr166-tests/src/test/java/jsr166/
H A DJSR166TestCase.java526 * parameterized by passing extra data to each test.
531 ExtraData data) {
537 suite.addTest((Test) c.newInstance(data, methodName));
546 * given test class, but parameterized by passing extra data to
552 ExtraData data) {
561 .invoke(null, data);
528 parameterizedTestSuite(Class<? extends JSR166TestCase> testClass, Class<ExtraData> dataClass, ExtraData data) argument
549 jdk8ParameterizedTestSuite(Class<? extends JSR166TestCase> testClass, Class<ExtraData> dataClass, ExtraData data) argument
/libcore/ojluni/src/main/java/sun/security/x509/
H A DCRLExtensions.java97 str = val.data;
H A DX509CertInfo.java41 * <P>X.509 certificates have several base data elements, including:<UL>
83 // X509.v1 data
111 // DER encoded CertificateInfo data
141 * the end. If you need to ignore data at the end of a certificate,
144 * @param cert the encoded bytes, with no trailing data.
240 * compares them as binary data.
254 * Compares two certificates, returning false if any data
633 in = val.data;
669 // If more data available, make sure version is not v1.
673 "no more data allowe
[all...]
/libcore/ojluni/src/main/native/
H A Dzip_util.h78 #define LOCCRC(b) LG(b, 14) /* crc of uncompressed data */
79 #define LOCSIZ(b) LG(b, 18) /* compressed data size */
80 #define LOCLEN(b) LG(b, 22) /* uncompressed data size */
87 #define EXTCRC(b) LG(b, 4) /* crc of uncompressed data */
99 #define CENCRC(b) LG(b, 16) /* crc of uncompressed data */
153 * data in intel byte order.
155 * If pos > 0 then it is the position of entry data.
162 jlong size; /* size of uncompressed data */
163 jlong csize; /* size of compressed data (zero if uncompressed) */
164 jint crc; /* crc of uncompressed data */
185 char *data; /* A cached page of CEN headers */ member in struct:cencache
[all...]
H A Dzip_util.c186 * Reads len bytes of data into buf.
214 * Reads len bytes of data from the specified offset into buf.
268 free(zip->cencache.data);
522 /* Free Zip data allocated by readCEN() */
661 /* Initialize zip file data structures based on the total number
842 * Reads data from the given file descriptor to create a jzfile, puts the
1000 if (cache->data != NULL
1004 cen = cache->data + cenpos - cache->pos;
1012 free(cache->data);
1013 cache->data
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java218 /*package*/ void processingInstruction(String target, String data) argument
222 contentHandler.processingInstruction(target, data);
/libcore/luni/src/test/java/libcore/xml/
H A DXsltXPathConformanceTestSuite.java74 * <li>Copy the files to a device: <code>adb shell mkdir /data/oasis ;
75 * adb push ./XSLT-Conformance-TC /data/oasis</code>.
196 * <input-file role="principal-data">attribset01.xml</input-file>
224 if (role.equals("principal-data")) {
231 && !role.equals("supplemental-data")) {
242 + "principal=data and principal-stylesheet elements at " + name);
409 * Ensures both XML documents represent the same semantic data. Non-semantic
410 * data such as namespace prefixes, comments, and whitespace is ignored.
509 String data = processingInstruction.getData();
511 serializer.processingInstruction(target + " " + data);
[all...]
H A DSaxTest.java258 @Override public void processingInstruction(String target, String data) { argument
/libcore/ojluni/src/main/java/java/net/
H A DSocket.java1026 * Send one byte of urgent data on the socket. The byte to be sent is the lowest eight
1027 * bits of the data parameter. The urgent byte is
1030 * @param data The byte of data to send
1032 * sending the data.
1035 public void sendUrgentData (int data) throws IOException { argument
1037 throw new SocketException ("Urgent data not supported");
1039 getImpl().sendUrgentData (data);
1043 * Enable/disable OOBINLINE (receipt of TCP urgent data)
1045 * By default, this option is disabled and TCP urgent data receive
[all...]
/libcore/luni/src/main/native/
H A Dlibcore_icu_ICU.cpp846 void* data = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd.get(), 0); local
847 if (data == MAP_FAILED) {
852 if (madvise(data, sb.st_size, MADV_RANDOM) == -1) {
858 // Tell ICU to use our memory-mapped data.
859 udata_setCommonData(data, &status);
875 // Tell ICU it can *only* use our memory-mapped data.
882 // Map in optional TZ data files.
897 // Use the ICU data files that shipped with the device for everything else.
913 // Failures to find the ICU data tend to be somewhat obscure because ICU loads its data o
[all...]
/libcore/xml/src/main/java/org/kxml2/io/
H A DKXmlSerializer.java576 public void cdsect(String data) throws IOException { argument
580 data = data.replace("]]>", "]]]]><![CDATA[>");
582 for (int i = 0; i < data.length(); ++i) {
583 char ch = data.charAt(i);
589 } else if (Character.isHighSurrogate(ch) && i < data.length() - 1) {
592 writeSurrogate(ch, data.charAt(++i));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DDatagramSocketTest.java519 byte[] data = { 65 };
520 DatagramPacket sendPacket = new DatagramPacket(data, data.length, null, 25000);

Completed in 1008 milliseconds

1234567891011