/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | Checksum.java | 38 * @param b the byte to update the checksum with 40 public void update(int b); method in interface:Checksum 44 * @param b the byte array to update the checksum with 46 * @param len the number of bytes to use for the update 48 public void update(byte[] b, int off, int len); method in interface:Checksum
|
H A D | CRC32.java | 49 * @param b the byte to update the checksum with 51 public void update(int b) { method in class:CRC32 52 crc = update(crc, b); 58 public void update(byte[] b, int off, int len) { method in class:CRC32 71 * @param b the array of bytes to update the checksum with 73 public void update(byte[] b) { method in class:CRC32 91 private native static int update(int crc, int b); method in class:CRC32
|
H A D | Adler32.java | 53 * @param b the byte to update the checksum with 55 public void update(int b) { method in class:Adler32 56 adler = update(adler, b); 62 public void update(byte[] b, int off, int len) { method in class:Adler32 75 * @param b the byte array to update the checksum with 77 public void update(byte[] b) { method in class:Adler32 91 * @param buffer the ByteBuffer to update the checksum with 93 private void update(ByteBuffer buffer) { method in class:Adler32 130 public void update(Adler32 adler32, ByteBuffer buf) { 131 adler32.update(bu 136 private native static int update(int adler, int b); method in class:Adler32 [all...] |
H A D | CheckedOutputStream.java | 61 cksum.update(b); 74 cksum.update(b, off, len);
|
H A D | CheckedInputStream.java | 61 cksum.update(b); 84 cksum.update(buf, off, len);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Observer.java | 46 void update(Observable o, Object arg); 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/tzdata/tools/ |
H A D | createTzDataBundle.sh | 6 # See libcore.tzdata.update.tools.CreateTzDataBundle for more information. 8 TOOLS_DIR=src/main/libcore/tzdata/update/tools 9 UPDATE_DIR=../update/src/main/libcore/tzdata/update 25 java -cp ${GEN_DIR} libcore.tzdata.update.tools.CreateTzDataBundle $@
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | ChecksumBenchmark.java | 27 adler.update(bytes); 33 adler.update(1); 40 crc.update(bytes); 46 crc.update(1);
|
H A D | MessageDigestBenchmark.java | 44 digest.update(DATA, 0, DATA_SIZE);
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicBoolean.java | 66 * @param update the new value 70 public final boolean compareAndSet(boolean expect, boolean update) { argument 73 (update ? 1 : 0)); 85 * @param update the new value 88 public boolean weakCompareAndSet(boolean expect, boolean update) { argument 91 (update ? 1 : 0));
|
H A D | AtomicIntegerArray.java | 131 * @param update the new value 135 public final boolean compareAndSet(int i, int expect, int update) { argument 136 return compareAndSetRaw(checkedByteOffset(i), expect, update); 139 private boolean compareAndSetRaw(long offset, int expect, int update) { argument 140 return U.compareAndSwapInt(array, offset, expect, update); 153 * @param update the new value 156 public final boolean weakCompareAndSet(int i, int expect, int update) { argument 157 return compareAndSet(i, expect, update); 271 * argument, and the given update as the second argument. 274 * @param x the update valu [all...] |
H A D | AtomicLongArray.java | 130 * @param update the new value 134 public final boolean compareAndSet(int i, long expect, long update) { argument 135 return compareAndSetRaw(checkedByteOffset(i), expect, update); 138 private boolean compareAndSetRaw(long offset, long expect, long update) { argument 139 return U.compareAndSwapLong(array, offset, expect, update); 152 * @param update the new value 155 public final boolean weakCompareAndSet(int i, long expect, long update) { argument 156 return compareAndSet(i, expect, update); 270 * argument, and the given update as the second argument. 273 * @param x the update valu [all...] |
H A D | AtomicInteger.java | 100 * @param update the new value 104 public final boolean compareAndSet(int expect, int update) { argument 105 return U.compareAndSwapInt(this, VALUE, expect, update); 117 * @param update the new value 120 public final boolean weakCompareAndSet(int expect, int update) { argument 121 return U.compareAndSwapInt(this, VALUE, expect, update); 225 * and the given update as the second argument. 227 * @param x the update value 249 * and the given update as the second argument. 251 * @param x the update valu [all...] |
H A D | AtomicLong.java | 116 * @param update the new value 120 public final boolean compareAndSet(long expect, long update) { argument 121 return U.compareAndSwapLong(this, VALUE, expect, update); 133 * @param update the new value 136 public final boolean weakCompareAndSet(long expect, long update) { argument 137 return U.compareAndSwapLong(this, VALUE, expect, update); 241 * and the given update as the second argument. 243 * @param x the update value 265 * and the given update as the second argument. 267 * @param x the update valu [all...] |
H A D | AtomicReference.java | 84 * @param update the new value 88 public final boolean compareAndSet(V expect, V update) { argument 89 return U.compareAndSwapObject(this, VALUE, expect, update); 101 * @param update the new value 104 public final boolean weakCompareAndSet(V expect, V update) { argument 105 return U.compareAndSwapObject(this, VALUE, expect, update); 164 * and the given update as the second argument. 166 * @param x the update value 188 * and the given update as the second argument. 190 * @param x the update valu [all...] |
/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/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/ojluni/src/main/java/sun/security/ssl/ |
H A D | RSASignature.java | 139 md5.update(b); 140 sha.update(b); 146 md5.update(b, off, len); 147 sha.update(b, off, len); 165 rawRsa.update(getDigest()); 175 rawRsa.update(getDigest());
|
/libcore/ojluni/src/main/java/java/security/ |
H A D | DigestInputStream.java | 47 * results in an update on the message digest. But when it is off, 114 * will then call <code>update</code> on the message digest associated 121 * @see MessageDigest#update(byte) 126 digest.update((byte)ch); 138 * {@link #on(boolean) on}), this method will then call <code>update</code> 158 * @see MessageDigest#update(byte[], int, int) 163 digest.update(b, off, result); 171 * update on the message digest. But when it is off, the message
|
H A D | DigestOutputStream.java | 47 * an update on the message digest. But when it is off, the message 102 * <code>update</code> on the message digest associated with this 112 * @see MessageDigest#update(byte) 116 digest.update((byte)b); 125 * {@link #on(boolean) on}), this method calls <code>update</code> 142 * @see MessageDigest#update(byte[], int, int) 146 digest.update(b, off, len); 154 * update on the message digest. But when it is off, the message
|
/libcore/support/src/test/java/tests/security/ |
H A D | SignatureHelper.java | 45 signature.update(plainData.getBytes()); 49 signature.update(plainData.getBytes());
|
/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...] |