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.java46 byte[] extra; // optional extra field data for entry field in ZipEntry
64 long size, int compressionMethod, int time, byte[] extra, in ZipEntry() argument
73 this.extra = extra; in ZipEntry()
111 extra = e.extra; in ZipEntry()
253 public void setExtra(byte[] extra) { in setExtra() argument
254 if (extra != null && extra.length > 0xFFFF) { in setExtra()
257 this.extra = extra; in setExtra()
266 return extra; in getExtra()
361 e.extra = (extra == null) ? null : extra.clone(); in clone()
DZipOutputStream.java376 int elen = (e.extra != null) ? e.extra.length : 0; in writeLOC()
422 if (e.extra != null) { in writeLOC()
423 writeBytes(e.extra, 0, e.extra.length); in writeLOC()
490 writeShort(e64len + 4 + (e.extra != null ? e.extra.length : 0)); in writeCEN()
492 writeShort(e.extra != null ? e.extra.length : 0); in writeCEN()
517 if (e.extra != null) { in writeCEN()
518 writeBytes(e.extra, 0, e.extra.length); in writeCEN()
DZipFile.java549 e.extra = getEntryBytes(jzentry, JZENTRY_EXTRA); in getZipEntry()
/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.c1030 ze->extra = NULL; in newEntry()
1061 char *extra = cen + CENHDR + nlen; in newEntry() local
1064 if ((ze->extra = malloc(elen + 2)) == NULL) goto Catch; in newEntry()
1065 ze->extra[0] = (unsigned char) elen; in newEntry()
1066 ze->extra[1] = (unsigned char) (elen >> 8); in newEntry()
1067 memcpy(ze->extra+2, extra, elen); in newEntry()
1072 jint sz = SH(extra, off + 2); in newEntry()
1073 if (SH(extra, off) == ZIP64_EXTID) { in newEntry()
1079 ze->size = LL(extra, off); in newEntry()
1086 ze->csize = LL(extra, off); in newEntry()
[all …]
Djava_util_zip_ZipFile.c286 if (ze->extra != 0) { in ZipFile_getEntryBytes()
287 unsigned char *bp = (unsigned char *)&ze->extra[0]; in ZipFile_getEntryBytes()
291 (*env)->SetByteArrayRegion(env, jba, 0, len, &ze->extra[2]); in ZipFile_getEntryBytes()
Dzip_util.h166 jbyte *extra; /* optional extra data */ member
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java70 List<String> extra = new ArrayList<String>(); in test_Provider_getServices() local
105 extra.add("Unknown " + type + " " + algorithm + " " + providerName + "\n"); in test_Provider_getServices()
146 Collections.sort(extra); // sort so that its grouped by type in test_Provider_getServices()
147 assertEquals("Extra algorithms", Collections.EMPTY_LIST, extra); in test_Provider_getServices()
/libcore/ojluni/src/main/java/java/awt/font/
DNumericShaper.java1466 int extra = length - power; in search() local
1470 if (value >= array[index + extra]) { in search()
1471 index += extra; in search()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java1396 final int extra = 1; in test_SSLSocket_setSoWriteTimeout() local
1397 client.getOutputStream().write(new byte[sendBufferSize + extra]); in test_SSLSocket_setSoWriteTimeout()