Home | History | Annotate | Download | only in launcher3

Lines Matching refs:checksum

684      * <P> Keys contain their own checksum instead of using
691 key.checksum = checkKey(key);
697 * <P> Keys contain their own checksum instead of using
704 key.checksum = checkKey(key);
717 if (key.checksum != checkKey(key)) {
729 /** Compute the checksum over the important bits of a key. */
731 CRC32 checksum = new CRC32();
732 checksum.update(key.type);
733 checksum.update((int) (key.id & 0xffff));
734 checksum.update((int) ((key.id >> 32) & 0xffff));
736 checksum.update(key.name.getBytes());
738 return checksum.getValue();
741 /** Serialize a Favorite for persistence, including a checksum wrapper. */
794 /** Deserialize a Favorite from persistence, after verifying checksum wrapper. */
870 /** Serialize a Screen for persistence, including a checksum wrapper. */
878 /** Deserialize a Screen from persistence, after verifying checksum wrapper. */
888 /** Serialize an icon Resource for persistence, including a checksum wrapper. */
899 /** Serialize a widget for persistence, including a checksum wrapper. */
930 * Deserialize a proto after verifying checksum wrapper.
985 // if we are here, then we have read a valid, checksum-verified journal
1047 /** Wrap a proto in a CheckedMessage and compute the checksum. */
1051 CRC32 checksum = new CRC32();
1052 checksum.update(wrapper.payload);
1053 wrapper.checksum = checksum.getValue();
1057 /** Unwrap a proto message from a CheckedMessage, verifying the checksum. */
1062 CRC32 checksum = new CRC32();
1063 checksum.update(wrapper.payload);
1064 if (wrapper.checksum != checksum.getValue()) {
1065 throw new InvalidProtocolBufferNanoException("checksum does not match");