Searched refs:update (Results 1 - 25 of 69) 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);
91 check.update(buf, off, x);
/libcore/luni/src/main/java/java/util/
H A DObserver.java39 void update(Observable observable, Object data); method in interface:Observer
/libcore/luni/src/main/java/java/net/
H A DExtendedResponseCache.java50 void update(CacheResponse conditionalCacheHit, HttpURLConnection httpConnection); method in interface:ExtendedResponseCache
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DConnectionStateSSLv3.java122 md5.update(client_key);
123 md5.update(clientRandom);
124 md5.update(serverRandom);
127 md5.update(server_key);
128 md5.update(serverRandom);
129 md5.update(clientRandom);
135 md5.update(clientRandom);
136 md5.update(serverRandom);
138 md5.update(serverRandom);
139 md5.update(clientRando
[all...]
H A DPRF.java81 sha.update(pref);
82 sha.update(secret);
83 sha.update(seed);
84 md5.update(secret);
85 md5.update(sha.digest());
111 // and to call HMAC.update on cancatenation, than twice call for
113 // time(HMAC.update(label+seed))
114 // < time(HMAC.update(label)) + time(HMAC.update(seed))
156 md5_mac.update(str_byt
[all...]
H A DDigitalSignature.java37 * specification, 7.4.3. It allow to init, update and sign hash. Hash algorithm
136 public void update(byte[] data) { method in class:DigitalSignature
138 sha.update(data);
141 md5.update(data);
173 signature.update(md5_hash);
175 cipher.update(md5_hash);
184 signature.update(sha_hash);
186 cipher.update(sha_hash);
214 signature.update(sha_hash);
/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.java30 * boolean compareAndSetLeft(Node expect, Node update) {
31 * return leftUpdater.compareAndSet(this, expect, update);
84 * @param update the new value
87 public abstract boolean compareAndSet(T obj, V expect, V update); argument
102 * @param update the new value
105 public abstract boolean weakCompareAndSet(T obj, V expect, V update); argument
161 * Internal type checks within all update methods contain
216 void updateCheck(T obj, V update) { argument
218 (update != null && vclass != null && !vclass.isInstance(update)))
224 compareAndSet(T obj, V expect, V update) argument
232 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.java133 * @param update the new value
137 public final boolean compareAndSet(int i, long expect, long update) { argument
138 return compareAndSetRaw(checkedByteOffset(i), expect, update);
141 private boolean compareAndSetRaw(long offset, long expect, long update) { argument
142 return unsafe.compareAndSwapLong(array, offset, expect, update);
155 * @param update the new value
158 public final boolean weakCompareAndSet(int i, long expect, long update) { argument
159 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.java67 * @param update the new value
72 public abstract boolean compareAndSet(T obj, long expect, long update); argument
87 * @param update the new value
92 public abstract boolean weakCompareAndSet(T obj, long expect, long update); argument
280 public boolean compareAndSet(T obj, long expect, long update) { argument
282 return unsafe.compareAndSwapLong(obj, offset, expect, update);
285 public boolean weakCompareAndSet(T obj, long expect, long update) { argument
287 return unsafe.compareAndSwapLong(obj, offset, expect, update);
365 public boolean compareAndSet(T obj, long expect, long update) { argument
371 unsafe.putLong(obj, offset, update);
376 weakCompareAndSet(T obj, long expect, long update) argument
[all...]
H A DAtomicIntegerFieldUpdater.java64 * @param update the new value
69 public abstract boolean compareAndSet(T obj, int expect, int update); argument
84 * @param update the new value
89 public abstract boolean weakCompareAndSet(T obj, int expect, int update); argument
282 public boolean compareAndSet(T obj, int expect, int update) { argument
284 return unsafe.compareAndSwapInt(obj, offset, expect, update);
287 public boolean weakCompareAndSet(T obj, int expect, int update) { argument
289 return unsafe.compareAndSwapInt(obj, offset, 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);
121 // update digest only if
125 digest.update(b, off, 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...]

Completed in 314 milliseconds

123