/packages/modules/Bluetooth/system/gd/security/ |
D | pairing_handler_le_legacy.cc | 90 uint32_t passkey; in LegacyPasskeyEntry() local 93 passkey = GenerateRandom(); in LegacyPasskeyEntry() 94 passkey &= 0x0fffff; /* maximum 20 significant bits */ in LegacyPasskeyEntry() 96 if (passkey > PASSKEY_MAX) passkey >>= 1; in LegacyPasskeyEntry() 98 ConfirmationData data(i.remote_connection_address, i.remote_name, passkey); in LegacyPasskeyEntry() 108 passkey = response->ui_value; in LegacyPasskeyEntry() 112 tk[0] = (uint8_t)(passkey); in LegacyPasskeyEntry() 113 tk[1] = (uint8_t)(passkey >> 8); in LegacyPasskeyEntry() 114 tk[2] = (uint8_t)(passkey >> 16); in LegacyPasskeyEntry() 115 tk[3] = (uint8_t)(passkey >> 24); in LegacyPasskeyEntry()
|
D | pairing_handler_le_secure_connections.cc | 289 uint32_t passkey; in SecureConnectionsPasskeyEntry() local 293 passkey = GenerateRandom(); in SecureConnectionsPasskeyEntry() 294 passkey &= 0x0fffff; /* maximum 20 significant bytes */ in SecureConnectionsPasskeyEntry() 296 while (passkey > PASSKEY_MAX) passkey >>= 1; in SecureConnectionsPasskeyEntry() 298 ConfirmationData data(i.remote_connection_address, i.remote_name, passkey); in SecureConnectionsPasskeyEntry() 308 passkey = response->ui_value; in SecureConnectionsPasskeyEntry() 321 bool bit_set = ((bitmask & passkey) != 0); in SecureConnectionsPasskeyEntry() 397 ra[0] = (uint8_t)(passkey); in SecureConnectionsPasskeyEntry() 398 ra[1] = (uint8_t)(passkey >> 8); in SecureConnectionsPasskeyEntry() 399 ra[2] = (uint8_t)(passkey >> 16); in SecureConnectionsPasskeyEntry() [all …]
|
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/ |
D | sm.py | 119 def MMI_DISPLAY_PASSKEY_CODE(self, passkey: str, **kwargs): 123 self.passkey_queue.put(passkey) 178 passkey = self.passkey_queue.get(timeout=15) 179 pairing_events.send(event=event, passkey=int(passkey))
|
D | gap.py | 64 def _mmi_2001(self, passkey: str, **kwargs): 70 assert event.numeric_comparison == int(passkey), (event, passkey) 115 def TSC_MMI_the_security_id_is(self, pts_addr: bytes, passkey: str, **kwargs): 122 self.pairing_events.send(event=event, passkey=int(passkey))
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/common/bluetooth/fastpair/ |
D | Constants.java | 324 public static byte[] encrypt(@Type int type, byte[] secret, int passkey) in encrypt() argument 327 0 < passkey && passkey < /*2^24=*/ 16777216, in encrypt() 329 passkey); in encrypt() 331 new byte[]{(byte) (passkey >>> 16), (byte) (passkey >>> 8), (byte) passkey}; in encrypt()
|
D | BluetoothAudioPairer.java | 431 int passkey = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_KEY, ERROR); in onReceiveDeviceIntent() local 432 handlePairingRequest(variant, passkey); in onReceiveDeviceIntent() 455 private void handlePairingRequest(int variant, int passkey) { in handlePairingRequest() argument 456 Log.i(TAG, "Pairing request, variant=" + variant + ", passkey=" + (passkey == ERROR in handlePairingRequest() 457 ? "(none)" : String.valueOf(passkey))); in handlePairingRequest() 556 mKeyBasedPairingInfo.mSecret, passkey); in handlePairingRequest() 590 boolean isPasskeyCorrect = passkey == remotePasskey; in handlePairingRequest() 594 Log.e(TAG, "Passkey incorrect, local= " + passkey in handlePairingRequest() 605 .onPasskeyConfirmation(mDevice, passkey); in handlePairingRequest()
|
D | BluetoothClassicPairer.java | 144 private void handlePairingRequest(BluetoothDevice device, int variant, int passkey) { in handlePairingRequest() argument 147 + passkey); in handlePairingRequest() 150 mPasskeyConfirmationHandler.onPasskeyConfirmation(device, passkey); in handlePairingRequest()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothPairingController.java | 343 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()
|
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/internal/bluetooth/ |
D | IBluetoothImpl.java | 141 int passkey = new Random().nextInt(999999) + 1; in createBond() local 146 passkey); in createBond() 149 passkey); in createBond() 157 remoteBluelet.address, PAIRING_VARIANT_DISPLAY_PASSKEY, passkey); in createBond() 158 localBluelet.mPassKey = passkey; in createBond() 160 localBluelet.address, PAIRING_VARIANT_DISPLAY_PASSKEY, passkey); in createBond() 222 public boolean setPasskey(BluetoothDevice device, int passkey) { in setPasskey() argument 224 if (passkey == remoteBluelet.mPassKey) { in setPasskey()
|
/packages/modules/Bluetooth/system/stack/smp/ |
D | smp_api.cc | 358 uint32_t passkey) { in SMP_PasskeyReply() argument 364 SMP_TRACE_EVENT("SMP_PasskeyReply: Key: %d Result:%d", passkey, res); in SMP_PasskeyReply() 382 if (passkey > BTM_MAX_PASSKEY_VAL || res != SMP_SUCCESS) { in SMP_PasskeyReply() 385 passkey); in SMP_PasskeyReply() 394 smp_int_data.passkey = passkey; in SMP_PasskeyReply() 397 smp_convert_string_to_tk(&p_cb->tk, passkey); in SMP_PasskeyReply()
|
D | smp_keys.cc | 93 uint32_t passkey; /* 19655 test number; */ in smp_proc_passkey() local 97 STREAM_TO_UINT32(passkey, pp); in smp_proc_passkey() 98 passkey &= ~SMP_PASSKEY_MASK; in smp_proc_passkey() 101 while (passkey > BTM_MAX_PASSKEY_VAL) passkey >>= 1; in smp_proc_passkey() 105 UINT32_TO_STREAM(tt, passkey); in smp_proc_passkey() 109 .passkey = passkey, in smp_proc_passkey() 117 smp_int_data.passkey = passkey; in smp_proc_passkey() 877 smp_int_data.passkey = p_cb->number_to_display; in smp_calculate_numeric_comparison_display_number()
|
/packages/modules/Bluetooth/android/pandora/server/src/com/android/pandora/ |
D | Security.kt | 162 device.setPin(answer.passkey.toString().toByteArray()) in <lambda>() 186 val passkey = in <lambda>() constant 189 eventBuilder.passkeyEntryNotification = passkey in <lambda>() 213 val passkey = in <lambda>() constant 218 ByteString.copyFrom(passkey.toString().toByteArray()) in <lambda>() 219 DEVICE_TYPE_LE -> eventBuilder.passkeyEntryNotification = passkey in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothPairingController.java | 431 private String formatKey(int passkey) { in formatKey() argument 435 return String.format(Locale.US, "%06d", passkey); in formatKey() 438 return String.format("%04d", passkey); in formatKey() 451 private void onPair(String passkey) { in onPair() argument 456 mDevice.setPin(passkey); in onPair()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/fastpair/pairinghandler/ |
D | HalfSheetPairingProgressHandler.java | 73 public void onHandlePasskeyConfirmation(BluetoothDevice device, int passkey) { in onHandlePasskeyConfirmation() argument 74 super.onHandlePasskeyConfirmation(device, passkey); in onHandlePasskeyConfirmation() 75 mFastPairHalfSheetManager.showPasskeyConfirmation(device, passkey); in onHandlePasskeyConfirmation()
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/ |
D | py_security.py | 173 passkey = -1 177 nonlocal passkey 178 passkey = event.numeric_value 184 return passkey
|
/packages/modules/Bluetooth/system/gd/security/pairing/ |
D | classic_pairing_handler.h | 89 void OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t passkey) override; 96 void OnPasskeyInput(uint32_t passkey); 99 void NotifyUiDisplayPasskey(uint32_t passkey);
|
D | classic_pairing_handler.cc | 45 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()
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/security/ |
D | le_security_test.py | 645 passkey = self.dut_security.wait_for_ui_event_passkey() 647 if passkey == 0: 653 …message_type=UiCallbackType.PASSKEY, numeric_value=passkey, unique_id=1, address=self.dut_address)) 692 passkey = self.dut_security.wait_for_ui_event_passkey() 694 if passkey == 0: 703 …message_type=UiCallbackType.PASSKEY, numeric_value=passkey, unique_id=1, address=self.dut_address)) 743 passkey = self.cert_security.wait_for_ui_event_passkey() 745 if passkey == 0: 753 …message_type=UiCallbackType.PASSKEY, numeric_value=passkey, unique_id=1, address=self.cert_address… 796 passkey = self.dut_security.wait_for_ui_event_passkey() [all …]
|
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/shadows/bluetooth/ |
D | ShadowBluetoothDevice.java | 47 public boolean setPasskey(int passkey) { in setPasskey() argument 48 return new IBluetoothImpl().setPasskey(mBluetoothDevice, passkey); in setPasskey()
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | FastPairGattServer.java | 818 int passkey = Byte.toUnsignedInt(decryptedRequest[1]) * 65536 in processPairingKey() local 824 decryptedRequest[0], passkey, mPairingPasskey); in processPairingKey() 827 if (mPairingPasskey == passkey) { in processPairingKey() 848 private void sendPairingResponse(int passkey) { in sendPairingResponse() argument 851 Slogf.d(TAG, "sendPairingResponse %d", passkey); in sendPairingResponse() 862 passkey); in sendPairingResponse()
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_bta_dm_api.h | 170 std::function<void(const RawAddress& bd_addr, bool accept, uint32_t passkey)> 171 body{[](const RawAddress& bd_addr, bool accept, uint32_t passkey) {}}; 172 void operator()(const RawAddress& bd_addr, bool accept, uint32_t passkey) { in operator() 173 body(bd_addr, accept, passkey); in operator()
|
/packages/modules/Bluetooth/framework/tests/stress/src/android/bluetooth/ |
D | BluetoothTestUtils.java | 163 PairReceiver(BluetoothDevice device, int passkey, byte[] pin, int expectedFlags) { in PairReceiver() argument 167 mPasskey = passkey; in PairReceiver() 799 public void pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) { in pair() argument 800 pairOrAcceptPair(adapter, device, passkey, pin, true); in pair() 812 public void acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, in acceptPair() argument 814 pairOrAcceptPair(adapter, device, passkey, pin, false); in acceptPair() 828 private void pairOrAcceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, in pairOrAcceptPair() argument 843 PairReceiver receiver = getPairReceiver(device, passkey, pin, mask); in pairOrAcceptPair() 1552 private PairReceiver getPairReceiver(BluetoothDevice device, int passkey, byte[] pin, in getPairReceiver() argument 1557 PairReceiver receiver = new PairReceiver(device, passkey, pin, expectedFlags); in getPairReceiver()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | JniCallbacks.java | 50 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()
|
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | bluetooth.rs | 128 fn set_passkey(&self, device: BluetoothDevice, accept: bool, passkey: Vec<u8>) -> bool; in set_passkey() 278 passkey: u32, in on_ssp_request() 549 passkey: u32, in ssp_request() 743 passkey: u32, in ssp_request() 752 passkey, in ssp_request() 1190 fn set_passkey(&self, device: BluetoothDevice, accept: bool, passkey: Vec<u8>) -> bool { in set_passkey() 1209 tmp.copy_from_slice(passkey.as_slice()); in set_passkey() 1210 let passkey = u32::from_ne_bytes(tmp); in set_passkey() localVariable 1216 passkey, in set_passkey()
|
/packages/modules/Bluetooth/android/pandora/test/ |
D | example.py | 179 passkey=dut_pairing_event.passkey_entry_notification, 185 passkey=ref_pairing_event.passkey_entry_notification, 268 passkey=dut_pairing_event.passkey_entry_notification, 274 passkey=ref_pairing_event.passkey_entry_notification,
|