Lines Matching full:uuid
80 bool ProcessUUID(const uint8_t* uuid_data, size_t uuid_len, UUID* out_uuid) {
81 // BTIF expects a single 128-bit UUID to be passed in little-endian form, so
83 // TODO(armansito): We have three repeated if bodies below only because UUID
85 // single UUID constructor that takes in an std::vector instead.
86 if (uuid_len == UUID::kNumBytes16) {
87 UUID::UUID16Bit uuid_bytes;
90 *out_uuid = UUID(uuid_bytes);
91 } else if (uuid_len == UUID::kNumBytes32) {
92 UUID::UUID32Bit uuid_bytes;
95 *out_uuid = UUID(uuid_bytes);
96 } else if (uuid_len == UUID::kNumBytes128) {
97 UUID::UUID128Bit uuid_bytes;
100 *out_uuid = UUID(uuid_bytes);
102 LOG(ERROR) << "Invalid UUID length";
114 // Minimum packet size should be equal to the uuid length + 1 to include
130 UUID uuid;
131 if (!ProcessUUID(service_uuid, uuid_len, &uuid))
134 UUID::UUID128Bit uuid_bytes = uuid.GetFullLittleEndian();
138 // This section is to make sure that there is no UUID conflict
142 // Mismatch in uuid passed through service data and uuid passed
143 // through uuid field
144 VLOG(1) << "More than one UUID entry not allowed";
146 } // else do nothing as UUID is already properly assigned
149 // uuid contained in the beggining of the field
201 UUID uuid;
202 if (!ProcessUUID(uuid_data, uuid_len, &uuid))
205 UUID::UUID128Bit uuid_bytes = uuid.GetFullLittleEndian();
210 // More than one UUID is not allowed due to the limitations
212 // is no ambiguity on which UUID to send. Also makes sure that
213 // UUID Hasn't been set by service data first
214 LOG(ERROR) << "More than one UUID entry not allowed";
219 uuid_bytes.data(), uuid_bytes.data() + UUID::kNumBytes128);
306 Adapter& adapter, const UUID& uuid, int client_id)
308 app_identifier_(uuid),
557 const UUID& LowEnergyClient::GetAppIdentifier() const {
840 const UUID& uuid,
842 VLOG(1) << __func__ << " - UUID: " << uuid.ToString();
845 if (pending_calls_.find(uuid) != pending_calls_.end()) {
846 LOG(ERROR) << "Low-Energy client with given UUID already registered - "
847 << "UUID: " << uuid.ToString();
853 bt_uuid_t app_uuid = uuid.GetBlueDroid();
858 pending_calls_[uuid] = callback;
867 UUID uuid(app_uuid);
869 VLOG(1) << __func__ << " - UUID: " << uuid.ToString();
872 auto iter = pending_calls_.find(uuid);
874 VLOG(1) << "Ignoring callback for unknown app_id: " << uuid.ToString();
882 client.reset(new LowEnergyClient(adapter_, uuid, client_id));
890 iter->second(result, uuid, std::move(client));