Home
last modified time | relevance | path

Searched refs:uuid (Results 1 - 3 of 3) sorted by relevance

/commonlibrary/ets_utils/js_util_module/util/
H A Djs_uuid.cpp121 bool GetBufferedUUID(napi_env env, UUID &uuid) in GetBufferedUUID() argument
125 napi_throw_error(env, "-1", "uuid generate failed"); in GetBufferedUUID()
129 if (memcpy_s(uuid.elements, UUID_SIZE, g_uuidCache + uuidCachedIndex * UUID_SIZE, UUID_SIZE) != EOK) { in GetBufferedUUID()
130 napi_throw_error(env, "-1", "uuid generate failed"); in GetBufferedUUID()
133 ProcessUUID(uuid.elements); in GetBufferedUUID()
138 bool GetUnBufferedUUID(napi_env env, UUID &uuid) in GetUnBufferedUUID() argument
140 if (!GenerateUUID(uuid.elements, UUID_SIZE)) { in GetUnBufferedUUID()
141 napi_throw_error(env, "-1", "uuid generate failed"); in GetUnBufferedUUID()
144 ProcessUUID(uuid.elements); in GetUnBufferedUUID()
148 bool GetUUID(napi_env env, bool entropyCache, UUID &uuid) in GetUUID() argument
155 UUID uuid; GetStringUUID() local
165 GetFormatUUID(const UUID &uuid) GetFormatUUID() argument
186 UUID uuid; GetBinaryUUID() local
[all...]
H A Djs_uuid.h66 bool GetBufferedUUID(napi_env env, UUID &uuid);
67 bool GetUnBufferedUUID(napi_env env, UUID &uuid);
68 bool GetUUID(napi_env env, bool entropyCache, UUID &uuid);
69 std::string GetFormatUUID(const UUID &uuid);
/commonlibrary/ets_utils/js_util_module/util/test/
H A Dtest_util.cpp50 std::string uuid = OHOS::Util::GetStringUUID(env, true); in HWTEST_F() local
51 ASSERT_EQ(uuid.length(), 36); in HWTEST_F()
61 std::string uuid = OHOS::Util::GetStringUUID(env, false); in HWTEST_F() local
62 ASSERT_EQ(uuid.length(), 36); in HWTEST_F()

Completed in 7 milliseconds