Home
last modified time | relevance | path

Searched refs:extra (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/java/util/zip/
DZipEntry.java58 byte[] extra; // optional extra field data for entry field in ZipEntry
80 long size, int compressionMethod, int xdostime, byte[] extra, in ZipEntry() argument
90 this.setExtra0(extra, false); in ZipEntry()
153 extra = e.extra; in ZipEntry()
474 public void setExtra(byte[] extra) { in setExtra() argument
475 setExtra0(extra, false); in setExtra()
486 void setExtra0(byte[] extra, boolean doZIP64) { in setExtra0() argument
487 if (extra != null) { in setExtra0()
488 if (extra.length > 0xFFFF) { in setExtra0()
493 int len = extra.length; in setExtra0()
[all …]
DZipOutputStream.java395 int elen = getExtraLen(e.extra); in writeLOC()
466 writeExtra(e.extra); in writeLOC()
531 int elen = getExtraLen(e.extra); in writeCEN()
588 writeExtra(e.extra); in writeCEN()
654 private int getExtraLen(byte[] extra) { in getExtraLen() argument
655 if (extra == null) in getExtraLen()
658 int len = extra.length; in getExtraLen()
661 int tag = get16(extra, off); in getExtraLen()
662 int sz = get16(extra, off + 2); in getExtraLen()
680 private void writeExtra(byte[] extra) throws IOException { in writeExtra() argument
[all …]
DZipInputStream.java331 byte[] extra = new byte[len]; in readLOC()
332 readFully(extra, 0, len); in readLOC()
333 e.setExtra0(extra, in readLOC()
/libcore/luni/src/test/java/libcore/java/math/
DRunCSVTestsStrict.java24 void runTest(String func, double expectedOutput, double input, String extra) in runTest() argument
31 assertEquals(extra + ": " + m + ": " + input + ": ", expectedOutput, in runTest()
34 assertEquals(extra + ": " + m + ": " + input + ": ", (int) expectedOutput, in runTest()
44 double input2, String extra) throws Exception { in run2InputTest() argument
57 assertEquals(extra + ": " + m + ": " , expectedOutput, (double) returnValue, 0D); in run2InputTest()
59 assertEquals(extra + ": " + m + ": ", (int) expectedOutput, (int) returnValue, 0D); in run2InputTest()
DCSVTest.java69 String extra = ""; in runTest() local
73 extra = testCase[4]; in runTest()
75 run2InputTest(function, expectedOutput, input, input2, extra); in runTest()
78 extra = testCase[3]; in runTest()
80 runTest(function, expectedOutput, input, extra); in runTest()
85 String extra) throws Exception; in runTest() argument
87 …t(String func, double expectedOutput, double input1, double input2, String extra) throws Exception; in run2InputTest() argument
DRunCSVTests.java54 void runTest(String func, double expectedOutput, double input, String extra) in runTest() argument
68 assertEquals(extra + ": " + m + ": " + input + ": ", expectedOutput, in runTest()
71 assertEquals(extra + ": " + m + ": " + input + ": ", (int) expectedOutput, in runTest()
82 double input2, String extra) throws Exception { in run2InputTest() argument
102 assertEquals(extra + ": " + m + ": ", expectedOutput, (double) returnValue, in run2InputTest()
105 assertEquals(extra + ": " + m + ": ", (int) expectedOutput, (int) returnValue, in run2InputTest()
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipEntryTest.java86 byte[] extra = { 5, 7, 9 }; in testClone()
88 jarEntry.setExtra(extra); in testClone()
89 assertSame("Expected no defensive copy of extra", extra, jarEntry.getExtra()); in testClone()
93 assertNotSame(extra, clone.getExtra()); in testClone()
201 byte[] extra = makeString(11, "a").getBytes(); in testCommentAndExtraInSameOrder()
209 ze.setExtra(extra); in testCommentAndExtraInSameOrder()
216 ze.setExtra(extra); in testCommentAndExtraInSameOrder()
226 assertTrue(Arrays.equals(extra, zipFile.getEntry("x").getExtra())); in testCommentAndExtraInSameOrder()
229 assertTrue(Arrays.equals(extra, zipFile.getEntry("y").getExtra())); in testCommentAndExtraInSameOrder()
/libcore/ojluni/src/main/native/
Dzip_util.c1032 ze->extra = NULL; in newEntry()
1064 char *extra = cen + CENHDR + nlen; in newEntry() local
1067 if ((ze->extra = malloc(elen + 2)) == NULL) goto Catch; in newEntry()
1068 ze->extra[0] = (unsigned char) elen; in newEntry()
1069 ze->extra[1] = (unsigned char) (elen >> 8); in newEntry()
1070 memcpy(ze->extra+2, extra, elen); in newEntry()
1075 jint sz = SH(extra, off + 2); in newEntry()
1076 if (SH(extra, off) == ZIP64_EXTID) { in newEntry()
1082 ze->size = LL(extra, off); in newEntry()
1089 ze->csize = LL(extra, off); in newEntry()
[all …]
Djava_util_zip_ZipFile.c282 if (ze->extra != 0) { in ZipFile_getEntryBytes()
283 unsigned char *bp = (unsigned char *)&ze->extra[0]; in ZipFile_getEntryBytes()
287 (*env)->SetByteArrayRegion(env, jba, 0, len, &ze->extra[2]); in ZipFile_getEntryBytes()
Dzip_util.h167 jbyte *extra; /* optional extra data */ member
/libcore/ojluni/src/main/java/java/awt/font/
DNumericShaper.java1484 int extra = length - power; in search() local
1488 if (value >= array[index + extra]) { in search()
1489 index += extra; in search()
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java77 List<String> extra = new ArrayList<String>(); in test_Provider_getServices() local
126 extra.add("Unknown " + type + " " + algorithm + " " + providerName + "\n"); in test_Provider_getServices()
167 Collections.sort(extra); // sort so that its grouped by type in test_Provider_getServices()
169 Collections.EMPTY_LIST, extra); in test_Provider_getServices()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java1768 final int extra = 1; in test_SSLSocket_setSoWriteTimeout() local
1769 client.getOutputStream().write(new byte[sendBufferSize + extra]); in test_SSLSocket_setSoWriteTimeout()