Home
last modified time | relevance | path

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

/aosp12/frameworks/base/tests/ApkVerityTest/src/com/android/apkverity/
H A DApkVerityTest.java401 long offsetFirstByte = 0; in testFsverityFailToReadModifiedBlockAtFront() local
404 assertTrue(BlockDeviceWriter.canReadByte(mDevice, apkPath, offsetFirstByte)); in testFsverityFailToReadModifiedBlockAtFront()
405 if (apkSize > offsetFirstByte + FSVERITY_PAGE_SIZE) { in testFsverityFailToReadModifiedBlockAtFront()
407 offsetFirstByte + FSVERITY_PAGE_SIZE)); in testFsverityFailToReadModifiedBlockAtFront()
411 damageFileAgainstBlockDevice(apkPath, offsetFirstByte); in testFsverityFailToReadModifiedBlockAtFront()
415 assertFalse(BlockDeviceWriter.canReadByte(mDevice, apkPath, offsetFirstByte)); in testFsverityFailToReadModifiedBlockAtFront()
416 if (apkSize > offsetFirstByte + FSVERITY_PAGE_SIZE) { in testFsverityFailToReadModifiedBlockAtFront()
418 offsetFirstByte % FSVERITY_PAGE_SIZE + FSVERITY_PAGE_SIZE - 1; in testFsverityFailToReadModifiedBlockAtFront()