mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Format all the files in CL786733783
PiperOrigin-RevId: 786873870
This commit is contained in:
@@ -69,7 +69,7 @@ BleAdvertisementHeader::BleAdvertisementHeader(
|
||||
advertisement_header_bytes = ble_advertisement_header_bytes;
|
||||
} else {
|
||||
VLOG(1) << "Cannot deserialize BLEAdvertisementHeader. "
|
||||
"Invalid advertising data.";
|
||||
"Invalid advertising data.";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -39,8 +39,8 @@ BloomFilter::BloomFilter(std::unique_ptr<BitSet> bit_set,
|
||||
// If the size is not matched, fall out.
|
||||
if (bytes.size() * 8 != bit_set_->Size()) {
|
||||
LOG(INFO) << "Cannot construct from bytes since the size is not "
|
||||
"matched. bytes.size(x8) = "
|
||||
<< bytes.size() << ", bit_set.size=" << bit_set_->Size();
|
||||
"matched. bytes.size(x8) = "
|
||||
<< bytes.size() << ", bit_set.size=" << bit_set_->Size();
|
||||
return;
|
||||
}
|
||||
for (size_t byte_index = 0; byte_index < bytes.size(); byte_index++) {
|
||||
|
||||
@@ -64,9 +64,9 @@ InstantOnLostAdvertisement::CreateFromHashes(
|
||||
std::string InstantOnLostAdvertisement::ToBytes() const {
|
||||
if (hashes_.empty() || hashes_.size() > kMaxHashCount) {
|
||||
LOG(ERROR) << __func__
|
||||
<< ": Failed to convert hashes due to hash "
|
||||
"size is not valid, size = "
|
||||
<< hashes_.size();
|
||||
<< ": Failed to convert hashes due to hash "
|
||||
"size is not valid, size = "
|
||||
<< hashes_.size();
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -80,9 +80,9 @@ std::string InstantOnLostAdvertisement::ToBytes() const {
|
||||
for (const auto& hash : hashes_) {
|
||||
if (hash.length() != kAdvertisementHashLength) {
|
||||
LOG(ERROR) << __func__
|
||||
<< ": Failed to convert hashes to advertisement due "
|
||||
"to invalid hash : "
|
||||
<< absl::BytesToHexString(hash);
|
||||
<< ": Failed to convert hashes to advertisement due "
|
||||
"to invalid hash : "
|
||||
<< absl::BytesToHexString(hash);
|
||||
return "";
|
||||
}
|
||||
absl::StrAppend(&result, hash);
|
||||
|
||||
Reference in New Issue
Block a user