/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/ojluni/annotations/hiddenapi/java/util/zip/ |
D | CRC32.java | 37 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
|
D | Adler32.java | 37 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
|
/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/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()
|
/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
|
/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 | 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 | 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 | AtomicReferenceFieldUpdater.java | 130 public abstract boolean compareAndSet(T obj, V expect, V update); in compareAndSet() argument 148 public abstract boolean weakCompareAndSet(T obj, V expect, V update); in weakCompareAndSet() argument 420 public final boolean compareAndSet(T obj, V expect, V update) { in compareAndSet() argument 422 valueCheck(update); in compareAndSet() 423 return U.compareAndSwapObject(obj, offset, expect, update); in compareAndSet() 426 public final boolean weakCompareAndSet(T obj, V expect, V update) { in weakCompareAndSet() argument 429 valueCheck(update); in weakCompareAndSet() 430 return U.compareAndSwapObject(obj, offset, expect, update); in weakCompareAndSet()
|
D | AtomicLongFieldUpdater.java | 113 public abstract boolean compareAndSet(T obj, long expect, long update); in compareAndSet() argument 133 public abstract boolean weakCompareAndSet(T obj, long expect, long update); in weakCompareAndSet() argument 453 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument 455 return U.compareAndSwapLong(obj, offset, expect, update); in compareAndSet() 458 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument 460 return U.compareAndSwapLong(obj, offset, expect, update); in weakCompareAndSet() 594 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument 600 U.putLong(obj, offset, update); in compareAndSet() 605 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument 606 return compareAndSet(obj, 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 | 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 | 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/luni/src/main/java/libcore/io/ |
D | Libcore.java | 49 public static boolean compareAndSetOs(Os expect, Os update) { in compareAndSetOs() argument 50 Objects.requireNonNull(update); in compareAndSetOs() 57 os = update; in compareAndSetOs()
|
/libcore/luni/src/test/java/tests/targets/security/ |
D | MessageDigestTest.java | 93 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()
|