/aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/fuchsia/host/fidl/ |
H A D | gatt_remote_service_server.cc | 36 using bthost::fidl_helpers::CharacteristicHandleFromFidl; 37 using bthost::fidl_helpers::DescriptorHandleFromFidl; 105 callback(fidl_helpers::ResultToFidlDeprecated(status, ""), in DiscoverCharacteristics() 126 callback(fidl_helpers::ResultToFidlDeprecated(status), std::move(vec)); in ReadCharacteristic() 151 callback(fidl_helpers::ResultToFidlDeprecated(status), std::move(vec)); in ReadLongCharacteristic() 165 callback(fidl_helpers::ResultToFidlDeprecated(status, "")); in WriteCharacteristic() 181 callback(fidl_helpers::ResultToFidlDeprecated(status, "")); in WriteLongCharacteristic() 184 auto reliable_mode = fidl_helpers::ReliableModeFromFidl(write_options); in WriteLongCharacteristic() 217 callback(fidl_helpers::ResultToFidlDeprecated(status), std::move(vec)); in ReadDescriptor() 242 callback(fidl_helpers::ResultToFidlDeprecated(status), std::move(vec)); in ReadLongDescriptor() [all …]
|
H A D | low_energy_central_server.cc | 54 ? std::optional(fidl_helpers::UuidFromFidl(options.service_filter())) in ConnectionOptionsFromFidl() 166 fble::Peer fidl_peer = fidl_helpers::PeerToFidlLe(*peer); in MaybeSendPeers() 212 fidl_helpers::DiscoveryFilterFromFidl); 425 callback(fidl_helpers::NewFidlError(ErrorCode::IN_PROGRESS, in StartScan() 430 if (filter && !fidl_helpers::IsScanFilterValid(*filter)) { in StartScan() 432 callback(fidl_helpers::NewFidlError(ErrorCode::INVALID_ARGUMENTS, in StartScan() 440 fidl_helpers::PopulateDiscoveryFilter(*filter, in StartScan() 461 callback(fidl_helpers::NewFidlError( in StartScan() 468 fidl_helpers::PopulateDiscoveryFilter(*filter, session->filter()); in StartScan() 510 auto peer_id = fidl_helpers::PeerIdFromString(identifier); in ConnectPeripheral() [all …]
|
H A D | host_server.cc | 53 using fidl_helpers::BrEdrSecurityModeFromFidl; 54 using fidl_helpers::HostErrorToFidl; 55 using fidl_helpers::LeSecurityModeFromFidl; 56 using fidl_helpers::NewFidlError; 57 using fidl_helpers::PeerIdFromString; 58 using fidl_helpers::ResultToFidl; 59 using fidl_helpers::SecurityLevelFromFidl; 335 auto address = fidl_helpers::AddressFromFidlBondingData(bond); in RestoreBonds() 354 fidl_helpers::LePairingDataFromFidl(*address, bond.le_bond()); in RestoreBonds() 357 bd.bredr_link_key = fidl_helpers::BredrKeyFromFidl(bond.bredr_bond()); in RestoreBonds() [all …]
|
H A D | gatt2_remote_service_server.cc | 45 fidl_helpers::AttErrorToGattFidlError(status.error_value()))); in MakeStatusCallback() 111 fidl_helpers::AttErrorToGattFidlError(status.error_value())); in ReadResultToFidl() 197 fidl_helpers::UuidFromFidl(uuid), in ReadByType() 239 fidl_result.set_error(fidl_helpers::AttErrorToGattFidlError( in ReadByType() 264 if (!fidl_helpers::IsFidlGattHandleValid(fidl_handle)) { in ReadCharacteristic() 305 if (!fidl_helpers::IsFidlGattHandleValid(fidl_handle)) { in WriteCharacteristic() 349 if (!fidl_helpers::IsFidlGattHandleValid(fidl_handle)) { in ReadDescriptor() 390 if (!fidl_helpers::IsFidlGattHandleValid(fidl_handle)) { in WriteDescriptor() 503 fidl_helpers::AttErrorToGattFidlError(status.error_value()))); in RegisterCharacteristicNotifier()
|
H A D | profile_server.cc | 151 elem->set_uuid(fidl_helpers::UuidToFidl(*uuid)); in DataElementToFidl() 453 fidl_helpers::FidlToCodecType(audio_offload_configuration.codec()); in AudioOffloadConfigFromFidl() 463 fidl_helpers::FidlToSamplingFrequency( in AudioOffloadConfigFromFidl() 471 fidl_helpers::FidlToBitsPerSample( in AudioOffloadConfigFromFidl() 479 fidl_helpers::FidlToChannelMode( in AudioOffloadConfigFromFidl() 488 config->scms_t_enable = fidl_helpers::FidlToScmsTEnable( in AudioOffloadConfigFromFidl() 510 config->sbc_configuration = fidl_helpers::FidlToEncoderSettingsSbc( in AudioOffloadConfigFromFidl() 515 config->aac_configuration = fidl_helpers::FidlToEncoderSettingsAac( in AudioOffloadConfigFromFidl() 641 fidl_helpers::ScoPacketStatusToFidl(packet->packet_status_flag()); in TryRead() 675 auto rec = fidl_helpers::ServiceDefinitionToServiceRecord(definition); in Advertise() [all …]
|
H A D | iso_stream_server.cc | 42 bthost::fidl_helpers::CisEstablishedParametersToFidl(connection_params); in OnStreamEstablished() 63 fidl_helpers::DataPathDirectionFromFidl(parameters.data_direction()); in SetupDataPath() 65 fidl_helpers::DataPathDirectionToString(direction); in SetupDataPath() 81 fidl_helpers::CodecIdFromFidl(parameters.codec_attributes().codec_id()); in SetupDataPath()
|
H A D | gatt_server_server.cc | 184 auto id = fidl_helpers::PeerIdFromString(std::move(peer_id)); in NotifyValue() 243 auto error = fidl_helpers::NewFidlError(ErrorCode::INVALID_ARGUMENTS, in PublishService() 251 auto error = fidl_helpers::NewFidlError(ErrorCode::INVALID_ARGUMENTS, in PublishService() 264 auto error = fidl_helpers::NewFidlError(ErrorCode::INVALID_ARGUMENTS, in PublishService() 277 auto error = fidl_helpers::NewFidlError(ErrorCode::INVALID_ARGUMENTS, in PublishService() 333 auto error = fidl_helpers::NewFidlError(ErrorCode::FAILED, in PublishService()
|
H A D | gatt_remote_service_server_test.cc | 113 fidl_helpers::UuidToFidl(kCharUuid), in TEST_F() 146 fidl_helpers::UuidToFidl(kCharUuid), in TEST_F() 182 fidl_helpers::UuidToFidl(kCharUuid), in TEST_F() 202 fidl_helpers::UuidToFidl(kCharUuid), in TEST_F()
|
H A D | low_energy_peripheral_server.cc | 179 advertised_peripheral_->OnConnected(fidl_helpers::PeerToFidlLe(*peer), in OnConnected() 434 binding()->events().OnPeerConnected(fidl_helpers::PeerToFidlLe(*peer), in OnConnectedDeprecated() 469 fidl_helpers::AdvertisingDataFromFidl(parameters.data()); in StartAdvertisingInternal() 489 fidl_helpers::AdvertisingDataFromFidl(parameters.scan_response()); in StartAdvertisingInternal() 503 fidl_helpers::AdvertisingIntervalFromFidl(mode_hint); in StartAdvertisingInternal() 571 fidl_helpers::FidlToDeviceAddressType(parameters.address_type()); in StartAdvertisingInternal()
|
H A D | low_energy_connection_server.cc | 248 fidl_helpers::LogicalTransportTypeFromFidl( in GetCodecLocalDelayRange() 251 fidl_helpers::DataPathDirectionFromFidl(parameters.data_direction()); in GetCodecLocalDelayRange() 253 fidl_helpers::CodecIdFromFidl(parameters.codec_attributes().codec_id()); in GetCodecLocalDelayRange()
|
H A D | gatt2_server_server.cc | 117 fidl_helpers::Gatt2CharacteristicFromFidl(fidl_chrc); in PublishService() 194 responder(fit::error(fidl_helpers::Gatt2ErrorCodeFromFidl(res.err())), in OnReadRequest() 221 rsp = fit::error(fidl_helpers::Gatt2ErrorCodeFromFidl(result.err())); in OnWriteRequest()
|
H A D | gatt_client_server.cc | 58 callback(fidl_helpers::NewFidlError( in ListServices() 77 auto fidl_status = fidl_helpers::ResultToFidlDeprecated( in ListServices()
|
H A D | host_server_test.cc | 1026 fidl::Equals(fidl_helpers::PeerToFidl(*peer), response->updated()[0])); in TEST_F() 1083 fidl_helpers::BrEdrSecurityModeFromFidl(fsys::BrEdrSecurityMode::MODE_4), in TEST_F() 1090 ASSERT_EQ(fidl_helpers::BrEdrSecurityModeFromFidl( in TEST_F() 1098 fidl_helpers::BrEdrSecurityModeFromFidl(fsys::BrEdrSecurityMode::MODE_4), in TEST_F() 1107 ASSERT_EQ(fidl_helpers::LeSecurityModeFromFidl( in TEST_F() 1114 ASSERT_EQ(fidl_helpers::LeSecurityModeFromFidl(fsys::LeSecurityMode::MODE_1), in TEST_F() 1304 bredr.set_services({fidl_helpers::UuidToFidl(kServiceId)}); in TEST_F() 1346 bredr.set_services({fidl_helpers::UuidToFidl(kServiceId)}); in TEST_F()
|
H A D | low_energy_central_server_test.cc | 56 fidl_helpers::PeerToFidlLe(peer)) in MaxPeersPerScanResultWatcherChannel() 181 auto status = fidl_helpers::NewFidlError( in TEST_F() 219 auto status = fidl_helpers::NewFidlError( in TEST_F() 257 auto status = fidl_helpers::NewFidlError( in TEST_F() 279 auto status = fidl_helpers::NewFidlError( in TEST_F()
|
H A D | profile_server_test.cc | 79 fidl_helpers::UuidToFidl(bt::sdp::profile::kAudioSink)); in MakeFIDLServiceDefinition() 123 fidl_helpers::UuidToFidl(bt::sdp::profile::kMessageNotificationServer)); in MakeMapMceServiceDefinition() 1459 EXPECT_TRUE(fidl_helpers::FidlToScoParameters(sco_params).is_ok()); in TEST_F() 1491 EXPECT_TRUE(fidl_helpers::FidlToScoParameters(sco_params).is_ok()); in TEST_F() 1569 EXPECT_TRUE(fidl_helpers::FidlToScoParameters(sco_params).is_ok()); in TEST_F() 1604 EXPECT_TRUE(fidl_helpers::FidlToScoParameters(sco_params).is_ok()); in TEST_F() 1793 EXPECT_TRUE(fidl_helpers::FidlToScoParameters(sco_params).is_ok()); in TEST_F() 1827 EXPECT_TRUE(fidl_helpers::FidlToScoParameters(sco_params).is_ok()); in TEST_F() 3536 fidl_helpers::UuidToFidl(bt::sdp::profile::kHandsfree); in TEST_F() 3594 request.set_full_uuid(fidl_helpers::UuidToFidl(bt::sdp::profile::kAudioSink)); in TEST_F()
|
H A D | gatt2_client_server.cc | 252 if (!fidl_helpers::IsFidlGattServiceHandleValid(handle)) { in ConnectToService()
|
H A D | helpers.cc | 62 namespace bthost::fidl_helpers { namespace 263 out.Set(fidl_helpers::UuidFromFidl(fidl.uuid())); in FidlToDataElement() 1405 auto data = fidl_helpers::AdvertisingDataToFidlDeprecated(adv_data.value()); in NewLERemoteDevice() 1841 bt::UUID btuuid = fidl_helpers::NewUuidFromFidl(uuid); in ServiceDefinitionToServiceRecord() 1963 bt::UUID btuuid = fidl_helpers::UuidFromFidl(uuid); in ServiceDefinitionToServiceRecord() 2597 fidl_helpers::Gatt2DescriptorFromFidl(fidl_desc); in Gatt2CharacteristicFromFidl()
|
H A D | helpers_test.cc | 59 namespace bthost::fidl_helpers { namespace 1202 fidl_helpers::UuidToFidl(bt::sdp::profile::kAudioSink)); in TEST() 1215 fidl_helpers::UuidToFidl(bt::sdp::profile::kAudioSink)); in TEST() 1361 fidl_helpers::UuidToFidl(bt::sdp::profile::kMessageAccessServer)); in TEST()
|
/aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/fuchsia/bt_hci_virtual/ |
H A D | emulated_peer.cc | 153 bthost::fidl_helpers::FidlHciErrorToStatusCode(request.status())); in AssignConnectionStatus() 226 auto rec = bthost::fidl_helpers::ServiceDefinitionToServiceRecord(defn); in SetServiceDefinitions()
|
/aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/fuchsia/host/fidl/public/pw_bluetooth_sapphire/fuchsia/host/fidl/ |
H A D | helpers.h | 51 namespace bthost::fidl_helpers {
|