Searched refs:FRP_SECRET_SIZE (Results 1 – 2 of 2) sorted by relevance
153 static final int FRP_SECRET_SIZE = 32; field in PersistentDataBlockService425 long frpSecretSize = mFrpEnforced ? FRP_SECRET_MAGIC.length + FRP_SECRET_SIZE : 0; in getMaximumFrpDataSize()442 return getTestHarnessModeDataOffset() - FRP_SECRET_SIZE; in getFrpSecretDataOffset()560 - FRP_SECRET_MAGIC.length - FRP_SECRET_SIZE - FRP_CREDENTIAL_RESERVED_SIZE in formatPartitionLocked()575 channel.write(ByteBuffer.allocate(FRP_SECRET_SIZE)); in formatPartitionLocked()624 if (deactivateFrp(new byte[FRP_SECRET_SIZE])) { in automaticallyDeactivateFrpIfPossible()729 return readDataBlock(getFrpSecretDataOffset(), FRP_SECRET_SIZE); in getFrpSecret()733 if (secret == null || secret.length != FRP_SECRET_SIZE) { in deactivateFrp()746 if (partitionSecret == null || partitionSecret.length != FRP_SECRET_SIZE) { in deactivateFrp()769 channel.write(ByteBuffer.allocate(FRP_SECRET_SIZE)); in writeFrpMagicAndDefaultSecret()[all …]
22 import static com.android.server.pdb.PersistentDataBlockService.FRP_SECRET_SIZE;446 assertContains("FRP secret", readData(channel, FRP_SECRET_SIZE).array(), (byte) 0); in testPartitionFormat()729 mPdbService.getFrpSecretDataOffset(), PersistentDataBlockService.FRP_SECRET_SIZE); in frpSecret_StartsAsDefault()730 assertThat(secretField).isEqualTo(new byte[PersistentDataBlockService.FRP_SECRET_SIZE]); in frpSecret_StartsAsDefault()742 mPdbService.getFrpSecretDataOffset(), PersistentDataBlockService.FRP_SECRET_SIZE); in frpSecret_SetSecret()837 assertThat(mInterface.setFactoryResetProtectionSecret(new byte[FRP_SECRET_SIZE])).isTrue(); in frpState_DeactivateWithSecret()928 .setFactoryResetProtectionSecret(new byte[FRP_SECRET_SIZE])).isTrue(); in frpState_TestDowngradeUpgradeSequence()