/libcore/luni/src/main/java/java/util/zip/ |
H A D | Checksum.java | 48 public void update(byte[] buf, int off, int nbytes); method in interface:Checksum 54 * the byte to update the checksum with. 56 public void update(int val); method in interface:Checksum
|
H A D | Adler32.java | 52 * the byte to update checksum with. 54 public void update(int i) { method in class:Adler32 62 * bytes to update checksum with. 64 public void update(byte[] buf) { method in class:Adler32 65 update(buf, 0, buf.length); 72 public void update(byte[] buf, int offset, int byteCount) { method in class:Adler32
|
H A D | CRC32.java | 53 * represents the byte to update the checksum. 55 public void update(int val) { method in class:CRC32 63 * the buffer holding the data to update the checksum with. 65 public void update(byte[] buf) { method in class:CRC32 66 update(buf, 0, buf.length); 73 public void update(byte[] buf, int offset, int byteCount) { method in class:CRC32
|
H A D | CheckedOutputStream.java | 69 check.update(val); 89 check.update(buf, off, nbytes);
|
H A D | CheckedInputStream.java | 65 check.update(x); 84 check.update(buffer, byteOffset, bytesRead);
|
/libcore/luni/src/main/java/java/util/ |
H A D | Observer.java | 39 void update(Observable observable, Object data); method in interface:Observer
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | Adler32Test.java | 42 adl.update(1); 45 assertEquals("update(int) failed to update the checksum to the correct value ", 52 adl.update(Integer.MIN_VALUE); 55 assertEquals("update(min) failed to update the checksum to the correct value ", 65 adl.update(1); 68 assertEquals("update(int) failed to update the checksum to the correct value ", 76 * java.util.zip.Adler32#update(in [all...] |
H A D | CRC32Test.java | 42 crc.update(Integer.MAX_VALUE); 46 assertEquals("update(max) failed to update the checksum to the correct value ", 51 crc.update(byteEmpty); 55 assertEquals("update(byte[]) failed to update the checksum to the correct value ", 59 crc.update(1); 63 // assertEquals("update(int) failed to update the checksum to the correct 76 crc.update( [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | ChecksumBenchmark.java | 30 adler.update(bytes); 36 adler.update(1); 43 crc.update(bytes); 49 crc.update(1);
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | OldAndroidChecksumTest.java | 44 adler.update(values); 50 adler.update(values[i]); 59 crc.update(values); 65 crc.update(values[i]); 85 adler.update(bytes); 89 adler.update(bytes[i]);
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicBoolean.java | 65 * @param update the new value 69 public final boolean compareAndSet(boolean expect, boolean update) { argument 71 int u = update ? 1 : 0; 84 * @param update the new value 87 public boolean weakCompareAndSet(boolean expect, boolean update) { argument 89 int u = update ? 1 : 0;
|
H A D | AtomicReference.java | 80 * @param update the new value 84 public final boolean compareAndSet(V expect, V update) { argument 85 return unsafe.compareAndSwapObject(this, valueOffset, expect, update); 97 * @param update the new value 100 public final boolean weakCompareAndSet(V expect, V update) { argument 101 return unsafe.compareAndSwapObject(this, valueOffset, expect, update);
|
H A D | AtomicReferenceFieldUpdater.java | 31 * boolean compareAndSetLeft(Node expect, Node update) { 32 * return leftUpdater.compareAndSet(this, expect, update); 87 * @param update the new value 90 public abstract boolean compareAndSet(T obj, V expect, V update); argument 105 * @param update the new value 108 public abstract boolean weakCompareAndSet(T obj, V expect, V update); argument 164 * Internal type checks within all update methods contain 247 void updateCheck(T obj, V update) { argument 249 (update != null && vclass != null && !vclass.isInstance(update))) 255 compareAndSet(T obj, V expect, V update) argument 263 weakCompareAndSet(T obj, V expect, V update) argument [all...] |
H A D | AtomicIntegerArray.java | 133 * @param update the new value 137 public final boolean compareAndSet(int i, int expect, int update) { argument 138 return compareAndSetRaw(checkedByteOffset(i), expect, update); 141 private boolean compareAndSetRaw(long offset, int expect, int update) { argument 142 return unsafe.compareAndSwapInt(array, offset, expect, update); 155 * @param update the new value 158 public final boolean weakCompareAndSet(int i, int expect, int update) { argument 159 return compareAndSet(i, expect, update);
|
H A D | AtomicLongArray.java | 132 * @param update the new value 136 public final boolean compareAndSet(int i, long expect, long update) { argument 137 return compareAndSetRaw(checkedByteOffset(i), expect, update); 140 private boolean compareAndSetRaw(long offset, long expect, long update) { argument 141 return unsafe.compareAndSwapLong(array, offset, expect, update); 154 * @param update the new value 157 public final boolean weakCompareAndSet(int i, long expect, long update) { argument 158 return compareAndSet(i, expect, update);
|
H A D | AtomicInteger.java | 101 * @param update the new value 105 public final boolean compareAndSet(int expect, int update) { argument 106 return unsafe.compareAndSwapInt(this, valueOffset, expect, update); 118 * @param update the new value 121 public final boolean weakCompareAndSet(int expect, int update) { argument 122 return unsafe.compareAndSwapInt(this, valueOffset, expect, update);
|
H A D | AtomicLong.java | 115 * @param update the new value 119 public final boolean compareAndSet(long expect, long update) { argument 120 return unsafe.compareAndSwapLong(this, valueOffset, expect, update); 132 * @param update the new value 135 public final boolean weakCompareAndSet(long expect, long update) { argument 136 return unsafe.compareAndSwapLong(this, valueOffset, expect, update);
|
H A D | AtomicLongFieldUpdater.java | 70 * @param update the new value 75 public abstract boolean compareAndSet(T obj, long expect, long update); argument 90 * @param update the new value 95 public abstract boolean weakCompareAndSet(T obj, long expect, long update); argument 292 public boolean compareAndSet(T obj, long expect, long update) { argument 294 return unsafe.compareAndSwapLong(obj, offset, expect, update); 297 public boolean weakCompareAndSet(T obj, long expect, long update) { argument 299 return unsafe.compareAndSwapLong(obj, offset, expect, update); 386 public boolean compareAndSet(T obj, long expect, long update) { argument 392 unsafe.putLong(obj, offset, update); 397 weakCompareAndSet(T obj, long expect, long update) argument [all...] |
H A D | AtomicReferenceArray.java | 147 * @param update the new value 151 public final boolean compareAndSet(int i, E expect, E update) { argument 152 return compareAndSetRaw(checkedByteOffset(i), expect, update); 155 private boolean compareAndSetRaw(long offset, E expect, E update) { argument 156 return unsafe.compareAndSwapObject(array, offset, expect, update); 169 * @param update the new value 172 public final boolean weakCompareAndSet(int i, E expect, E update) { argument 173 return compareAndSet(i, expect, update);
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | NullCipherTest.java | 98 * Class under test for byte[] update(byte[]) 102 byte [] r = c.update(b); 108 * Class under test for byte[] update(byte[], int, int) 112 byte [] r = c.update(b, 0, 5); 116 r = c.update(b, 1, 3); 124 * Class under test for int update(byte[], int, int, byte[]) 129 c.update(b, 0, 5, r); 134 * Class under test for int update(byte[], int, int, byte[], int) 139 c.update(b, 0, 5, r, 0); 187 * Class under test for byte[] update(byt [all...] |
/libcore/luni/src/main/java/java/security/ |
H A D | DigestInputStream.java | 88 // update digest only if 92 digest.update((byte)byteRead); 114 // update digest only if 118 digest.update(buffer, byteOffset, bytesRead);
|
H A D | DigestOutputStream.java | 82 // update digest only if digest functionality is on 84 digest.update((byte)b); 105 // update digest only if digest functionality is on 107 digest.update(b, off, len);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | SignatureTest.java | 335 * Class under test for void update(byte) 340 s.update((byte)1); 346 s.update((byte) 1); 348 s.update((byte) 1); 351 assertTrue("update() failed", s.runEngineUpdate1); 355 sig.update((byte) 42); 363 * Class under test for void update(byte[]) 369 s.update(b); 375 s.update(b); 377 s.update( [all...] |
H A D | MessageDigest1Test.java | 46 * java.security.MessageDigest#update(byte) 50 md.update((byte) 1); 55 * java.security.MessageDigest#update(byte[], int, int) 60 md.update(bytes, 1, 2); 66 md.update(null, 0, 1); 72 md.update(bytes, 0, bytes.length + 1); 78 md.update(bytes, Integer.MAX_VALUE, 1); 94 md.update(bytes, offset, len); 99 * java.security.MessageDigest#update(byte[]) 104 md.update( [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | OldObserverTest.java | 28 public void update(Observable observed, Object arg) { method in class:OldObserverTest.Mock_Observer
|