Lines Matching defs:block

4087             // for the widget block by using a fixed mtime on the transient file.
4136 // We want the manifest block in the archive stream to be idempotent:
4138 // block to be identical. The underlying tar mechanism sees it as a file,
4983 // and we'll hang if we block waiting for it, since it relies on us to
6132 // the delta from info.size to the end of block.
6773 // Consume a tar file header block [sequence] and accumulate the relevant metadata
6775 byte[] block = new byte[512];
6778 boolean gotHeader = readTarHeader(instream, block);
6783 info.size = extractRadix(block, TAR_HEADER_OFFSET_FILESIZE,
6785 info.mtime = extractRadix(block, TAR_HEADER_OFFSET_MODTIME,
6787 info.mode = extractRadix(block, TAR_HEADER_OFFSET_MODE,
6790 info.path = extractString(block, TAR_HEADER_OFFSET_PATH_PREFIX,
6792 String path = extractString(block, TAR_HEADER_OFFSET_PATH,
6800 int typeChar = block[TAR_HEADER_OFFSET_TYPE_CHAR];
6807 gotHeader = readTarHeader(instream, block);
6811 typeChar = block[TAR_HEADER_OFFSET_TYPE_CHAR];
6826 if (MORE_DEBUG) Slog.w(TAG, "Saw type=0 in tar header block, info=" + info);
6875 HEXLOG(block);
6917 private void HEXLOG(byte[] block) {
6919 int todo = block.length;
6925 buf.append(String.format("%02x ", block[offset+i]));
6954 boolean readTarHeader(InputStream instream, byte[] block) throws IOException {
6955 final int got = readExactly(instream, block, 0, 512);
6957 if (got < 512) throw new IOException("Unable to read full block header");
7386 if (doLog) Slog.w(TAG, "Invalid block size in master key");
7677 // the delta from info.size to the end of block.
8208 // Consume a tar file header block [sequence] and accumulate the relevant metadata
8210 byte[] block = new byte[512];
8213 boolean gotHeader = readTarHeader(instream, block);
8218 info.size = extractRadix(block, 124, 12, 8);
8219 info.mtime = extractRadix(block, 136, 12, 8);
8220 info.mode = extractRadix(block, 100, 8, 8);
8222 info.path = extractString(block, 345, 155); // prefix
8223 String path = extractString(block, 0, 100);
8230 int typeChar = block[156];
8237 gotHeader = readTarHeader(instream, block);
8241 typeChar = block[156];
8256 if (DEBUG) Slog.w(TAG, "Saw type=0 in tar header block, info=" + info);
8301 HEXLOG(block);
8309 private void HEXLOG(byte[] block) {
8311 int todo = block.length;
8317 buf.append(String.format("%02x ", block[offset+i]));
8345 boolean readTarHeader(InputStream instream, byte[] block) throws IOException {
8346 final int got = readExactly(instream, block, 0, 512);
8348 if (got < 512) throw new IOException("Unable to read full block header");