Searched refs:update (Results 1 - 25 of 68) sorted by relevance

123

/libcore/luni/src/main/java/java/util/zip/
H A DChecksum.java48 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 DAdler32.java52 * 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 DCRC32.java53 * 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 DCheckedOutputStream.java69 check.update(val);
89 check.update(buf, off, nbytes);
H A DCheckedInputStream.java65 check.update(x);
84 check.update(buffer, byteOffset, bytesRead);
/libcore/luni/src/main/java/java/util/
H A DObserver.java39 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 DAdler32Test.java42 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 DCRC32Test.java42 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 DChecksumBenchmark.java30 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 DOldAndroidChecksumTest.java44 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 DAtomicBoolean.java65 * @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 DAtomicReference.java80 * @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 DAtomicReferenceFieldUpdater.java31 * 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 DAtomicIntegerArray.java133 * @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 DAtomicLongArray.java132 * @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 DAtomicInteger.java101 * @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 DAtomicLong.java115 * @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 DAtomicLongFieldUpdater.java70 * @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 DAtomicReferenceArray.java147 * @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 DNullCipherTest.java98 * 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 DDigestInputStream.java88 // update digest only if
92 digest.update((byte)byteRead);
114 // update digest only if
118 digest.update(buffer, byteOffset, bytesRead);
H A DDigestOutputStream.java82 // 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 DSignatureTest.java335 * 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 DMessageDigest1Test.java46 * 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 DOldObserverTest.java28 public void update(Observable observed, Object arg) { method in class:OldObserverTest.Mock_Observer

Completed in 2940 milliseconds

123