Searched refs:uuid (Results 1 - 3 of 3) sorted by relevance
/commonlibrary/ets_utils/js_util_module/util/ |
H A D | js_uuid.cpp | 121 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 D | js_uuid.h | 66 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 D | test_util.cpp | 50 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