Home
last modified time | relevance | path

Searched refs:udid (Results 1 – 25 of 99) sorted by relevance

1234

/base/startup/init/services/modules/udid/
Dudid_comm.c41 INIT_LOCAL_API int GetUdidFromParam(char *udid, uint32_t size) in GetUdidFromParam() argument
44 int ret = SystemGetParameter("const.product.udid", udid, &len); in GetUdidFromParam()
48 ret = SystemGetParameter("const.product.devUdid", udid, &len); in GetUdidFromParam()
53 INIT_LOCAL_API int GetDevUdid_(char *udid, int size) in GetDevUdid_() argument
55 if (size < UDID_LEN || udid == NULL) { in GetDevUdid_()
59 int ret = GetUdidFromParam(udid, (uint32_t)size); in GetDevUdid_()
63 ret = CalcDevUdid(udid, size); in GetDevUdid_()
Dudid_adp.c29 INIT_UDID_LOCAL_API int GetSha256Value(const char *input, char *udid, uint32_t udidSize) in GetSha256Value() argument
47 if (len > 0 && strcat_s(udid, udidSize, buf) != 0) { in GetSha256Value()
54 INIT_UDID_LOCAL_API int CalcDevUdid(char *udid, uint32_t size) in CalcDevUdid() argument
68 ret = GetSha256Value(tmp, udid, size); in CalcDevUdid()
76 char udid[UDID_LEN] = {0}; in SetDevUdid() local
77 uint32_t size = (uint32_t)sizeof(udid); in SetDevUdid()
78 int ret = GetUdidFromParam(udid, size); in SetDevUdid()
80 ret = CalcDevUdid(udid, size); in SetDevUdid()
83 ret = SystemWriteParam("const.product.devUdid", udid); in SetDevUdid()
Dudid.h27 INIT_UDID_LOCAL_API int GetUdidFromParam(char *udid, uint32_t size);
28 INIT_UDID_LOCAL_API int CalcDevUdid(char *udid, uint32_t size);
/base/security/access_token/services/tokensyncmanager/src/remote/
Dremote_command_manager.cpp53 int RemoteCommandManager::AddCommand(const std::string &udid, const std::shared_ptr<BaseRemoteComma… in AddCommand() argument
55 if (udid.empty() || command == nullptr) { in AddCommand()
61 std::shared_ptr<RemoteCommandExecutor> executor = GetOrCreateRemoteCommandExecutor(udid); in AddCommand()
72 void RemoteCommandManager::RemoveCommand(const std::string &udid) in RemoveCommand() argument
75 executors_.erase(udid); in RemoveCommand()
78 int RemoteCommandManager::ExecuteCommand(const std::string &udid, const std::shared_ptr<BaseRemoteC… in ExecuteCommand() argument
80 if (udid.empty() || command == nullptr) { in ExecuteCommand()
82 ConstantCommon::EncryptDevId(udid).c_str()); in ExecuteCommand()
87 ConstantCommon::EncryptDevId(udid).c_str(), ConstantCommon::EncryptDevId(uniqueId).c_str()); in ExecuteCommand()
89 std::shared_ptr<RemoteCommandExecutor> executor = GetOrCreateRemoteCommandExecutor(udid); in ExecuteCommand()
[all …]
Dsoft_bus_device_connection_listener.cpp52 std::string udid = SoftBusManager::GetInstance().GetUniqueDeviceIdByNodeId(networkId); in OnDeviceOnline() local
58 ConstantCommon::EncryptDevId(udid).c_str()); in OnDeviceOnline()
60 if (uuid != "" && udid != "") { in OnDeviceOnline()
62 networkId, uuid, udid, info.deviceName, std::to_string(info.deviceTypeId)); in OnDeviceOnline()
63 RemoteCommandManager::GetInstance().NotifyDeviceOnline(udid); in OnDeviceOnline()
74 std::string udid = DeviceInfoManager::GetInstance().ConvertToUniqueDeviceIdOrFetch(networkId); in OnDeviceOffline() local
80 ConstantCommon::EncryptDevId(udid).c_str()); in OnDeviceOffline()
82 if (uuid != "" && udid != "") { in OnDeviceOffline()
84 RemoteCommandManager::GetInstance().NotifyDeviceOffline(udid); in OnDeviceOffline()
Dsoft_bus_manager.cpp77 std::string udid = GetUdidByNodeId(device.networkId); in AddTrustedDeviceInfo() local
78 if (uuid.empty() || udid.empty()) { in AddTrustedDeviceInfo()
80 … ConstantCommon::EncryptDevId(uuid).c_str(), ConstantCommon::EncryptDevId(udid).c_str()); in AddTrustedDeviceInfo()
84 … DeviceInfoManager::GetInstance().AddDeviceInfo(device.networkId, uuid, udid, device.deviceName, in AddTrustedDeviceInfo()
86 RemoteCommandManager::GetInstance().NotifyDeviceOnline(udid); in AddTrustedDeviceInfo()
319 std::string udid = GetUdidByNodeId(nodeId); in GetUniqueDeviceIdByNodeId() local
320 if (udid.empty()) { in GetUniqueDeviceIdByNodeId()
322 ConstantCommon::EncryptDevId(udid).c_str()); in GetUniqueDeviceIdByNodeId()
326 if (udid == localUdid) { in GetUniqueDeviceIdByNodeId()
332 return udid; in GetUniqueDeviceIdByNodeId()
[all …]
/base/startup/init/test/moduletest/
Dsyspara.cpp74 char udid[65] = {0}; in SysParaApiDumpCmd() local
75 GetDevUdid(udid, sizeof(udid)); in SysParaApiDumpCmd()
76 BShellEnvOutput(shell, const_cast<char *>("GetDevUdid:%s\r\n"), udid); in SysParaApiDumpCmd()
78 AclGetDevUdid(udid, sizeof(udid)); in SysParaApiDumpCmd()
79 BShellEnvOutput(shell, const_cast<char *>("Acl devUdid:%s\r\n"), udid); in SysParaApiDumpCmd()
Ddeviceinfo_moduleTest.cpp43 char udid[65] = {}; // 65 udid len variable
44 int ret = AclGetDevUdid(udid, sizeof(udid));
57 ret = AclGetDevUdid(udid, sizeof(udid));
/base/startup/init/test/unittest/modules/
Dudid_unittest.cpp28 int GetSha256Value(const char *input, char *udid, uint32_t udidSize);
30 int CalcDevUdid(char *udid, uint32_t size);
54 char udid[66] = {0}; variable
55 int ret = CalcDevUdid(udid, 6);
57 ret = CalcDevUdid(udid, 66);
/base/startup/init/device_info/
Ddevice_info.cpp29 int AclGetDevUdid(char *udid, int size) in AclGetDevUdid() argument
31 if (udid == nullptr || size < UDID_LEN) { in AclGetDevUdid()
34 (void)memset_s(udid, size, 0, size); in AclGetDevUdid()
40 ret = strcpy_s(udid, size, result.c_str()); in AclGetDevUdid()
43 int ret = GetDevUdid_(udid, size); in AclGetDevUdid()
/base/startup/init/test/fuzztest/aclgetdevudid_fuzzer/
Daclgetdevudid_fuzzer.cpp24 char udid[65] = {0}; in FuzzAclGetDevUdid() local
25 int len = sizeof(udid); in FuzzAclGetDevUdid()
26 if (!AclGetDevUdid(udid, len)) { in FuzzAclGetDevUdid()
/base/startup/init/test/fuzztest/getdevudid_fuzzer/
Dgetdevudid_fuzzer.cpp24 char udid[65] = {0}; in FuzzGetDevUdid() local
25 int len = sizeof(udid); in FuzzGetDevUdid()
26 if (!GetDevUdid(udid, len)) { in FuzzGetDevUdid()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/
Dhc_dev_info.c26 int32_t HcGetUdid(uint8_t *udid, int32_t udidLen) in HcGetUdid() argument
28 if (udid == NULL || udidLen < INPUT_UDID_LEN || udidLen > MAX_INPUT_UDID_LEN) { in HcGetUdid()
31 int32_t res = GetDevUdid((char *)udid, udidLen); in HcGetUdid()
/base/security/access_token/services/tokensyncmanager/include/remote/
Dremote_command_manager.h65 int ExecuteCommand(const std::string &udid, const std::shared_ptr<BaseRemoteCommand>& command);
77 int AddCommand(const std::string &udid, const std::shared_ptr<BaseRemoteCommand>& command);
88 int ProcessDeviceCommandImmediately(const std::string &udid);
113 void RemoveCommand(const std::string &udid);
/base/update/updateservice/services/core/ability/model/include/
Ddevice_info.h29 std::string udid;
35 json["udid"] = isPrint ? EncryptUtils::EncryptString(udid) : udid; in ToJson()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
Dhc_dev_info.c26 int32_t HcGetUdid(uint8_t *udid, int32_t udidLen) in HcGetUdid() argument
28 if (udid == NULL || udidLen < INPUT_UDID_LEN || udidLen > MAX_INPUT_UDID_LEN) { in HcGetUdid()
31 int32_t res = GetDevUdid((char *)udid, udidLen); in HcGetUdid()
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
Dprovision_verify_test.cpp142 "device-id-type": "udid"
189 "device-id-type": "udid",
340 "device-id-type": "udid",
421 "device-id-type": "udid",
431 char udid[DEV_UUID_LEN] = {0}; variable
432 int32_t udidRet = GetDevUdid(udid, sizeof(udid));
434 deviceId = std::string(udid, sizeof(udid) - 1);
470 "device-id-type": "udid",
480 char udid[DEV_UUID_LEN] = {0}; variable
481 int32_t udidRet = GetDevUdid(udid, sizeof(udid));
[all …]
/base/security/dataclassification/test/unittest/datatransmitmgr/
DDevSLMgrTest.cpp94 char udid[65] = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"; in DATASL_GetUdidByOpp() local
95 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByOpp()
101 char udid[65] = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"; in DATASL_GetUdidByExcept() local
102 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByExcept()
108 char udid[65] = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"; in DATASL_GetUdidByExceptZero() local
109 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByExceptZero()
118 …if (GetNodeKeyInfo(pkgName, info.networkId, NODE_KEY_UDID, (uint8_t *)(queryParams->udid), UDID_BU… in GetLocalUdid()
285 …ret = GetDeviceSecLevelByUdid(static_cast<const uint8_t *>(queryParams.udid), queryParams.udidLen,…
297 (void)memcpy_s(devId.identity, MAX_UDID_LENGTH, queryParams.udid, queryParams.udidLen);
322 …(void)memcpy_s(devIdLocal.identity, MAX_UDID_LENGTH, queryParamsLocal.udid, queryParamsLocal.udidL…
[all …]
/base/security/device_auth/test/unittest/tdd_framework/tdd_helper/dev_info_mock/src/
Ddev_info_mock.c34 int32_t HcGetUdid(uint8_t *udid, int32_t udidLen) in HcGetUdid() argument
36 if (udid == NULL || udidLen < INPUT_UDID_LEN || udidLen > MAX_INPUT_UDID_LEN) { in HcGetUdid()
47 if (memcpy_s(udid, udidLen, devUdid, INPUT_UDID_LEN) != EOK) { in HcGetUdid()
/base/security/access_token/services/tokensyncmanager/test/mock/src/
Dmock_parameter.c19 int GetDevUdid(char *udid, int size) in GetDevUdid() argument
21 if (strcpy_s(udid, size, "ohos.deviceId.test") != EOK) { in GetDevUdid()
/base/security/access_token/frameworks/common/src/
Dconstant_common.cpp48 char udid[DEVICE_UUID_LENGTH] = {0}; in GetLocalDeviceId() local
49 if (GetDevUdid(udid, DEVICE_UUID_LENGTH) == 0) { in GetLocalDeviceId()
50 localDeviceId = udid; in GetLocalDeviceId()
/base/security/device_auth/test/unittest/tdd_framework/common/src/
Dhc_dev_info_mock.c45 int32_t HcGetUdid(uint8_t *udid, int32_t udidLen) in HcGetUdid() argument
47 if (udid == NULL || udidLen < INPUT_UDID_LEN || udidLen > MAX_INPUT_UDID_LEN) { in HcGetUdid()
58 if (memcpy_s(udid, udidLen, devUdid, INPUT_UDID_LEN) != EOK) { in HcGetUdid()
/base/security/appverify/interfaces/innerkits/appverify_lite/products/default/
Dapp_verify_default.c20 static int32_t GetUdid(unsigned char *udid, int32_t size) in GetUdid() argument
22 int32_t ret = GetDevUdid((char *)udid, size); in GetUdid()
/base/security/device_auth/test/unittest/deviceauth/source/
Dhc_dev_info_mock.c41 int32_t HcGetUdid(uint8_t *udid, int32_t udidLen) in HcGetUdid() argument
43 if (udid == NULL || udidLen < INPUT_UDID_LEN || udidLen > MAX_INPUT_UDID_LEN) { in HcGetUdid()
54 if (memcpy_s(udid, udidLen, devUdid, INPUT_UDID_LEN) != EOK) { in HcGetUdid()
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_verify_hal.c28 int32_t InquiryDeviceUdid(unsigned char *udid, int32_t size) in InquiryDeviceUdid() argument
33 return g_productDiffFunc.devUdidFunc(udid, size); in InquiryDeviceUdid()

1234