/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | CRC32Test.java | 43 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 …]
|
D | Adler32Test.java | 43 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/luni/src/test/java/libcore/java/util/zip/ |
D | OldAndroidChecksumTest.java | 44 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/ojluni/src/main/java/java/util/zip/ |
D | Adler32.java | 59 public void update(int b) { in update() method in Adler32 60 adler = update(adler, b); in update() 71 public void update(byte[] b, int off, int len) { in update() method in Adler32 86 public void update(byte[] b) { in update() method in Adler32 104 public void update(ByteBuffer buffer) { in update() method in Adler32 137 private native static int update(int adler, int b); in update() method in Adler32
|
D | CRC32.java | 57 public void update(int b) { in update() method in CRC32 58 crc = update(crc, b); in update() 69 public void update(byte[] b, int off, int len) { in update() method in CRC32 84 public void update(byte[] b) { in update() method in CRC32 101 public void update(ByteBuffer buffer) { in update() method in CRC32 134 private native static int update(int crc, int b); in update() method in CRC32
|
D | Checksum.java | 40 public void update(int b); in update() method 48 public void update(byte[] b, int off, int len); in update() method
|
D | CheckedOutputStream.java | 61 cksum.update(b); in write() 74 cksum.update(b, off, len); in write()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | NullCipherTest.java | 102 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()
|
D | MacTest.java | 319 macs[i].update((byte)0); in testMac09() 324 macs[i].update(buf); in testMac09() 329 macs[i].update(buf, 0, 3); in testMac09() 334 macs[i].update(bBuf); in testMac09() 458 macs[i].update(upd); in testMac12() 483 macs[i].update(b, -10, b.length); in testMac13() 488 macs[i].update(b, 0, -10); in testMac13() 493 macs[i].update(b, 0, b.length + 1); in testMac13() 498 macs[i].update(b, b.length - 1, 2); in testMac13() 525 macs[i].update(upd1, 2, 4); in testMac14() [all …]
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | SignatureTest.java | 383 s.update(null /* outbuf */, 1 /* offset */, 1 /* length */); in testSignature_updateArray_nullArray_throws() 393 s.update(new byte[4], -1 /* offset */, 1 /* length */); in testSignature_updateArray_negativeOffset_throws() 403 s.update(new byte[4], 1 /* offset */ , -1 /* length */); in testSignature_updateArray_negativeLength_throws() 414 s.update(new byte[4], 3 /* offset */ , 2 /* length */); in testSignature_updateArray_invalidLengths_throws() 423 s.update(new byte[4], 0 /* offset */ , 1 /* length */); in testSignature_updateArray_wrongState_throws() 432 s.update(new byte[4], 0 /* offset */ , 1 /* length */); in testSignature_updateArray_correctStateAndParameters_ok() 531 sig.update(DATA); in test_Signature() 537 sig.update(DATA); in test_Signature() 541 sig.update(DATA); in test_Signature() 605 sig.update(CONTENT); in test18566_AlgorithmOid_MissingNull_Failure() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | MessageDigestBenchmark.java | 68 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()
|
D | ChecksumBenchmark.java | 27 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/ |
D | MessageDigest1Test.java | 50 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()
|
D | SignatureTest.java | 341 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 …]
|
D | Signature2Test.java | 339 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/main/java/java/util/concurrent/atomic/ |
D | AtomicBoolean.java | 99 public final boolean compareAndSet(boolean expect, boolean update) { in compareAndSet() argument 102 (update ? 1 : 0)); in compareAndSet() 117 public boolean weakCompareAndSet(boolean expect, boolean update) { in weakCompareAndSet() argument 120 (update ? 1 : 0)); in weakCompareAndSet()
|
D | AtomicReferenceFieldUpdater.java | 131 public abstract boolean compareAndSet(T obj, V expect, V update); in compareAndSet() argument 149 public abstract boolean weakCompareAndSet(T obj, V expect, V update); in weakCompareAndSet() argument 409 public final boolean compareAndSet(T obj, V expect, V update) { in compareAndSet() argument 411 valueCheck(update); in compareAndSet() 412 return U.compareAndSwapObject(obj, offset, expect, update); in compareAndSet() 415 public final boolean weakCompareAndSet(T obj, V expect, V update) { in weakCompareAndSet() argument 418 valueCheck(update); in weakCompareAndSet() 419 return U.compareAndSwapObject(obj, offset, expect, update); in weakCompareAndSet()
|
D | AtomicLongArray.java | 163 public final boolean compareAndSet(int i, long expect, long update) { in compareAndSet() argument 164 return compareAndSetRaw(checkedByteOffset(i), expect, update); in compareAndSet() 167 private boolean compareAndSetRaw(long offset, long expect, long update) { in compareAndSetRaw() argument 168 return U.compareAndSwapLong(array, offset, expect, update); in compareAndSetRaw() 184 public final boolean weakCompareAndSet(int i, long expect, long update) { in weakCompareAndSet() argument 185 return compareAndSet(i, expect, update); in weakCompareAndSet()
|
D | AtomicIntegerArray.java | 164 public final boolean compareAndSet(int i, int expect, int update) { in compareAndSet() argument 165 return compareAndSetRaw(checkedByteOffset(i), expect, update); in compareAndSet() 168 private boolean compareAndSetRaw(long offset, int expect, int update) { in compareAndSetRaw() argument 169 return U.compareAndSwapInt(array, offset, expect, update); in compareAndSetRaw() 185 public final boolean weakCompareAndSet(int i, int expect, int update) { in weakCompareAndSet() argument 186 return compareAndSet(i, expect, update); in weakCompareAndSet()
|
D | AtomicInteger.java | 133 public final boolean compareAndSet(int expect, int update) { in compareAndSet() argument 134 return U.compareAndSwapInt(this, VALUE, expect, update); in compareAndSet() 149 public final boolean weakCompareAndSet(int expect, int update) { in weakCompareAndSet() argument 150 return U.compareAndSwapInt(this, VALUE, expect, update); in weakCompareAndSet()
|
D | AtomicReference.java | 117 public final boolean compareAndSet(V expect, V update) { in compareAndSet() argument 118 return U.compareAndSwapObject(this, VALUE, expect, update); in compareAndSet() 133 public final boolean weakCompareAndSet(V expect, V update) { in weakCompareAndSet() argument 134 return U.compareAndSwapObject(this, VALUE, expect, update); in weakCompareAndSet()
|
D | AtomicReferenceArray.java | 176 public final boolean compareAndSet(int i, E expect, E update) { in compareAndSet() argument 177 return compareAndSetRaw(checkedByteOffset(i), expect, update); in compareAndSet() 180 private boolean compareAndSetRaw(long offset, E expect, E update) { in compareAndSetRaw() argument 181 return U.compareAndSwapObject(array, offset, expect, update); in compareAndSetRaw() 197 public final boolean weakCompareAndSet(int i, E expect, E update) { in weakCompareAndSet() argument 198 return compareAndSet(i, expect, update); in weakCompareAndSet()
|
D | AtomicLongFieldUpdater.java | 114 public abstract boolean compareAndSet(T obj, long expect, long update); in compareAndSet() argument 134 public abstract boolean weakCompareAndSet(T obj, long expect, long update); in weakCompareAndSet() argument 443 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument 445 return U.compareAndSwapLong(obj, offset, expect, update); in compareAndSet() 448 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument 450 return U.compareAndSwapLong(obj, offset, expect, update); in weakCompareAndSet() 573 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument 579 U.putLong(obj, offset, update); in compareAndSet() 584 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument 585 return compareAndSet(obj, expect, update); in weakCompareAndSet()
|
D | AtomicLong.java | 149 public final boolean compareAndSet(long expect, long update) { in compareAndSet() argument 150 return U.compareAndSwapLong(this, VALUE, expect, update); in compareAndSet() 165 public final boolean weakCompareAndSet(long expect, long update) { in weakCompareAndSet() argument 166 return U.compareAndSwapLong(this, VALUE, expect, update); in weakCompareAndSet()
|
/libcore/support/src/test/java/tests/security/ |
D | MessageDigestTest.java | 94 digest.update(buf, 0, read); in testMessageDigest1() 112 digest.update((byte)val); in testMessageDigest2() 149 digest.update(source1.getBytes(), 0, source1.length()); in testfips180_2_singleblock() 165 digest.update(source2.getBytes(), 0, source2.length()); in testfips180_2_multiblock() 181 digest.update(source3.getBytes(), 0, source3.length()); in testfips180_2_longMessage()
|