Home
last modified time | relevance | path

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

/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DTransport.java259 final int contentSize = buffer.getInt(); in handleMessage() local
260 if (contentSize == 0) { in handleMessage()
263 final int end = buffer.position() + contentSize; in handleMessage()
293 int contentSize = -1; in loop() local
316 if (contentSize < 0 && position >= Protocol.HEADER_SIZE) { in loop()
317 contentSize = buffer.getInt(4); in loop()
318 if (contentSize < 0 || contentSize > Protocol.MAX_CONTENT_SIZE) { in loop()
319 mLogger.logError("Encountered invalid content size: " + contentSize); in loop()
322 length += contentSize; in loop()
336 contentSize = -1; in loop()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java5721 final int contentSize = (int) info.size; in readPaxExtendedHeader() local
5726 while (eol < contentSize && data[eol] != ' ') eol++; in readPaxExtendedHeader()
5727 if (eol >= contentSize) { in readPaxExtendedHeader()
5755 } while (offset < contentSize); in readPaxExtendedHeader()
7011 final int contentSize = (int) info.size; in readPaxExtendedHeader() local
7016 while (eol < contentSize && data[eol] != ' ') eol++; in readPaxExtendedHeader()
7017 if (eol >= contentSize) { in readPaxExtendedHeader()
7045 } while (offset < contentSize); in readPaxExtendedHeader()