/system/bt/test/suite/rfcomm/ |
D | rfcomm_unittest.cc | 42 int channel; in TEST_F() local 44 len = read(fd, &channel, sizeof(channel)); in TEST_F() 45 EXPECT_TRUE(len == sizeof(channel)) in TEST_F() 53 EXPECT_TRUE(channel == signal.channel) in TEST_F() 54 << "Inconsistent channels returned: " << channel << " and " in TEST_F() 55 << signal.channel; in TEST_F() 83 int channel; in TEST_F() local 85 len = read(fd, &channel, sizeof(channel)); in TEST_F() 86 if (len != sizeof(channel)) { in TEST_F() 88 << len << ", Sizeof channel: " << sizeof(channel); in TEST_F() [all …]
|
/system/bt/btif/src/ |
D | btif_sock_sdp.cc | 88 const uint16_t channel, const bool with_obex) { in create_base_record() argument 90 channel, name, with_obex); in create_base_record() 102 proto_list[1].params[0] = channel; in create_base_record() 131 sdp_handle, channel, name, with_obex); in create_base_record() 138 stage, channel, name, with_obex); in create_base_record() 146 const uint16_t channel) { in add_sdp_by_uuid() argument 148 uuid.ToString().c_str(), channel, name); in add_sdp_by_uuid() 154 channel, name); in add_sdp_by_uuid() 170 if (!create_base_record(handle, name, channel, false /* with_obex */)) in add_sdp_by_uuid() 205 static int add_pbap_sdp(const char* name, const int channel) { in add_pbap_sdp() argument [all …]
|
D | btif_sock.cc | 46 const Uuid* uuid, int channel, int* sock_fd, 49 const Uuid* uuid, int channel, int* sock_fd, 131 const Uuid* service_uuid, int channel, in btsock_listen() argument 139 int original_channel = channel; in btsock_listen() 144 0, 0, app_uid, channel, in btsock_listen() 148 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, in btsock_listen() 153 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); in btsock_listen() 158 channel = 0; in btsock_listen() 159 } else if (channel <= 0) { in btsock_listen() 161 channel); in btsock_listen() [all …]
|
D | btif_sock_l2cap.cc | 52 int channel; // PSM member 208 sock->rx_bytes, sock->app_uid, sock->channel, in btsock_l2cap_free_l() 236 if ((sock->channel >= 0) && (sock->server)) { in btsock_l2cap_free_l() 237 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP_LE); in btsock_l2cap_free_l() 239 sock->channel); in btsock_l2cap_free_l() 240 BTA_JvL2capStopServer(sock->channel, sock->id); in btsock_l2cap_free_l() 247 if ((sock->channel >= 0) && (sock->server)) { in btsock_l2cap_free_l() 248 BTA_JvFreeChannel(sock->channel, BTA_JV_CONN_TYPE_L2CAP); in btsock_l2cap_free_l() 249 BTA_JvL2capStopServer(sock->channel, sock->id); in btsock_l2cap_free_l() 341 sock->channel); in send_app_psm_or_chan_l() [all …]
|
/system/bt/stack/eatt/ |
D | eatt_impl.h | 141 EattChannel* channel = find_eatt_channel_by_cid(bda, cid); in eatt_l2cap_connect_ind() local 142 CHECK(!channel); in eatt_l2cap_connect_ind() 166 EattChannel* channel = this->find_channel_by_cid(bda, lcid); in eatt_l2cap_connect_cfm() local 167 if (!channel) { in eatt_l2cap_connect_cfm() 179 channel->EattChannelSetState(EattChannelState::EATT_CHANNEL_OPENED); in eatt_l2cap_connect_cfm() 180 channel->EattChannelSetTxMTU(peer_mtu); in eatt_l2cap_connect_cfm() 183 CHECK(eatt_dev->bda_ == channel->bda_); in eatt_l2cap_connect_cfm() 201 EattChannel* channel = find_channel_by_cid(bda, lcid); in eatt_l2cap_reconfig_completed() local 202 if (!channel) return; in eatt_l2cap_reconfig_completed() 207 channel->rx_mtu_ = p_cfg->mtu; in eatt_l2cap_reconfig_completed() [all …]
|
/system/bt/stack/test/eatt/ |
D | eatt_test.cc | 83 EattChannel* channel = in ConnectDeviceEattSupported() local 85 ASSERT_TRUE(channel != nullptr); in ConnectDeviceEattSupported() 86 ASSERT_TRUE(channel->state_ == EattChannelState::EATT_CHANNEL_PENDING); in ConnectDeviceEattSupported() 93 ASSERT_TRUE(channel->state_ == EattChannelState::EATT_CHANNEL_OPENED); in ConnectDeviceEattSupported() 97 EattChannel* channel = in ConnectDeviceEattSupported() local 99 ASSERT_TRUE(channel == nullptr); in ConnectDeviceEattSupported() 277 EattChannel* channel = in TEST_F() local 279 ASSERT_TRUE(channel->state_ == EattChannelState::EATT_CHANNEL_OPENED); in TEST_F() 283 channel = eatt_instance_->FindEattChannelByCid(test_address, cid); in TEST_F() 284 ASSERT_TRUE(channel == nullptr); in TEST_F() [all …]
|
/system/bt/gd/l2cap/le/internal/ |
D | link.cc | 159 auto channel = fixed_channel_allocator_.AllocateChannel(cid); in AllocateFixedChannel() local 160 …data_pipeline_manager_.AttachChannel(cid, channel, l2cap::internal::DataPipelineManager::ChannelMo… in AllocateFixedChannel() 161 return channel; in AllocateFixedChannel() 184 auto channel = dynamic_channel_allocator_.FindChannelByCid(local_cid); in SendDisconnectionRequest() local 185 if (channel == nullptr || channel->GetRemoteCid() != remote_cid) { in SendDisconnectionRequest() 207 auto channel = dynamic_channel_allocator_.AllocateChannel(psm, remote_cid); in AllocateDynamicChannel() local 208 if (channel != nullptr) { in AllocateDynamicChannel() 209 data_pipeline_manager_.AttachChannel(channel->GetCid(), channel, in AllocateDynamicChannel() 212 channel->local_initiated_ = false; in AllocateDynamicChannel() 214 return channel; in AllocateDynamicChannel() [all …]
|
/system/bt/gd/l2cap/internal/ |
D | sender.cc | 32 …nder(os::Handler* handler, ILink* link, Scheduler* scheduler, std::shared_ptr<ChannelImpl> channel) in Sender() argument 33 : handler_(handler), link_(link), queue_end_(channel->GetQueueDownEnd()), scheduler_(scheduler), in Sender() 34 channel_id_(channel->GetCid()), remote_channel_id_(channel->GetRemoteCid()), in Sender() 40 …nder(os::Handler* handler, ILink* link, Scheduler* scheduler, std::shared_ptr<ChannelImpl> channel, in Sender() argument 42 : handler_(handler), link_(link), queue_end_(channel->GetQueueDownEnd()), scheduler_(scheduler), in Sender() 43 channel_id_(channel->GetCid()), remote_channel_id_(channel->GetRemoteCid()) { in Sender()
|
D | dynamic_channel_allocator.cc | 83 auto channel = FindChannelByCid(cid); in FreeChannel() local 84 if (channel == nullptr) { in FreeChannel() 88 used_remote_cid_.erase(channel->GetRemoteCid()); in FreeChannel() 93 for (const auto& channel : channels_) { in IsPsmUsed() local 94 if (channel.second->GetPsm() == psm) { in IsPsmUsed() 110 for (auto& channel : channels_) { in FindChannelByRemoteCid() local 111 if (channel.second->GetRemoteCid() == remote_cid) { in FindChannelByRemoteCid() 112 return channel.second; in FindChannelByRemoteCid()
|
D | dynamic_channel_allocator_test.cc | 69 auto channel = channel_allocator_->AllocateChannel(psm, remote_cid); in TEST_F() local 70 Cid local_cid = channel->GetCid(); in TEST_F() 72 EXPECT_EQ(channel, channel_allocator_->FindChannelByCid(local_cid)); in TEST_F() 81 auto channel = channel_allocator_->AllocateReservedChannel(reserved, psm, remote_cid); in TEST_F() local 82 Cid local_cid = channel->GetCid(); in TEST_F() 85 EXPECT_EQ(channel, channel_allocator_->FindChannelByCid(local_cid)); in TEST_F()
|
/system/bt/gd/l2cap/classic/internal/ |
D | signalling_manager.cc | 296 auto channel = channel_allocator_->FindChannelByCid(cid); in OnConfigurationRequest() local 297 if (channel == nullptr) { in OnConfigurationRequest() 307 …auto initial_config_option = dynamic_service_manager_->GetService(channel->GetPsm())->GetConfigOpt… in OnConfigurationRequest() 350 … ConfigurationResponseBuilder::Create(signal_id.Value(), channel->GetRemoteCid(), is_continuation, in OnConfigurationRequest() 363 SendDisconnectionRequest(channel->GetCid(), channel->GetRemoteCid()); in OnConfigurationRequest() 368 …std::unique_ptr<DynamicChannel> user_channel = std::make_unique<DynamicChannel>(channel, handler_); in OnConfigurationRequest() 369 if (channel->local_initiated_) { in OnConfigurationRequest() 372 …dynamic_service_manager_->GetService(channel->GetPsm())->NotifyChannelCreation(std::move(user_chan… in OnConfigurationRequest() 375 …data_pipeline_manager_->AttachChannel(cid, channel, l2cap::internal::DataPipelineManager::ChannelM… in OnConfigurationRequest() 381 …auto response = ConfigurationResponseBuilder::Create(signal_id.Value(), channel->GetRemoteCid(), i… in OnConfigurationRequest() [all …]
|
/system/connectivity/wificond/scanning/ |
D | single_scan_settings.cpp | 45 for (const auto& channel : channel_settings_) { in writeToParcel() local 49 RETURN_IF_FAILED(channel.writeToParcel(parcel)); in writeToParcel() 75 ChannelSettings channel; in readFromParcel() local 86 RETURN_IF_FAILED(channel.readFromParcel(parcel)); in readFromParcel() 87 channel_settings_.push_back(channel); in readFromParcel()
|
/system/bt/include/hardware/ |
D | bt_sock.h | 45 int channel; member 71 const bluetooth::Uuid* service_uuid, int channel, 82 const bluetooth::Uuid* uuid, int channel, int* sock_fd,
|
/system/chre/apps/wifi_offload/ |
D | channel_histogram.cc | 126 uint8_t channel, uint32_t increase_count) { in IncrementScanCountForChannelForTest() argument 127 size_t index = GetChannelIndex(channel); in IncrementScanCountForChannelForTest() 141 for (const auto channel : kAllChannels) { in operator ==() local 143 if (GetChannelScanCount(channel) != other.GetChannelScanCount(channel)) { in operator ==()
|
/system/bt/stack/gatt/ |
D | gatt_utils.cc | 982 EattChannel* channel = in gatt_tcb_is_cid_busy() local 984 if (!channel) return false; in gatt_tcb_is_cid_busy() 986 return !channel->cl_cmd_q_.empty(); in gatt_tcb_is_cid_busy() 1040 EattChannel* channel = in gatt_tcb_get_cid_available_for_indication() local 1042 if (channel) { in gatt_tcb_get_cid_available_for_indication() 1043 *indicated_handle_p = &channel->indicate_handle_; in gatt_tcb_get_cid_available_for_indication() 1044 *cid_p = channel->cid_; in gatt_tcb_get_cid_available_for_indication() 1076 EattChannel* channel = in gatt_tcb_find_indicate_handle() local 1078 if (channel) { in gatt_tcb_find_indicate_handle() 1079 *indicated_handle_p = channel->indicate_handle_; in gatt_tcb_find_indicate_handle() [all …]
|
/system/bt/main/shim/ |
D | l2c_api.cc | 173 std::unique_ptr<classic::DynamicChannel> channel) { in on_channel_open() 174 auto device = channel->GetDevice(); in on_channel_open() 181 channel->RegisterOnCloseCallback(GetGdShimHandler()->BindOnceOn( in on_channel_open() 186 channel->GetQueueUpEnd()); in on_channel_open() 210 channel->GetQueueUpEnd()->RegisterDequeue( in on_channel_open() 216 channels_[cid_token] = std::move(channel); in on_channel_open() 220 auto channel = channels_.find(cid_token); in on_incoming_data() local 221 if (channel == channels_.end()) { in on_incoming_data() 225 auto packet = channel->second->GetQueueUpEnd()->TryDequeue(); in on_incoming_data() 257 auto channel = channels_.find(cid); in GetRemoteCid() local [all …]
|
/system/bt/gd/l2cap/le/cert/ |
D | cert_le_l2cap.py | 105 …channel = CertLeL2capChannel(self._device, cid, cid, self._get_acl_stream(), self._le_acl, None, 0) 106 return channel 114 channel = CertLeL2capChannel(self._device, scid, 118 self._cid_to_cert_channels[scid] = channel 119 return channel 134 channel = CertLeL2capChannel(self._device, scid, dcid, self._get_acl_stream(), self._le_acl, 137 self._cid_to_cert_channels[scid] = channel 138 return channel 147 def verify_le_flow_control_credit(self, channel): argument 148 assertThat(self.control_channel).emits(L2capMatchers.LeFlowControlCredit(channel._dcid))
|
/system/update_engine/cros/ |
D | omaha_request_params.h | 254 virtual bool SetTargetChannel(const std::string& channel, 277 void set_current_channel(const std::string& channel) { in set_current_channel() argument 278 image_props_.current_channel = channel; in set_current_channel() 280 void set_target_channel(const std::string& channel) { in set_target_channel() argument 281 mutable_image_props_.target_channel = channel; in set_target_channel() 311 bool IsValidChannel(const std::string& channel, 313 bool IsValidChannel(const std::string& channel) const { in IsValidChannel() argument 314 return IsValidChannel(channel, nullptr); in IsValidChannel() 318 int GetChannelIndex(const std::string& channel) const;
|
D | omaha_request_params.cc | 206 bool OmahaRequestParams::IsValidChannel(const string& channel, in IsValidChannel() argument 209 if (!base::EndsWith(channel, "-channel", base::CompareCase::SENSITIVE)) { in IsValidChannel() 213 channel.c_str()); in IsValidChannel() 219 if (GetChannelIndex(channel) < 0) { in IsValidChannel() 225 channel.c_str(), in IsValidChannel() 238 int OmahaRequestParams::GetChannelIndex(const string& channel) const { in GetChannelIndex() 240 if (channel == kChannelsByStability[t]) in GetChannelIndex()
|
D | mock_omaha_request_params.h | 50 bool(const std::string& channel, 63 bool FakeSetTargetChannel(const std::string& channel, in FakeSetTargetChannel() argument 67 channel, is_powerwash_allowed, error); in FakeSetTargetChannel()
|
/system/bt/stack/smp/ |
D | smp_l2c.cc | 38 static void smp_connect_callback(uint16_t channel, const RawAddress& bd_addr, 41 static void smp_data_received(uint16_t channel, const RawAddress& bd_addr, 44 static void smp_br_connect_callback(uint16_t channel, const RawAddress& bd_addr, 47 static void smp_br_data_received(uint16_t channel, const RawAddress& bd_addr, 87 static void smp_connect_callback(UNUSED_ATTR uint16_t channel, in smp_connect_callback() argument 148 static void smp_data_received(uint16_t channel, const RawAddress& bd_addr, in smp_data_received() argument 227 static void smp_br_connect_callback(uint16_t channel, const RawAddress& bd_addr, in smp_br_connect_callback() argument 272 static void smp_br_data_received(uint16_t channel, const RawAddress& bd_addr, in smp_br_data_received() argument
|
/system/bt/gd/rust/link/src/acl/ |
D | core.rs | 17 use tokio::sync::mpsc::{channel, Receiver, Sender}; 56 let (tx, rx) = oneshot::channel(); in register() 76 let (req_tx, mut req_rx) = channel::<Request>(10); in provide_acl_dispatch() 86 let (evt_tx, mut evt_rx) = channel(3); in provide_acl_dispatch() 95 let (out_tx, out_rx) = channel(10); in provide_acl_dispatch() 96 let (in_tx, in_rx) = channel(10); in provide_acl_dispatch() 97 let (evt_tx, evt_rx) = channel(3); in provide_acl_dispatch() 98 let (close_tx, close_rx) = oneshot::channel(); in provide_acl_dispatch()
|
/system/chre/apps/wifi_offload/test/ |
D | wifioffloadutility_test.cc | 24 int channel = wifi_offload::utility::Ieee80211FrequencyToChannel( in TEST() local 27 static_cast<uint8_t>(channel)); in TEST()
|
/system/connectivity/wificond/tests/ |
D | scan_settings_unittest.cpp | 92 ChannelSettings channel, channel1, channel2; in TEST_F() local 93 channel.frequency_ = kFakeFrequency; in TEST_F() 102 scan_settings.channel_settings_ = {channel, channel1, channel2}; in TEST_F() 118 ChannelSettings channel, channel1, channel2; in TEST_F() local 119 channel.frequency_ = kFakeFrequency; in TEST_F() 128 scan_settings.channel_settings_ = {channel, channel1, channel2}; in TEST_F()
|
/system/bt/btif/include/ |
D | btif_sock_l2cap.h | 14 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd, 16 bt_status_t btsock_l2cap_connect(const RawAddress* bd_addr, int channel,
|