Searched refs:pinLength (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/core/java/com/android/server/ |
D | PinnerService.java | 1141 PinRangeSourceStatic(int pinStart, int pinLength) { in PinRangeSourceStatic() argument 1143 mPinLength = pinLength; in PinRangeSourceStatic() 1215 int pinLength = pinRange.length; in pinFileRanges() local 1217 pinLength = clamp(0, pinLength, mapSize - pinStart); in pinFileRanges() 1218 pinLength = Math.min(maxBytesToPin - bytesPinned, pinLength); in pinFileRanges() 1227 pinLength += pinStart % PAGE_SIZE; in pinFileRanges() 1229 if (pinLength % PAGE_SIZE != 0) { in pinFileRanges() 1230 pinLength += PAGE_SIZE - pinLength % PAGE_SIZE; in pinFileRanges() 1232 pinLength = clamp(0, pinLength, maxBytesToPin - bytesPinned); in pinFileRanges() 1234 if (pinLength > 0) { in pinFileRanges() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | SyntheticPasswordManager.java | 370 public int pinLength; field in SyntheticPasswordManager.PasswordData 372 public static PasswordData create(int credentialType, int pinLength) { in create() argument 378 result.pinLength = pinLength; in create() 424 result.pinLength = buffer.getInt(); in fromBytes() 426 result.pinLength = PIN_LENGTH_UNAVAILABLE; in fromBytes() 461 buffer.putInt(pinLength); in toBytes() 770 return PasswordData.fromBytes(passwordData).pinLength; in getPinLength() 1001 int pinLength = PIN_LENGTH_UNAVAILABLE; in createLskfBasedProtector() local 1003 pinLength = derivePinLength(credential.size(), credential.isPin(), userId); in createLskfBasedProtector() 1007 PasswordData.create(credential.getType(), pinLength); in createLskfBasedProtector() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | SyntheticPasswordTests.java | 592 data.pinLength = 5; in createTestPasswordData() 606 data.pinLength = 5; in testPasswordDataLatestVersion_serializeDeserialize() 612 assertEquals(5, deserialized.pinLength); in testPasswordDataLatestVersion_serializeDeserialize() 658 assertEquals(6, deserialized.pinLength); in testDeserializePasswordData_forPinWithLengthAvailable() 682 assertEquals(PIN_LENGTH_UNAVAILABLE, deserialized.pinLength); in testDeserializePasswordData_forPinWithLengthExplicitlyUnavailable() 711 assertEquals(6, deserialized.pinLength); in testDeserializePasswordData_forPinWithVersionNumber() 737 assertEquals(PIN_LENGTH_UNAVAILABLE, deserialized.pinLength); in testDeserializePasswordData_forNoneCred() 763 assertEquals(PIN_LENGTH_UNAVAILABLE, deserialized.pinLength); in testDeserializePasswordData_forPasswordOrPin()
|