Home
last modified time | relevance | path

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

12

/base/account/os_account/test/fuzztest/appaccount_stub/setappaccountsyncenablestub_fuzzer/
H A Dsetappaccountsyncenablestub_fuzzer.cpp43 bool syncEnable = fuzzData.GenerateRandomBool(); in SetAppAccountSyncEnableStubFuzzTest() local
44 if (!dataTemp.WriteBool(syncEnable)) { in SetAppAccountSyncEnableStubFuzzTest()
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
H A Dapp_account_control_manager_module_test.cpp158 bool syncEnable = false; in HWTEST_F() local
159 appAccountInfo.SetSyncEnable(syncEnable); in HWTEST_F()
160 syncEnable = true; in HWTEST_F()
161 appAccountInfo.GetSyncEnable(syncEnable); in HWTEST_F()
162 ASSERT_EQ(syncEnable, false); in HWTEST_F()
H A Dapp_account_manager_service_module_not_mock_test.cpp97 bool syncEnable = false; in HWTEST_F() local
98 ErrCode result = g_accountManagerService->CheckAppAccountSyncEnable(STRING_NAME, syncEnable); in HWTEST_F()
H A Dapp_account_manager_service_module_test.cpp658 bool syncEnable = SYNC_ENABLE_FALSE; in HWTEST_F() local
659 result = g_accountManagerService->CheckAppAccountSyncEnable(STRING_NAME, syncEnable); in HWTEST_F()
661 EXPECT_EQ(syncEnable, SYNC_ENABLE_FALSE); in HWTEST_F()
678 bool syncEnable = SYNC_ENABLE_FALSE; in HWTEST_F() local
679 ErrCode result = g_accountManagerService->CheckAppAccountSyncEnable(STRING_NAME, syncEnable); in HWTEST_F()
681 EXPECT_EQ(syncEnable, SYNC_ENABLE_FALSE); in HWTEST_F()
700 bool syncEnable = SYNC_ENABLE_FALSE; in HWTEST_F() local
701 result = g_accountManagerService->CheckAppAccountSyncEnable(STRING_NAME, syncEnable); in HWTEST_F()
703 EXPECT_EQ(syncEnable, SYNC_ENABLE_TRUE); in HWTEST_F()
725 bool syncEnable in HWTEST_F() local
[all...]
/base/account/os_account/services/accountmgr/test/unittest/app_account/
H A Dapp_account_info_test.cpp344 bool syncEnable = SYNC_ENABLE_TRUE; in HWTEST_F() local
348 appAccountInfo.syncEnable_ = syncEnable; in HWTEST_F()
355 EXPECT_EQ(syncEnable, syncEnableFromInfo); in HWTEST_F()
369 bool syncEnable = SYNC_ENABLE_TRUE; in HWTEST_F() local
375 appAccountInfo.SetSyncEnable(syncEnable); in HWTEST_F()
378 EXPECT_EQ(syncEnable, appAccountInfo.syncEnable_); in HWTEST_F()
927 bool syncEnable = SYNC_ENABLE_TRUE; in HWTEST_F() local
938 appAccountInfo.syncEnable_ = syncEnable; in HWTEST_F()
956 EXPECT_EQ(syncEnable, infoPtr->syncEnable_); in HWTEST_F()
/base/account/os_account/services/accountmgr/include/appaccount/
H A Dinner_app_account_manager.h54 ErrCode CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable,
56 ErrCode SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable,
H A Dapp_account_control_manager.h61 ErrCode CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable,
63 ErrCode SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable, const uid_t &uid,
H A Dapp_account_manager_service.h48 ErrCode CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable) override;
49 ErrCode SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable) override;
/base/account/os_account/frameworks/appaccount/native/include/
H A Dapp_account_info.h64 void GetSyncEnable(bool &syncEnable) const;
65 void SetSyncEnable(const bool &syncEnable);
H A Dapp_account.h51 ErrCode CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable);
52 ErrCode SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable);
H A Dapp_account_proxy.h45 ErrCode CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable) override;
46 ErrCode SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable) override;
H A Diapp_account.h49 virtual ErrCode CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable) = 0;
50 virtual ErrCode SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable) = 0;
/base/account/os_account/interfaces/innerkits/appaccount/native/include/
H A Dapp_account_manager.h157 * @param syncEnable - Indicates whether the data sync is enabled.
160 static ErrCode CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable);
179 * @param syncEnable - Specifies whether to allow application data synchronization.
182 static ErrCode SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable);
/base/account/os_account/frameworks/appaccount/native/src/
H A Dapp_account_manager.cpp76 ErrCode AppAccountManager::CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable) in CheckAppAccountSyncEnable() argument
78 return AppAccount::GetInstance().CheckAppAccountSyncEnable(name, syncEnable); in CheckAppAccountSyncEnable()
81 ErrCode AppAccountManager::SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable) in SetAppAccountSyncEnable() argument
83 return AppAccount::GetInstance().SetAppAccountSyncEnable(name, syncEnable); in SetAppAccountSyncEnable()
H A Dapp_account_info.cpp33 const std::string SYNC_ENABLE = "syncEnable";
193 void AppAccountInfo::GetSyncEnable(bool &syncEnable) const in GetSyncEnable()
195 syncEnable = syncEnable_; in GetSyncEnable()
198 void AppAccountInfo::SetSyncEnable(const bool &syncEnable) in SetSyncEnable() argument
200 syncEnable_ = syncEnable; in SetSyncEnable()
H A Dapp_account.cpp183 ErrCode AppAccount::CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable) in CheckAppAccountSyncEnable() argument
190 return proxy->CheckAppAccountSyncEnable(name, syncEnable); in CheckAppAccountSyncEnable()
193 ErrCode AppAccount::SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable) in SetAppAccountSyncEnable() argument
200 return proxy->SetAppAccountSyncEnable(name, syncEnable); in SetAppAccountSyncEnable()
H A Dapp_account_proxy.cpp259 ErrCode AppAccountProxy::CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable) in CheckAppAccountSyncEnable() argument
280 syncEnable = reply.ReadBool(); in CheckAppAccountSyncEnable()
285 ErrCode AppAccountProxy::SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable) in SetAppAccountSyncEnable() argument
300 if (!data.WriteBool(syncEnable)) { in SetAppAccountSyncEnable()
301 ACCOUNT_LOGE("failed to write bool for syncEnable"); in SetAppAccountSyncEnable()
/base/account/os_account/services/accountmgr/src/appaccount/
H A Dinner_app_account_manager.cpp129 ErrCode InnerAppAccountManager::CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable, in CheckAppAccountSyncEnable() argument
132 return controlManager_.CheckAppAccountSyncEnable(name, syncEnable, uid, bundleName, appIndex); in CheckAppAccountSyncEnable()
135 ErrCode InnerAppAccountManager::SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable, in SetAppAccountSyncEnable() argument
140 return controlManager_.SetAppAccountSyncEnable(name, syncEnable, uid, bundleName, appAccountInfo); in SetAppAccountSyncEnable()
H A Dapp_account_control_manager.cpp422 bool &syncEnable, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in CheckAppAccountSyncEnable()
433 appAccountInfo.GetSyncEnable(syncEnable); in CheckAppAccountSyncEnable()
438 ErrCode AppAccountControlManager::SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable, in SetAppAccountSyncEnable() argument
448 appAccountInfo.SetSyncEnable(syncEnable); in SetAppAccountSyncEnable()
1277 bool syncEnable = false; in NeedSyncDataStorage() local
1278 appAccountInfo.GetSyncEnable(syncEnable); in NeedSyncDataStorage()
1280 if (syncEnable == false) { in NeedSyncDataStorage()
421 CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) CheckAppAccountSyncEnable() argument
H A Dapp_account_manager_service.cpp234 ErrCode AppAccountManagerService::CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable) in CheckAppAccountSyncEnable() argument
249 return innerManager_->CheckAppAccountSyncEnable(name, syncEnable, callingUid, bundleName, appIndex); in CheckAppAccountSyncEnable()
252 ErrCode AppAccountManagerService::SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable) in SetAppAccountSyncEnable() argument
267 return innerManager_->SetAppAccountSyncEnable(name, syncEnable, callingUid, bundleName, appIndex); in SetAppAccountSyncEnable()
/base/account/os_account/services/accountmgr/test/mock/app_account/
H A Dmock_app_account_stub.cpp132 ErrCode MockAppAccountStub::CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable) in CheckAppAccountSyncEnable() argument
139 ErrCode MockAppAccountStub::SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable) in SetAppAccountSyncEnable() argument
H A Dmock_app_account_stub.h42 ErrCode CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable) override;
43 ErrCode SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable) override;
/base/account/os_account/frameworks/appaccount/native/test/moduletest/
H A Dapp_account_manager_module_test.cpp252 bool syncEnable = SYNC_ENABLE_FALSE; in HWTEST_F() local
253 ErrCode result = AppAccountManager::CheckAppAccountSyncEnable(STRING_NAME, syncEnable); in HWTEST_F()
/base/account/os_account/frameworks/appaccount/native/test/unittest/
H A Dapp_account_manager_test.cpp936 bool syncEnable = SYNC_ENABLE_FALSE; in HWTEST_F() local
937 ErrCode result = AppAccountManager::CheckAppAccountSyncEnable(STRING_EMPTY, syncEnable); in HWTEST_F()
939 EXPECT_EQ(syncEnable, SYNC_ENABLE_FALSE); in HWTEST_F()
952 bool syncEnable = SYNC_ENABLE_FALSE; in HWTEST_F() local
953 ErrCode result = AppAccountManager::CheckAppAccountSyncEnable(STRING_NAME_OUT_OF_RANGE, syncEnable); in HWTEST_F()
955 EXPECT_EQ(syncEnable, SYNC_ENABLE_FALSE); in HWTEST_F()
967 bool syncEnable = SYNC_ENABLE_FALSE; in HWTEST_F() local
968 ErrCode result = AppAccountManager::CheckAppAccountSyncEnable(STRING_NAME, syncEnable); in HWTEST_F()
970 EXPECT_EQ(syncEnable, SYNC_ENABLE_FALSE); in HWTEST_F()
/base/account/os_account/frameworks/test/unittest/
H A Daccount_appaccount_proxy_mock_test.cpp214 bool syncEnable = SYNC_ENABLE_FALSE; in HWTEST_F() local
215 ErrCode result = AppAccountManager::CheckAppAccountSyncEnable(STRING_NAME, syncEnable); in HWTEST_F()

Completed in 24 milliseconds

12