Home
last modified time | relevance | path

Searched refs:passkey (Results 1 – 25 of 66) sorted by relevance

123

/aosp12/system/bt/gd/security/
H A Dpairing_handler_le_legacy.cc88 uint32_t passkey; in LegacyPasskeyEntry() local
91 passkey = GenerateRandom(); in LegacyPasskeyEntry()
92 passkey &= 0x0fffff; /* maximum 20 significant bits */ in LegacyPasskeyEntry()
94 if (passkey > PASSKEY_MAX) passkey >>= 1; in LegacyPasskeyEntry()
96 ConfirmationData data(i.remote_connection_address, i.remote_name, passkey); in LegacyPasskeyEntry()
106 passkey = response->ui_value; in LegacyPasskeyEntry()
110 tk[0] = (uint8_t)(passkey); in LegacyPasskeyEntry()
111 tk[1] = (uint8_t)(passkey >> 8); in LegacyPasskeyEntry()
112 tk[2] = (uint8_t)(passkey >> 16); in LegacyPasskeyEntry()
113 tk[3] = (uint8_t)(passkey >> 24); in LegacyPasskeyEntry()
H A Dpairing_handler_le_secure_connections.cc287 uint32_t passkey; in SecureConnectionsPasskeyEntry() local
291 passkey = GenerateRandom(); in SecureConnectionsPasskeyEntry()
292 passkey &= 0x0fffff; /* maximum 20 significant bytes */ in SecureConnectionsPasskeyEntry()
294 while (passkey > PASSKEY_MAX) passkey >>= 1; in SecureConnectionsPasskeyEntry()
296 ConfirmationData data(i.remote_connection_address, i.remote_name, passkey); in SecureConnectionsPasskeyEntry()
306 passkey = response->ui_value; in SecureConnectionsPasskeyEntry()
319 bool bit_set = ((bitmask & passkey) != 0); in SecureConnectionsPasskeyEntry()
395 ra[0] = (uint8_t)(passkey); in SecureConnectionsPasskeyEntry()
396 ra[1] = (uint8_t)(passkey >> 8); in SecureConnectionsPasskeyEntry()
397 ra[2] = (uint8_t)(passkey >> 16); in SecureConnectionsPasskeyEntry()
[all …]
H A Dsecurity_manager.cc116 …SecurityManager::OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t passkey) { in OnPasskeyEntry() argument
118 … common::Unretained(security_manager_impl_), address, passkey)); in OnPasskeyEntry()
H A Dsecurity_manager.h126 void OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t passkey) override;
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
H A DBluetoothPairingController.java343 private String formatKey(int passkey) { in formatKey() argument
347 return String.format(Locale.US, "%06d", passkey); in formatKey()
350 return String.format("%04d", passkey); in formatKey()
364 private void onPair(String passkey) { in onPair() argument
369 mDevice.setPin(passkey); in onPair()
373 int pass = Integer.parseInt(passkey); in onPair()
/aosp12/system/bt/stack/smp/
H A Dsmp_api.cc356 uint32_t passkey) { in SMP_PasskeyReply() argument
362 SMP_TRACE_EVENT("SMP_PasskeyReply: Key: %d Result:%d", passkey, res); in SMP_PasskeyReply()
380 if (passkey > BTM_MAX_PASSKEY_VAL || res != SMP_SUCCESS) { in SMP_PasskeyReply()
383 passkey); in SMP_PasskeyReply()
392 smp_int_data.passkey = passkey; in SMP_PasskeyReply()
395 smp_convert_string_to_tk(&p_cb->tk, passkey); in SMP_PasskeyReply()
H A Dsmp_keys.cc91 uint32_t passkey; /* 19655 test number; */ in smp_proc_passkey() local
95 STREAM_TO_UINT32(passkey, pp); in smp_proc_passkey()
96 passkey &= ~SMP_PASSKEY_MASK; in smp_proc_passkey()
99 while (passkey > BTM_MAX_PASSKEY_VAL) passkey >>= 1; in smp_proc_passkey()
103 UINT32_TO_STREAM(tt, passkey); in smp_proc_passkey()
107 smp_evt_data.passkey = passkey; in smp_proc_passkey()
114 smp_int_data.passkey = passkey; in smp_proc_passkey()
874 smp_int_data.passkey = p_cb->number_to_display; in smp_calculate_numeric_comparison_display_number()
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothPairingController.java371 private String formatKey(int passkey) { in formatKey() argument
375 return String.format(Locale.US, "%06d", passkey); in formatKey()
378 return String.format("%04d", passkey); in formatKey()
391 private void onPair(String passkey) { in onPair() argument
396 mDevice.setPin(passkey); in onPair()
/aosp12/system/bt/gd/security/pairing/
H A Dclassic_pairing_handler.h89 void OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t passkey) override;
96 void OnPasskeyInput(uint32_t passkey);
99 void NotifyUiDisplayPasskey(uint32_t passkey);
H A Dclassic_pairing_handler.cc45 void ClassicPairingHandler::NotifyUiDisplayPasskey(uint32_t passkey) { in NotifyUiDisplayPasskey() argument
47 ConfirmationData data(*GetRecord()->GetPseudoAddress(), device_name_, passkey); in NotifyUiDisplayPasskey()
92 …cPairingHandler::OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t passkey) { in OnPasskeyEntry() argument
93 …Channel()->SendCommand(hci::UserPasskeyRequestReplyBuilder::Create(address.GetAddress(), passkey)); in OnPasskeyEntry()
652 void ClassicPairingHandler::OnPasskeyInput(uint32_t passkey) { in OnPasskeyInput() argument
653 passkey_ = passkey; in OnPasskeyInput()
/aosp12/system/bt/gd/cert/
H A Dpy_security.py176 passkey = -1
180 nonlocal passkey
181 passkey = event.numeric_value
187 return passkey
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DJniCallbacks.java50 void sspRequestCallback(byte[] address, byte[] name, int cod, int pairingVariant, int passkey) { in sspRequestCallback() argument
51 mBondStateMachine.sspRequestCallback(address, name, cod, pairingVariant, passkey); in sspRequestCallback()
H A DBondStateMachine.java253 int passkey = msg.arg1; in processMessage() local
255 sendDisplayPinIntent(devProp.getAddress(), passkey, variant); in processMessage() local
475 void sspRequestCallback(byte[] address, byte[] name, int cod, int pairingVariant, int passkey) { in sspRequestCallback() argument
482 …+ " pairingVariant " + pairingVariant + " passkey: " + (Build.IS_DEBUGGABLE ? passkey : "******")); in sspRequestCallback()
524 msg.arg1 = passkey; in sspRequestCallback()
/aosp12/packages/services/Car/service/src/com/android/car/
H A DFastPairGattServer.java527 int passkey = Byte.toUnsignedInt(decryptedRequest[1]) * 65536 in processPairingKey() local
533 + "FastPair Passkey = " + passkey + "Bluetooth Passkey = " + mPairingPasskey); in processPairingKey()
536 if (mPairingPasskey == passkey) { in processPairingKey()
550 void sendPairingResponse(int passkey) { in sendPairingResponse() argument
553 Log.d(TAG, "sendPairingResponse + " + passkey); in sendPairingResponse()
559 passkey); in sendPairingResponse()
/aosp12/system/bt/gd/security/cert/
H A Dle_security_test.py662 passkey = self.dut_security.wait_for_ui_event_passkey()
664 if passkey == 0:
670 …message_type=UiCallbackType.PASSKEY, numeric_value=passkey, unique_id=1, address=self.dut_address))
709 passkey = self.dut_security.wait_for_ui_event_passkey()
711 if passkey == 0:
720 …message_type=UiCallbackType.PASSKEY, numeric_value=passkey, unique_id=1, address=self.dut_address))
760 passkey = self.cert_security.wait_for_ui_event_passkey()
762 if passkey == 0:
770 …message_type=UiCallbackType.PASSKEY, numeric_value=passkey, unique_id=1, address=self.cert_address…
813 passkey = self.dut_security.wait_for_ui_event_passkey()
[all …]
H A Dcert_security.py198 def input_passkey(self, address, passkey): argument
204 logging.info("Cert: Send user input passkey %d for %s" % (passkey, address))
233 self._enqueue_hci_command(hci_packets.UserPasskeyRequestReplyBuilder(peer, passkey), True)
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
H A DBluetoothPairingDialog.java127 int passkey = in onCreate() local
129 if (passkey == BluetoothDevice.ERROR) { in onCreate()
134 mPairingKey = String.format(Locale.US, "%06d", passkey); in onCreate()
299 int passkey = Integer.parseInt(value); in onPair() local
/aosp12/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothTestUtils.java162 public PairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) { in PairReceiver() argument
166 mPasskey = passkey; in PairReceiver()
777 public void pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) { in pair() argument
778 pairOrAcceptPair(adapter, device, passkey, pin, true); in pair()
790 public void acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, in acceptPair() argument
792 pairOrAcceptPair(adapter, device, passkey, pin, false); in acceptPair()
806 private void pairOrAcceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, in pairOrAcceptPair() argument
821 PairReceiver receiver = getPairReceiver(device, passkey, pin, mask); in pairOrAcceptPair()
1528 private PairReceiver getPairReceiver(BluetoothDevice device, int passkey, byte[] pin, in getPairReceiver() argument
1533 PairReceiver receiver = new PairReceiver(device, passkey, pin, expectedFlags); in getPairReceiver()
/aosp12/system/bt/stack/include/
H A Dsmp_api.h135 uint32_t passkey);
/aosp12/system/bt/test/mock/
H A Dmock_stack_smp_api.cc72 uint32_t passkey) { in SMP_PasskeyReply() argument
/aosp12/system/bt/stack/test/common/
H A Dmock_smp_smp_api.cc72 uint32_t passkey) { in SMP_PasskeyReply() argument
/aosp12/system/bt/service/common/android/bluetooth/
H A DIBluetooth.aidl49 int passkey); in SspReply() argument
/aosp12/system/bt/gd/rust/topshim/btif/
H A Dbtif_shim.h66 …int SspReply(const RustRawAddress& address, int ssp_variant, uint8_t accept, uint32_t passkey) con…
/aosp12/system/bt/btif/include/
H A Dbtif_api.h287 uint32_t passkey);
/aosp12/system/bt/bta/dm/
H A Dbta_dm_api.cc450 uint32_t passkey) { in BTA_DmBlePasskeyReply() argument
452 accept, accept ? passkey : 0)); in BTA_DmBlePasskeyReply()

123