Home
last modified time | relevance | path

Searched refs:pin (Results 1 – 25 of 116) sorted by relevance

12345

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfilePinStorage.java87 boolean setPin(@NonNull String pin, String originalPin) { in setPin() argument
89 setPinInternal(pin); in setPin()
115 boolean isPinCorrect(@NonNull String pin) { in isPinCorrect() argument
117 ? isPinCorrectInternal(pin) in isPinCorrect()
118 : !hasLockscreenSecurity() || checkPasswordLegacy(pin); in isPinCorrect()
128 private boolean setPinInternal(String pin) { in setPinInternal() argument
129 if (pin == null) { in setPinInternal()
135 getPinService().setPin(pin); in setPinInternal()
185 private boolean checkPasswordLegacy(String pin) { in checkPasswordLegacy() argument
187 LockscreenCredential credential = LockscreenCredential.createPin(pin); in checkPasswordLegacy()
[all …]
DRestrictedProfilePinService.java68 public boolean isPinCorrect(String pin) { in isPinCorrect() argument
70 return pin.equals(savedPin); in isPinCorrect()
74 public void setPin(String pin) { in setPin() argument
76 .putString(PIN_STORE_NAME, pin) in setPin()
DRestrictedProfilePinDialogFragment.java109 public void setPin(String pin, String originalPin, Consumer<Boolean> consumer) { in setPin() argument
112 mRestrictedProfilePinStorage.setPin(pin, originalPin); in setPin()
127 public void isPinCorrect(String pin, Consumer<Boolean> consumer) { in isPinCorrect() argument
130 boolean isPinCorrect = mRestrictedProfilePinStorage.isPinCorrect(pin); in isPinCorrect()
DIRestrictedProfilePinService.aidl27 boolean isPinCorrect(in String pin); in isPinCorrect() argument
30 void setPin(in String pin); in setPin() argument
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
DPinDialogFragment.java142 public abstract void setPin(String pin, String originalPin, Consumer<Boolean> consumer); in setPin() argument
156 public abstract void isPinCorrect(String pin, Consumer<Boolean> consumer); in isPinCorrect() argument
261 private void done(String pin) {
262 if (DEBUG) Log.d(TAG, "done: mType=" + mType + " pin=" + pin);
272 dispatchOnPinEntered(pin);
275 dispatchOnDeletePin(pin);
278 dispatchOnNewPinTyped(pin);
281 dispatchOnOldPinTyped(pin);
286 private void dispatchOnPinEntered(String pin) {
287 isPinCorrect(pin, pinCorrect -> {
[all …]
/packages/apps/TV/src/com/android/tv/dialog/
DPinDialogFragment.java173 String pin = getPinInput(); in onCreateView()
174 if (!TextUtils.isEmpty(pin)) { in onCreateView()
175 done(pin); in onCreateView()
288 private void done(String pin) {
289 if (DEBUG) Log.d(TAG, "done: mType=" + mType + " pin=" + pin + " stored=" + getPin());
295 if (TextUtils.isEmpty(getPin()) || pin.equals(getPin())) {
305 mPrevPin = pin;
308 if (pin.equals(mPrevPin)) {
309 setPin(pin);
326 if (pin.equals(getPin())) {
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/
DWpsInfo.java47 public String pin; field in WpsInfo
52 pin = null; in WpsInfo()
61 sbuf.append(" pin: ").append(pin); in toString()
76 pin = source.pin; in WpsInfo()
84 dest.writeString(pin); in writeToParcel()
94 config.pin = in.readString();
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/users/
DRestrictedProfilePinStorageTest.java229 private void initPin(String pin) throws RemoteException, RequestThrottledException { in initPin() argument
230 initPinInternal(pin); in initPin()
231 initPinLegacy(pin); in initPin()
234 private void initPinInternal(String pin) throws RemoteException, RequestThrottledException { in initPinInternal() argument
235 when(mPinService.isPinSet()).thenReturn(pin != null); in initPinInternal()
236 if (pin != null) { in initPinInternal()
238 when(mPinService.isPinCorrect(eq(pin))).thenReturn(true); in initPinInternal()
242 private void initPinLegacy(String pin) throws RemoteException, RequestThrottledException { in initPinLegacy() argument
243 LockscreenCredential credential = LockscreenCredential.createPinOrNone(pin); in initPinLegacy()
244 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(pin != null); in initPinLegacy()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dpy_security.py127 def __send_ui_callback(self, address, callback_type, b, uid, pin): argument
137 pin=bytes(pin),
186 def input_pin(self, cert_address, pin): argument
190 logging.info("DUT: Inputting pin code: %s" % str(pin))
192 …t_address=cert_address, reply_boolean=True, expected_ui_event=UiMsgType.DISPLAY_PIN_ENTRY, pin=pin)
194 def on_user_input(self, cert_address, reply_boolean, expected_ui_event, pin=[]): argument
212 callback_type = UiCallbackType.YES_NO if len(pin) == 0 else UiCallbackType.PIN
213 self.__send_ui_callback(cert_address, callback_type, reply_boolean, ui_id, pin)
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DFallbackHome.java115 LockscreenCredential pin = getPinFromSharedPreferences(); in unlockDevice() local
117 if (pin == null || pin.isNone()) { in unlockDevice()
121 unlockDeviceWithPin(pin); in unlockDevice()
126 void unlockDeviceWithPin(LockscreenCredential pin) { in unlockDeviceWithPin() argument
128 getLockSettings().checkCredential(pin, USER_SYSTEM, null); in unlockDeviceWithPin()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DLockscreenCredentialCompat.java29 public static LockscreenCredentialCompat createPinOrNone(@Nullable CharSequence pin) { in createPinOrNone() argument
30 return new LockscreenCredentialCompat(LockscreenCredential.createPinOrNone(pin)); in createPinOrNone()
33 public static LockscreenCredentialCompat createPin(@NonNull CharSequence pin) { in createPin() argument
34 return new LockscreenCredentialCompat(LockscreenCredential.createPin(pin)); in createPin()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/system/
DFallbackHomeTest.java73 LockscreenCredential pin = LockscreenCredential.createPinOrNone("0000"); in unlockDeviceAutomaticallyWhenPinIsSaved() local
74 doReturn(pin).when(mFallbackHome).getPinFromSharedPreferences(); in unlockDeviceAutomaticallyWhenPinIsSaved()
80 verify(mFallbackHome).unlockDeviceWithPin(pin); in unlockDeviceAutomaticallyWhenPinIsSaved()
81 verify(mLockSettings).checkCredential(eq(pin), anyInt(), any()); in unlockDeviceAutomaticallyWhenPinIsSaved()
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pProvDiscEvent.java45 public String pin; field in WifiP2pProvDiscEvent
81 pin = tokens[2]; in WifiP2pProvDiscEvent()
89 sbuf.append("\n pin: ").append(pin); in toString()
/packages/modules/Bluetooth/system/blueberry/tests/gd/security/
Dcert_security.py237 def input_pin(self, address, pin): argument
242 if len(pin) > self.MAX_PIN_LENGTH or len(pin) < self.MIN_PIN_LENGTH:
247 logging.info("Cert: Send user input PIN %s for %s" % (pin.decode(), address))
249 pin_list = list(pin)
254 …hci.PinCodeRequestReply(bd_addr=bluetooth.Address(peer), pin_code_length=len(pin), pin_code=pin_li…
256 def __send_ui_callback(self, address, callback_type, b, uid, pin): argument
/packages/services/Car/car-test-lib/src/android/car/test/util/
DUserTestingHelper.java190 public static void setUserLockCredentials(@UserIdInt int userId, int pin) { in setUserLockCredentials() argument
191 runShellCommand("locksettings set-pin %s --user %d ", pin, userId); in setUserLockCredentials()
197 public static void clearUserLockCredentials(@UserIdInt int userId, int pin) { in clearUserLockCredentials() argument
198 runShellCommand("locksettings clear --old %d --user %d ", pin, userId); in clearUserLockCredentials()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DPinChangerImpl.java71 public void setScrambledPin(String pin) { in setScrambledPin() argument
74 .putString(KEY_SCRAMBLED_PIN, pin) in setScrambledPin()
76 if (pin == null) { in setScrambledPin()
/packages/modules/Bluetooth/system/gd/rust/gddi/macros/
Dlib.rs34 …fn #injected_ident(registry: std::sync::Arc<gddi::Registry>) -> std::pin::Pin<gddi::ProviderFuture… in provides()
35 Box::pin(async move { in provides()
199 … |registry: std::sync::Arc<gddi::Registry>| -> std::pin::Pin<gddi::ProviderFutureBox> { in part_out()
200 Box::pin(async move { in part_out()
/packages/modules/Bluetooth/framework/tests/stress/src/android/bluetooth/
DBluetoothTestRunner.java194 byte[] pin = BluetoothDevice.convertPinToBytes(val); in onCreate()
195 if (pin != null) { in onCreate()
196 sDevicePairPin = pin; in onCreate()
DBluetoothTestUtils.java163 PairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) { in PairReceiver() argument
168 mPin = pin; in PairReceiver()
803 public void pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) { in pair() argument
804 pairOrAcceptPair(adapter, device, passkey, pin, true); in pair()
817 byte[] pin) { in acceptPair() argument
818 pairOrAcceptPair(adapter, device, passkey, pin, false); in acceptPair()
833 byte[] pin, boolean shouldPair) { in pairOrAcceptPair() argument
847 PairReceiver receiver = getPairReceiver(device, passkey, pin, mask); in pairOrAcceptPair()
1557 private PairReceiver getPairReceiver(BluetoothDevice device, int passkey, byte[] pin, in getPairReceiver() argument
1562 PairReceiver receiver = new PairReceiver(device, passkey, pin, expectedFlags); in getPairReceiver()
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/procedure/
Dmod.rs3 use std::pin::Pin;
105 crate::future::pin!($idx);
109 use std::pin::Pin;
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java3301 mSavedPeerConfig.wps.pin = provDisc.pin; in processMessage()
3303 notifyP2pProvDiscShowPinRequest(provDisc.pin, device.deviceAddress); in processMessage()
3646 || TextUtils.isEmpty(mSavedPeerConfig.wps.pin)) { in enter()
3850 if (!TextUtils.isEmpty(mSavedPeerConfig.wps.pin)) { in processMessage()
3878 mSavedPeerConfig.wps.pin = provDisc.pin; in processMessage()
3880 notifyInvitationSent(provDisc.pin, device.deviceAddress); in processMessage()
4496 if (wps.pin == null) { in processMessage()
4497 String pin = mWifiNative.startWpsPinDisplay( in processMessage() local
4500 Integer.parseInt(pin); in processMessage()
4501 notifyInvitationSent(pin, "any"); in processMessage()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalAidlImplTest.java657 public String answer(byte[] peer, int method, String pin, boolean joinExisting, in testConnect_success()
661 if (method == WpsProvisionMethod.DISPLAY && TextUtils.isEmpty(pin)) { in testConnect_success()
667 assertEquals(pin, configPin); in testConnect_success()
709 public String answer(byte[] peer, int method, String pin, boolean joinExisting, in testConnect_invalidArguments()
711 return pin; in testConnect_invalidArguments()
731 config.wps.pin = null; in testConnect_invalidArguments()
736 config.wps.pin = "03455323"; in testConnect_invalidArguments()
2006 String pin = "1234"; in testStartWpsPinKeypad_success() local
2007 doNothing().when(mISupplicantP2pIfaceMock).startWpsPinKeypad(eq(mIfaceName), eq(pin)); in testStartWpsPinKeypad_success()
2009 assertFalse(mDut.startWpsPinKeypad(mIfaceName, pin)); in testStartWpsPinKeypad_success()
[all …]
/packages/apps/Settings/src/com/android/settings/
DIccLockSettings.java546 private SetIccLockEnabled(boolean state, String pin) { in SetIccLockEnabled() argument
548 mPin = pin; in SetIccLockEnabled()
690 private boolean reasonablePin(String pin) { in reasonablePin() argument
691 if (pin == null || pin.length() < MIN_PIN_LENGTH || pin.length() > MAX_PIN_LENGTH) { in reasonablePin()
/packages/services/Telephony/src/com/android/phone/
DIccNetworkDepersonalizationPanel.java258 String pin = mPinEntry.getText().toString();
260 if (TextUtils.isEmpty(pin)) {
267 mPhone.getIccCard().supplySimDepersonalization(mPersoSubState,pin,
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DFdnSetting.java460 private boolean validatePin(String pin, boolean isPuk) { in validatePin() argument
466 if (pin == null || pin.length() < pinMinimum || pin.length() > MAX_PIN_LENGTH) { in validatePin()

12345