Home
last modified time | relevance | path

Searched refs:DEFAULT_OS_ACCOUNT (Results 1 – 15 of 15) sorted by relevance

/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
Daccount_related_creds_manager_dir_test.cpp58 int32_t ret = GetAccountAuthTokenManager()->addToken(DEFAULT_OS_ACCOUNT, OP_BIND, nullptr);
66 ret = GetAccountAuthTokenManager()->addToken(DEFAULT_OS_ACCOUNT, OP_BIND, in);
69 ret = GetAccountAuthTokenManager()->addToken(DEFAULT_OS_ACCOUNT, OP_BIND, in);
75 ret = GetAccountAuthTokenManager()->addToken(DEFAULT_OS_ACCOUNT, OP_BIND, in);
87 ret = GetAccountAuthTokenManager()->getToken(DEFAULT_OS_ACCOUNT, nullptr, nullptr, nullptr);
90 … ret = GetAccountAuthTokenManager()->getToken(DEFAULT_OS_ACCOUNT, &accountToken, nullptr, nullptr);
93 …ret = GetAccountAuthTokenManager()->getToken(DEFAULT_OS_ACCOUNT, &accountToken, "userId", nullptr);
104 ret = GetAccountAuthTokenManager()->deleteToken(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
107 …ret = GetAccountAuthTokenManager()->deleteToken(DEFAULT_OS_ACCOUNT, "userId", nullptr); // For uni…
110 …ret = GetAccountAuthTokenManager()->deleteToken(DEFAULT_OS_ACCOUNT, "userId", "deviceId"); // For …
[all …]
Didentical_account_group_test.cpp78 int32_t ret = CheckCreateParams(DEFAULT_OS_ACCOUNT, nullptr);
84 int32_t ret = ImportSelfToken(DEFAULT_OS_ACCOUNT, nullptr);
90 int32_t ret = DelSelfToken(DEFAULT_OS_ACCOUNT, nullptr);
110 int32_t ret = DelDeviceToken(DEFAULT_OS_ACCOUNT, &entry, false);
117 int32_t ret = GetRelatedAcrossAccountGroups(DEFAULT_OS_ACCOUNT, nullptr, &vec);
124 int32_t ret = GetRelatedAcrossAccountGroups(DEFAULT_OS_ACCOUNT, nullptr, &vec);
130 int32_t ret = DelRelatedAcrossAccountGroups(DEFAULT_OS_ACCOUNT, nullptr);
149 int32_t ret = AddDeviceAndToken(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
155 int32_t ret = DelPeerDeviceAndToken(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
161 int32_t ret = CheckChangeParams(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
[all …]
Dacross_account_group_test.cpp59 int32_t ret = AddCredTypeToParamsFromIdenticalGroup(DEFAULT_OS_ACCOUNT, nullptr);
85 int32_t ret = AssertIdenticalGroupExist(DEFAULT_OS_ACCOUNT, nullptr);
97 int32_t ret = CheckCreateParams(DEFAULT_OS_ACCOUNT, nullptr);
116 int32_t ret = CheckChangeParams(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
135 int32_t ret = AddDeviceAndToken(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
141 int32_t ret = AddGroupAndLocalDev(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
147 int32_t ret = CheckUserIdValid(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
153 int32_t ret = CheckDeviceInfoValid(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
159 int32_t ret = CreateGroup(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
165 int32_t ret = CreateGroup(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
[all …]
Dpeer_to_peer_group_test.cpp46 bool ret = IsSameNameGroupExist(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
52 int32_t ret = CheckGroupName(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
70 int32_t ret = CheckCreateParams(DEFAULT_OS_ACCOUNT, nullptr);
90 int32_t ret = CreateGroupInner(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
96 int32_t ret = GetPeerDevUserTypeFromDb(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
102 int32_t ret = AddAuthIdAndUserTypeToParams(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
127 int32_t ret = CreateGroup(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
133 int32_t ret = CreateGroup(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
139 int32_t ret = DeleteGroup(DEFAULT_OS_ACCOUNT, nullptr, nullptr);
146 int32_t ret = DeleteMemberFromGroup(DEFAULT_OS_ACCOUNT, DEFAULT_REQUEST_ID, nullptr, &callback);
/base/security/device_auth/test/unittest/deviceauth/source/
Dcreds_manager_test.cpp105 int32_t ret = tokenManager->addToken(DEFAULT_OS_ACCOUNT, IMPORT_TRUSTED_CREDENTIALS, json);
117 int32_t ret = tokenManager->addToken(DEFAULT_OS_ACCOUNT, IMPORT_TRUSTED_CREDENTIALS, nullptr);
122 ret = tokenManager->addToken(DEFAULT_OS_ACCOUNT, IMPORT_TRUSTED_CREDENTIALS, json);
126 ret = tokenManager->addToken(DEFAULT_OS_ACCOUNT, IMPORT_TRUSTED_CREDENTIALS, json);
131 ret = tokenManager->addToken(DEFAULT_OS_ACCOUNT, IMPORT_TRUSTED_CREDENTIALS, json);
135 ret = tokenManager->addToken(DEFAULT_OS_ACCOUNT, IMPORT_TRUSTED_CREDENTIALS, json);
139 ret = tokenManager->addToken(DEFAULT_OS_ACCOUNT, IMPORT_TRUSTED_CREDENTIALS, json);
171 int32_t ret = tokenManager->addToken(DEFAULT_OS_ACCOUNT, IMPORT_TRUSTED_CREDENTIALS, json);
177 ret = tokenManager->addToken(DEFAULT_OS_ACCOUNT, IMPORT_TRUSTED_CREDENTIALS, json);
181 ret = tokenManager->deleteToken(DEFAULT_OS_ACCOUNT, nullptr, TEST_SYM_DEVICE_ID.c_str());
[all …]
Dgroup_operation_common_test.cpp83 TrustedGroupEntry *entry = GetGroupEntryById(DEFAULT_OS_ACCOUNT, nullptr);
89 bool ret = IsTrustedDeviceInGroup(DEFAULT_OS_ACCOUNT, nullptr, NORMAL_STR, true);
95 bool ret = IsTrustedDeviceInGroup(DEFAULT_OS_ACCOUNT, NORMAL_STR, nullptr, true);
101 bool ret = IsTrustedDeviceInGroup(DEFAULT_OS_ACCOUNT, NORMAL_STR, NORMAL_STR, true);
107 bool ret = IsGroupOwner(DEFAULT_OS_ACCOUNT, nullptr, NORMAL_STR);
113 bool ret = IsGroupOwner(DEFAULT_OS_ACCOUNT, NORMAL_STR, nullptr);
119 bool ret = IsGroupOwner(DEFAULT_OS_ACCOUNT, NORMAL_STR, NORMAL_STR);
125 bool ret = IsGroupExistByGroupId(DEFAULT_OS_ACCOUNT, nullptr);
131 int32_t ret = CheckGroupAccessible(DEFAULT_OS_ACCOUNT, nullptr, NORMAL_STR);
137 int32_t ret = CheckGroupAccessible(DEFAULT_OS_ACCOUNT, NORMAL_STR, nullptr);
[all …]
Ddeviceauth_standard_test.cpp352 ret = gm->createGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID, jsonStr); in CreateDemoIdenticalAccountGroup()
379 int32_t ret = gm->createGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID, jsonStr); in CreateDemoSymClientIdenticalAccountGroup()
448 int32_t ret = gm->deleteGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID, DISBAND_PARAMS2); in DeleteDemoIdenticalAccountGroup()
461 int32_t ret = gm->deleteGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID, DISBAND_PARAMS3); in DeleteDemoAcrossAccountGroup()
475 int32_t ret = gm->addMemberToGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID, ADD_PARAMS); in AddDemoMember()
556 int32_t ret = ga->authDevice(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, AUTH_PARAMS, &g_gaCallback); in AuthDemoMember()
933 CreateDemoGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID, CREATE_PARAMS);
955 CreateDemoAcrossAccountGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID, CREATE_PARAMS3);
963 int32_t ret = gm->createGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, nullptr, CREATE_PARAMS);
971 int32_t ret = gm->createGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID, nullptr);
[all …]
Ddevice_auth_ipc_test.cpp512 int32_t ret = gm->createGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, nullptr, CREATE_PARAMS);
520 int32_t ret = gm->createGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID, nullptr);
530 CreateDemoGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID, CREATE_PARAMS);
532 CreateDemoGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID, CREATE_PARAMS2);
602 int32_t ret = gm->checkAccessToGroup(DEFAULT_OS_ACCOUNT, nullptr, TEST_GROUP_ID);
610 int32_t ret = gm->checkAccessToGroup(DEFAULT_OS_ACCOUNT, TEST_APP_ID, nullptr);
618 int32_t ret = gm->checkAccessToGroup(DEFAULT_OS_ACCOUNT, TEST_APP_ID, TEST_GROUP_ID);
626 int32_t ret = gm->checkAccessToGroup(DEFAULT_OS_ACCOUNT, TEST_APP_ID2, TEST_GROUP_ID2);
634 int32_t ret = gm->checkAccessToGroup(DEFAULT_OS_ACCOUNT, TEST_APP_ID, TEST_GROUP_ID3);
667 …int32_t ret = gm->getPkInfoList(DEFAULT_OS_ACCOUNT, nullptr, TEST_QUERY_PARAMS, &returnData, &retu…
[all …]
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/
Dcreds_manager_test.cpp210 …int32_t ret = gm->addMemberToGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID.c_str(), TEST_ADD_… in AddDemoMember()
254 …int32_t ret = ga->authDevice(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_AUTH_PARAMS.c_str(), &g_gaCallb… in AuthDemoMember()
413 int32_t res = gm->createGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID.c_str(), jsonStr); in CreateClientSymIdenticalAccountGroup()
641 (void)AddIntToJson(json, FIELD_OS_ACCOUNT_ID, DEFAULT_OS_ACCOUNT);
653 (void)AddIntToJson(json, FIELD_OS_ACCOUNT_ID, DEFAULT_OS_ACCOUNT);
664 … CreateDemoGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID.c_str(), TEST_CREATE_PARAMS.c_str());
667 (void)AddIntToJson(json, FIELD_OS_ACCOUNT_ID, DEFAULT_OS_ACCOUNT);
678 … CreateDemoGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID.c_str(), TEST_CREATE_PARAMS.c_str());
680 (void)AddIntToJson(json, FIELD_OS_ACCOUNT_ID, DEFAULT_OS_ACCOUNT);
692 … CreateDemoGroup(DEFAULT_OS_ACCOUNT, TEST_REQ_ID, TEST_APP_ID.c_str(), TEST_CREATE_PARAMS.c_str());
[all …]
/base/security/device_auth/services/frameworks/src/os_account_adapter_mock/
Dos_account_adapter_mock.cpp22 return DEFAULT_OS_ACCOUNT; in DevAuthGetRealOsAccountLocalId()
/base/security/device_auth/interfaces/inner_api/
Ddevice_auth.h77 DEFAULT_OS_ACCOUNT = 0, enumerator
/base/security/device_auth/services/authenticators/src/account_related/creds_manager/
Dsym_token_manager.c61 if (osAccountId == DEFAULT_OS_ACCOUNT) { in GetTokensFilePath()
595 LoadOsSymTokensDb(DEFAULT_OS_ACCOUNT); in LoadTokenDb()
Dasy_token_manager.c100 if (osAccountId == DEFAULT_OS_ACCOUNT) { in GetTokenPath()
1184 LoadOsAccountTokenDb(DEFAULT_OS_ACCOUNT); in LoadTokenDb()
/base/security/device_auth/services/privacy_enhancement/src/
Dpseudonym_manager.c189 if (osAccountId == DEFAULT_OS_ACCOUNT) { in GetPseudonymPath()
504 LoadOsAccountPseudonymDb(DEFAULT_OS_ACCOUNT); in LoadPseudonymData()
/base/security/device_auth/services/data_manager/src/
Ddata_manager.c209 if (osAccountId == DEFAULT_OS_ACCOUNT) { in GetOsAccountInfoPath()
511 LoadOsAccountDb(DEFAULT_OS_ACCOUNT); in LoadDeviceAuthDb()