Home
last modified time | relevance | path

Searched refs:flattenedHeader (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/jni/
Dandroid_backup_BackupHelperDispatcher.cpp47 chunk_header_v1 flattenedHeader; in readHeader_native() local
54 amt = read(fd, &flattenedHeader.headerSize, sizeof(flattenedHeader.headerSize)); in readHeader_native()
55 if (amt != sizeof(flattenedHeader.headerSize)) { in readHeader_native()
59 int remainingHeader = flattenedHeader.headerSize - sizeof(flattenedHeader.headerSize); in readHeader_native()
61 if (flattenedHeader.headerSize < (int)sizeof(chunk_header_v1)) { in readHeader_native()
62 ALOGW("Skipping unknown header: %d bytes", flattenedHeader.headerSize); in readHeader_native()
70 amt = read(fd, &flattenedHeader.version, in readHeader_native()
71 sizeof(chunk_header_v1)-sizeof(flattenedHeader.headerSize)); in readHeader_native()
76 remainingHeader -= sizeof(chunk_header_v1)-sizeof(flattenedHeader.headerSize); in readHeader_native()
78 if (flattenedHeader.version != VERSION_1_HEADER) { in readHeader_native()
[all …]