Home
last modified time | relevance | path

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

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothDeviceTest.java250 public void setPin() { in setPin() method in BluetoothDeviceTest
254 assertFalse(mFakeDevice.setPin((String) null)); in setPin()
255 assertFalse(mFakeDevice.setPin("12345678901234567")); // check PIN too big in setPin()
257 assertFalse(mFakeDevice.setPin("123456")); //device is not bonding in setPin()
260 assertThrows(SecurityException.class, () -> mFakeDevice.setPin("123456")); in setPin()
264 assertFalse(mFakeDevice.setPin("123456")); in setPin()
371 assertThrows(NullPointerException.class, () -> mFakeDevice.setPin((byte[]) null)); in setPinByteArray()
374 assertFalse(mFakeDevice.setPin(convertPinToBytes("12345678901234567"))); in setPinByteArray()
375 assertFalse(mFakeDevice.setPin(convertPinToBytes("123456"))); // device is not bonding in setPinByteArray()
379 .setPin(convertPinToBytes("123456"))); in setPinByteArray()
[all …]
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DPasswordComplexityTest.java195 sDeviceState.dpc().user().setPin("1234"); in getPasswordComplexity_pinOrderedLength4_returnsPasswordComplexityLow()
209 sDeviceState.dpc().user().setPin("12345678"); in getPasswordComplexity_pinOrderedLength8_returnsPasswordComplexityLow()
223 sDeviceState.dpc().user().setPin("1238"); in getPasswordComplexity_pinNotOrderedLength4_returnsPasswordComplexityMedium()
237 sDeviceState.dpc().user().setPin("1238964"); in getPasswordComplexity_pinNotOrderedLength7_returnsPasswordComplexityMedium()
307 sDeviceState.dpc().user().setPin("12389647"); in getPasswordComplexity_pinNotOrderedLength8_returnsPasswordComplexityHigh()
528 TestApis.users().instrumented().setPin(NUMERIC_PIN_LENGTH_4); in setRequiredPasswordComplexity_low_passwordThatMeetsLowPasswordBandRequired()
546 TestApis.users().instrumented().setPin(NUMERIC_PIN_RANDOM_LENGTH_4); in setRequiredPasswordComplexity_medium_passwordThatMeetsMediumPasswordBandRequired()
DResetPasswordWithTokenTest.java233 TestApis.users().instrumented().setPin(NOT_COMPLEX_PIN); in isActivePasswordSufficient_passwordDoesNotSatisfyRestriction_false()
/cts/common/device-side/bedstead/modules/multiuser/src/test/kotlin/com/android/bedstead/multiuser/
DUserReferenceTest.java568 TestApis.users().instrumented().setPin(PIN); in setPin_hasLockCredential()
603 TestApis.users().instrumented().setPin(PIN); in clearPin_hasLockCredential_returnsFalse()
662 TestApis.users().instrumented().setPin(PIN); in clearPin_incorrectOldPin_throwsException()
708 TestApis.users().instrumented().setPin(PIN); in setPin_alreadyHasPin_throwsException()
711 () -> TestApis.users().instrumented().setPin(DIFFERENT_PIN)); in setPin_alreadyHasPin_throwsException()
755 TestApis.users().instrumented().setPin(PIN); in setPin_clearAsPasswordAndPattern_throwsException()
806 TestApis.users().instrumented().setPin(PIN); in setPin_getAsPasswordAndPattern_throwsException()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUserReference.java737 public void setPin(String pin) { in setPin() method in UserReference
738 setPin(pin, /* existingCredential=*/ null); in setPin()
746 public void setPin(String pin, String existingCredential) { in setPin() method in UserReference
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dbluetooth-current.txt546 …method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean setPin(by…