Searched refs:ccc (Results 1 - 8 of 8) sorted by relevance
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/ |
H A D | gatt_database.cpp | 53 for (auto &ccc : service.characteristics_) { in AddService() 54 ccc.handle_ = currentHandle++; in AddService() 55 ccc.valueHandle_ = currentHandle++; in AddService() 57 Characteristic dbCharacteristic(ccc); in AddService() 58 AttributeEntity cccAttributeValue(ccc.permissions_, ccc.valueHandle_, ccc.uuid_); in AddService() 59 cccAttributeValue.SetValue(ccc.value_.get(), ccc.length_); in AddService() 61 attributes_.emplace(ccc in AddService() 267 auto ccc = service->second.characteristics_.find(it->second.second); GetCharacteristic() local 286 auto ccc = service->second.characteristics_.find(it->second.second); GetDescriptor() local [all...] |
H A D | gatt_cache.cpp | 86 auto ccc = svc->second.characteristics_.find(it->second.second); in GetCharacteristic() local 87 if (ccc != svc->second.characteristics_.end()) { in GetCharacteristic() 88 return &ccc->second; in GetCharacteristic() 105 auto ccc = svc->second.characteristics_.find(it->second.second); in GetDescriptor() local 106 if (ccc == svc->second.characteristics_.end()) { in GetDescriptor() 109 auto descriptor = ccc->second.descriptors_.find(valueHandle); in GetDescriptor() 110 if (descriptor != ccc->second.descriptors_.end()) { in GetDescriptor() 123 auto ccc = svc->second.characteristics_.find(cccHandle); in GetCharacteristicEndHandle() local 124 if (ccc == svc->second.characteristics_.end()) { in GetCharacteristicEndHandle() 128 if (++ccc ! in GetCharacteristicEndHandle() [all...] |
H A D | gatt_server_service.cpp | 863 auto ccc = profile_->GetCharacteristic(valueHandle); in SetCharacteristicPermission() local 864 if (ccc != nullptr) { in SetCharacteristicPermission() 865 ccc->properties_ = properties; in SetCharacteristicPermission() 915 auto ccc = profile_->GetCharacteristic(valueHandle); in OnReadCharacteristicValueEvent() local 916 if (ccc == nullptr) { in OnReadCharacteristicValueEvent() 925 remote->second.GetDevice(), Characteristic(ccc->uuid_, ccc->handle_, ccc->properties_)); in OnReadCharacteristicValueEvent() 928 remote->second.GetDevice(), Characteristic(ccc->uuid_, ccc in OnReadCharacteristicValueEvent() 958 auto ccc = profile_->GetCharacteristic(valueHandle); OnWriteCharacteristicEvent() local 1070 auto ccc = profile_->GetCharacteristic(valueHandle); OnIndicationEvent() local [all...] |
H A D | gatt_client_service.cpp | 901 for (auto &ccc : characteristics) { in OnDiscoverAllCharacteristicOfServiceEvent() 904 task.startHandle_ = ccc.second.handle_; in OnDiscoverAllCharacteristicOfServiceEvent() 906 it.value()->second.connection_.GetHandle(), serviceHandle, ccc.second.handle_); in OnDiscoverAllCharacteristicOfServiceEvent() 1024 auto ccc = profile_->GetCharacteristic(connectHandle, valueHandle); in OnCharacteristicNotifyEvent() local 1025 if (ccc == nullptr) { in OnCharacteristicNotifyEvent() 1033 if (Uuid::ConvertFrom16Bits(UUID_SERVICE_CHANGED) == ccc->uuid_) { in OnCharacteristicNotifyEvent() 1036 Characteristic gattCCC(ccc->uuid_, ccc->handle_, ccc->properties_); in OnCharacteristicNotifyEvent() 1251 for (auto &ccc in BuildService() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/gas/ |
H A D | generic_access_service.cpp | 44 [&characteristic](Characteristic &ccc) { 45 return ccc.handle_ == characteristic.handle_; 62 [&characteristic](Characteristic &ccc) { 63 return ccc.handle_ == characteristic.handle_; 275 [](Characteristic &ccc) { in OnDeviceNameChanged() 276 return ccc.uuid_ == Uuid::ConvertFrom16Bits(GATT_UUID_GAP_DEVICE_NAME); in OnDeviceNameChanged() 295 for (auto &ccc : instance_->characteristics_) { in OnAdvertisingStateChanged() 296 if (!(ccc.uuid_ == Uuid::ConvertFrom16Bits(GATT_UUID_GAP_DEVICE_NAME))) { in OnAdvertisingStateChanged() 300 if (!(ccc.properties_ & CHARACTERISTIC_PROPERTIE_READ)) { in OnAdvertisingStateChanged() 301 serverService_.SetCharacteristicPermission(ccc, in OnAdvertisingStateChanged() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/gatts/ |
H A D | generic_attribute_service.cpp | 217 Characteristic ccc(instance_->characteristics_[0].handle_); in NotifyAllDevices() 218 ccc.value_ = BuildValue(startHandle, endHandle); in NotifyAllDevices() 219 ccc.length_ = SERVICE_CHANGED_VALUE_LENGTH; in NotifyAllDevices() 229 NotifyServiceChanged(dev.first, ccc); in NotifyAllDevices() 245 Characteristic ccc(instance_->characteristics_[0].handle_); in ConnectIncoming() 246 ccc.value_ = BuildValue(dev.first->second.startHandle_, dev.first->second.endHandle_); in ConnectIncoming() 247 ccc.length_ = SERVICE_CHANGED_VALUE_LENGTH; in ConnectIncoming() 249 NotifyServiceChanged(device, ccc); in ConnectIncoming()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/dis/ |
H A D | device_information_service.cpp | 61 [&characteristic](Characteristic &ccc) { 62 return ccc.handle_ == characteristic.handle_; 77 for (auto &ccc : service_.instance_->characteristics_) { 78 if (ccc.handle_ == characteristic.handle_) { 79 Characteristic result(characteristic.handle_, ccc.value_.get(), ccc.length_);
|
/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_gatt_server_server.cpp | 284 for (auto &ccc : service.characteristics_) { in ConvertCharacterPermission() 286 if (ccc.permissions_ & PermissionReadable) { in ConvertCharacterPermission() 289 if (ccc.permissions_ & PermissionWriteable) { in ConvertCharacterPermission() 292 ccc.permissions_ = permission; in ConvertCharacterPermission() 293 for (auto &desc : ccc.descriptors_) { in ConvertCharacterPermission()
|
Completed in 8 milliseconds