Lines Matching refs:uuid
57 const effect_uuid_t *uuid,
61 static int stringToUuid(const char *str, effect_uuid_t *uuid);
62 static int uuidToString(const effect_uuid_t *uuid, char *str, size_t maxLen);
239 int EffectGetDescriptor(const effect_uuid_t *uuid, effect_descriptor_t *pDescriptor)
248 if (pDescriptor == NULL || uuid == NULL) {
252 ret = findEffect(NULL, uuid, &l, &d);
260 int EffectCreate(const effect_uuid_t *uuid, int32_t sessionId, int32_t ioId, effect_handle_t *pHandle)
270 if (uuid == NULL || pHandle == NULL) {
275 uuid->timeLow, uuid->timeMid, uuid->timeHiAndVersion,
276 uuid->clockSeq, uuid->node[0], uuid->node[1],uuid->node[2],
277 uuid->node[3],uuid->node[4],uuid->node[5]);
288 ret = findEffect(NULL, uuid, &l, &d);
294 ret = l->desc->create_effect(uuid, sessionId, ioId, &itfe);
375 int EffectIsNullUuid(const effect_uuid_t *uuid)
377 if (memcmp(uuid, EFFECT_UUID_NULL, sizeof(effect_uuid_t))) {
525 effect_uuid_t uuid;
545 if (stringToUuid(node->value, &uuid) != 0) {
546 ALOGW("loadEffect() invalid uuid %s", node->value);
551 if (l->desc->get_descriptor(&uuid, d) != 0) {
553 uuidToString(&uuid, s, 40);
632 const effect_uuid_t *uuid,
651 if (uuid != NULL && memcmp(&d->uuid, uuid, sizeof(effect_uuid_t)) == 0) {
678 uuidToString(&desc->uuid, s, 256);
691 int stringToUuid(const char *str, effect_uuid_t *uuid)
699 uuid->timeLow = (uint32_t)tmp[0];
700 uuid->timeMid = (uint16_t)tmp[1];
701 uuid->timeHiAndVersion = (uint16_t)tmp[2];
702 uuid->clockSeq = (uint16_t)tmp[3];
703 uuid->node[0] = (uint8_t)tmp[4];
704 uuid->node[1] = (uint8_t)tmp[5];
705 uuid->node[2] = (uint8_t)tmp[6];
706 uuid->node[3] = (uint8_t)tmp[7];
707 uuid->node[4] = (uint8_t)tmp[8];
708 uuid->node[5] = (uint8_t)tmp[9];
713 int uuidToString(const effect_uuid_t *uuid, char *str, size_t maxLen)
717 uuid->timeLow,
718 uuid->timeMid,
719 uuid->timeHiAndVersion,
720 uuid->clockSeq,
721 uuid->node[0],
722 uuid->node[1],
723 uuid->node[2],
724 uuid->node[3],
725 uuid->node[4],
726 uuid->node[5]);