/base/account/os_account/test/fuzztest/osaccount/setosaccountprofilephoto_fuzzer/ |
H A D | setosaccountprofilephoto_fuzzer.cpp | 37 result = OsAccountManager::SetOsAccountProfilePhoto(LOCAL_ID, testPhotoStr); in SetOsAccountProfilePhotoFuzzTest()
|
/base/account/os_account/services/accountmgr/test/unittest/os_account/ |
H A D | os_account_inner_account_mgr_cov.cpp | 241 errCode = innerMgrService_->SetOsAccountProfilePhoto(localID, ACCOUNT_PHOTO); in HWTEST_F() 246 errCode = innerMgrService_->SetOsAccountProfilePhoto(localID, ACCOUNT_PHOTO); in HWTEST_F()
|
H A D | os_account_inner_account_mgr_mock.cpp | 1437 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 D | os_account_manager.h | 330 static ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo);
|
/base/account/os_account/frameworks/osaccount/core/include/ |
H A D | os_account.h | 58 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo);
|
H A D | ios_account.h | 69 virtual ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) = 0;
|
H A D | os_account_proxy.h | 63 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) override;
|
/base/account/os_account/services/accountmgr/include/osaccount/ |
H A D | iinner_os_account.h | 60 virtual ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) = 0;
|
H A D | os_account_manager_service.h | 79 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) override;
|
H A D | iinner_os_account_manager.h | 65 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) override;
|
/base/account/os_account/frameworks/osaccount/native/src/ |
H A D | os_account_manager.cpp | 197 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 D | os_account_manager_service_module_test.cpp | 786 * @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 D | os_account_test.cpp | 181 * @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 D | os_account_mock_test.cpp | 360 * @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 D | os_account_manager_benchmark_test.cpp | 386 * @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 D | os_account_manager_module_test.cpp | 998 * @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 D | os_account.cpp | 456 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 D | os_account_proxy.cpp | 721 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 D | account_osaccount_proxy_mock_test.cpp | 376 ErrCode errCode = OsAccountManager::SetOsAccountProfilePhoto(TEST_USER_ID, PHOTO_IMG); in HWTEST_F()
|
/base/account/os_account/interfaces/kits/napi/osaccount/include/ |
H A D | napi_os_account.h | 313 napi_value SetOsAccountProfilePhoto(napi_env env, napi_callback_info cbInfo);
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_manager_service.cpp | 558 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 D | os_account_stub.cpp | 796 ErrCode result = SetOsAccountProfilePhoto(localId, photo); in ProcSetOsAccountProfilePhoto()
|
H A D | inner_os_account_manager.cpp | 1573 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 D | napi_os_account.cpp | 76 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 D | napi_os_account_common.cpp | 1305 asyncContext->errCode = OsAccountManager::SetOsAccountProfilePhoto(asyncContext->id, asyncContext->photo); in SetPhotoExecuteCB()
|