Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/
H A DPinnerService.java973 PinRangeSourceStatic(int pinStart, int pinLength) { in PinRangeSourceStatic() argument
975 mPinLength = pinLength; in PinRangeSourceStatic()
1047 int pinLength = pinRange.length; in pinFileRanges() local
1049 pinLength = clamp(0, pinLength, mapSize - pinStart); in pinFileRanges()
1050 pinLength = Math.min(maxBytesToPin - bytesPinned, pinLength); in pinFileRanges()
1059 pinLength += pinStart % PAGE_SIZE; in pinFileRanges()
1061 if (pinLength % PAGE_SIZE != 0) { in pinFileRanges()
1062 pinLength += PAGE_SIZE - pinLength % PAGE_SIZE; in pinFileRanges()
1064 pinLength = clamp(0, pinLength, maxBytesToPin - bytesPinned); in pinFileRanges()
1066 if (pinLength > 0) { in pinFileRanges()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DSyntheticPasswordManager.java365 public int pinLength; field in SyntheticPasswordManager.PasswordData
373 result.pinLength = pinLength; in create()
419 result.pinLength = buffer.getInt(); in fromBytes()
421 result.pinLength = PIN_LENGTH_UNAVAILABLE; in fromBytes()
456 buffer.putInt(pinLength); in toBytes()
715 return PasswordData.fromBytes(passwordData).pinLength; in getPinLength()
945 int pinLength = PIN_LENGTH_UNAVAILABLE; in createLskfBasedProtector() local
951 PasswordData.create(credential.getType(), pinLength); in createLskfBasedProtector()
1465 int pinLength = derivePinLength(passwordMetrics.length, in refreshPinLengthOnDisk() local
1467 if (pwd.pinLength != pinLength) { in refreshPinLengthOnDisk()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DSyntheticPasswordTests.java584 data.pinLength = 5; in createTestPasswordData()
598 data.pinLength = 5; in testPasswordDataLatestVersion_serializeDeserialize()
604 assertEquals(5, deserialized.pinLength); in testPasswordDataLatestVersion_serializeDeserialize()
650 assertEquals(6, deserialized.pinLength); in testDeserializePasswordData_forPinWithLengthAvailable()
674 assertEquals(PIN_LENGTH_UNAVAILABLE, deserialized.pinLength); in testDeserializePasswordData_forPinWithLengthExplicitlyUnavailable()
703 assertEquals(6, deserialized.pinLength); in testDeserializePasswordData_forPinWithVersionNumber()
729 assertEquals(PIN_LENGTH_UNAVAILABLE, deserialized.pinLength); in testDeserializePasswordData_forNoneCred()
755 assertEquals(PIN_LENGTH_UNAVAILABLE, deserialized.pinLength); in testDeserializePasswordData_forPasswordOrPin()