Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 130) sorted by relevance

123456

/libcore/luni/src/main/java/org/xml/sax/helpers/
DAttributesImpl.java61 data = null; in AttributesImpl()
108 return data[index*5]; in getURI()
126 return data[index*5+1]; in getLocalName()
144 return data[index*5+2]; in getQName()
162 return data[index*5+3]; in getType()
179 return data[index*5+4]; in getValue()
203 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getIndex()
222 if (data[i+2].equals(qName)) { in getIndex()
244 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getType()
245 return data[i+3]; in getType()
[all …]
/libcore/luni/src/main/java/java/net/
DDatagramPacket.java29 private byte[] data; field in DatagramPacket
59 public DatagramPacket(byte[] data, int length) { in DatagramPacket() argument
60 this(data, 0, length); in DatagramPacket()
74 public DatagramPacket(byte[] data, int offset, int length) { in DatagramPacket() argument
75 setData(data, offset, length); in DatagramPacket()
95 public DatagramPacket(byte[] data, int offset, int length, InetAddress host, int aPort) { in DatagramPacket() argument
96 this(data, offset, length); in DatagramPacket()
116 public DatagramPacket(byte[] data, int length, InetAddress host, int port) { in DatagramPacket() argument
117 this(data, 0, length, host, port); in DatagramPacket()
136 return data; in getData()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherInputStream1Test.java46 public TestInputStream(byte[] data) { in TestInputStream() argument
47 super(data); in TestInputStream()
65 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 }; in testCipherInputStream()
66 TestInputStream tis = new TestInputStream(data); in testCipherInputStream()
69 for (int i = 0; i < data.length; i++) { in testCipherInputStream()
70 if ((byte) cis.read() != data[i]) { in testCipherInputStream()
85 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 }; in testRead1()
86 TestInputStream tis = new TestInputStream(data); in testRead1()
89 for (int i = 0; i < data.length; i++) { in testRead1()
90 if ((res = (byte) cis.read()) != data[i]) { in testRead1()
[all …]
DCipherOutputStream1Test.java65 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 }; in testCipherOutputStream()
68 cos.write(data); in testCipherOutputStream()
71 if (!Arrays.equals(result, data)) { in testCipherOutputStream()
81 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 }; in testWrite1()
84 for (int i = 0; i < data.length; i++) { in testWrite1()
85 cos.write(data[i]); in testWrite1()
89 if (!Arrays.equals(result, data)) { in testWrite1()
99 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 }; in testWrite2()
102 cos.write(data); in testWrite2()
105 if (!Arrays.equals(result, data)) { in testWrite2()
[all …]
/libcore/luni/src/main/java/libcore/io/
DDropBox.java47 public void addData(String tag, byte[] data, int flags); in addData() argument
48 public void addText(String tag, String data); in addText() argument
56 public void addData(String tag, byte[] data, int flags) { in addData() argument
57 System.out.println(tag + ": " + Base64.encode(data)); in addData()
60 public void addText(String tag, String data) { in addText() argument
61 System.out.println(tag + ": " + data); in addText()
65 public static void addData(String tag, byte[] data, int flags) { in addData() argument
66 getReporter().addData(tag, data, flags); in addData()
69 public static void addText(String tag, String data) { in addText() argument
70 getReporter().addText(tag, data); in addText()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DProcessingInstructionImpl.java38 private String data; field in ProcessingInstructionImpl
40 ProcessingInstructionImpl(DocumentImpl document, String target, String data) { in ProcessingInstructionImpl() argument
43 this.data = data; in ProcessingInstructionImpl()
47 return data; in getData()
62 return data; in getNodeValue()
69 public void setData(String data) throws DOMException { in setData() argument
70 this.data = data; in setData()
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
DFinished.java32 private byte[] data; field in Finished
39 data = bytes; in Finished()
40 length = data.length; in Finished()
52 data = in.read(length); in Finished()
53 this.length = data.length; in Finished()
61 out.write(data); in send()
78 return data; in getData()
DLogger.java61 public void print(byte[] data) { in print() argument
62 printAsHex(16, " ", "", data, 0, data.length); in print()
65 public void print(byte[] data, int offset, int len) { in print() argument
66 printAsHex(16, " ", "", data, offset, len); in print()
69 public void printAsHex(int perLine, String prefix, String delimiter, byte[] data) { in printAsHex() argument
70 printAsHex(perLine, prefix, delimiter, data, 0, data.length); in printAsHex()
74 byte[] data, int offset, int len) { in printAsHex() argument
78 line.append(Byte.toHexString(data[i+offset], false)); in printAsHex()
DServerSessionContext.java63 byte[] data = persistentCache.getSessionData(sessionId); in getSession()
64 if (data != null) { in getSession()
65 session = toSession(data, null, -1); in getSession()
82 byte[] data = toBytes(session); in putSession()
83 if (data != null) { in putSession()
84 persistentCache.putSessionData(session, data); in putSession()
DDigitalSignature.java136 public void update(byte[] data) { in update() argument
138 sha.update(data); in update()
141 md5.update(data); in update()
149 public void setMD5(byte[] data) { in setMD5() argument
150 md5_hash = data; in setMD5()
157 public void setSHA(byte[] data) { in setSHA() argument
158 sha_hash = data; in setSHA()
211 public boolean verifySignature(byte[] data) { in verifySignature() argument
215 return signature.verify(data); in verifySignature()
224 decrypt = cipher.doFinal(data); in verifySignature()
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipOutputStreamTest.java33 byte[] data = "Hello World".getBytes("UTF-8"); in testShortMessage()
34 byte[] zipped = zip("short", data); in testShortMessage()
35 … assertEquals(Arrays.toString(data), Arrays.toString(ZipInputStreamTest.unzip("short", zipped))); in testShortMessage()
40 byte[] data = new byte[1]; // CRC32({ 0 }) == 0xd202ef8d in test3181430()
41 byte[] zipped = zip("z", data); in test3181430()
42 assertEquals(Arrays.toString(data), Arrays.toString(ZipInputStreamTest.unzip("z", zipped))); in test3181430()
46 byte[] data = new byte[1024 * 1024]; in testLongMessage()
47 new Random().nextBytes(data); in testLongMessage()
48 assertTrue(Arrays.equals(data, ZipInputStreamTest.unzip("r", zip("r", data)))); in testLongMessage()
DGZIPInputStreamTest.java32 byte[] data = new byte[] { in testShortMessage()
36 assertEquals("Hello World", new String(gunzip(data), "UTF-8")); in testShortMessage()
40 byte[] data = new byte[1024 * 1024]; in testLongMessage()
41 new Random().nextBytes(data); in testLongMessage()
42 assertTrue(Arrays.equals(data, gunzip(GZIPOutputStreamTest.gzip(data)))); in testLongMessage()
47 byte[] data = new byte[1024 * 1024]; in testSkip()
48 byte[] gzipped = GZIPOutputStreamTest.gzip(data); in testSkip()
58 assertEquals(data.length, totalSkipped); in testSkip()
DGZIPOutputStreamTest.java32 byte[] data = gzip(("Hello World").getBytes("UTF-8")); in testShortMessage()
34 "47, -54, 73, 1, 0, 86, -79, 23, 74, 11, 0, 0, 0]", Arrays.toString(data)); in testShortMessage()
38 byte[] data = new byte[1024 * 1024]; in testLongMessage()
39 new Random().nextBytes(data); in testLongMessage()
40 assertTrue(Arrays.equals(data, GZIPInputStreamTest.gunzip(gzip(data)))); in testLongMessage()
DZipInputStreamTest.java33 byte[] data = "Hello World".getBytes("UTF-8"); in testShortMessage()
34 byte[] zipped = ZipOutputStreamTest.zip("short", data); in testShortMessage()
35 assertEquals(Arrays.toString(data), Arrays.toString(unzip("short", zipped))); in testShortMessage()
39 byte[] data = new byte[1024 * 1024]; in testLongMessage()
40 new Random().nextBytes(data); in testLongMessage()
41 assertTrue(Arrays.equals(data, unzip("r", ZipOutputStreamTest.zip("r", data)))); in testLongMessage()
DDeflaterInputStreamTest.java31 byte[] data = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; in testReadByteByByte()
32 InputStream in = new DeflaterInputStream(new ByteArrayInputStream(data)); in testReadByteByByte()
42 assertEquals(Arrays.toString(data), Arrays.toString(inflate(out.toByteArray()))); in testReadByteByByte()
64 byte[] data = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; in testReadWithBuffer()
66 InputStream in = new DeflaterInputStream(new ByteArrayInputStream(data)); in testReadWithBuffer()
76 assertEquals(Arrays.toString(data), Arrays.toString(inflate(out.toByteArray()))); in testReadWithBuffer()
87 byte[] data = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; in testReadExceptions()
89 InputStream in = new DeflaterInputStream(new ByteArrayInputStream(data)); in testReadExceptions()
/libcore/luni/src/test/java/libcore/io/
DBase64Test.java40 int[] data = new int[61]; in testEncodeDoesNotWrap() local
41 Arrays.fill(data, 0xff); in testEncodeDoesNotWrap()
44 assertEncoded(expected, data); in testEncodeDoesNotWrap()
47 public void assertEncoded(String expected , int... data) { in assertEncoded() argument
48 byte[] dataBytes = new byte[data.length]; in assertEncoded()
49 for (int i = 0; i < data.length; i++) { in assertEncoded()
50 dataBytes[i] = (byte) data[i]; in assertEncoded()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetDecoderICU.java34 private int[] data = new int[3]; field in CharsetDecoderICU
91 data[INPUT_OFFSET] = 0; in implReset()
92 data[OUTPUT_OFFSET] = 0; in implReset()
93 data[INVALID_BYTES] = 0; in implReset()
107 data[INPUT_OFFSET] = 0; in implFlush()
109 data[OUTPUT_OFFSET] = getArray(out); in implFlush()
110 data[INVALID_BYTES] = 0; // Make sure we don't see earlier errors. in implFlush()
112 … int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush()
117 if (data[INPUT_OFFSET] > 0) { in implFlush()
118 return CoderResult.malformedForLength(data[INPUT_OFFSET]); in implFlush()
[all …]
DCharsetEncoderICU.java49 private int[] data = new int[3]; field in CharsetEncoderICU
119 data[INPUT_OFFSET] = 0; in implReset()
120 data[OUTPUT_OFFSET] = 0; in implReset()
121 data[INVALID_CHARS] = 0; in implReset()
135 data[INPUT_OFFSET] = 0; in implFlush()
137 data[OUTPUT_OFFSET] = getArray(out); in implFlush()
138 data[INVALID_CHARS] = 0; // Make sure we don't see earlier errors. in implFlush()
140 … int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush()
145 if (data[INPUT_OFFSET] > 0) { in implFlush()
146 return CoderResult.malformedForLength(data[INPUT_OFFSET]); in implFlush()
[all …]
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DChunk.java34 public byte[] data; // chunk data field in Chunk
45 public Chunk(int type, byte[] data, int offset, int length) { in Chunk() argument
47 this.data = data; in Chunk()
59 this.data = buf.array(); in Chunk()
/libcore/dom/src/test/java/org/w3c/domts/
DUserDataNotification.java24 private final Object data; field in UserDataNotification
34 Object data, in UserDataNotification() argument
39 this.data = data; in UserDataNotification()
68 return data; in getData()
/libcore/dalvik/src/main/java/dalvik/system/profiler/
DAsciiHprofWriter.java34 private final HprofData data; field in AsciiHprofWriter
40 public static void write(HprofData data, OutputStream outputStream) throws IOException { in write() argument
41 new AsciiHprofWriter(data, outputStream).write(); in write()
44 private AsciiHprofWriter(HprofData data, OutputStream outputStream) { in AsciiHprofWriter() argument
45 this.data = data; in AsciiHprofWriter()
50 for (HprofData.ThreadEvent e : data.getThreadHistory()) { in write()
55 = new ArrayList<HprofData.Sample>(data.getSamples()); in write()
69 Date now = new Date(data.getStartMillis()); in write()
/libcore/benchmarks/src/benchmarks/regression/
DParseBenchmark.java126 void parse(String data) throws Exception; in parse() argument
130 @Override public void parse(String data) throws Exception { in parse() argument
132 = new android.util.JsonReader(new StringReader(data)); in parse()
181 @Override public void parse(String data) throws Exception { in parse() argument
182 if (data.startsWith("[")) { in parse()
183 new JSONArray(data); in parse()
184 } else if (data.startsWith("{")) { in parse()
185 new JSONObject(data); in parse()
193 @Override public void parse(String data) throws Exception { in parse() argument
195 xmlParser.setInput(new StringReader(data)); in parse()
[all …]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DMyCertPath.java121 private byte[] data; field in MyCertPath.MyCertPathRep
123 public MyCertPathRep(String type, byte[] data) { in MyCertPathRep() argument
124 super(type, data); in MyCertPathRep()
125 this.data = data; in MyCertPathRep()
138 return data; in getData()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dcdatasectionnormalize.java68 String data; in runTest() local
76 data = cdataN.getData(); in runTest()
77 assertEquals("data1", "This is a CDATASection with EntityReference number 2 &ent2;", data); in runTest()
80 data = cdataN.getData(); in runTest()
81 … assertEquals("data3", "This is an adjacent CDATASection with a reference to a tab &tab;", data); in runTest()
/libcore/luni/src/main/java/java/text/
DDateFormatSymbols.java392 public void setAmPmStrings(String[] data) { in setAmPmStrings() argument
393 ampms = data.clone(); in setAmPmStrings()
404 public void setEras(String[] data) { in setEras() argument
405 eras = data.clone(); in setEras()
417 public void setLocalPatternChars(String data) { in setLocalPatternChars() argument
418 if (data == null) { in setLocalPatternChars()
421 localPatternChars = data; in setLocalPatternChars()
432 public void setMonths(String[] data) { in setMonths() argument
433 months = data.clone(); in setMonths()
444 public void setShortMonths(String[] data) { in setShortMonths() argument
[all …]

123456