Home
last modified time | relevance | path

Searched refs:photo (Results 1 – 25 of 34) sorted by relevance

12

/base/account/os_account/test/fuzztest/osaccount_stub/setosaccountprofilephotostub_fuzzer/
Dsetosaccountprofilephotostub_fuzzer.cpp43 std::string photo(reinterpret_cast<const char*>(data), size); in SetOsAccountProfilePhotoStubFuzzTest()
45 if (!datas.WriteString(photo)) { in SetOsAccountProfilePhotoStubFuzzTest()
/base/account/os_account/services/accountmgr/test/unittest/os_account/mock/
Dmock_os_account_control_file_manager.h53 MOCK_METHOD2(GetPhotoById, ErrCode(const int id, std::string &photo));
55 MOCK_METHOD2(SetPhotoById, ErrCode(const int id, const std::string &photo));
/base/account/os_account/frameworks/osaccount/native/src/
Dos_account_manager.cpp143 ErrCode OsAccountManager::GetOsAccountProfilePhoto(const int id, std::string &photo) in GetOsAccountProfilePhoto() argument
145 return OsAccount::GetInstance().GetOsAccountProfilePhoto(id, photo); in GetOsAccountProfilePhoto()
164 ErrCode OsAccountManager::SetOsAccountProfilePhoto(const int id, const std::string &photo) in SetOsAccountProfilePhoto() argument
166 return OsAccount::GetInstance().SetOsAccountProfilePhoto(id, photo); in SetOsAccountProfilePhoto()
Dos_account_info.cpp185 void OsAccountInfo::SetPhoto(const std::string photo) in SetPhoto() argument
187 photo_ = photo; in SetPhoto()
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_control_file_manager.cpp213 std::string photo = osAccountInfo.GetPhoto(); in GetOsAccountList() local
214 GetPhotoById(osAccountInfo.GetLocalId(), photo); in GetOsAccountList()
215 osAccountInfo.SetPhoto(photo); in GetOsAccountList()
1082 ErrCode OsAccountControlFileManager::GetPhotoById(const int id, std::string &photo) in GetPhotoById() argument
1085 …SER_INFO_BASE + Constants::PATH_SEPARATOR + std::to_string(id) + Constants::PATH_SEPARATOR + photo; in GetPhotoById()
1092 if (photo == Constants::USER_PHOTO_FILE_JPG_NAME) { in GetPhotoById()
1093 photo = in GetPhotoById()
1096 photo = in GetPhotoById()
1100 while (photo.find(substr) != std::string::npos) { in GetPhotoById()
1101 photo.erase(photo.find(substr), substr.length()); in GetPhotoById()
[all …]
Dos_account_manager_service.cpp384 ErrCode OsAccountManagerService::GetOsAccountProfilePhoto(const int id, std::string &photo) in GetOsAccountProfilePhoto() argument
393 return innerManager_.GetOsAccountProfilePhoto(id, photo); in GetOsAccountProfilePhoto()
402 return innerManager_.GetOsAccountProfilePhoto(id, photo); in GetOsAccountProfilePhoto()
452 ErrCode OsAccountManagerService::SetOsAccountProfilePhoto(const int id, const std::string &photo) in SetOsAccountProfilePhoto() argument
459 if (photo.size() > Constants::LOCAL_PHOTO_MAX_SIZE) { in SetOsAccountProfilePhoto()
463 if (photo.empty()) { in SetOsAccountProfilePhoto()
473 return innerManager_.SetOsAccountProfilePhoto(id, photo); in SetOsAccountProfilePhoto()
Dinner_os_account_manager.cpp880 std::string photo = osAccountInfo.GetPhoto(); in QueryOsAccountById() local
881 errCode = osAccountControl_->GetPhotoById(osAccountInfo.GetLocalId(), photo); in QueryOsAccountById()
886 osAccountInfo.SetPhoto(photo); in QueryOsAccountById()
912 ErrCode IInnerOsAccountManager::GetOsAccountProfilePhoto(const int id, std::string &photo) in GetOsAccountProfilePhoto() argument
920 photo = osAccountInfo.GetPhoto(); in GetOsAccountProfilePhoto()
1008 ErrCode IInnerOsAccountManager::SetOsAccountProfilePhoto(const int id, const std::string &photo) in SetOsAccountProfilePhoto() argument
1023 if (osAccountInfo.GetPhoto() == photo) { in SetOsAccountProfilePhoto()
1026 errCode = osAccountControl_->SetPhotoById(id, photo); in SetOsAccountProfilePhoto()
1031 auto sizeType = photo.find(Constants::USER_PHOTO_BASE_JPG_HEAD); in SetOsAccountProfilePhoto()
/base/account/os_account/services/accountmgr/include/osaccount/
Dios_account_control.h34 virtual ErrCode GetPhotoById(const int id, std::string &photo) = 0;
35 virtual ErrCode SetPhotoById(const int id, const std::string &photo) = 0;
Diinner_os_account.h47 virtual ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo) = 0;
52 virtual ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) = 0;
Dos_account_manager_service.h61 ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo) override;
68 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) override;
Dos_account_control_file_manager.h47 ErrCode GetPhotoById(const int id, std::string &photo) override;
48 ErrCode SetPhotoById(const int id, const std::string &photo) override;
Diinner_os_account_manager.h50 ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo) override;
55 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) override;
/base/account/os_account/test/systemtest/common/resource/fuzzTest/src/
Dfuzz_test_manager.cpp185 std::string photo = GetStringParam(); in RegisterOsAccountManager() local
186 OsAccountManager::GetOsAccountProfilePhoto(GetIntParam(), photo); in RegisterOsAccountManager()
205 std::string photo = GetStringParam(); in RegisterOsAccountManager() local
206 OsAccountManager::SetOsAccountProfilePhoto(GetIntParam(), photo); in RegisterOsAccountManager()
/base/account/os_account/interfaces/innerkits/osaccount/native/include/
Dos_account_manager.h226 static ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo);
271 static ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo);
Dos_account_info.h71 void SetPhoto(const std::string photo);
/base/account/os_account/frameworks/osaccount/native/test/unittest/
Dos_account_info_test.cpp313 std::string photo = STRING_PHOTO; variable
315 osAccountInfo.photo_ = photo;
316 EXPECT_EQ(photo, osAccountInfo.GetPhoto());
/base/account/os_account/frameworks/osaccount/core/src/
Dos_account.cpp326 ErrCode OsAccount::GetOsAccountProfilePhoto(const int id, std::string &photo) in GetOsAccountProfilePhoto() argument
338 return osAccountProxy_->GetOsAccountProfilePhoto(id, photo); in GetOsAccountProfilePhoto()
392 ErrCode OsAccount::SetOsAccountProfilePhoto(const int id, const std::string &photo) in SetOsAccountProfilePhoto() argument
394 if (photo.empty()) { in SetOsAccountProfilePhoto()
402 if (photo.size() > Constants::LOCAL_PHOTO_MAX_SIZE) { in SetOsAccountProfilePhoto()
403 ACCOUNT_LOGE("photo size %{public}zu too long!", photo.size()); in SetOsAccountProfilePhoto()
412 return osAccountProxy_->SetOsAccountProfilePhoto(id, photo); in SetOsAccountProfilePhoto()
/base/account/os_account/frameworks/osaccount/core/include/
Dos_account.h48 ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo);
52 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo);
Dios_account.h57 virtual ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo) = 0;
62 virtual ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) = 0;
Dos_account_proxy.h51 ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo) override;
56 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) override;
/base/account/os_account/frameworks/osaccount/native/test/benchmarktest/
Dos_account_manager_benchmark_test.cpp416 std::string photo; in BENCHMARK_F() local
417 EXPECT_EQ(OsAccountManager::GetOsAccountProfilePhoto(LOCAL_ID, photo), ERR_OK); in BENCHMARK_F()
418 EXPECT_EQ(photo, PHOTO_IMG); in BENCHMARK_F()
/base/account/os_account/services/accountmgr/test/unittest/os_account/
Dos_account_control_file_manager_test.cpp369 std::string photo = Constants::USER_PHOTO_FILE_JPG_NAME; variable
370 EXPECT_EQ(osAccountControlManager_->GetPhotoById(id, photo), ERR_OK);
371 EXPECT_EQ(photo, STRING_PHOTO);
748 std::string photo; variable
749 ErrCode ret = osAccountControlManager_->GetPhotoById(id, photo);
Dos_account_inner_account_mgr_mock.cpp635 std::string photo = ""; variable
640 ErrCode ret = innerMgrService_->GetOsAccountProfilePhoto(id, photo);
779 std::string photo = ""; variable
787 ErrCode ret = innerMgrService_->SetOsAccountProfilePhoto(id, photo);
796 ret = innerMgrService_->SetOsAccountProfilePhoto(id, photo);
805 photo += "1";
806 ret = innerMgrService_->SetOsAccountProfilePhoto(id, photo);
822 std::string photo = ""; variable
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dos_account_manager_service_module_test.cpp869 std::string photo; variable
870 …(osAccountManagerService_->GetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), photo), ERR_OK);
871 EXPECT_EQ(photo, PHOTO_IMG);
885 std::string photo; variable
886 …(osAccountManagerService_->GetOsAccountProfilePhoto(osAccountInfoOne.GetLocalId(), photo), ERR_OK);
898 std::string photo; variable
899 EXPECT_EQ(osAccountManagerService_->GetOsAccountProfilePhoto(Constants::MAX_USER_ID + 1, photo),
1878 std::string photo; variable
1880 osAccountManagerService_->GetOsAccountProfilePhoto(MAIN_ACCOUNT_ID, photo));
2123 std::string photo = ""; variable
[all …]
/base/account/os_account/frameworks/osaccount/core/test/unittest/
Dos_account_mock_test.cpp309 std::string photo; variable
311 g_osAccount->GetOsAccountProfilePhoto(MAIN_ACCOUNT_ID, photo));

12