Home
last modified time | relevance | path

Searched refs:BTTransport (Results 1 - 25 of 41) sorted by relevance

12

/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/
H A Dprofile_service_manager.h107 bool Enable(const BTTransport transport) const;
115 void OnAllEnabled(const BTTransport transport) const;
125 bool Disable(const BTTransport transport) const;
133 void OnAllDisabled(const BTTransport transport) const;
207 void EnableProfiles(const BTTransport transport) const;
208 void DisableProfiles(const BTTransport transport) const;
211 void EnableCompleteNotify(const BTTransport transport) const;
212 void DisableCompleteNotify(const BTTransport transport) const;
213 bool IsAllEnabled(const BTTransport transport) const;
214 bool IsProfilesTurning(const BTTransport transpor
[all...]
H A Dprofile_service_manager.cpp129 for (auto &sp : GET_CONFIG_PROFILES(BTTransport::ADAPTER_BREDR)) { in CreateClassicProfileServices()
136 pimpl->startedProfiles_.SetProfile(BTTransport::ADAPTER_BREDR, sp.name_, profile); in CreateClassicProfileServices()
137 pimpl->profilesState_.SetProfile(BTTransport::ADAPTER_BREDR, sp.name_, ServiceStateID::TURN_OFF); in CreateClassicProfileServices()
148 for (auto &sp : GET_CONFIG_PROFILES(BTTransport::ADAPTER_BLE)) { in CreateBleProfileServices()
151 if (pimpl->startedProfiles_.Find(BTTransport::ADAPTER_BREDR, sp.name_, bredrProfile)) { in CreateBleProfileServices()
154 pimpl->startedProfiles_.SetProfile(BTTransport::ADAPTER_BLE, sp.name_, bredrProfile); in CreateBleProfileServices()
156 pimpl->profilesState_.SetProfile(BTTransport::ADAPTER_BLE, sp.name_, ServiceStateID::TURN_OFF); in CreateBleProfileServices()
164 pimpl->startedProfiles_.SetProfile(BTTransport::ADAPTER_BLE, sp.name_, newProfile); in CreateBleProfileServices()
165 pimpl->profilesState_.SetProfile(BTTransport::ADAPTER_BLE, sp.name_, ServiceStateID::TURN_OFF); in CreateBleProfileServices()
179 if (pimpl->startedProfiles_.Find(BTTransport in Stop()
[all...]
H A Dadapter_state_machine.cpp48 BTTransport transport = in Entry()
49 (adapter_.GetContext()->Name() == ADAPTER_NAME_CLASSIC) ? BTTransport::ADAPTER_BREDR : BTTransport::ADAPTER_BLE; in Entry()
79 BTTransport transport = in Entry()
80 (adapter_.GetContext()->Name() == ADAPTER_NAME_CLASSIC) ? BTTransport::ADAPTER_BREDR : BTTransport::ADAPTER_BLE; in Entry()
89 BTTransport transport = in Dispatch()
90 (adapter_.GetContext()->Name() == ADAPTER_NAME_CLASSIC) ? BTTransport::ADAPTER_BREDR : BTTransport::ADAPTER_BLE; in Dispatch()
97 if (transport == BTTransport in Dispatch()
[all...]
H A Dadapter_manager.h104 bool Enable(const BTTransport transport) const override;
114 bool Disable(const BTTransport transport) const override;
123 BTStateID GetState(const BTTransport transport) const override;
276 void OnAdapterStateChange(const BTTransport transport, const BTStateID state) const;
285 void OnProfileServicesEnableComplete(const BTTransport transport, const bool ret) const;
294 void OnProfileServicesDisableComplete(const BTTransport transport, const bool ret) const;
303 void OnPairDevicesRemoved(const BTTransport transport, const std::vector<RawAddress> &devices) const;
314 void RemoveDeviceProfileConfig(const BTTransport transport, const std::vector<RawAddress> &devices) const;
315 void PublishBluetoothStateChangeEvent(const BTTransport transport, const BTStateID state) const;
H A Dprofile_list.h58 T Get(const BTTransport transport, const std::string &name) in Get()
80 std::map<std::string, T> *GetProfiles(const BTTransport transport) in GetProfiles()
99 void SetProfile(const BTTransport transport, const std::string &name, const T &data) in SetProfile()
114 bool Contains(const BTTransport transport, const std::string &name) in Contains()
158 bool Find(const BTTransport transport, const std::string &name, T &data) in Find()
203 bool IsEmpty(const BTTransport transport) in IsEmpty()
221 int Size(const BTTransport transport) in Size()
235 std::map<BTTransport, std::map<std::string, T>> profiles_ = {};
H A Dsys_state_machine.cpp49 am_.Disable(BTTransport::ADAPTER_BREDR); in StoppingBaseProcess()
50 am_.Disable(BTTransport::ADAPTER_BLE); in StoppingBaseProcess()
100 int stateBREDR = am_.GetState(BTTransport::ADAPTER_BREDR); in Entry()
101 int stateBLE = am_.GetState(BTTransport::ADAPTER_BLE); in Entry()
136 int stateBREDR = am_.GetState(BTTransport::ADAPTER_BREDR); in Entry()
137 int stateBLE = am_.GetState(BTTransport::ADAPTER_BLE); in Entry()
172 int stateBREDR = am_.GetState(BTTransport::ADAPTER_BREDR); in Entry()
173 int stateBLE = am_.GetState(BTTransport::ADAPTER_BLE); in Entry()
H A Dadapter_manager.cpp95 void ProcessMessage(const BTTransport transport, const utility::Message &msg);
139 BTTransport transport = BTTransport::ADAPTER_BREDR; in OnEnable()
142 transport = BTTransport::ADAPTER_BREDR; in OnEnable()
144 transport = BTTransport::ADAPTER_BLE; in OnEnable()
156 BTTransport transport = BTTransport::ADAPTER_BREDR; in OnDisable()
159 transport = BTTransport::ADAPTER_BREDR; in OnDisable()
161 transport = BTTransport::ADAPTER_BLE; in OnDisable()
170 void AdapterManager::impl::ProcessMessage(const BTTransport transpor
[all...]
H A Dprofile_info.cpp61 const std::vector<ProfileInfo> SupportProfilesInfo::GetConfigSupportProfiles(BTTransport transport) in GetConfigSupportProfiles()
65 std::string section = (transport == BTTransport::ADAPTER_BREDR) ? SECTION_CLASSIC_ADAPTER : SECTION_BLE_ADAPTER; in GetConfigSupportProfiles()
H A Dprofile_info.h94 static const std::vector<ProfileInfo> GetConfigSupportProfiles(BTTransport transport);
/foundation/communication/bluetooth_service/services/bluetooth/service/include/
H A Dinterface_adapter_manager.h63 virtual void OnStateChange(const BTTransport transport, const BTStateID state) = 0;
162 virtual bool Enable(const BTTransport transport) const = 0;
172 virtual bool Disable(const BTTransport transport) const = 0;
181 virtual BTStateID GetState(const BTTransport transport) const = 0;
H A Dinterface_adapter_classic.h80 virtual void OnPairRequested(const BTTransport transport, const RawAddress &device) = 0;
90 virtual void OnPairConfirmed(const BTTransport transport, const RawAddress &device, int reqType, int number) = 0;
140 virtual void OnPairStatusChanged(const BTTransport transport, const RawAddress &device, int status) = 0;
H A Dinterface_adapter_ble.h152 virtual void OnPairRequested(const BTTransport transport, const RawAddress &device) = 0;
163 const BTTransport transport, const RawAddress &device, const int reqType, const int number) = 0;
229 virtual void OnPairStatusChanged(const BTTransport transport, const RawAddress &device, int status) = 0;
/foundation/multimedia/av_session/services/session/server/test/
H A Ddetect_bluetooth_host_observer_test.cpp64 int32_t transport = OHOS::Bluetooth::BTTransport::ADAPTER_BREDR; in HWTEST_F()
78 int32_t transport = OHOS::Bluetooth::BTTransport::ADAPTER_BLE; in HWTEST_F()
92 int32_t transport = OHOS::Bluetooth::BTTransport::ADAPTER_BLE; in HWTEST_F()
107 int32_t transport = OHOS::Bluetooth::BTTransport::ADAPTER_BREDR; in HWTEST_F()
/foundation/communication/bluetooth_service/test/moduletest/hosttest/
H A Dhost_srv_module_test.cpp61 AdapterManager::GetInstance()->Enable(BTTransport::ADAPTER_BREDR); in HWTEST_F()
62 AdapterManager::GetInstance()->OnAdapterStateChange(BTTransport::ADAPTER_BREDR, BTStateID::STATE_TURN_OFF); in HWTEST_F()
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_avrcp_ct.cpp59 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR);
70 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR);
81 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR);
93 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR);
109 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR);
120 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR);
133 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR);
146 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR);
157 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR);
169 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport
[all...]
H A Dbluetooth_host.cpp152 BluetoothRemoteDevice remoteDevice(device.GetAddress(), BTTransport::ADAPTER_BREDR);
206 if (transport == BTTransport::ADAPTER_BLE && in isNeedInterceptSwitchStatus()
210 if (transport == BTTransport::ADAPTER_BREDR && in isNeedInterceptSwitchStatus()
215 if (transport == BTTransport::ADAPTER_BREDR) { in isNeedInterceptSwitchStatus()
238 BluetoothRemoteDevice remoteDevice(device.GetAddress(), BTTransport::ADAPTER_BREDR);
260 BluetoothRemoteDevice remoteDevice(device.GetAddress(), BTTransport::ADAPTER_BREDR);
276 BluetoothRemoteDevice remoteDevice(device.GetAddress(), BTTransport::ADAPTER_BREDR);
287 BluetoothRemoteDevice remoteDevice(device.GetAddress(), BTTransport::ADAPTER_BREDR);
297 BluetoothRemoteDevice remoteDevice(device.GetAddress(), BTTransport::ADAPTER_BREDR);
307 BluetoothRemoteDevice remoteDevice(device.GetAddress(), BTTransport
[all...]
H A Dbluetooth_utils.cpp97 case BTTransport::ADAPTER_BREDR: in GetBtTransportName()
99 case BTTransport::ADAPTER_BLE: in GetBtTransportName()
H A Dbluetooth_avrcp_tg.cpp49 BluetoothRemoteDevice device(addr.GetAddress(), BTTransport::ADAPTER_BREDR);
197 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR); in GetConnectedDevices()
220 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR); in GetDevicesByStates()
H A Dbluetooth_map_mse.cpp162 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR); in GetDevicesByStates()
/foundation/communication/bluetooth_service/services/bluetooth/server/src/
H A Dbluetooth_host_server.cpp179 static void OnStateChangeV2(BTTransport transport, BTStateID state, sptr<IBluetoothHostObserver> &observer) in OnStateChangeV2()
181 if (transport == BTTransport::ADAPTER_BREDR && state == BTStateID::STATE_TURN_ON) { in OnStateChangeV2()
184 if (transport == BTTransport::ADAPTER_BLE && state == BTStateID::STATE_TURN_OFF) { in OnStateChangeV2()
189 void OnStateChange(const BTTransport transport, const BTStateID state) override
194 if (transport == BTTransport::ADAPTER_BREDR) {
215 } else if (transport == BTTransport::ADAPTER_BLE) {
287 void OnPairRequested(const BTTransport transport, const RawAddress &device) override
295 const BTTransport transport, const RawAddress &device, int32_t reqType, int32_t number) override
343 void OnPairStatusChanged(const BTTransport transport, const RawAddress &device, const int32_t status) override
455 void OnPairRequested(const BTTransport transpor
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/gas/
H A Dgeneric_access_service.cpp98 void OnPairRequested(const BTTransport transport, const RawAddress &device) in OnPairRequested()
100 void OnPairConfirmed(const BTTransport transport, const RawAddress &device, const int reqType, const int number) in OnPairConfirmed()
129 void OnPairRequested(const BTTransport transport, const RawAddress &device) in OnPairRequested()
131 void OnPairConfirmed(const BTTransport transport, const RawAddress &device, int reqType, int number) in OnPairConfirmed()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/
H A Dble_security.cpp702 [addr](IAdapterBleObserver &observer) { observer.OnPairRequested(BTTransport::ADAPTER_BLE, addr); }); in GapLePairFeatureReq()
742 observer.OnPairConfirmed(BTTransport::ADAPTER_BLE, addr, pairMethod, 0); in GapLePairPassKeyReq()
757 observer.OnPairConfirmed(BTTransport::ADAPTER_BLE, addr, pairMethod, number); in GapLePairPassKeyNotification()
771 observer.OnPairConfirmed(BTTransport::ADAPTER_BLE, addr, pairMethod, 0); in GapLePairOobReq()
785 observer.OnPairConfirmed(BTTransport::ADAPTER_BLE, addr, pairMethod, 0); in GapLePairScOobReq()
800 observer.OnPairConfirmed(BTTransport::ADAPTER_BLE, addr, pairMethod, number); in GapLePairScUserConfirmReq()
/foundation/communication/bluetooth/frameworks/js/napi/src/ble/
H A Dnapi_bluetooth_gatt_server.cpp274 BluetoothRemoteDevice remoteDevice(rsp.deviceId, BTTransport::ADAPTER_BLE); in SendResponse()
338 BluetoothRemoteDevice remoteDevice(deviceId, BTTransport::ADAPTER_BLE); in NotifyCharacteristicChangedEx()
388 BluetoothRemoteDevice remoteDevice(deviceId, BTTransport::ADAPTER_BLE); in NotifyCharacteristicChanged()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/
H A Dclassic_adapter.h814 void SendPairStatusChanged(const BTTransport transport, const RawAddress &device, int status) const;
822 void SendPairRequested(const BTTransport transport, const RawAddress &device) const;
/foundation/multimedia/av_session/services/session/server/test/fuzztest/avsessionservice_fuzzer/
H A Davsessionservice_fuzzer.cpp798 int transport = OHOS::Bluetooth::BTTransport::ADAPTER_BREDR; in OnStateChangedTest()
802 transport = OHOS::Bluetooth::BTTransport::ADAPTER_BLE; in OnStateChangedTest()
806 transport = OHOS::Bluetooth::BTTransport::ADAPTER_BLE; in OnStateChangedTest()
812 transport = OHOS::Bluetooth::BTTransport::ADAPTER_BREDR; in OnStateChangedTest()

Completed in 19 milliseconds

12