Lines Matching full:uuid
27 * trig <uuid> : Sends a recognition event for the model at the given uuid
28 * update <uuid> : Sends a model update event for the model at the given uuid.
78 { 0xed7a7d60, 0xc65e, 0x11e3, 0x9be4, { 0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b } }, // uuid
140 bool str_to_uuid(char* uuid_str, sound_trigger_uuid_t* uuid) {
149 ALOGI("Invalid UUID, got: %s", uuid_str);
152 uuid->timeLow = (unsigned int)tmp[0];
153 uuid->timeMid = (unsigned short)tmp[1];
154 uuid->timeHiAndVersion = (unsigned short)tmp[2];
155 uuid->clockSeq = (unsigned short)tmp[3];
156 uuid->node[0] = (unsigned char)tmp[4];
157 uuid->node[1] = (unsigned char)tmp[5];
158 uuid->node[2] = (unsigned char)tmp[6];
159 uuid->node[3] = (unsigned char)tmp[7];
160 uuid->node[4] = (unsigned char)tmp[8];
161 uuid->node[5] = (unsigned char)tmp[9];
189 static void print_uuid(sound_trigger_uuid_t uuid) {
190 ALOGI("%s %08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x", __func__, uuid.timeLow, uuid.timeMid,
191 uuid.timeHiAndVersion, uuid.clockSeq, uuid.node[0], uuid.node[1], uuid.node[2],
192 uuid.node[3], uuid.node[4], uuid.node[5]);
195 static void write_uuid(int conn_socket, sound_trigger_uuid_t uuid) {
196 write_vastr(conn_socket, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x\n", uuid.timeLow, uuid.timeMid,
197 uuid.timeHiAndVersion, uuid.clockSeq, uuid.node[0], uuid.node[1], uuid.node[2],
198 uuid.node[3], uuid.node[4], uuid.node[5]);
218 // Returns the first model that matches the sound model UUID.
220 sound_trigger_uuid_t uuid) {
224 if (check_uuid_equality(last_model_context->model_uuid, uuid)) {
376 ALOGI("%s Not a valid UUID", __func__);
377 write_string(conn_socket, "Not a valid UUID.\n");
663 model_context->model_uuid = sound_model->uuid;