Lines Matching refs:uuid

62                const effect_uuid_t *uuid,
66 int findSubEffect(const effect_uuid_t *uuid,
70 static int stringToUuid(const char *str, effect_uuid_t *uuid);
71 static int uuidToString(const effect_uuid_t *uuid, char *str, size_t maxLen);
248 int EffectGetDescriptor(const effect_uuid_t *uuid, effect_descriptor_t *pDescriptor)
257 if (pDescriptor == NULL || uuid == NULL) {
261 ret = findEffect(NULL, uuid, &l, &d);
269 int EffectCreate(const effect_uuid_t *uuid, int32_t sessionId, int32_t ioId, effect_handle_t *pHandle)
279 if (uuid == NULL || pHandle == NULL) {
284 uuid->timeLow, uuid->timeMid, uuid->timeHiAndVersion,
285 uuid->clockSeq, uuid->node[0], uuid->node[1],uuid->node[2],
286 uuid->node[3],uuid->node[4],uuid->node[5]);
297 ret = findEffect(NULL, uuid, &l, &d);
301 ret = findSubEffect(uuid, &l, &d);
308 ret = l->desc->create_effect(uuid, sessionId, ioId, &itfe);
389 int EffectIsNullUuid(const effect_uuid_t *uuid)
391 if (memcmp(uuid, EFFECT_UUID_NULL, sizeof(effect_uuid_t))) {
397 // Function to get the sub effect descriptors of the effect whose uuid
399 // matching uuid and then copies the corresponding sub effect descriptors
401 int EffectGetSubEffects(const effect_uuid_t *uuid, sub_effect_entry_t **pSube,
405 "%02X\n",uuid->timeLow, uuid->timeMid, uuid->timeHiAndVersion,
406 uuid->clockSeq, uuid->node[0], uuid->node[1],uuid->node[2],
407 uuid->node[3],uuid->node[4],uuid->node[5]);
410 if ((uuid == NULL) || (pSube == NULL) || (size < 2)) {
423 if (memcmp(uuid, &d->uuid, sizeof(effect_uuid_t)) == 0) {
568 effect_uuid_t uuid;
585 if (stringToUuid(node->value, &uuid) != 0) {
586 ALOGW("addSubEffect() invalid uuid %s", node->value);
590 if (l->desc->get_descriptor(&uuid, d) != 0) {
592 uuidToString(&uuid, s, 40);
639 effect_uuid_t uuid;
659 if (stringToUuid(node->value, &uuid) != 0) {
660 ALOGW("loadEffect() invalid uuid %s", node->value);
665 if (l->desc->get_descriptor(&uuid, d) != 0) {
667 uuidToString(&uuid, s, 40);
723 d->uuid = uuid;
737 // Searches the sub effect matching to the specified uuid
740 int findSubEffect(const effect_uuid_t *uuid,
752 if (uuid == NULL)
761 if (memcmp(&d->uuid, uuid, sizeof(effect_uuid_t)) == 0) {
762 ALOGV("uuid matched");
838 const effect_uuid_t *uuid,
857 if (uuid != NULL && memcmp(&d->uuid, uuid, sizeof(effect_uuid_t)) == 0) {
884 uuidToString(&desc->uuid, s, 256);
897 int stringToUuid(const char *str, effect_uuid_t *uuid)
905 uuid->timeLow = (uint32_t)tmp[0];
906 uuid->timeMid = (uint16_t)tmp[1];
907 uuid->timeHiAndVersion = (uint16_t)tmp[2];
908 uuid->clockSeq = (uint16_t)tmp[3];
909 uuid->node[0] = (uint8_t)tmp[4];
910 uuid->node[1] = (uint8_t)tmp[5];
911 uuid->node[2] = (uint8_t)tmp[6];
912 uuid->node[3] = (uint8_t)tmp[7];
913 uuid->node[4] = (uint8_t)tmp[8];
914 uuid->node[5] = (uint8_t)tmp[9];
919 int uuidToString(const effect_uuid_t *uuid, char *str, size_t maxLen)
923 uuid->timeLow,
924 uuid->timeMid,
925 uuid->timeHiAndVersion,
926 uuid->clockSeq,
927 uuid->node[0],
928 uuid->node[1],
929 uuid->node[2],
930 uuid->node[3],
931 uuid->node[4],
932 uuid->node[5]);