Home
last modified time | relevance | path

Searched refs:uuid_string (Results 1 – 4 of 4) sorted by relevance

/system/bt/btcore/src/
Duuid.c48 void uuid_string_free(uuid_string_t *uuid_string) { in uuid_string_free() argument
49 osi_free(uuid_string); in uuid_string_free()
52 const char *uuid_string_data(const uuid_string_t *uuid_string) { in uuid_string_data() argument
53 assert(uuid_string != NULL); in uuid_string_data()
54 return (const char *)uuid_string->string; in uuid_string_data()
57 bt_uuid_t *uuid_new(const char *uuid_string) { in uuid_new() argument
58 assert(uuid_string != NULL); in uuid_new()
60 if (strlen(uuid_string) < UUID_WELL_FORMED_STRING_LEN) in uuid_new()
62 …if (uuid_string[8] != '-' || uuid_string[13] != '-' || uuid_string[18] != '-' || uuid_string[23] !… in uuid_new()
67 const char *s = uuid_string; in uuid_new()
[all …]
/system/bt/btcore/include/
Duuid.h33 void uuid_string_free(uuid_string_t *uuid_string);
37 const char *uuid_string_data(const uuid_string_t *uuid_string);
48 bt_uuid_t *uuid_new(const char *uuid_string);
69 void uuid_to_string(const bt_uuid_t *uuid, uuid_string_t *uuid_string);
/system/bt/btcore/test/
Duuid_test.cpp144 uuid_string_t *uuid_string = uuid_string_new(); in TEST_F() local
145 EXPECT_TRUE(uuid_string != NULL); in TEST_F()
149 uuid_to_string(uuid, uuid_string); in TEST_F()
152 EXPECT_TRUE(!strcmp(UUID_BASE, uuid_string_data(uuid_string))); in TEST_F()
157 uuid_to_string(uuid, uuid_string); in TEST_F()
164 EXPECT_TRUE(!strcmp(lower_case_buf, uuid_string_data(uuid_string))); in TEST_F()
165 uuid_string_free(uuid_string); in TEST_F()
/system/bt/service/test/
Duuid_unittest.cpp160 std::string uuid_string = uuid.ToString(); in TEST() local
161 EXPECT_EQ("0000180d-0000-1000-8000-00805f9b34fb", uuid_string); in TEST()