Searched refs:SvcBackupConnection (Results 1 – 11 of 11) sorted by relevance
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/module_ipc/ |
H A D | svc_backup_connection_mock.cpp | 30 void SvcBackupConnection::OnAbilityConnectDone(const AppExecFwk::ElementName &element, in OnAbilityConnectDone() 40 void SvcBackupConnection::OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resul… in OnAbilityDisconnectDone() 48 ErrCode SvcBackupConnection::ConnectBackupExtAbility(AAFwk::Want &want, int32_t userId) in ConnectBackupExtAbility() 53 ErrCode SvcBackupConnection::DisconnectBackupExtAbility() in DisconnectBackupExtAbility() 58 bool SvcBackupConnection::WaitDisconnectDone() in WaitDisconnectDone() 63 bool SvcBackupConnection::IsExtAbilityConnected() in IsExtAbilityConnected() 70 void SvcBackupConnection::SetCallback(function<void(const std::string &&)> callConnected) in SetCallback() 75 void SvcBackupConnection::SetCallDied(function<void(const std::string &&, bool)> callDied) in SetCallDied() 80 sptr<IExtension> SvcBackupConnection::GetBackupExtProxy() in GetBackupExtProxy()
|
H A D | svc_session_manager_mock.cpp | 97 wptr<SvcBackupConnection> SvcSessionManager::GetExtConnection(const BundleName &bundleName) in GetExtConnection() 107 …it->second.backUpConnection = sptr<SvcBackupConnection>(new SvcBackupConnection(callDied, callConn… in GetExtConnection() 115 sptr<SvcBackupConnection> SvcSessionManager::GetBackupAbilityExt(const string &bundleName) in GetBackupAbilityExt() 118 return sptr<SvcBackupConnection>(new SvcBackupConnection(nullptr, nullptr, bundleName)); in GetBackupAbilityExt() 252 sptr<SvcBackupConnection> SvcSessionManager::CreateBackupConnection(BundleName &bundleName) in CreateBackupConnection()
|
H A D | svc_session_manager_throw_mock.h | 39 virtual wptr<SvcBackupConnection> GetExtConnection(const BundleName &) = 0; 40 virtual sptr<SvcBackupConnection> GetBackupAbilityExt(const std::string &) = 0; 55 virtual sptr<SvcBackupConnection> CreateBackupConnection(BundleName &) = 0; 108 MOCK_METHOD(wptr<SvcBackupConnection>, GetExtConnection, (const BundleName &)); 109 MOCK_METHOD(sptr<SvcBackupConnection>, GetBackupAbilityExt, (const std::string &)); 124 MOCK_METHOD(sptr<SvcBackupConnection>, CreateBackupConnection, (BundleName &));
|
H A D | svc_session_manager_throw_mock.cpp | 67 wptr<SvcBackupConnection> SvcSessionManager::GetExtConnection(const BundleName &bundleName) in GetExtConnection() 72 sptr<SvcBackupConnection> SvcSessionManager::GetBackupAbilityExt(const string &bundleName) in GetBackupAbilityExt() 147 sptr<SvcBackupConnection> SvcSessionManager::CreateBackupConnection(BundleName &bundleName) in CreateBackupConnection()
|
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/src/module_ipc/ |
H A D | svc_backup_connection.cpp | 34 void SvcBackupConnection::OnAbilityConnectDone(const AppExecFwk::ElementName &element, in OnAbilityConnectDone() 77 void SvcBackupConnection::OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resul… in OnAbilityDisconnectDone() 107 ErrCode SvcBackupConnection::ConnectBackupExtAbility(AAFwk::Want &want, int32_t userId) in ConnectBackupExtAbility() 116 ErrCode SvcBackupConnection::DisconnectBackupExtAbility() in DisconnectBackupExtAbility() 137 bool SvcBackupConnection::WaitDisconnectDone() in WaitDisconnectDone() 148 bool SvcBackupConnection::IsExtAbilityConnected() in IsExtAbilityConnected() 153 sptr<IExtension> SvcBackupConnection::GetBackupExtProxy() in GetBackupExtProxy() 158 void SvcBackupConnection::SetCallback(function<void(const std::string &&)> callConnected) in SetCallback() 163 void SvcBackupConnection::SetCallDied(function<void(const std::string &&, bool)> callDied) in SetCallDied()
|
H A D | svc_session_manager.cpp | 249 wptr<SvcBackupConnection> SvcSessionManager::GetExtConnection(const BundleName &bundleName) in GetExtConnection() 281 sptr<SvcBackupConnection> SvcSessionManager::GetBackupAbilityExt(const string &bundleName) in GetBackupAbilityExt() 303 return sptr<SvcBackupConnection>(new SvcBackupConnection(callDied, callConnected, bundleName)); in GetBackupAbilityExt() 551 sptr<SvcBackupConnection> SvcSessionManager::CreateBackupConnection(BundleName &bundleName) in CreateBackupConnection()
|
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/include/module_ipc/ |
H A D | svc_backup_connection.h | 23 class SvcBackupConnection : public AAFwk::AbilityConnectionStub { 93 SvcBackupConnection(std::function<void(const std::string &&, bool)> callDied, in SvcBackupConnection() function 99 ~SvcBackupConnection() override {}; in ~SvcBackupConnection()
|
H A D | svc_session_manager.h | 48 sptr<SvcBackupConnection> backUpConnection; 194 wptr<SvcBackupConnection> GetExtConnection(const BundleName &bundleName); 295 sptr<SvcBackupConnection> CreateBackupConnection(BundleName &bundleName); 525 sptr<SvcBackupConnection> GetBackupAbilityExt(const std::string &bundleName);
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_sa/module_ipc/ |
H A D | svc_backup_connection_test.cpp | 40 static inline sptr<SvcBackupConnection> backupCon_ = nullptr; 56 backupCon_ = sptr(new SvcBackupConnection(CallDied, CallDone, "com.example.app")); in SetUpTestCase()
|
H A D | service_test.cpp | 586 … extInfo.backUpConnection = sptr(new SvcBackupConnection(callDied, callConnected, BUNDLE_NAME)); 728 … extInfo.backUpConnection = sptr(new SvcBackupConnection(callDied, callConnected, BUNDLE_NAME)); 1595 … extInfo.backUpConnection = sptr(new SvcBackupConnection(callDied, callConnected, BUNDLE_NAME));
|
H A D | svc_session_manager_test.cpp | 757 info.backUpConnection = sptr(new SvcBackupConnection(nullptr, nullptr, BUNDLE_NAME)); 1848 info.backUpConnection = sptr(new SvcBackupConnection(nullptr, nullptr, BUNDLE_NAME));
|