HomeSort by relevance Sort by last modified time
    Searched refs:Checksum (Results 1 - 25 of 39) sorted by null

1 2

  /libcore/luni/src/main/java/java/util/zip/
Checksum.java 21 * The interface common to checksum classes such as {@link Adler32} and {@link CRC32}.
23 public interface Checksum {
26 * Returns the current calculated checksum value.
28 * @return the checksum.
33 * Resets the checksum value applied before beginning calculations on a new
39 * Updates the checksum with the given bytes.
51 * Updates the checksum value with the given byte.
54 * the byte to update the checksum with.
CheckedOutputStream.java 24 * The {@code CheckedOutputStream} class is used to maintain a running checksum
25 * of all data written to a stream. The purpose of this checksum is to establish
26 * data integrity, by publishing the checksum to other parties wanting to read
31 private final Checksum check;
35 * {@code os}. The checksum is calculated using the algorithm implemented
39 * the output stream to calculate checksum for.
41 * an entity implementing the checksum algorithm.
43 public CheckedOutputStream(OutputStream os, Checksum cs) {
49 * Returns the checksum calculated on the stream read so far.
51 * @return the updated checksum
    [all...]
CheckedInputStream.java 25 * The {@code CheckedInputStream} class is used to maintain a checksum at the
26 * same time as the data, on which the checksum is computed, is read from a
27 * stream. The purpose of this checksum is to establish data integrity,
28 * comparing the computed checksum against a published checksum value.
32 private final Checksum check;
36 * {@code is}. The checksum will be calculated using the algorithm
43 * the input stream to calculate checksum from.
45 * an entity implementing the checksum algorithm.
47 public CheckedInputStream(InputStream is, Checksum csum)
    [all...]
Adler32.java 23 * The Adler-32 class is used to compute the {@code Adler32} checksum from a set
27 public class Adler32 implements Checksum {
32 * Returns the {@code Adler32} checksum for all input received.
34 * @return The checksum for this instance.
41 * Reset this instance to its initial checksum.
48 * Update this {@code Adler32} checksum with the single byte provided as
52 * the byte to update checksum with.
59 * Update this {@code Adler32} checksum using the contents of {@code buf}.
62 * bytes to update checksum with.
69 * Update this {@code Adler32} checksum with the contents of {@code buf}
    [all...]
CRC32.java 23 * The CRC32 class is used to compute a CRC32 checksum from data provided as
26 public class CRC32 implements Checksum {
33 * Returns the CRC32 checksum for all input received.
35 * @return The checksum for this instance.
42 * Resets the CRC32 checksum to it initial state.
50 * Updates this checksum with the byte value provided as integer.
53 * represents the byte to update the checksum.
60 * Updates this checksum with the bytes contained in buffer {@code buf}.
63 * the buffer holding the data to update the checksum with.
70 * Update this {@code CRC32} checksum with the contents of {@code buf}
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/functions/string/
CrcFunction.java 25 import java.util.zip.Checksum;
40 Checksum crc = new CRC32();
  /external/chromium_org/chrome/browser/net/
probe_message.h 45 // Compute the checksum of the padding string.
46 uint32 Checksum(const std::string& str) const;
probe_message.cc 35 DVLOG(2) << "version " << header.version() << " checksum "
36 << header.checksum() << " type " << header.type();
43 // Checksum is computed on padding only.
46 uint32 computed_checksum = Checksum(probe_packet->padding());
47 if (computed_checksum != header.checksum()) {
48 DVLOG(1) << "Checksum mismatch. Got: " << header.checksum()
62 uint32 ProbeMessage::Checksum(const std::string& str) const {
91 probe_packet->mutable_header()->set_checksum(Checksum(*padding));
probe_message_unittest.cc 84 uint32 computed_checksum = pm.Checksum(str);
  /external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
GZIPOutputStreamTest.java 25 import java.util.zip.Checksum;
40 Checksum getChecksum() {
146 assertEquals("the checksum value was incorrect result of write from GZIP",
GZIPInputStreamTest.java 27 import java.util.zip.Checksum;
45 Checksum getChecksum() {
142 "the checkSum value of the compressed and decompressed data does not equal",
260 assertEquals("the checkSum value of the compressed and decompressed data does not equal",
  /external/chromium_org/base/metrics/
bucket_ranges_unittest.cc 20 EXPECT_EQ(0u, ranges.checksum());
48 // Checksum does not match.
58 TEST(BucketRangesTest, Checksum) {
65 EXPECT_EQ(289217253u, ranges.checksum());
71 EXPECT_EQ(2843835776u, ranges.checksum());
79 uint32 checksum = i; local
82 if (checksum & 1)
83 checksum = kReversedPolynomial ^ (checksum >> 1);
85 checksum >>= 1
    [all...]
  /external/chromium_org/net/tools/testserver/
echo_message.py 7 This program has classes and functions to encode, decode, calculate checksum
14 <version><checksum><payload_size><payload>. <version> is the version number
15 of the "echo request" protocol. <checksum> is the checksum of the <payload>.
19 <version><checksum><payload_size><key><encoded_payload>.<version>,
20 <checksum> and <payload_size> are same as what is in the "echo request" message.
36 This class knows how to parse the checksum, payload_size from the
37 "echo request" and "echo response" messages. It holds the checksum,
44 # This specifies the starting position of the checksum and length of the
45 # checksum. Maximum value for the checksum is less than (2 ** 31 - 1)
    [all...]
  /external/sfntly/cpp/src/sfntly/data/
readable_font_data.h 56 // Gets a computed checksum for the data. This checksum uses the OpenType spec
61 // @return the checksum
62 int64_t Checksum();
64 // Sets the bounds to use for computing the checksum. These bounds are in
68 // @param ranges the range bounds to use for the checksum
283 // Compute the checksum for the font data using any ranges set for the
287 // Do the actual computation of the checksum for a range using the
288 // TrueType/OpenType checksum algorithm. The range used is from the low bound
296 // @return the checksum for the total rang
    [all...]
readable_font_data.cc 47 int64_t ReadableFontData::Checksum() {
319 // Checksum all whole 4-byte chunks.
  /external/sfntly/cpp/src/sfntly/table/
table.cc 49 return data_->Checksum();
  /external/chromium_org/chrome/browser/devtools/adb/
android_usb_device.cc 96 static uint32 Checksum(const std::string& data) {
301 header.push_back(Checksum(message->body));
426 if (Checksum(message->body) != data_check) {
  /external/guava/guava/src/com/google/common/io/
Files.java 46 import java.util.zip.Checksum;
563 * Computes and returns the checksum value for a file.
564 * The checksum object is reset when this method returns successfully.
567 * @param checksum the checksum object
568 * @return the result of {@link Checksum#getValue} after updating the
569 * checksum object with all of the bytes in the file
572 public static long getChecksum(File file, Checksum checksum)
574 return ByteStreams.getChecksum(newInputStreamSupplier(file), checksum);
    [all...]
ByteStreams.java 37 import java.util.zip.Checksum;
722 * Computes and returns the checksum value for a supplied input stream.
723 * The checksum object is reset when this method returns successfully.
726 * @param checksum the checksum object
727 * @return the result of {@link Checksum#getValue} after updating the
728 * checksum object with all of the bytes in the stream
732 final Checksum checksum) throws IOException {
736 checksum.update(buf, off, len)
    [all...]
  /build/tools/droiddoc/templates-pdk/
sdkpage.cs 102 <th>MD5 Checksum</th>
161 <th>MD5 Checksum</th>
  /build/tools/droiddoc/templates-ds/
sdkpage.cs 84 <th>MD5 Checksum</th>
207 <th>MD5 Checksum</th>
263 <th>MD5 Checksum</th>
  /build/tools/droiddoc/templates-sac/
sdkpage.cs 83 <th>MD5 Checksum</th>
206 <th>MD5 Checksum</th>
262 <th>MD5 Checksum</th>
  /packages/apps/UnifiedEmail/src/org/apache/commons/io/
FileUtils.java 37 import java.util.zip.Checksum;
61 * <li>calculating a checksum
1682 checksum(file, crc); method
1703 public static Checksum checksum(File file, Checksum checksum) throws IOException { method in class:FileUtils
    [all...]
  /build/tools/droiddoc/templates-sdk/
sdkpage.cs 83 <th>MD5 Checksum</th>
282 <th>MD5 Checksum</th>
338 <th>MD5 Checksum</th>
  /external/clang/lib/CodeGen/
CGDebugInfo.h 71 /// which may change. Storing a pair of DIType and checksum.
107 unsigned Checksum(const ObjCInterfaceDecl *InterfaceDecl);

Completed in 186 milliseconds

1 2