Home
last modified time | relevance | path

Searched refs:cod (Results 1 - 25 of 40) sorted by relevance

12

/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/
H A Dgap_def.h40 #define COD_UINT_TO_ARRAY(cod) \
42 ((cod)&0xff), (((cod) >> 8) & 0xff), (((cod) >> 16) & 0xff) \
44 #define COD_ARRAY_TO_UINT(cod) ((uint32_t)(cod)[0] | (uint32_t)((cod)[1] << 8) | (uint32_t)((cod)[2] << 16))
H A Dgap_br_discover.c119 uint32_t cod = COD_ARRAY_TO_UINT(eventParam->responses[i].classOfDevice); in GapOnInquiryResult() local
127 g_discoveryCallback.callback.inquiryResult(&addr, cod, g_discoveryCallback.context); in GapOnInquiryResult()
140 uint32_t cod = COD_ARRAY_TO_UINT(eventParam->responses[i].classOfDevice); in GapOnInquiryResultRssi() local
149 g_discoveryCallback.callback.inquiryResultRssi(&addr, cod, rssi, g_discoveryCallback.context); in GapOnInquiryResultRssi()
161 uint32_t cod = COD_ARRAY_TO_UINT(eventParam->classofDevice); in GapOnEntendedInquiryResult() local
171 &addr, cod, rssi, eventParam->extendedInquiryResponse, g_discoveryCallback.context); in GapOnEntendedInquiryResult()
H A Dgap.h49 * @param[in] cod Bluetooth device class.
53 int GAP_SetClassOfDevice(uint32_t cod);
57 * @param[in] cod Bluetooth device class.
H A Dgap.c53 static int GapWriteClassOfDevice(uint32_t cod);
1077 int GAP_SetClassOfDevice(uint32_t cod) in GAP_SetClassOfDevice() argument
1079 LOG_INFO("%{public}s: cmd:%06x", __FUNCTION__, cod); in GAP_SetClassOfDevice()
1085 g_gapMng.bredr.classOfDevice = cod; in GAP_SetClassOfDevice()
1087 return GapWriteClassOfDevice(cod); in GAP_SetClassOfDevice()
1090 static int GapWriteClassOfDevice(uint32_t cod) in GapWriteClassOfDevice() argument
1093 .classofDevice = COD_UINT_TO_ARRAY(cod), in GapWriteClassOfDevice()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/
H A Dclassic_config.cpp90 int cod = 0; in GetLocalDeviceClass() local
91 if (!config_->GetValue(SECTION_HOST, PROPERTY_CLASS_OF_DEVICE, cod)) { in GetLocalDeviceClass()
95 return cod; in GetLocalDeviceClass()
98 bool ClassicConfig::SetLocalDeviceClass(int cod) const in SetLocalDeviceClass()
100 if (!config_->SetValue(SECTION_HOST, PROPERTY_CLASS_OF_DEVICE, cod)) { in SetLocalDeviceClass()
220 int cod = 0; in GetRemoteDeviceClass() local
221 if (!config_->GetValue(SECTION_BREDR_PAIRED_LIST, subSection, PROPERTY_CLASS_OF_DEVICE, cod)) { in GetRemoteDeviceClass()
225 return cod; in GetRemoteDeviceClass()
288 bool ClassicConfig::SetRemoteDeviceClass(const std::string &subSection, int cod) const in SetRemoteDeviceClass()
290 if (!config_->SetValue(SECTION_BREDR_PAIRED_LIST, subSection, PROPERTY_CLASS_OF_DEVICE, cod)) { in SetRemoteDeviceClass()
[all...]
H A Dclassic_config.h115 * @param cod Device cod.
119 bool SetLocalDeviceClass(int cod) const;
282 * @param cod Device cod.
286 bool SetRemoteDeviceClass(const std::string &subSection, int cod) const;
H A Dclassic_adapter_properties.cpp131 LOG_DEBUG("[ClassicAdapterProperties]::%{public}s cod: %{public}d", __func__, cod_); in GetLocalDeviceClass()
452 int cod = config_.GetRemoteDeviceClass(addr); in GetPairedDevice() local
453 remote->SetDeviceClass(cod); in GetPairedDevice()
503 int cod = remote->GetDeviceClass(); in SavePairedDeviceInfo() local
504 config_.SetRemoteDeviceClass(addr, cod); in SavePairedDeviceInfo()
H A Dclassic_remote_device.cpp112 LOG_DEBUG("[ClassicRemoteDevice]::%{public}s, cod = %{public}d", __func__, cod_); in GetDeviceClass()
119 LOG_DEBUG("[ClassicRemoteDevice]::%{public}s, cod = %{public}d", __func__, deviceClass); in SetDeviceClass()
374 bool ClassicRemoteDevice::CheckCod(uint32_t cod) const in CheckCod()
377 return (tmpCod & CLASS_OF_DEVICE_MASK) == cod; in CheckCod()
H A Dclassic_adapter.cpp1004 int cod = (classOfDevice & CLASS_OF_DEVICE_RANGE); in HandleInquiryResult() local
1005 if (cod != remoteDevice->GetDeviceClass()) { in HandleInquiryResult()
1006 remoteDevice->SetDeviceClass(cod); in HandleInquiryResult()
1007 SendRemoteCodChanged(device, cod); in HandleInquiryResult()
1020 SendDiscoveryResult(device, rssi, remoteDevice->GetRemoteName(), cod); in HandleInquiryResult()
1161 void ClassicAdapter::SendRemoteCodChanged(const RawAddress &device, int cod) const in SendRemoteCodChanged()
1163 HILOGI("address: %{public}s, cod: %{public}d", GetEncryptAddr(device.GetAddress()).c_str(), cod); in SendRemoteCodChanged()
1166 [device, cod](IClassicRemoteDeviceObserver &observer) { observer.OnRemoteCodChanged(device, cod); }); in SendRemoteCodChanged()
2063 int cod = (classOfDevice & CLASS_OF_DEVICE_RANGE); ReceiveConnectionComplete() local
2281 int cod = INVALID_VALUE; GetDeviceClass() local
2418 int cod = remoteDevice->GetDeviceClass(); IsHfpCodSupported() local
[all...]
H A Dclassic_remote_device.h379 bool CheckCod(uint32_t cod) const;
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_remote_device.cpp244 int BluetoothRemoteDevice::GetDeviceClass(int &cod) const in GetDeviceClass()
251 int ret = hostProxy->GetDeviceClass(address_, cod); in GetDeviceClass()
326 int BluetoothRemoteDevice::GetDeviceProductType(int &cod, int &majorClass, int &majorMinorClass) const in GetDeviceProductType() argument
335 cod = deviceClass.GetClassOfDevice(); in GetDeviceProductType()
338 if (cod == 0) { in GetDeviceProductType()
339 HILOGW("cod = %{public}d", cod); in GetDeviceProductType()
340 cod = BluetoothDevice::MAJOR_UNCATEGORIZED; in GetDeviceProductType()
344 HILOGD("device %{public}s cod = %{public}#X, majorClass = %{public}#X, majorMinorClass = %{public}#X", in GetDeviceProductType()
345 GetEncryptAddr(address_).c_str(), cod, majorClas in GetDeviceProductType()
[all...]
/foundation/communication/bluetooth/frameworks/js/napi/src/connection/
H A Dnapi_bluetooth_remote_device_observer.cpp66 const BluetoothRemoteDevice &device, const BluetoothDeviceClass &cod) in OnRemoteCodChanged()
68 HILOGD("addr:%{public}s, cod:%{public}d", GET_ENCRYPT_ADDR(device), cod.GetClassOfDevice()); in OnRemoteCodChanged()
65 OnRemoteCodChanged( const BluetoothRemoteDevice &device, const BluetoothDeviceClass &cod) OnRemoteCodChanged() argument
H A Dnapi_bluetooth_remote_device_observer.h36 void OnRemoteCodChanged(const BluetoothRemoteDevice &device, const BluetoothDeviceClass &cod) override;
/foundation/communication/bluetooth/interfaces/inner_api/include/
H A Dbluetooth_remote_device.h244 int GetDeviceClass(int &cod) const;
333 * @param cod Class of device.
340 int GetDeviceProductType(int &cod, int &majorClass, int &majorMinorClass) const;
H A Dbluetooth_host.h205 * @brief Remote cod changed observer.
208 * @param cod Remote device cod.
211 virtual void OnRemoteCodChanged(const BluetoothRemoteDevice &device, const BluetoothDeviceClass &cod) = 0;
217 * @param cod Remote device battery Level.
/foundation/communication/bluetooth_service/test/unittest/host/
H A Dhost_test.cpp666 int cod = 0; in HWTEST_F() local
667 (void)device_.GetDeviceClass(cod); in HWTEST_F()
668 BluetoothDeviceClass getLocalcod = BluetoothDeviceClass(cod); in HWTEST_F()
684 int cod = 0; in HWTEST_F() local
685 (void)device_.GetDeviceClass(cod); in HWTEST_F()
686 BluetoothDeviceClass getLocalcod = BluetoothDeviceClass(cod); in HWTEST_F()
/foundation/communication/bluetooth/frameworks/inner/ipc/interface/
H A Di_bluetooth_remote_device_observer.h37 virtual void OnRemoteCodChanged(const BluetoothRawAddress &device, int32_t cod) = 0;
/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_bluetooth_remote_device_observer.h34 void OnRemoteCodChanged(const BluetoothRemoteDevice &device, const BluetoothDeviceClass &cod) override;
/foundation/communication/bluetooth_service/services/bluetooth/ipc/include/
H A Dbluetooth_remote_device_observer_proxy.h37 void OnRemoteCodChanged(const BluetoothRawAddress &device, int32_t cod) override;
/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_native_object.cpp83 napi_value cod = 0; in ConvertDeviceClassToJS() local
84 napi_create_int32(env, deviceClass, &cod); in ConvertDeviceClassToJS()
85 napi_set_named_property(env, result, "classOfDevice", cod); in ConvertDeviceClassToJS()
/foundation/communication/bluetooth_service/services/bluetooth/ipc/src/
H A Dbluetooth_remote_device_observer_proxy.cpp162 void BluetoothRemoteDeviceObserverproxy::OnRemoteCodChanged(const BluetoothRawAddress &device, int32_t cod) in OnRemoteCodChanged() argument
173 if (!data.WriteInt32(cod)) { in OnRemoteCodChanged()
174 HILOGE("[OnRemoteCodChanged] fail: write cod failed."); in OnRemoteCodChanged()
/foundation/communication/bluetooth/frameworks/inner/ipc/src/
H A Dbluetooth_remote_device_observer_stub.cpp160 int32_t cod = data.ReadInt32(); in OnRemoteCodChangedInner() local
161 stub->OnRemoteCodChanged(*result, cod); in OnRemoteCodChangedInner()
/foundation/communication/bluetooth_service/services/bluetooth/service/include/
H A Dinterface_adapter_classic.h170 * @brief Remote cod changed observer.
173 * @param cod Remote device cod.
176 virtual void OnRemoteCodChanged(const RawAddress &device, int cod) = 0;
/foundation/communication/bluetooth/interfaces/inner_api/include/c_header/
H A Dohos_bt_gap.h293 * @brief Remote cod changed observer.
296 * @param cod Remote device cod.
298 typedef void (*GapRemoteCodChangedCallback)(const BdAddr *bdAddr, int cod);
304 * @param cod Remote device battery Level.
/foundation/communication/bluetooth/frameworks/cj/connection/include/
H A Dbluetooth_connection_impl.h92 void OnRemoteCodChanged(const BluetoothRemoteDevice &device, const BluetoothDeviceClass &cod) override{};

Completed in 17 milliseconds

12