Home
last modified time | relevance | path

Searched refs:update (Results 1 – 25 of 95) sorted by relevance

1234

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DCRC32Test.java43 crc.update(Integer.MAX_VALUE); in test_getValue()
52 crc.update(byteEmpty); in test_getValue()
60 crc.update(1); in test_getValue()
77 crc.update(1); in test_reset()
95 crc.update(1); in test_updateI()
103 crc.update(Integer.MAX_VALUE); in test_updateI()
111 crc.update(Integer.MIN_VALUE); in test_updateI()
126 crc.update(byteArray); in test_update$B()
135 crc.update(byteEmpty); in test_update$B()
154 crc.update(byteArray, off, len); in test_update$BII()
[all …]
DAdler32Test.java43 adl.update(1); in test_getValue()
53 adl.update(Integer.MIN_VALUE); in test_getValue()
66 adl.update(1); in test_reset()
82 adl.update(1); in test_updateI()
88 adl.update(Integer.MAX_VALUE); in test_updateI()
95 adl.update(Integer.MIN_VALUE); in test_updateI()
110 adl.update(byteArray); in test_update$B()
118 adl.update(byteEmpty); in test_update$B()
137 adl.update(byteArray, off, len); in test_update$BII()
145 adl.update(byteArray, off, lenError); in test_update$BII()
[all …]
/libcore/ojluni/src/main/java/java/util/zip/
DChecksum.java42 public void update(int b); in update() method
57 default public void update(byte[] b) { in update() method
58 update(b, 0, b.length); in update()
68 public void update(byte[] b, int off, int len); in update() method
105 default public void update(ByteBuffer buffer) { in update() method
114 update(buffer.array(), pos + buffer.arrayOffset(), rem); in update()
120 update(b, 0, length); in update()
DAdler32.java60 public void update(int b) { in update() method in Adler32
61 adler = update(adler, b); in update()
73 public void update(byte[] b, int off, int len) { in update() method in Adler32
90 public void update(byte[] b) { in update() method in Adler32
104 public void update(ByteBuffer buffer) { in update() method in Adler32
124 update(b, 0, length); in update()
146 private static native int update(int adler, int b); in update() method in Adler32
DCRC32.java60 public void update(int b) { in update() method in CRC32
61 crc = update(crc, b); in update()
73 public void update(byte[] b, int off, int len) { in update() method in CRC32
90 public void update(byte[] b) { in update() method in CRC32
104 public void update(ByteBuffer buffer) { in update() method in CRC32
124 update(b, 0, length); in update()
148 private static native int update(int crc, int b); in update() method in CRC32
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DAdler32.java37 public void update(int b) { in update() method in Adler32
41 public void update(byte[] b, int off, int len) { in update() method in Adler32
45 public void update(byte[] b) { in update() method in Adler32
49 public void update(java.nio.ByteBuffer buffer) { in update() method in Adler32
62 private static native int update(int adler, int b); in update() method in Adler32
DCRC32.java37 public void update(int b) { in update() method in CRC32
41 public void update(byte[] b, int off, int len) { in update() method in CRC32
45 public void update(byte[] b) { in update() method in CRC32
49 public void update(java.nio.ByteBuffer buffer) { in update() method in CRC32
62 private static native int update(int crc, int b); in update() method in CRC32
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidChecksumTest.java44 adler.update(values); in adler32Test()
50 adler.update(values[i]); in adler32Test()
59 crc.update(values); in cRC32Test()
65 crc.update(values[i]); in cRC32Test()
85 adler.update(bytes); in wrongChecksumWithAdler32Test()
89 adler.update(bytes[i]); in wrongChecksumWithAdler32Test()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DNullCipherTest.java102 byte [] r = c.update(b); in testUpdatebyteArray()
112 byte [] r = c.update(b, 0, 5); in testUpdatebyteArrayintint()
116 r = c.update(b, 1, 3); in testUpdatebyteArrayintint()
129 c.update(b, 0, 5, r); in testUpdatebyteArrayintintbyteArray()
139 c.update(b, 0, 5, r, 0); in testUpdatebyteArrayintintbyteArrayint()
192 new NullCipher().update(new byte[1], 1, Integer.MAX_VALUE); in testUpdatebyteArrayintint2()
214 new NullCipher().update(new byte[1], 1, Integer.MAX_VALUE, in testDoFinalbyteArrayintintbyteArray2()
227 new NullCipher().update(new byte[1], 0, 1, new byte[0]); in testDoFinalbyteArrayintintbyteArray3()
249 new NullCipher().update(new byte[1], 1, Integer.MAX_VALUE, in testDoFinalbyteArrayintintbyteArrayint2()
262 new NullCipher().update(new byte[1], 0, 1, in testDoFinalbyteArrayintintbyteArrayint3()
DMacTest.java328 macs[i].update((byte)0); in testMac09()
333 macs[i].update(buf); in testMac09()
338 macs[i].update(buf, 0, 3); in testMac09()
343 macs[i].update(bBuf); in testMac09()
467 macs[i].update(upd); in testMac12()
492 macs[i].update(b, -10, b.length); in testMac13()
497 macs[i].update(b, 0, -10); in testMac13()
502 macs[i].update(b, 0, b.length + 1); in testMac13()
507 macs[i].update(b, b.length - 1, 2); in testMac13()
534 macs[i].update(upd1, 2, 4); in testMac14()
[all …]
DCipherTest.java348 byte[] output = c.update(input, 0, bytesRead); in test_update$BII()
371 cipher.update(new byte[64], 0, 32); in test_update$BII()
406 byte[] output = c.update(input, 0, bytesRead); in test_doFinal()
431 c.update(b, 0, 10, b1, 5); in test_doFinal()
454 c.update(b1, 0, 24, b, 0); in test_doFinal()
491 c.update(b, 0, 10, b1, 5); in testUpdatebyteArrayintintbyteArrayint()
498 c.update(b, 0, 10, b1, 5); in testUpdatebyteArrayintintbyteArrayint()
504 c.update(b, 0, 10, b1, 5); in testUpdatebyteArrayintintbyteArrayint()
841 c.update(bInput, bOutput); in test_updateLjava_nio_ByteBufferLjava_nio_ByteBuffer()
845 c.update(bInput, bOutput); in test_updateLjava_nio_ByteBufferLjava_nio_ByteBuffer()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DMessageDigestBenchmark.java68 digest.update(DATA, 0, DATA_SIZE); in time()
77 digest.update(LARGE_DATA, 0, LARGE_DATA_SIZE); in timeLargeArray()
86 digest.update(LARGE_DATA, LARGE_DATA_SIZE / 2, DATA_SIZE); in timeSmallChunkOfLargeArray()
97 digest.update(SMALL_BUFFER); in timeSmallByteBuffer()
108 digest.update(SMALL_DIRECT_BUFFER); in timeSmallDirectByteBuffer()
119 digest.update(LARGE_BUFFER); in timeLargeByteBuffer()
130 digest.update(LARGE_DIRECT_BUFFER); in timeLargeDirectByteBuffer()
141 digest.update(LARGE_BUFFER); in timeSmallChunkOfLargeByteBuffer()
152 digest.update(LARGE_DIRECT_BUFFER); in timeSmallChunkOfLargeDirectByteBuffer()
DChecksumBenchmark.java27 adler.update(bytes); in timeAdler_block()
33 adler.update(1); in timeAdler_byte()
40 crc.update(bytes); in timeCrc_block()
46 crc.update(1); in timeCrc_byte()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DMessageDigest1Test.java50 md.update((byte) 1); in test_updateLB()
60 md.update(bytes, 1, 2); in test_updateLB$LILI()
66 md.update(null, 0, 1); in test_updateLB$LILI()
72 md.update(bytes, 0, bytes.length + 1); in test_updateLB$LILI()
78 md.update(bytes, Integer.MAX_VALUE, 1); in test_updateLB$LILI()
94 md.update(bytes, offset, len); in test_updateLB$LILI()
104 md.update(b); in test_updateLB$()
117 md.update(byteBuffer); in test_updateLjava_nio_ByteBuffer()
250 md.update(bytes, -1, 1); in testSHAProvider()
255 md.update(bytes, 1, -1); in testSHAProvider()
DSignatureTest.java341 s.update((byte)1); in testUpdatebyte()
347 s.update((byte) 1); in testUpdatebyte()
349 s.update((byte) 1); in testUpdatebyte()
356 sig.update((byte) 42); in testUpdatebyte()
370 s.update(b); in testUpdatebyteArray()
376 s.update(b); in testUpdatebyteArray()
378 s.update(b); in testUpdatebyteArray()
385 sig.update(b); in testUpdatebyteArray()
393 sig.update((byte[])null); in testUpdatebyteArray()
409 s.update(b, 0, 3); in testUpdatebyteArrayintint()
[all …]
DSignature2Test.java339 sig.update(MESSAGE.getBytes()); in test_sign()
359 sig.update(bytes); in test_update$B()
363 sig2.update(MESSAGE.getBytes()); in test_update$B()
377 sig.update(bytes, 0, bytes.length); in test_update$BII()
385 sig.update(bytes, 0, bytes.length); in test_update$BII()
387 sig.update(bytes, bytes.length - 2, 2); in test_update$BII()
390 sig.update(bytes, bytes.length -3, 4); in test_update$BII()
396 sig.update(null, 0, 5); in test_update$BII()
409 sig.update(MESSAGE.getBytes()[0]); in test_updateB()
421 sig.update(buffer); in test_updateLjava_nio_ByteBuffer()
[all …]
/libcore/ojluni/src/test/java/util/zip/
DTestChecksum.java49 public void update(int b) { in update() method in TestChecksum.MyCRC32C
50 crc32c.update(b); in update()
54 public void update(byte[] b, int off, int len) { in update() method in TestChecksum.MyCRC32C
55 crc32c.update(b, off, len); in update()
DChecksumBase.java57 checksum.update(bits); in testBytes()
64 checksum.update(BYTES_123456789); in testByteArray()
71 checksum.update(bb); in testWrappedByteBuffer()
78 checksum.update(bb); in testReadonlyByteBuffer()
87 checksum.update(bb); in testDirectByteBuffer()
104 checksum.update(unaligned_bytes_123456789, i, BYTES_123456789.length); in testByteArrayOffset()
118 checksum.update(bb); in testDirectByteBufferOffset()
133 checksum.update(bb); in testLittleEndianDirectByteBufferOffset()
146 checksum.update(bb); in testWrappedByteBufferOffset()
160 checksum.update(bb); in testLittleEndianWrappedByteBufferOffset()
[all …]
/libcore/luni/src/main/java/libcore/io/
DLibcore.java49 public static boolean compareAndSetOs(Os expect, Os update) { in compareAndSetOs() argument
50 Objects.requireNonNull(update); in compareAndSetOs()
57 os = update; in compareAndSetOs()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicReferenceFieldUpdater.java136 public abstract boolean compareAndSet(T obj, V expect, V update); in compareAndSet() argument
154 public abstract boolean weakCompareAndSet(T obj, V expect, V update); in weakCompareAndSet() argument
452 public final boolean compareAndSet(T obj, V expect, V update) { in compareAndSet() argument
454 valueCheck(update); in compareAndSet()
455 return U.compareAndSetReference(obj, offset, expect, update); in compareAndSet()
458 public final boolean weakCompareAndSet(T obj, V expect, V update) { in weakCompareAndSet() argument
461 valueCheck(update); in weakCompareAndSet()
462 return U.compareAndSetReference(obj, offset, expect, update); in weakCompareAndSet()
DAtomicLongFieldUpdater.java117 public abstract boolean compareAndSet(T obj, long expect, long update); in compareAndSet() argument
135 public abstract boolean weakCompareAndSet(T obj, long expect, long update); in weakCompareAndSet() argument
472 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument
474 return U.compareAndSetLong(obj, offset, expect, update); in compareAndSet()
477 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument
479 return U.compareAndSetLong(obj, offset, expect, update); in weakCompareAndSet()
624 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument
630 U.putLong(obj, offset, update); in compareAndSet()
635 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument
636 return compareAndSet(obj, expect, update); in weakCompareAndSet()
/libcore/luni/src/test/java/tests/targets/security/
DMessageDigestTest.java93 digest.update(buf, 0, read); in testMessageDigest1()
111 digest.update((byte)val); in testMessageDigest2()
148 digest.update(source1.getBytes(), 0, source1.length()); in testfips180_2_singleblock()
168 digest.update(source2.getBytes(), 0, source2.length()); in testfips180_2_multiblock()
180 digest.update(source3.getBytes(), 0, source3.length()); in testfips180_2_longMessage()
/libcore/ojluni/annotations/mmodule/javax/crypto/
DMac.annotated.java61 public final void update(byte input) throws java.lang.IllegalStateException { throw new RuntimeExce… in update() method in Mac
63 public final void update(byte[] input) throws java.lang.IllegalStateException { throw new RuntimeEx… in update() method in Mac
65 public final void update(byte[] input, int offset, int len) throws java.lang.IllegalStateException … in update() method in Mac
67 public final void update(java.nio.ByteBuffer input) { throw new RuntimeException("Stub!"); } in update() method in Mac
/libcore/ojluni/annotations/sdk/nullability/java/security/
DMessageDigest.annotated.java47 public void update(byte input) { throw new RuntimeException("Stub!"); } in update() method in MessageDigest
49 public void update(byte @libcore.util.NonNull [] input, int offset, int len) { throw new RuntimeExc… in update() method in MessageDigest
51 public void update(byte @libcore.util.NonNull [] input) { throw new RuntimeException("Stub!"); } in update() method in MessageDigest
53 public final void update(@libcore.util.NonNull java.nio.ByteBuffer input) { throw new RuntimeExcept… in update() method in MessageDigest
/libcore/ojluni/src/main/java/sun/security/util/
DManifestDigester.java216 md.update(rawBytes, offset, lengthWithBlankLine); in digest()
237 md.update(bytes, start, i-start-1); in doOldStyle()
243 md.update(bytes, start, i-start); in doOldStyle()
252 md.update(rawBytes, offset, length); in digestWorkaround()
267 md.update(rawBytes, 0, rawBytes.length); in manifestDigest()

1234