/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/ |
H A D | classic_config.cpp | 90 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()
|
H A D | classic_config.h | 119 bool SetLocalDeviceClass(int cod) const; 286 bool SetRemoteDeviceClass(const std::string &subSection, int cod) const;
|
H A D | classic_adapter_properties.cpp | 450 int cod = config_.GetRemoteDeviceClass(addr); in GetPairedDevice() local 451 remote->SetDeviceClass(cod); in GetPairedDevice() 501 int cod = remote->GetDeviceClass(); in SavePairedDeviceInfo() local 502 config_.SetRemoteDeviceClass(addr, cod); in SavePairedDeviceInfo()
|
H A D | classic_adapter.cpp | 1004 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() 1166 …[device, cod](IClassicRemoteDeviceObserver &observer) { observer.OnRemoteCodChanged(device, cod); … in SendRemoteCodChanged() 2064 if (cod != INVALID_VALUE) { in ReceiveConnectionComplete() 2065 remoteDevice->SetDeviceClass(cod); in ReceiveConnectionComplete() 2281 int cod = INVALID_VALUE; in GetDeviceClass() local 2284 cod = it->second->GetDeviceClass(); in GetDeviceClass() 2287 return cod; in GetDeviceClass() [all …]
|
H A D | classic_remote_device.cpp | 374 bool ClassicRemoteDevice::CheckCod(uint32_t cod) const in CheckCod() 377 return (tmpCod & CLASS_OF_DEVICE_MASK) == cod; in CheckCod()
|
H A D | classic_remote_device.h | 379 bool CheckCod(uint32_t cod) const;
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap_def.h | 40 #define COD_UINT_TO_ARRAY(cod) \ argument 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… argument
|
H A D | gap_br_discover.c | 119 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 D | gap.c | 53 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()
|
H A D | gap.h | 53 int GAP_SetClassOfDevice(uint32_t cod);
|
H A D | gap_if.c | 35 uint32_t cod; member 204 info->result = GAP_SetClassOfDevice(info->cod); in GapSetClassOfDeviceTask() 207 int GAPIF_SetClassOfDevice(uint32_t cod) in GAPIF_SetClassOfDevice() argument 217 ctx->cod = cod; in GAPIF_SetClassOfDevice()
|
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_remote_device.cpp | 247 int BluetoothRemoteDevice::GetDeviceClass(int &cod) const in GetDeviceClass() 254 int ret = hostProxy->GetDeviceClass(address_, cod); in GetDeviceClass() 329 int BluetoothRemoteDevice::GetDeviceProductType(int &cod, int &majorClass, int &majorMinorClass) co… in GetDeviceProductType() argument 338 cod = deviceClass.GetClassOfDevice(); in GetDeviceProductType() 341 if (cod == 0) { in GetDeviceProductType() 342 HILOGW("cod = %{public}d", cod); in GetDeviceProductType() 343 cod = BluetoothDevice::MAJOR_UNCATEGORIZED; in GetDeviceProductType() 348 GetEncryptAddr(address_).c_str(), cod, majorClass, majorMinorClass); in GetDeviceProductType()
|
H A D | bluetooth_host.cpp | 298 void OnRemoteCodChanged(const BluetoothRawAddress &device, int32_t cod) override in OnRemoteCodChanged() argument 300 HILOGD("enter, device: %{public}s, cod: %{public}d", GET_ENCRYPT_RAW_ADDR(device), cod); in OnRemoteCodChanged() 302 BluetoothDeviceClass deviceClass(cod); in OnRemoteCodChanged() 932 int cod = deviceClass.GetClassOfDevice(); in SetLocalDeviceClass() local 933 return proxy->SetLocalDeviceClass(cod); in SetLocalDeviceClass()
|
/ohos5.0/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_remote_device.h | 244 int GetDeviceClass(int &cod) const; 340 int GetDeviceProductType(int &cod, int &majorClass, int &majorMinorClass) const;
|
/ohos5.0/foundation/communication/bluetooth_service/test/unittest/host/ |
H A D | host_test.cpp | 666 int cod = 0; variable 667 (void)device_.GetDeviceClass(cod); 668 BluetoothDeviceClass getLocalcod = BluetoothDeviceClass(cod); 684 int cod = 0; variable 685 (void)device_.GetDeviceClass(cod); 686 BluetoothDeviceClass getLocalcod = BluetoothDeviceClass(cod);
|
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/connection/ |
H A D | napi_bluetooth_remote_device_observer.cpp | 70 const BluetoothRemoteDevice &device, const BluetoothDeviceClass &cod) in OnRemoteCodChanged() argument 72 HILOGD("addr:%{public}s, cod:%{public}d", GET_ENCRYPT_ADDR(device), cod.GetClassOfDevice()); in OnRemoteCodChanged()
|
H A D | napi_bluetooth_remote_device_observer.h | 36 …void OnRemoteCodChanged(const BluetoothRemoteDevice &device, const BluetoothDeviceClass &cod) over…
|
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_native_object.cpp | 86 napi_value cod = 0; in ConvertDeviceClassToJS() local 87 napi_create_int32(env, deviceClass, &cod); in ConvertDeviceClassToJS() 88 napi_set_named_property(env, result, "classOfDevice", cod); in ConvertDeviceClassToJS()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/ipc/src/ |
H A D | bluetooth_remote_device_observer_proxy.cpp | 162 …etoothRemoteDeviceObserverproxy::OnRemoteCodChanged(const BluetoothRawAddress &device, int32_t cod) in OnRemoteCodChanged() argument 173 if (!data.WriteInt32(cod)) { in OnRemoteCodChanged()
|
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/ipc/src/ |
H A D | bluetooth_remote_device_observer_stub.cpp | 163 int32_t cod = data.ReadInt32(); in OnRemoteCodChangedInner() local 164 stub->OnRemoteCodChanged(*result, cod); in OnRemoteCodChangedInner()
|
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/ipc/interface/ |
H A D | i_bluetooth_remote_device_observer.h | 37 virtual void OnRemoteCodChanged(const BluetoothRawAddress &device, int32_t cod) = 0;
|
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_bluetooth_remote_device_observer.h | 34 …void OnRemoteCodChanged(const BluetoothRemoteDevice &device, const BluetoothDeviceClass &cod) over…
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/ipc/include/ |
H A D | bluetooth_remote_device_observer_proxy.h | 37 void OnRemoteCodChanged(const BluetoothRawAddress &device, int32_t cod) override;
|
/ohos5.0/foundation/communication/bluetooth/interfaces/inner_api/include/c_header/ |
H A D | ohos_bt_gap.h | 298 typedef void (*GapRemoteCodChangedCallback)(const BdAddr *bdAddr, int cod);
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/include/ |
H A D | interface_adapter_classic.h | 176 virtual void OnRemoteCodChanged(const RawAddress &device, int cod) = 0;
|