/third_party/python/Lib/test/ |
H A D | test_uuid.py | 15 py_uuid = import_helper.import_fresh_module('uuid', blocked=['_uuid']) 16 c_uuid = import_helper.import_fresh_module('uuid', fresh=['_uuid']) 33 uuid = None variable in BaseTestUUID 54 'urn:uuid:00000000-0000-0000-0000-000000000000', 55 0, 0, self.uuid.RESERVED_NCS, None), 63 'urn:uuid:00010203-0405-0607-0809-0a0b0c0d0e0f', 64 0x607040500010203, 0x809, self.uuid.RESERVED_NCS, None), 72 'urn:uuid:02d9e6d5-9467-382e-8f9b-9300a64ac3cd', 73 0x82e946702d9e6d5, 0xf9b, self.uuid.RFC_4122, 3), 81 'urn:uuid 679 uuid = py_uuid global() variable in TestUUIDWithoutExtModule 683 uuid = c_uuid global() variable in TestUUIDWithExtModule 876 uuid = py_uuid global() variable in TestInternalsWithoutExtModule 880 uuid = c_uuid global() variable in TestInternalsWithExtModule [all...] |
/third_party/ffmpeg/libavutil/tests/ |
H A D | uuid.c | 22 #include "libavutil/uuid.h" 28 static const char *UUID_1_URN = "urn:uuid:6021b21e-894e-43ff-8317-1ca891c1c49b"; 42 AVUUID uuid; in main() local 48 if (av_uuid_parse(UUID_1, uuid)) in main() 51 if (!av_uuid_equal(uuid, UUID_1_BYTES)) in main() 56 av_uuid_nil(uuid); in main() 58 if (!av_uuid_equal(uuid, UUID_NIL)) in main() 75 if (av_uuid_parse(UUID_1_UC, uuid)) in main() 78 if (!av_uuid_equal(uuid, UUID_1_BYTES)) in main() 83 if (av_uuid_parse(UUID_1_MIXED, uuid)) in main() [all...] |
/third_party/python/Modules/ |
H A D | _uuidmodule.c | 11 #include <uuid.h> 14 #include <uuid/uuid.h> 27 uuid_t uuid; in Py_UNUSED() local 31 res = uuid_generate_time_safe(uuid); in Py_UNUSED() 32 return Py_BuildValue("y#i", (const char *) uuid, sizeof(uuid), res); in Py_UNUSED() 35 uuid_create(&uuid, &status); in Py_UNUSED() 37 unsigned char buf[sizeof(uuid)]; in Py_UNUSED() 38 uuid_enc_be(buf, &uuid); in Py_UNUSED() 55 UUID uuid; Py_UNUSED() local [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/versionmanager/ |
H A D | version_manager.cpp | 41 std::string strUUID = DHContext::GetInstance().GetDeviceInfo().uuid; in Init() 62 int32_t VersionManager::AddDHVersion(const std::string &uuid, const DHVersion &dhVersion) in AddDHVersion() argument 64 if (!IsIdLengthValid(uuid)) { in AddDHVersion() 67 DHLOGI("addDHVersion uuid: %{public}s", GetAnonyString(uuid).c_str()); in AddDHVersion() 69 dhVersions_[uuid] = dhVersion; in AddDHVersion() 73 int32_t VersionManager::RemoveDHVersion(const std::string &uuid) in RemoveDHVersion() argument 75 if (!IsIdLengthValid(uuid)) { in RemoveDHVersion() 78 DHLOGI("uuid: %{public}s", GetAnonyString(uuid) in RemoveDHVersion() 89 GetDHVersion(const std::string &uuid, DHVersion &dhVersion) GetDHVersion() argument 106 GetCompVersion(const std::string &uuid, const DHType dhType, CompVersion &compVersion) GetCompVersion() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | dev_manager.cpp | 86 return GetDevInfoFromBucket(networkId).uuid; in ToUUID() 89 std::string DevManager::ToNetworkId(const std::string &uuid) in ToNetworkId() argument 91 return GetDevInfoFromBucket(uuid).networkId; in ToNetworkId() 101 if (detailInfo.uuid.empty()) { in GetDevInfoFromBucket() 115 if (detailInfo.uuid.empty() || detailInfo.networkId.empty()) { in UpdateBucket() 118 deviceInfos_.Set(detailInfo.uuid, detailInfo); in UpdateBucket() 126 if (!UnEncryptedLocalInfo_.uuid.empty()) { in GetUnEncryptedUuid() 127 return UnEncryptedLocalInfo_.uuid; in GetUnEncryptedUuid() 140 std::string uuid; in GetUnEncryptedUuid() local 141 DeviceManager::GetInstance().GetUuidByNetworkId(PKG_NAME, networkId, uuid); in GetUnEncryptedUuid() 166 std::string uuid; GetLocalDevice() local 194 std::string uuid; GetRemoteDevices() local [all...] |
/vendor/hihope/neptune_iotlink_demo/ble/source/ |
H A D | ble_server_demo.c | 78 uint16_t uuid;
in test_add_service3() local 96 memcpy_s(attr[ATTR_NUM_0].uuid, sizeof(attr[ATTR_NUM_0].uuid),
in test_add_service3() 101 memcpy_s(attr[ATTR_NUM_1].uuid, sizeof(attr[ATTR_NUM_1].uuid),
in test_add_service3() 112 uuid = 0x2902;
in test_add_service3() 113 memcpy_s(attr[ATTR_NUM_2].uuid, sizeof(attr[ATTR_NUM_2].uuid), &uuid, sizeof(uuid));
in test_add_service3() 156 uint16_t uuid; test_add_service() local 217 uint16_t uuid; test_add_service2() local 270 test_serviceAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle) test_serviceAddCallback() argument 280 test_characteristicAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle, int characteristicHandle) test_characteristicAddCallback() argument 286 test_descriptorAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle, int descriptorHandle) test_descriptorAddCallback() argument [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentmanager/ |
H A D | component_manager.cpp | 302 std::string uuid = DHContext::GetInstance().GetDeviceInfo().uuid; in StartSource() local 309 VersionManager::GetInstance().GetCompVersion(uuid, item.first, compversion); in StartSource() 333 std::string uuid = DHContext::GetInstance().GetDeviceInfo().uuid; in StartSource() local 335 VersionManager::GetInstance().GetCompVersion(uuid, dhType, compVersion); in StartSource() 351 std::string uuid = DHContext::GetInstance().GetDeviceInfo().uuid; in StartSink() local 358 VersionManager::GetInstance().GetCompVersion(uuid, item.first, compversion); in StartSink() 390 std::string uuid in StartSink() local 532 Enable(const std::string &networkId, const std::string &uuid, const std::string &dhId, const DHType dhType) Enable() argument 598 RetryGetEnableParam(const std::string &networkId, const std::string &uuid, const std::string &dhId, const DHType dhType, EnableParam ¶m) RetryGetEnableParam() argument 620 Disable(const std::string &networkId, const std::string &uuid, const std::string &dhId, const DHType dhType) Disable() argument 657 GetDHType(const std::string &uuid, const std::string &dhId) const GetDHType() argument 669 GetEnableCapParam(const std::string &networkId, const std::string &uuid, DHType dhType, EnableParam ¶m, std::shared_ptr<CapabilityInfo> capability) GetEnableCapParam() argument 718 GetEnableMetaParam(const std::string &networkId, const std::string &uuid, DHType dhType, EnableParam ¶m, std::shared_ptr<MetaCapabilityInfo> metaCapPtr) GetEnableMetaParam() argument 753 GetCapParam(const std::string &uuid, const std::string &dhId, std::shared_ptr<CapabilityInfo> &capability) GetCapParam() argument 777 GetMetaParam(const std::string &uuid, const std::string &dhId, std::shared_ptr<MetaCapabilityInfo> &metaCapPtr) GetMetaParam() argument 793 GetEnableParam(const std::string &networkId, const std::string &uuid, const std::string &dhId, DHType dhType, EnableParam ¶m) GetEnableParam() argument 822 GetVersionFromVerMgr(const std::string &uuid, const DHType dhType, std::string &version, bool isSink) GetVersionFromVerMgr() argument 842 GetVersionFromVerInfoMgr(const std::string &uuid, const DHType dhType, std::string &version, bool isSink) GetVersionFromVerInfoMgr() argument 868 GetVersion(const std::string &uuid, DHType dhType, std::string &version, bool isSink) GetVersion() argument 886 UpdateVersionCache(const std::string &uuid, const VersionInfo &versionInfo) UpdateVersionCache() argument 946 std::string uuid = DHContext::GetInstance().GetUUIDByDeviceId(metaInfo.second->GetDeviceId()); RecoverDistributedHardware() local 1032 QueryBusinessState(const std::string &uuid, const std::string &dhId) QueryBusinessState() argument [all...] |
/foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
H A D | ohos_bt_spp.cpp | 56 btsocketPara.uuid.uuidLen = socketPara->uuid.uuidLen; in SppServerCreate() 57 btsocketPara.uuid.uuid = socketPara->uuid.uuid; in SppServerCreate() 107 btsocketPara.uuid.uuidLen = socketPara->uuid.uuidLen; in SppConnect() 108 btsocketPara.uuid.uuid in SppConnect() [all...] |
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/sa/ |
H A D | intell_voice_service_manager.cpp | 244 void IntellVoiceServiceManager::CreateDetector(int32_t uuid) in CreateDetector() argument 247 if (!QuerySwitchByUuid(uuid)) { in CreateDetector() 248 INTELL_VOICE_LOG_INFO("switch is off, uuid is %{public}d", uuid); in CreateDetector() 252 if (detector_.count(uuid) != 0 && detector_[uuid] != nullptr) { in CreateDetector() 253 INTELL_VOICE_LOG_INFO("detector is already existed, no need to create, uuid:%{public}d", uuid); in CreateDetector() 257 auto cb = std::make_shared<TriggerDetectorCallback>([&, uuid]() { OnDetected(uuid); }); in CreateDetector() 278 StartDetection(int32_t uuid) StartDetection() argument 318 StopDetection(int32_t uuid) StopDetection() argument 328 OnDetected(int32_t uuid) OnDetected() argument 342 CreateAndStartServiceObject(int32_t uuid, bool needResetAdapter) CreateAndStartServiceObject() argument 401 ReleaseServiceObject(int32_t uuid) ReleaseServiceObject() argument [all...] |
/third_party/node/test/parallel/ |
H A D | test-crypto-randomuuid.js | 17 function testMatch(uuid) { 19 uuid, 28 const uuid = randomUUID(); 29 assert(!last.has(uuid)); 30 last.add(uuid); 31 assert.strictEqual(typeof uuid, 'string'); 32 assert.strictEqual(uuid.length, 36); 33 testMatch(uuid); 37 Buffer.from(uuid.substr(14, 2), 'hex')[0] & 0x40, 0x40); 41 Buffer.from(uuid [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | uuid.c | 13 #include "uuid.h" 65 int is_nil_uuid(const u8 *uuid) in is_nil_uuid() argument 69 if (uuid[i]) in is_nil_uuid() 75 int uuid_random(u8 *uuid) in uuid_random() argument 83 if (os_get_random(uuid, UUID_LEN) < 0 || in uuid_random() 84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0) in uuid_random() 87 os_memcpy(uuid, hash, UUID_LEN); in uuid_random() 90 uuid[6] = (4 << 4) | (uuid[6] & 0x0f); in uuid_random() 93 uuid[ in uuid_random() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | uuid.c | 13 #include "uuid.h" 65 int is_nil_uuid(const u8 *uuid) in is_nil_uuid() argument 69 if (uuid[i]) in is_nil_uuid() 75 int uuid_random(u8 *uuid) in uuid_random() argument 83 if (os_get_random(uuid, UUID_LEN) < 0 || in uuid_random() 84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0) in uuid_random() 87 os_memcpy(uuid, hash, UUID_LEN); in uuid_random() 90 uuid[6] = (4 << 4) | (uuid[6] & 0x0f); in uuid_random() 93 uuid[ in uuid_random() [all...] |
/third_party/libuv/src/unix/ |
H A D | random-sysctl-linux.c | 46 char uuid[16]; in uv__random_sysctl() local 59 args.oldval = uuid; in uv__random_sysctl() 61 n = sizeof(uuid); in uv__random_sysctl() 80 if (n != sizeof(uuid)) in uv__random_sysctl() 83 /* uuid[] is now a type 4 UUID. Bytes 6 and 8 (counting from zero) contain in uv__random_sysctl() 87 uuid[6] = uuid[14]; in uv__random_sysctl() 88 uuid[8] = uuid[15]; in uv__random_sysctl() 94 memcpy(p, uuid, in uv__random_sysctl() [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | random-sysctl-linux.c | 46 char uuid[16]; in uv__random_sysctl() local 59 args.oldval = uuid; in uv__random_sysctl() 61 n = sizeof(uuid); in uv__random_sysctl() 80 if (n != sizeof(uuid)) in uv__random_sysctl() 83 /* uuid[] is now a type 4 UUID. Bytes 6 and 8 (counting from zero) contain in uv__random_sysctl() 87 uuid[6] = uuid[14]; in uv__random_sysctl() 88 uuid[8] = uuid[15]; in uv__random_sysctl() 94 memcpy(p, uuid, in uv__random_sysctl() [all...] |
/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/src/communicator/ |
H A D | dev_manager.cpp | 48 std::string uuid = DevManager::GetInstance()->GetUuidByNodeId(std::string(deviceInfo.networkId));
in OnDeviceOnline() local 49 LOG_INFO("[Online] id:%{public}s, name:%{public}s, typeId:%{public}d", SoftBusAdapter::ToBeAnonymous(uuid).c_str(),
in OnDeviceOnline() 56 std::string uuid = DevManager::GetInstance()->GetUuidByNodeId(std::string(deviceInfo.networkId));
in OnDeviceOffline() local 58 SoftBusAdapter::ToBeAnonymous(uuid).c_str(), deviceInfo.deviceName, deviceInfo.deviceTypeId);
in OnDeviceOffline() 64 std::string uuid = DevManager::GetInstance()->GetUuidByNodeId(std::string(deviceInfo.networkId));
in OnDeviceChanged() local 65 LOG_INFO("[InfoChange] id:%{public}s, name:%{public}s", SoftBusAdapter::ToBeAnonymous(uuid).c_str(),
in OnDeviceChanged() 142 std::string uuid = "";
in GetUuidByNodeId() local 144 "ohos.objectstore", nodeId.c_str(), uuid);
in GetUuidByNodeId() 149 return uuid;
in GetUuidByNodeId() 155 if (!localInfo_.uuid in GetLocalDevice() 165 std::string uuid; GetLocalDevice() local [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/utils/ |
H A D | dh_context.h | 40 std::string uuid; member 41 // deviceId is uuid hash 49 (uuid == other.uuid) && in operator ==() 58 ((networkId.compare(other.networkId) == 0) && (uuid.compare(other.uuid) < 0)) || in operator <() 59 ((networkId.compare(other.networkId) == 0) && (uuid.compare(other.uuid) == 0) && in operator <() 61 ((networkId.compare(other.networkId) == 0) && (uuid.compare(other.uuid) in operator <() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/sdp/ |
H A D | sdp_util.c | 48 uint16_t SdpAddAttributeForUuid(uint8_t *buffer, uint16_t offset, const BtUuid *uuid) in SdpAddAttributeForUuid() argument 50 switch (uuid->type) { in SdpAddAttributeForUuid() 56 *(uint16_t *)(buffer + offset) = H2BE_16(uuid->uuid16); in SdpAddAttributeForUuid() 64 *(uint32_t *)(buffer + offset) = H2BE_32(uuid->uuid32); in SdpAddAttributeForUuid() 72 SdpReverseForBigEndian(uuid->uuid128, buffer + offset, SDP_UUID128_LENGTH); in SdpAddAttributeForUuid() 76 LOG_ERROR("[%{public}s][%{public}d] Wrong type [0x%02x]", __FUNCTION__, __LINE__, uuid->type); in SdpAddAttributeForUuid() 135 uint16_t SdpGetUuid(uint8_t *buffer, BtUuid *uuid) in SdpGetUuid() argument 149 uuid->type = BT_UUID_16; in SdpGetUuid() 150 uuid->uuid16 = BE2H_16(*(uint16_t *)(buffer + offset)); in SdpGetUuid() 153 uuid in SdpGetUuid() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/ |
H A D | distributed_hardware_manager_factory.cpp | 139 const auto uuid = GetUUIDByDm(networkId); in CheckExitSAOrNot() local 141 DHLOGI("Send trusted device online, networkId = %{public}s, uuid = %{public}s", in CheckExitSAOrNot() 142 GetAnonyString(networkId).c_str(), GetAnonyString(uuid).c_str()); in CheckExitSAOrNot() 145 std::thread([this, networkId, uuid, udid, deviceType, osType]() { in CheckExitSAOrNot() 146 this->SendOnLineEvent(networkId, uuid, udid, deviceType, osType); in CheckExitSAOrNot() 156 int32_t DistributedHardwareManagerFactory::SendOnLineEvent(const std::string &networkId, const std::string &uuid, in SendOnLineEvent() argument 159 if (!IsIdLengthValid(networkId) || !IsIdLengthValid(uuid) || !IsIdLengthValid(udid)) { in SendOnLineEvent() 172 if (DHContext::GetInstance().IsDeviceOnline(uuid)) { in SendOnLineEvent() 173 DHLOGW("device is already online, uuid = %{public}s", GetAnonyString(uuid) in SendOnLineEvent() 204 SendOffLineEvent(const std::string &networkId, const std::string &uuid, const std::string &udid, uint16_t deviceType) SendOffLineEvent() argument [all...] |
/foundation/communication/dsoftbus/tests/adapter/bluetooth/ |
H A D | softbus_adapter_ble_gatt_server_test.cpp | 44 SoftBusBtUuid uuid; member in OHOS::BtUuidRecordCtx 122 .uuid = (char *)serviceUuid, in HWTEST_F() 159 .uuid = (char *)serviceUuid, in HWTEST_F() 178 .uuid = (char *)serviceUuid, in HWTEST_F() 187 .uuid = nullptr, in HWTEST_F() 192 service.uuid = (char *)serviceUuid; in HWTEST_F() 211 .uuid = (char *)serviceUuid, in HWTEST_F() 219 .uuid = nullptr, in HWTEST_F() 230 characteristic.uuid = (char *)netCharacteristic; in HWTEST_F() 253 .uuid in HWTEST_F() 723 StubServiceAddCallback(int32_t status, SoftBusBtUuid *uuid, int32_t srvcHandle) StubServiceAddCallback() argument 728 StubCharacteristicAddCallback(int32_t status, SoftBusBtUuid *uuid, int32_t srvcHandle, int32_t characteristicHandle) StubCharacteristicAddCallback() argument 734 StubDescriptorAddCallback(int32_t status, SoftBusBtUuid *uuid, int32_t srvcHandle, int32_t descriptorHandle) StubDescriptorAddCallback() argument [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/src/ |
H A D | device_manager_adapter.cpp | 256 ZLOGI("[online] uuid:%{public}s, name:%{public}s, type:%{public}d, authForm:%{public}d, osType:%{public}d", in Online() 257 KvStoreUtils::ToBeAnonymous(dvInfo.uuid).c_str(), dvInfo.deviceName.c_str(), dvInfo.deviceType, in Online() 260 syncTask_.Insert(dvInfo.uuid, dvInfo.uuid); in Online() 289 void DeviceManagerAdapter::NotifyReadyEvent(const std::string &uuid) in NotifyReadyEvent() argument 291 if (uuid.empty() || !syncTask_.Contains(uuid)) { in NotifyReadyEvent() 295 syncTask_.Erase(uuid); in NotifyReadyEvent() 296 if (uuid == CLOUD_DEVICE_UUID) { in NotifyReadyEvent() 299 ZLOGI("[NotifyReadyEvent] uuid in NotifyReadyEvent() [all...] |
/foundation/communication/dsoftbus/core/connection/ble/src/ |
H A D | softbus_conn_ble_server.c | 63 SoftBusBtUuid uuid; member 70 SoftBusBtUuid uuid; member 77 SoftBusBtUuid uuid; member 167 SoftBusBtUuid uuid = { in ResetServerState() local 168 .uuid = SOFTBUS_SERVICE_UUID, in ResetServerState() 171 SoftBusUnRegisterGattsCallbacks(uuid); in ResetServerState() 195 SoftBusBtUuid uuid = { in ConnGattServerStartService() local 196 .uuid = SOFTBUS_SERVICE_UUID, in ConnGattServerStartService() 199 status = SoftBusGattsAddService(uuid, true, MAX_SERVICE_CHAR_NUM); in ConnGattServerStartService() 210 static void BleServiceAddCallback(int32_t status, SoftBusBtUuid *uuid, int32_ argument 272 SoftBusBtUuid uuid = { BleServiceAddMsgHandler() local 300 BleCharacteristicAddCallback( int32_t status, SoftBusBtUuid *uuid, int32_t srvcHandle, int32_t characteristicHandle) BleCharacteristicAddCallback() argument 388 SoftBusBtUuid uuid = { BleCharacteristicAddMsgHandler() local 412 BleDescriptorAddCallback(int32_t status, SoftBusBtUuid *uuid, int32_t srvcHandle, int32_t descriptorHandle) BleDescriptorAddCallback() argument 492 SoftBusBtUuid uuid = { BleNetDescriptorAddMsgHandler() local 855 SoftBusBtUuid uuid = { BleServiceDeleteMsgHandler() local [all...] |
/foundation/communication/dsoftbus/core/authentication/src/virtual/ |
H A D | auth_interface_virtual.c | 54 int32_t AuthFlushDevice(const char *uuid) in AuthFlushDevice() argument 56 (void)uuid; in AuthFlushDevice() 118 int32_t AuthGetPreferConnInfo(const char *uuid, AuthConnInfo *connInfo, bool isMeta) in AuthGetPreferConnInfo() argument 120 (void)uuid; in AuthGetPreferConnInfo() 126 int32_t AuthGetP2pConnInfo(const char *uuid, AuthConnInfo *connInfo, bool isMeta) in AuthGetP2pConnInfo() argument 128 (void)uuid; in AuthGetP2pConnInfo() 134 int32_t AuthGetHmlConnInfo(const char *uuid, AuthConnInfo *connInfo, bool isMeta) in AuthGetHmlConnInfo() argument 136 (void)uuid; in AuthGetHmlConnInfo() 142 void AuthGetLatestIdByUuid(const char *uuid, AuthLinkType type, bool isMeta, AuthHandle *authHandle) in AuthGetLatestIdByUuid() argument 144 (void)uuid; in AuthGetLatestIdByUuid() 159 AuthGetIdByUuid(const char *uuid, AuthLinkType type, bool isServer, bool isMeta) AuthGetIdByUuid() argument 219 AuthGetDeviceUuid(int64_t authId, char *uuid, uint16_t size) AuthGetDeviceUuid() argument [all...] |
/foundation/communication/dsoftbus/core/adapter/br/mock/ |
H A D | wrapper_br_interface.c | 34 static int32_t OpenSppServer(const char *name, int32_t nameLen, const char *uuid, int32_t isSecure) in OpenSppServer() argument 44 socketPara.uuid.uuid = (char *)uuid; in OpenSppServer() 45 socketPara.uuid.uuidLen = strlen(uuid); in OpenSppServer() 57 static int32_t ConnectByPort(const char *uuid, const BT_ADDR mac, const int socketPsmValue, void *connectCallback) in ConnectByPort() argument 64 socketPara.uuid.uuid = (char *)uuid; in ConnectByPort() 84 Connect(const char *uuid, const BT_ADDR mac, void *connectCallback) Connect() argument [all...] |
/foundation/ai/intelligent_voice_framework/services/intell_voice_trigger/server/ |
H A D | trigger_service.cpp | 61 void TriggerService::DeleteGenericTriggerModel(int32_t uuid) in DeleteGenericTriggerModel() argument 68 dbHelper_->DeleteGenericTriggerModel(uuid); in DeleteGenericTriggerModel() 71 std::shared_ptr<GenericTriggerModel> TriggerService::GetGenericTriggerModel(int32_t uuid) in GetGenericTriggerModel() argument 80 auto model = dbHelper_->GetGenericTriggerModel(uuid); in GetGenericTriggerModel() 90 int32_t uuid, std::shared_ptr<IIntellVoiceTriggerRecognitionCallback> callback) in StartRecognition() 97 auto model = GetGenericTriggerModel(uuid); in StartRecognition() 99 INTELL_VOICE_LOG_ERROR("trigger model is nullptr, uuid:%{public}d", uuid); in StartRecognition() 103 return triggerHelper_->StartGenericRecognition(uuid, model, callback); in StartRecognition() 106 int32_t TriggerService::StopRecognition(int32_t uuid, st argument 89 StartRecognition( int32_t uuid, std::shared_ptr<IIntellVoiceTriggerRecognitionCallback> callback) StartRecognition() argument 115 UnloadTriggerModel(int32_t uuid) UnloadTriggerModel() argument [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/test/unittest/ |
H A D | device_manager_adapter_test.cpp | 148 EXPECT_FALSE(dvInfo.uuid.empty()); in HWTEST_F() 191 auto uuidToDVInfo = DeviceManagerAdapter::GetInstance().GetDeviceInfo(localDvInfo.uuid); in HWTEST_F() 194 EXPECT_EQ(localDvInfo.uuid, udidToDVInfo.uuid); in HWTEST_F() 201 * @tc.desc: get uuid by networkId, the networkId is invalid 208 auto uuid = DeviceManagerAdapter::GetInstance().GetUuidByNetworkId(EMPTY_DEVICE_ID); in HWTEST_F() local 209 EXPECT_TRUE(uuid.empty()); in HWTEST_F() 210 uuid = DeviceManagerAdapter::GetInstance().GetUuidByNetworkId(INVALID_DEVICE_ID); in HWTEST_F() 211 EXPECT_TRUE(uuid.empty()); in HWTEST_F() 216 * @tc.desc: get uuid b 224 auto uuid = DeviceManagerAdapter::GetInstance().GetUuidByNetworkId(dvInfo.networkId); HWTEST_F() local 266 auto uuid = DeviceManagerAdapter::GetInstance().ToUUID(EMPTY_DEVICE_ID); HWTEST_F() local [all...] |