/base/account/os_account/test/fuzztest/osaccount_stub/setosaccountprofilephotostub_fuzzer/ |
D | setosaccountprofilephotostub_fuzzer.cpp | 43 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/ |
D | mock_os_account_control_file_manager.h | 53 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/ |
D | os_account_manager.cpp | 143 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()
|
D | os_account_info.cpp | 185 void OsAccountInfo::SetPhoto(const std::string photo) in SetPhoto() argument 187 photo_ = photo; in SetPhoto()
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
D | os_account_control_file_manager.cpp | 213 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 …]
|
D | os_account_manager_service.cpp | 384 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()
|
D | inner_os_account_manager.cpp | 880 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/ |
D | ios_account_control.h | 34 virtual ErrCode GetPhotoById(const int id, std::string &photo) = 0; 35 virtual ErrCode SetPhotoById(const int id, const std::string &photo) = 0;
|
D | iinner_os_account.h | 47 virtual ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo) = 0; 52 virtual ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) = 0;
|
D | os_account_manager_service.h | 61 ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo) override; 68 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) override;
|
D | os_account_control_file_manager.h | 47 ErrCode GetPhotoById(const int id, std::string &photo) override; 48 ErrCode SetPhotoById(const int id, const std::string &photo) override;
|
D | iinner_os_account_manager.h | 50 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/ |
D | fuzz_test_manager.cpp | 185 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/ |
D | os_account_manager.h | 226 static ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo); 271 static ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo);
|
D | os_account_info.h | 71 void SetPhoto(const std::string photo);
|
/base/account/os_account/frameworks/osaccount/native/test/unittest/ |
D | os_account_info_test.cpp | 313 std::string photo = STRING_PHOTO; variable 315 osAccountInfo.photo_ = photo; 316 EXPECT_EQ(photo, osAccountInfo.GetPhoto());
|
/base/account/os_account/frameworks/osaccount/core/src/ |
D | os_account.cpp | 326 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/ |
D | os_account.h | 48 ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo); 52 ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo);
|
D | ios_account.h | 57 virtual ErrCode GetOsAccountProfilePhoto(const int id, std::string &photo) = 0; 62 virtual ErrCode SetOsAccountProfilePhoto(const int id, const std::string &photo) = 0;
|
D | os_account_proxy.h | 51 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/ |
D | os_account_manager_benchmark_test.cpp | 416 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/ |
D | os_account_control_file_manager_test.cpp | 369 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);
|
D | os_account_inner_account_mgr_mock.cpp | 635 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/ |
D | os_account_manager_service_module_test.cpp | 869 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/ |
D | os_account_mock_test.cpp | 309 std::string photo; variable 311 g_osAccount->GetOsAccountProfilePhoto(MAIN_ACCOUNT_ID, photo));
|