Home
last modified time | relevance | path

Searched refs:SetOsAccountProfilePhoto (Results 1 - 25 of 25) sorted by relevance

/base/account/os_account/test/fuzztest/osaccount/setosaccountprofilephoto_fuzzer/
H A Dsetosaccountprofilephoto_fuzzer.cpp37 result = OsAccountManager::SetOsAccountProfilePhoto(LOCAL_ID, testPhotoStr); in SetOsAccountProfilePhotoFuzzTest()
/base/account/os_account/services/accountmgr/test/unittest/os_account/
H A Dos_account_inner_account_mgr_cov.cpp241 errCode = innerMgrService_->SetOsAccountProfilePhoto(localID, ACCOUNT_PHOTO); in HWTEST_F()
246 errCode = innerMgrService_->SetOsAccountProfilePhoto(localID, ACCOUNT_PHOTO); in HWTEST_F()
H A Dos_account_inner_account_mgr_mock.cpp1437 ErrCode ret = innerMgrService_->SetOsAccountProfilePhoto(id, photo); in HWTEST_F()
1446 ret = innerMgrService_->SetOsAccountProfilePhoto(id, photo); in HWTEST_F()
1456 ret = innerMgrService_->SetOsAccountProfilePhoto(id, photo); in HWTEST_F()
2108 EXPECT_EQ(IInnerOsAccountManager::GetInstance().SetOsAccountProfilePhoto(osAccountInfo.GetLocalId(), in HWTEST_F()
/base/account/os_account/interfaces/innerkits/osaccount/native/include/
H A Dos_account_manager.h330 static ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo);
/base/account/os_account/frameworks/osaccount/core/include/
H A Dos_account.h58 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo);
H A Dios_account.h69 virtual ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) = 0;
H A Dos_account_proxy.h63 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) override;
/base/account/os_account/services/accountmgr/include/osaccount/
H A Diinner_os_account.h60 virtual ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) = 0;
H A Dos_account_manager_service.h79 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) override;
H A Diinner_os_account_manager.h65 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) override;
/base/account/os_account/frameworks/osaccount/native/src/
H A Dos_account_manager.cpp197 ErrCode OsAccountManager::SetOsAccountProfilePhoto(const int id, const std::string &photo) in SetOsAccountProfilePhoto() function in OHOS::AccountSA::OsAccountManager
199 return OsAccount::GetInstance().SetOsAccountProfilePhoto(id, photo); in SetOsAccountProfilePhoto()
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
H A Dos_account_manager_service_module_test.cpp786 * @tc.desc: Test SetOsAccountProfilePhoto with valid data.
795 EXPECT_EQ(osAccountManagerService_->SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), PHOTO_IMG), ERR_OK); in HWTEST_F()
801 * @tc.desc: Test SetOsAccountProfilePhoto with invalid data.
809 EXPECT_NE(osAccountManagerService_->SetOsAccountProfilePhoto( in HWTEST_F()
814 osAccountManagerService_->SetOsAccountProfilePhoto(localId, STRING_PHOTO_OUT_OF_RANGE), in HWTEST_F()
821 * @tc.desc: Test SetOsAccountProfilePhoto with invalid data.
829 EXPECT_EQ(osAccountManagerService_->SetOsAccountProfilePhoto( in HWTEST_F()
844 ASSERT_EQ(osAccountManagerService_->SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), PHOTO_IMG), ERR_OK); in HWTEST_F()
1865 * @tc.desc: Test SetOsAccountProfilePhoto PermissionCheck failed.
1873 osAccountManagerService_->SetOsAccountProfilePhoto(MAIN_ACCOUNT_I in HWTEST_F()
[all...]
/base/account/os_account/frameworks/osaccount/core/test/unittest/
H A Dos_account_test.cpp181 * @tc.desc: Test SetOsAccountProfilePhoto string photo out of range
187 ErrCode errCode = g_osAccount->SetOsAccountProfilePhoto(100, STRING_PHOTO_OUT_OF_RANGE); in HWTEST_F()
H A Dos_account_mock_test.cpp360 * @tc.desc: Test SetOsAccountProfilePhoto getosaccountproxy faild
367 g_osAccount->SetOsAccountProfilePhoto(MAIN_ACCOUNT_ID, PHOTO_IMG)); in HWTEST_F()
/base/account/os_account/frameworks/osaccount/native/test/benchmarktest/
H A Dos_account_manager_benchmark_test.cpp386 * @tc.desc: SetOsAccountProfilePhoto
396 EXPECT_EQ(OsAccountManager::SetOsAccountProfilePhoto(LOCAL_ID, PHOTO_IMG), ERR_OK); in BENCHMARK_F()
/base/account/os_account/frameworks/osaccount/native/test/moduletest/
H A Dos_account_manager_module_test.cpp998 * @tc.desc: Test SetOsAccountProfilePhoto with valid data.
1007 EXPECT_EQ(OsAccountManager::SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), PHOTO_IMG), ERR_OK); in HWTEST_F()
1013 * @tc.desc: Test SetOsAccountProfilePhoto with invalid data.
1022 OsAccountManager::SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), STRING_PHOTO_OUT_OF_RANGE), ERR_OK); in HWTEST_F()
1024 OsAccountManager::SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), STRING_PHOTO_MAX), ERR_OK); in HWTEST_F()
1042 * @tc.desc: Test SetOsAccountProfilePhoto with invalid data.
1050 EXPECT_EQ(OsAccountManager::SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), PHOTO_IMG_ERROR), ERR_OK); in HWTEST_F()
1064 EXPECT_EQ(OsAccountManager::SetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), PHOTO_IMG), ERR_OK); in HWTEST_F()
2221 * @tc.desc: test SetOsAccountProfilePhoto with invalid data.
2227 EXPECT_EQ(OsAccountManager::SetOsAccountProfilePhoto(Constant in HWTEST_F()
[all...]
/base/account/os_account/frameworks/osaccount/core/src/
H A Dos_account.cpp456 ErrCode OsAccount::SetOsAccountProfilePhoto(const int id, const std::string &photo) in SetOsAccountProfilePhoto() function in OHOS::AccountSA::OsAccount
475 return proxy->SetOsAccountProfilePhoto(id, photo); in SetOsAccountProfilePhoto()
H A Dos_account_proxy.cpp721 ErrCode OsAccountProxy::SetOsAccountProfilePhoto(const int id, const std::string &photo) in SetOsAccountProfilePhoto() function in OHOS::AccountSA::OsAccountProxy
/base/account/os_account/frameworks/test/unittest/
H A Daccount_osaccount_proxy_mock_test.cpp376 ErrCode errCode = OsAccountManager::SetOsAccountProfilePhoto(TEST_USER_ID, PHOTO_IMG); in HWTEST_F()
/base/account/os_account/interfaces/kits/napi/osaccount/include/
H A Dnapi_os_account.h313 napi_value SetOsAccountProfilePhoto(napi_env env, napi_callback_info cbInfo);
/base/account/os_account/services/accountmgr/src/osaccount/
H A Dos_account_manager_service.cpp558 ErrCode OsAccountManagerService::SetOsAccountProfilePhoto(const int id, const std::string &photo) in SetOsAccountProfilePhoto() function in OHOS::AccountSA::OsAccountManagerService
583 return innerManager_.SetOsAccountProfilePhoto(id, photo); in SetOsAccountProfilePhoto()
H A Dos_account_stub.cpp796 ErrCode result = SetOsAccountProfilePhoto(localId, photo); in ProcSetOsAccountProfilePhoto()
H A Dinner_os_account_manager.cpp1573 ErrCode IInnerOsAccountManager::SetOsAccountProfilePhoto(const int id, const std::string &photo) in RetryToGetAccount() function in OHOS::AccountSA::IInnerOsAccountManager
/base/account/os_account/interfaces/kits/napi/osaccount/src/
H A Dnapi_os_account.cpp76 DECLARE_NAPI_FUNCTION("setOsAccountProfilePhoto", SetOsAccountProfilePhoto),
1003 napi_value SetOsAccountProfilePhoto(napi_env env, napi_callback_info cbInfo) in SetOsAccountProfilePhoto() function
1021 napi_create_string_utf8(env, "SetOsAccountProfilePhoto", NAPI_AUTO_LENGTH, &resource); in SetOsAccountProfilePhoto()
H A Dnapi_os_account_common.cpp1305 asyncContext->errCode = OsAccountManager::SetOsAccountProfilePhoto(asyncContext->id, asyncContext->photo); in SetPhotoExecuteCB()

Completed in 44 milliseconds