/system/bt/btif/src/ |
D | btif_metrics_logging.cc | 27 void log_a2dp_audio_underrun_event(const RawAddress& address, in log_a2dp_audio_underrun_event() argument 32 address, encoding_interval_millis, num_missing_pcm_bytes); in log_a2dp_audio_underrun_event() 35 address, encoding_interval_millis, num_missing_pcm_bytes); in log_a2dp_audio_underrun_event() 39 void log_a2dp_audio_overrun_event(const RawAddress& address, in log_a2dp_audio_overrun_event() argument 46 address, encoding_interval_millis, num_dropped_buffers, in log_a2dp_audio_overrun_event() 50 address, encoding_interval_millis, num_dropped_buffers, in log_a2dp_audio_overrun_event() 55 void log_a2dp_playback_event(const RawAddress& address, int playback_state, in log_a2dp_playback_event() argument 58 bluetooth::shim::LogMetricA2dpPlaybackEvent(address, playback_state, in log_a2dp_playback_event() 61 bluetooth::common::LogA2dpPlaybackEvent(address, playback_state, in log_a2dp_playback_event() 66 void log_read_rssi_result(const RawAddress& address, uint16_t handle, in log_read_rssi_result() argument [all …]
|
D | btif_hearing_aid.cc | 69 const RawAddress& address) override { in OnConnectionState() argument 70 DVLOG(2) << __func__ << " address: " << address; in OnConnectionState() 72 Unretained(callbacks), state, address)); in OnConnectionState() 76 const RawAddress& address) override { in OnDeviceAvailable() argument 77 DVLOG(2) << __func__ << " address: " << address in OnDeviceAvailable() 82 hiSyncId, address)); in OnDeviceAvailable() 85 void Connect(const RawAddress& address) override { in Connect() argument 86 DVLOG(2) << __func__ << " address: " << address; in Connect() 88 Unretained(HearingAid::Get()), address)); in Connect() 91 void Disconnect(const RawAddress& address) override { in Disconnect() argument [all …]
|
D | btif_vc.cc | 51 const RawAddress& address) override { in OnConnectionState() argument 52 DVLOG(2) << __func__ << " address: " << address; in OnConnectionState() 54 Unretained(callbacks_), state, address)); in OnConnectionState() 57 void OnVolumeStateChanged(const RawAddress& address, uint8_t volume, in OnVolumeStateChanged() argument 59 DVLOG(2) << __func__ << " address: " << address << "volume: " << volume in OnVolumeStateChanged() 63 Unretained(callbacks_), address, volume, mute)); in OnVolumeStateChanged() 75 void Connect(const RawAddress& address) override { in Connect() argument 76 DVLOG(2) << __func__ << " address: " << address; in Connect() 79 Unretained(VolumeControl::Get()), address)); in Connect() 82 void Disconnect(const RawAddress& address) override { in Disconnect() argument [all …]
|
/system/libbase/ |
D | parsenetaddress.cpp | 27 bool ParseNetAddress(const std::string& address, std::string* host, int* port, in ParseNetAddress() argument 33 size_t colons = std::count(address.begin(), address.end(), ':'); in ParseNetAddress() 34 size_t dots = std::count(address.begin(), address.end(), '.'); in ParseNetAddress() 36 if (address[0] == '[') { in ParseNetAddress() 38 if (address.rfind("]:") == std::string::npos) { in ParseNetAddress() 39 *error = StringPrintf("bad IPv6 address '%s'", address.c_str()); in ParseNetAddress() 42 *host = address.substr(1, (address.find("]:") - 1)); in ParseNetAddress() 43 port_str = address.substr(address.rfind("]:") + 2); in ParseNetAddress() 47 *host = address; in ParseNetAddress() 51 std::vector<std::string> pieces = Split(address, ":"); in ParseNetAddress() [all …]
|
/system/core/libcutils/ |
D | socket_network_client_windows.cpp | 43 struct addrinfo* address = NULL; in socket_network_client() local 46 if (getaddrinfo(host, port_str, &hints, &address) != 0 || address == NULL) { in socket_network_client() 47 if (address != NULL) { in socket_network_client() 48 freeaddrinfo(address); in socket_network_client() 54 SOCKET sock = socket(address->ai_family, address->ai_socktype, in socket_network_client() 55 address->ai_protocol); in socket_network_client() 57 freeaddrinfo(address); in socket_network_client() 61 if (connect(sock, address->ai_addr, address->ai_addrlen) == SOCKET_ERROR) { in socket_network_client() 63 freeaddrinfo(address); in socket_network_client() 67 freeaddrinfo(address); in socket_network_client()
|
/system/bt/gd/os/android/ |
D | metrics.cc | 41 const Address* address, in LogMetricLinkLayerConnectionEvent() argument 51 if (address != nullptr) { in LogMetricLinkLayerConnectionEvent() 52 metric_id = MetricIdManager::GetInstance().AllocateId(*address); in LogMetricLinkLayerConnectionEvent() 75 address ? address->ToString().c_str() : "(NULL)", in LogMetricLinkLayerConnectionEvent() 106 const Address& address, uint64_t encoding_interval_millis, int num_missing_pcm_bytes) { in LogMetricA2dpAudioUnderrunEvent() argument 108 if (!address.IsEmpty()) { in LogMetricA2dpAudioUnderrunEvent() 109 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpAudioUnderrunEvent() 121 address.ToString().c_str(), in LogMetricA2dpAudioUnderrunEvent() 129 const Address& address, in LogMetricA2dpAudioOverrunEvent() argument 135 if (!address.IsEmpty()) { in LogMetricA2dpAudioOverrunEvent() [all …]
|
/system/bt/gd/neighbor/ |
D | name_db.cc | 41 …void ReadRemoteNameRequest(hci::Address address, ReadRemoteNameDbCallback callback, os::Handler* h… 43 bool IsNameCached(hci::Address address) const; 44 RemoteName ReadCachedRemoteName(hci::Address address) const; 55 void OnRemoteNameResponse(hci::ErrorCode status, hci::Address address, RemoteName name); 68 hci::Address address, ReadRemoteNameDbCallback callback, os::Handler* handler) { in ReadRemoteNameRequest() argument 69 if (address_to_pending_read_map_.find(address) != address_to_pending_read_map_.end()) { in ReadRemoteNameRequest() 71 address_to_pending_read_map_[address].push_back({std::move(callback), handler}); in ReadRemoteNameRequest() 76 address_to_pending_read_map_[address] = std::move(tmp); in ReadRemoteNameRequest() 77 address_to_pending_read_map_[address].push_back({std::move(callback), handler}); in ReadRemoteNameRequest() 84 address, in ReadRemoteNameRequest() [all …]
|
/system/bt/stack/gatt/ |
D | connection_manager.cc | 86 std::set<tAPP_ID> get_apps_connecting_to(const RawAddress& address) { in get_apps_connecting_to() argument 87 auto it = bgconn_dev.find(address); in get_apps_connecting_to() 94 bool background_connect_add(uint8_t app_id, const RawAddress& address) { in background_connect_add() argument 96 return L2CA_ConnectFixedChnl(L2CAP_ATT_CID, address); in background_connect_add() 99 auto it = bgconn_dev.find(address); in background_connect_add() 105 << "already doing background connection to " << address; in background_connect_add() 117 if (!BTM_AcceptlistAdd(address)) return false; in background_connect_add() 121 bgconn_dev[address].doing_bg_conn.insert(app_id); in background_connect_add() 127 bool remove_unconditional(const RawAddress& address) { in remove_unconditional() argument 128 auto it = bgconn_dev.find(address); in remove_unconditional() [all …]
|
/system/bt/main/shim/ |
D | helpers.h | 31 inline RawAddress ToRawAddress(const hci::Address& address) { in ToRawAddress() argument 33 ret.address[0] = address.address[5]; in ToRawAddress() 34 ret.address[1] = address.address[4]; in ToRawAddress() 35 ret.address[2] = address.address[3]; in ToRawAddress() 36 ret.address[3] = address.address[2]; in ToRawAddress() 37 ret.address[4] = address.address[1]; in ToRawAddress() 38 ret.address[5] = address.address[0]; in ToRawAddress() 42 inline hci::Address ToGdAddress(const RawAddress& address) { in ToGdAddress() argument 44 ret.address[0] = address.address[5]; in ToGdAddress() 45 ret.address[1] = address.address[4]; in ToGdAddress() [all …]
|
D | metrics_api.cc | 32 Address address = Address::kEmpty; in LogMetricLinkLayerConnectionEvent() local 34 address = bluetooth::ToGdAddress(*raw_address); in LogMetricLinkLayerConnectionEvent() 37 raw_address == nullptr ? nullptr : &address, connection_handle, direction, in LogMetricLinkLayerConnectionEvent() 44 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricA2dpAudioUnderrunEvent() local 46 address, encoding_interval_millis, num_missing_pcm_bytes); in LogMetricA2dpAudioUnderrunEvent() 54 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricA2dpAudioOverrunEvent() local 56 address, encoding_interval_millis, num_dropped_buffers, in LogMetricA2dpAudioOverrunEvent() 62 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricA2dpPlaybackEvent() local 63 bluetooth::os::LogMetricA2dpPlaybackEvent(address, playback_state, in LogMetricA2dpPlaybackEvent() 69 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricReadRssiResult() local [all …]
|
D | metric_id_api.cc | 31 using CallbackGd = std::function<bool(const Address& address, const int id)>; 38 Address address = bluetooth::ToGdAddress(device.first); in InitMetricIdAllocator() local 39 paired_device_map_gd[address] = device.second; in InitMetricIdAllocator() 42 CallbackGd save_id_callback_gd = [save_id_callback](const Address& address, in InitMetricIdAllocator() 44 return save_id_callback(bluetooth::ToRawAddress(address), id); in InitMetricIdAllocator() 47 [forget_device_callback](const Address& address, const int id) { in InitMetricIdAllocator() argument 48 return forget_device_callback(bluetooth::ToRawAddress(address), id); in InitMetricIdAllocator() 61 Address address = bluetooth::ToGdAddress(raw_address); in AllocateIdFromMetricIdAllocator() local 62 return MetricIdManager::GetInstance().AllocateId(address); in AllocateIdFromMetricIdAllocator() 66 Address address = bluetooth::ToGdAddress(raw_address); in SaveDeviceOnMetricIdAllocator() local [all …]
|
/system/bt/gd/hci/ |
D | le_address_manager.cc | 65 auto address = addr.address; in SetPrivacyPolicyForInitiatorAddress() local 67 …ASSERT_LOG((address[5] & BLE_ADDR_MASK) == BLE_ADDR_MASK, "The two most significant bits shall be … in SetPrivacyPolicyForInitiatorAddress() 69 …if ((address[0] == 0x00 && address[1] == 0x00 && address[2] == 0x00 && address[3] == 0x00 && addre… in SetPrivacyPolicyForInitiatorAddress() 70 address[5] == BLE_ADDR_MASK) || in SetPrivacyPolicyForInitiatorAddress() 71 …(address[0] == 0xFF && address[1] == 0xFF && address[2] == 0xFF && address[3] == 0xFF && address[4… in SetPrivacyPolicyForInitiatorAddress() 72 address[5] == 0xFF)) { in SetPrivacyPolicyForInitiatorAddress() 110 auto address = addr.address; in SetPrivacyPolicyForInitiatorAddressForTest() local 112 …ASSERT_LOG((address[5] & BLE_ADDR_MASK) == BLE_ADDR_MASK, "The two most significant bits shall be … in SetPrivacyPolicyForInitiatorAddressForTest() 114 …if ((address[0] == 0x00 && address[1] == 0x00 && address[2] == 0x00 && address[3] == 0x00 && addre… in SetPrivacyPolicyForInitiatorAddressForTest() 115 address[5] == BLE_ADDR_MASK) || in SetPrivacyPolicyForInitiatorAddressForTest() [all …]
|
/system/bt/gd/cert/ |
D | py_security.py | 78 def create_bond(self, address, type): argument 82 … logging.info("DUT: Creating bond to '%s' from '%s'" % (str(address), str(self._device.address))) 84 … common.BluetoothAddressWithType(address=common.BluetoothAddress(address=address), type=type)) 86 def create_bond_out_of_band(self, address, type, p192_oob_data, p256_oob_data): argument 91 …ogging.info("DUT: Creating OOB bond to '%s' from '%s'" % (str(address), str(self._device.address))) 95 …address=common.BluetoothAddressWithType(address=common.BluetoothAddress(address=address), type=typ… 97 address=common.BluetoothAddressWithType( 98 address=common.BluetoothAddress(address=address), type=type), 102 address=common.BluetoothAddressWithType( 103 address=common.BluetoothAddress(address=address), type=type), [all …]
|
/system/bt/binder/android/bluetooth/ |
D | IBluetoothGattCallback.aidl | 28 in boolean connected, in String address); in onClientConnectionState() argument 29 void onPhyUpdate(in String address, in int txPhy, in int rxPhy, in int status); in onPhyUpdate() argument 30 void onPhyRead(in String address, in int txPhy, in int rxPhy, in int status); in onPhyRead() argument 31 void onSearchComplete(in String address, in List<BluetoothGattService> services, in int status); in onSearchComplete() argument 32 void onCharacteristicRead(in String address, in int status, in int handle, in byte[] value); in onCharacteristicRead() argument 33 void onCharacteristicWrite(in String address, in int status, in int handle); in onCharacteristicWrite() argument 34 void onExecuteWrite(in String address, in int status); in onExecuteWrite() argument 35 void onDescriptorRead(in String address, in int status, in int handle, in byte[] value); in onDescriptorRead() argument 36 void onDescriptorWrite(in String address, in int status, in int handle); in onDescriptorWrite() argument 37 void onNotify(in String address, in int handle, in byte[] value); in onNotify() argument [all …]
|
D | IBluetoothGattServerCallback.aidl | 27 in boolean connected, in String address); in onServerConnectionState() argument 29 void onCharacteristicReadRequest(in String address, in int transId, in int offset, in onCharacteristicReadRequest() argument 31 void onDescriptorReadRequest(in String address, in int transId, in onDescriptorReadRequest() argument 34 void onCharacteristicWriteRequest(in String address, in int transId, in int offset, in onCharacteristicWriteRequest() argument 37 void onDescriptorWriteRequest(in String address, in int transId, in int offset, in onDescriptorWriteRequest() argument 40 void onExecuteWrite(in String address, in int transId, in boolean execWrite); in onExecuteWrite() argument 41 void onNotificationSent(in String address, in int status); in onNotificationSent() argument 42 void onMtuChanged(in String address, in int mtu); in onMtuChanged() argument 43 void onPhyUpdate(in String address, in int txPhy, in int rxPhy, in int status); in onPhyUpdate() argument 44 void onPhyRead(in String address, in int txPhy, in int rxPhy, in int status); in onPhyRead() argument [all …]
|
/system/bt/types/ |
D | raw_address.cc | 33 std::copy(addr, addr + kLength, address); in RawAddress() 37 return base::StringPrintf("%02x:%02x:%02x:%02x:%02x:%02x", address[0], in ToString() 38 address[1], address[2], address[3], address[4], in ToString() 39 address[5]); in ToString() 57 new_addr.address[i] = strtol(token.c_str(), &temp, 16); in FromString() 66 std::copy(from, from + kLength, address); in FromOctets() 70 bool RawAddress::IsValidAddress(const std::string& address) { in IsValidAddress() argument 72 return RawAddress::FromString(address, tmp); in IsValidAddress()
|
/system/bt/test/mock/ |
D | mock_stack_metrics_logging.h | 58 std::function<void(const RawAddress& address, uint16_t handle, 61 body{[](const RawAddress& address, uint16_t handle, uint32_t hci_cmd, 64 void operator()(const RawAddress& address, uint16_t handle, uint32_t hci_cmd, in operator() 67 body(address, handle, hci_cmd, hci_event, cmd_status, reason_code, in operator() 78 std::function<void(const RawAddress* address, uint32_t connection_handle, 83 body{[](const RawAddress* address, uint32_t connection_handle, 87 void operator()(const RawAddress* address, uint32_t connection_handle, in operator() 92 body(address, connection_handle, direction, link_type, hci_cmd, hci_event, in operator() 102 std::function<void(const RawAddress& address, uint8_t smp_cmd, 105 body{[](const RawAddress& address, uint8_t smp_cmd, [all …]
|
D | mock_stack_btm_ble_bgconn.h | 114 std::function<bool(const RawAddress& address)> body{ 115 [](const RawAddress& address) { return false; }}; 116 bool operator()(const RawAddress& address) { return body(address); }; in operator() 140 std::function<bool(const RawAddress& address)> body{ 141 [](const RawAddress& address) { return false; }}; 142 bool operator()(const RawAddress& address) { return body(address); }; in operator() 149 std::function<void(const RawAddress& address)> body{ 150 [](const RawAddress& address) {}}; 151 void operator()(const RawAddress& address) { body(address); }; in operator()
|
/system/bt/stack/metrics/ |
D | stack_metrics_logging.cc | 26 void log_classic_pairing_event(const RawAddress& address, uint16_t handle, in log_classic_pairing_event() argument 31 bluetooth::shim::LogMetricClassicPairingEvent(address, handle, hci_cmd, in log_classic_pairing_event() 35 bluetooth::common::LogClassicPairingEvent(address, handle, hci_cmd, in log_classic_pairing_event() 42 const RawAddress* address, uint32_t connection_handle, in log_link_layer_connection_event() argument 48 address, connection_handle, direction, link_type, hci_cmd, hci_event, in log_link_layer_connection_event() 52 address, connection_handle, direction, link_type, hci_cmd, hci_event, in log_link_layer_connection_event() 57 void log_smp_pairing_event(const RawAddress& address, uint8_t smp_cmd, in log_smp_pairing_event() argument 61 bluetooth::shim::LogMetricSmpPairingEvent(address, smp_cmd, direction, in log_smp_pairing_event() 64 bluetooth::common::LogSmpPairingEvent(address, smp_cmd, direction, in log_smp_pairing_event() 69 void log_sdp_attribute(const RawAddress& address, uint16_t protocol_uuid, in log_sdp_attribute() argument [all …]
|
/system/bt/gd/security/channel/ |
D | security_manager_channel.cc | 42 void SecurityManagerChannel::Connect(hci::Address address) { in Connect() argument 44 auto entry = link_map_.find(address); in Connect() 46 LOG_WARN("Already connected to '%s'", address.ToString().c_str()); in Connect() 51 l2cap_security_interface_->InitiateConnectionForSecurity(address); in Connect() 52 outgoing_pairing_remote_devices_.insert(address); in Connect() 55 void SecurityManagerChannel::Release(hci::Address address) { in Release() argument 56 auto entry = link_map_.find(address); in Release() 58 LOG_WARN("Unknown address '%s'", address.ToString().c_str()); in Release() 64 void SecurityManagerChannel::Disconnect(hci::Address address) { in Disconnect() argument 65 outgoing_pairing_remote_devices_.erase(address); in Disconnect() [all …]
|
/system/bt/gd/os/linux/ |
D | metrics.cc | 28 const Address& address, in LogMetricClassicPairingEvent() argument 37 const Address& address, in LogMetricSocketConnectionState() argument 50 const Address& address, uint64_t encoding_interval_millis, int num_missing_pcm_bytes) {} in LogMetricA2dpAudioUnderrunEvent() argument 53 const Address& address, in LogMetricA2dpAudioOverrunEvent() argument 59 void LogMetricReadRssiResult(const Address& address, uint16_t handle, uint32_t cmd_status, int8_t r… in LogMetricReadRssiResult() argument 62 const Address& address, uint16_t handle, uint32_t cmd_status, int32_t failed_contact_counter) {} in LogMetricReadFailedContactCounterResult() argument 65 const Address& address, uint16_t handle, uint32_t cmd_status, int32_t transmit_power_level) {} in LogMetricReadTxPowerLevelResult() argument 71 const Address* address, in LogMetricLinkLayerConnectionEvent() argument 82 const Address& address, in LogMetricManufacturerInfo() argument 91 const Address& address, in LogMetricSdpAttribute() argument [all …]
|
/system/bt/gd/os/host/ |
D | metrics.cc | 28 const Address& address, in LogMetricClassicPairingEvent() argument 37 const Address& address, in LogMetricSocketConnectionState() argument 50 const Address& address, uint64_t encoding_interval_millis, int num_missing_pcm_bytes) {} in LogMetricA2dpAudioUnderrunEvent() argument 53 const Address& address, in LogMetricA2dpAudioOverrunEvent() argument 59 void LogMetricReadRssiResult(const Address& address, uint16_t handle, uint32_t cmd_status, int8_t r… in LogMetricReadRssiResult() argument 62 const Address& address, uint16_t handle, uint32_t cmd_status, int32_t failed_contact_counter) {} in LogMetricReadFailedContactCounterResult() argument 65 const Address& address, uint16_t handle, uint32_t cmd_status, int32_t transmit_power_level) {} in LogMetricReadTxPowerLevelResult() argument 71 const Address* address, in LogMetricLinkLayerConnectionEvent() argument 82 const Address& address, in LogMetricManufacturerInfo() argument 91 const Address& address, in LogMetricSdpAttribute() argument [all …]
|
/system/bt/gd/rust/topshim/btif/ |
D | btif_shim.h | 50 int GetRemoteDeviceProperties(const RustRawAddress& address) const; 51 int GetRemoteDeviceProperty(const RustRawAddress& address, int prop_type) const; 52 int SetRemoteDeviceProperty(const RustRawAddress& address, const BtProperty& prop) const; 54 int GetRemoteServices(const RustRawAddress& address) const; 59 int CreateBond(const RustRawAddress& address, int transport) const; 60 int RemoveBond(const RustRawAddress& address) const; 61 int CancelBond(const RustRawAddress& address) const; 63 int GetConnectionState(const RustRawAddress& address) const; 65 …int PinReply(const RustRawAddress& address, uint8_t accept, uint8_t pin_len, const BtPinCode& code… 66 …int SspReply(const RustRawAddress& address, int ssp_variant, uint8_t accept, uint32_t passkey) con…
|
/system/bt/gd/os/ |
D | metrics.h | 50 const hci::Address* address, 94 const hci::Address& address, uint64_t encoding_interval_millis, int num_missing_pcm_bytes); 108 const hci::Address& address, 121 void LogMetricA2dpPlaybackEvent(const hci::Address& address, int playback_state, int audio_coding_m… 132 void LogMetricReadRssiResult(const hci::Address& address, uint16_t handle, uint32_t cmd_status, int… 145 …const hci::Address& address, uint16_t handle, uint32_t cmd_status, int32_t failed_contact_counter); 158 … const hci::Address& address, uint16_t handle, uint32_t cmd_status, int32_t transmit_power_level); 169 …const hci::Address& address, uint8_t smp_cmd, android::bluetooth::DirectionEnum direction, uint8_t… 184 const hci::Address& address, 203 const hci::Address& address, [all …]
|
/system/bt/common/ |
D | metrics.cc | 573 void LogLinkLayerConnectionEvent(const RawAddress* address, in LogLinkLayerConnectionEvent() argument 581 if (address != nullptr) { in LogLinkLayerConnectionEvent() 582 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(*address); in LogLinkLayerConnectionEvent() 583 metric_id = MetricIdAllocator::GetInstance().AllocateId(*address); in LogLinkLayerConnectionEvent() 587 address != nullptr ? obfuscated_id.c_str() : nullptr, in LogLinkLayerConnectionEvent() 588 address != nullptr ? obfuscated_id.size() : 0); in LogLinkLayerConnectionEvent() 598 << address << ", handle " << connection_handle << ", type " in LogLinkLayerConnectionEvent() 626 void LogA2dpAudioUnderrunEvent(const RawAddress& address, in LogA2dpAudioUnderrunEvent() argument 631 if (!address.IsEmpty()) { in LogA2dpAudioUnderrunEvent() 632 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpAudioUnderrunEvent() [all …]
|