Home
last modified time | relevance | path

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

/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/cpio/
DCpioUtilTest.java31 CpioUtil.long2byteArray(CpioConstants.MAGIC_OLD_BINARY, in oldBinMagic2ByteArrayNotSwapped()
38 CpioUtil.long2byteArray(CpioConstants.MAGIC_OLD_BINARY, in oldBinMagic2ByteArraySwapped()
45 CpioUtil.byteArray2long(new byte[] { (byte) 0xc7, 0x71 }, in oldBinMagicFromByteArrayNotSwapped()
52 CpioUtil.byteArray2long(new byte[] { 0x71, (byte) 0xc7 }, in oldBinMagicFromByteArraySwapped()
60 CpioUtil.long2byteArray(0L, 0, false); in testLong2byteArrayWithZeroThrowsUnsupportedOperationException()
68 CpioUtil.long2byteArray(0L, 1021, false); in testLong2byteArrayWithPositiveThrowsUnsupportedOperationException()
78 CpioUtil.byteArray2long(byteArray, true); in testByteArray2longThrowsUnsupportedOperationException()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/cpio/
DCpioArchiveEntry.java645 return CpioUtil.fileType(mode) == C_ISBLK; in isBlockDevice()
654 return CpioUtil.fileType(mode) == C_ISCHR; in isCharacterDevice()
664 return CpioUtil.fileType(mode) == C_ISDIR; in isDirectory()
673 return CpioUtil.fileType(mode) == C_ISNWK; in isNetwork()
682 return CpioUtil.fileType(mode) == C_ISFIFO; in isPipe()
691 return CpioUtil.fileType(mode) == C_ISREG; in isRegularFile()
700 return CpioUtil.fileType(mode) == C_ISSOCK; in isSocket()
709 return CpioUtil.fileType(mode) == C_ISLNK; in isSymbolicLink()
DCpioArchiveInputStream.java238 if (CpioUtil.byteArray2long(twoBytesBuf, false) == MAGIC_OLD_BINARY) { in getNextCPIOEntry()
240 } else if (CpioUtil.byteArray2long(twoBytesBuf, true) in getNextCPIOEntry()
356 return CpioUtil.byteArray2long(tmp, swapHalfWord); in readBinaryLong()
377 if (CpioUtil.fileType(mode) != 0){ // mode is initialised to 0 in readNewEntry()
393 if (CpioUtil.fileType(mode) == 0 && !name.equals(CPIO_TRAILER)){ in readNewEntry()
409 if (CpioUtil.fileType(mode) != 0) { in readOldAsciiEntry()
421 if (CpioUtil.fileType(mode) == 0 && !name.equals(CPIO_TRAILER)){ in readOldAsciiEntry()
437 if (CpioUtil.fileType(mode) != 0){ in readOldBinaryEntry()
449 if (CpioUtil.fileType(mode) == 0 && !name.equals(CPIO_TRAILER)){ in readOldBinaryEntry()
DCpioUtil.java26 class CpioUtil { class
DCpioArchiveOutputStream.java511 final byte tmp[] = CpioUtil.long2byteArray(number, length, swapHalfWord); in writeBinaryLong()