Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/zip/
DZipEntry.java56 byte[] extra; // optional extra field data for entry field in ZipEntry
99 long size, int compressionMethod, int xdostime, byte[] extra, in ZipEntry() argument
109 this.setExtra0(extra, false); in ZipEntry()
156 extra = e.extra; in ZipEntry()
478 public void setExtra(byte[] extra) { in setExtra() argument
479 setExtra0(extra, false); in setExtra()
490 void setExtra0(byte[] extra, boolean doZIP64) { in setExtra0() argument
491 if (extra != null) { in setExtra0()
492 if (extra.length > 0xFFFF) { in setExtra0()
497 int len = extra.length; in setExtra0()
[all …]
DZipOutputStream.java391 int elen = getExtraLen(e.extra); in writeLOC()
462 writeExtra(e.extra); in writeLOC()
527 int elen = getExtraLen(e.extra); in writeCEN()
584 writeExtra(e.extra); in writeCEN()
650 private int getExtraLen(byte[] extra) { in getExtraLen() argument
651 if (extra == null) in getExtraLen()
654 int len = extra.length; in getExtraLen()
657 int tag = get16(extra, off); in getExtraLen()
658 int sz = get16(extra, off + 2); in getExtraLen()
676 private void writeExtra(byte[] extra) throws IOException { in writeExtra() argument
[all …]
DZipInputStream.java343 byte[] extra = new byte[len]; in readLOC()
344 readFully(extra, 0, len); in readLOC()
345 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
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipEntryTest.java106 byte[] extra = { 5, 7, 9 }; in testClone()
108 jarEntry.setExtra(extra); in testClone()
109 assertSame("Expected no defensive copy of extra", extra, jarEntry.getExtra()); in testClone()
113 assertNotSame(extra, clone.getExtra()); in testClone()
257 byte[] extra = makeString(11, "a").getBytes(); in testCommentAndExtraInSameOrder()
266 ze.setExtra(extra); in testCommentAndExtraInSameOrder()
274 ze.setExtra(extra); in testCommentAndExtraInSameOrder()
284 assertTrue(Arrays.equals(extra, zipFile.getEntry("x").getExtra())); in testCommentAndExtraInSameOrder()
287 assertTrue(Arrays.equals(extra, zipFile.getEntry("y").getExtra())); in testCommentAndExtraInSameOrder()
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DZipEntry.java43 byte[] extra, in ZipEntry() argument
132 public void setExtra(byte[] extra) { in setExtra() argument
136 void setExtra0(byte[] extra, boolean doZIP64) { in setExtra0() argument
188 byte[] extra; field in ZipEntry
/libcore/ojluni/src/main/native/
Dzip_util.c1035 ze->extra = NULL; in newEntry()
1067 char *extra = cen + CENHDR + nlen; in newEntry() local
1070 if ((ze->extra = malloc(elen + 2)) == NULL) goto Catch; in newEntry()
1071 ze->extra[0] = (unsigned char) elen; in newEntry()
1072 ze->extra[1] = (unsigned char) (elen >> 8); in newEntry()
1073 memcpy(ze->extra+2, extra, elen); in newEntry()
1078 jint sz = SH(extra, off + 2); in newEntry()
1079 if (SH(extra, off) == ZIP64_EXTID) { in newEntry()
1085 ze->size = LL(extra, off); in newEntry()
1092 ze->csize = LL(extra, off); in newEntry()
[all …]
DZipFile.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/annotations/mmodule/java/util/zip/
DZipEntry.annotated.java35 …ng compressedSize, long size, int compressionMethod, int xdostime, byte[] extra, long dataOffset) … in ZipEntry() argument
79 public void setExtra(byte[] extra) { throw new RuntimeException("Stub!"); } in setExtra() argument
/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/tools/docs/crypto/
DREADME6 a couple extra classes.
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java88 List<String> extra = new ArrayList<String>(); in test_Provider_getServices() local
137 extra.add("Unknown " + type + " " + algorithm + " " + providerName + "\n"); in test_Provider_getServices()
183 Collections.sort(extra); // sort so that its grouped by type in test_Provider_getServices()
185 Collections.EMPTY_LIST, extra); in test_Provider_getServices()