Home
last modified time | relevance | path

Searched refs:ScopeGuard (Results 1 - 25 of 47) sorted by relevance

12

/foundation/ai/intelligent_voice_framework/utils/
H A Dscope_guard.h23 class ScopeGuard { class
25 explicit ScopeGuard(Func &&f) : func_(std::forward<Func>(f)), active_(true) in ScopeGuard() function in OHOS::IntellVoiceUtils::ScopeGuard
29 ScopeGuard(ScopeGuard &&rhs) : func_(std::move(rhs.func_)), active_(rhs.active_) in ScopeGuard() function in OHOS::IntellVoiceUtils::ScopeGuard
34 ~ScopeGuard() in ~ScopeGuard()
61 ScopeGuard() = delete;
62 ScopeGuard(const ScopeGuard &) = delete;
63 ScopeGuard &operator=(const ScopeGuard
[all...]
/foundation/multimedia/media_foundation/src/buffer/avbuffer/include/
H A Dscope_guard.h29 class ScopeGuard { class
31 explicit ScopeGuard(ExitAction &&action) : action_(action), enable_(true) {} in ScopeGuard() function in OHOS::Detail::ScopeGuard
32 ~ScopeGuard() in ~ScopeGuard()
51 static inline ScopeGuard<ExitAction> operator+(ScopeExitGuardHelper, ExitAction &&action) in operator +()
53 return ScopeGuard<ExitAction>(std::forward<ExitAction>(action)); in operator +()
/foundation/multimedia/av_codec/services/utils/include/
H A Dscope_guard.h29 class ScopeGuard { class
31 explicit ScopeGuard(ExitAction &&action) : action_(action), enable_(true) {} in ScopeGuard() function in OHOS::Detail::ScopeGuard
32 ~ScopeGuard() in ~ScopeGuard()
51 static inline ScopeGuard<ExitAction> operator+(ScopeExitGuardHelper, ExitAction &&action) in operator +()
53 return ScopeGuard<ExitAction>(std::forward<ExitAction>(action)); in operator +()
/foundation/multimedia/player_framework/services/utils/include/
H A Dscope_guard.h29 class ScopeGuard { class
31 explicit ScopeGuard(ExitAction &&action) : action_(action), enable_(true) {} in ScopeGuard() function in OHOS::Detail::ScopeGuard
32 ~ScopeGuard() in ~ScopeGuard()
51 static inline ScopeGuard<ExitAction> operator+(ScopeExitGuardHelper, ExitAction &&action) in operator +()
53 return ScopeGuard<ExitAction>(std::forward<ExitAction>(action)); in operator +()
/foundation/ability/form_fwk/services/include/
H A Dscope_guard.h22 class ScopeGuard final {
25 explicit ScopeGuard(Function func) : func_(func), dismissed_(false) in ScopeGuard() function in OHOS::AppExecFwk::final
28 ~ScopeGuard() in ~ScopeGuard()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dscope_guard.h22 class ScopeGuard final {
25 explicit ScopeGuard(Function fn) : fn_(fn), dismissed_(false) in ScopeGuard() function in OHOS::AppExecFwk::final
28 ~ScopeGuard() in ~ScopeGuard()
/foundation/bundlemanager/app_domain_verify/services/include/manager/rdb/
H A Dscope_guard.h23 class ScopeGuard final {
26 explicit ScopeGuard(Function fn) in ScopeGuard() function in OHOS::AppDomainVerify::final
32 ~ScopeGuard() in ~ScopeGuard()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/overlay/
H A Dbundle_overlay_manager_host_impl.cpp53 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in GetAllOverlayModuleInfo()
76 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in GetOverlayModuleInfo()
99 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in GetOverlayModuleInfo()
124 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in GetTargetOverlayModuleInfo()
150 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in GetOverlayModuleInfoByBundleName()
190 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in GetOverlayBundleInfoForTarget()
214 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in GetOverlayModuleInfoForTarget()
242 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in SetOverlayEnabledForSelf()
265 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in SetOverlayEnabled()
/foundation/ability/ability_runtime/services/abilitymgr/include/rdb/
H A Dability_resident_process_rdb.h37 class ScopeGuard final {
40 explicit ScopeGuard(Function fn) : fn_(fn), dismissed(false) {} in ScopeGuard() function in OHOS::AbilityRuntime::final
42 ~ScopeGuard() in ~ScopeGuard()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_data_group_test/
H A Dbms_bundle_data_group_test.cpp154 ScopeGuard uidGuard([&] { setuid(Constants::ROOT_UID); }); in HWTEST_F()
191 ScopeGuard uidGuard([&] { setuid(Constants::ROOT_UID); }); in HWTEST_F()
248 ScopeGuard uidGuard([&] { setuid(Constants::ROOT_UID); }); in HWTEST_F()
278 ScopeGuard uidGuard([&] { setuid(Constants::ROOT_UID); }); in HWTEST_F()
372 ScopeGuard bundleInfoGuard([&] { dataMgr->bundleInfos_.erase(BUNDLE_NAME); }); in HWTEST_F()
396 ScopeGuard bundleInfoGuard([&] { dataMgr->bundleInfos_.erase(BUNDLE_NAME); }); in HWTEST_F()
421 ScopeGuard bundleInfoGuard([&] { dataMgr->bundleInfos_.erase(BUNDLE_NAME); }); in HWTEST_F()
450 ScopeGuard bundleInfoGuard([&] { dataMgr->bundleInfos_.erase(BUNDLE_NAME); }); in HWTEST_F()
453 ScopeGuard uidGuard([&] { setuid(Constants::ROOT_UID); }); in HWTEST_F()
475 ScopeGuard bundleInfoGuar in HWTEST_F()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_multiuser_installer.cpp97 ScopeGuard bundleEnabledGuard([&] { dataMgr_->EnableBundle(bundleName); }); in ProcessBundleInstall()
145 ScopeGuard applyAccessTokenGuard([&] { in ProcessBundleInstall()
156 ScopeGuard createUserDataDirGuard([&] { RemoveDataDir(bundleName, userId); }); in ProcessBundleInstall()
163 ScopeGuard addBundleUserGuard([&] { dataMgr_->RemoveInnerBundleUserInfo(bundleName, userId); }); in ProcessBundleInstall()
H A Dshortcut_data_storage_rdb.cpp108 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetAllDesktopShortcutInfo()
179 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in ShortcutIdVerification()
207 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetDesktopShortcutInfosByDefaultUserId()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/
H A Dquick_fix_switcher.cpp71 ScopeGuard stateGuard([&] { in EnableQuickFix()
114 ScopeGuard stateGuard([&] { in DisableQuickFix()
150 ScopeGuard enableGuard([&] { dataMgr_->EnableBundle(bundleName_); }); in InnerSwitchQuickFix()
175 ScopeGuard innerBundleInfoGuard([&] { in InnerSwitchQuickFix()
H A Dquick_fix_deleter.cpp65 ScopeGuard stateGuard([&] { in DeleteQuickFix()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/navigation/
H A Drouter_data_storage_rdb.cpp95 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetRouterInfo()
139 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetAllBundleNames()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_rdb.cpp169 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetAllResourceName()
237 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetResourceNameByBundleName()
286 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetBundleResourceInfo()
321 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetLauncherAbilityResourceInfo()
359 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetAllBundleResourceInfo()
398 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetAllLauncherAbilityResourceInfo()
567 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetCurrentSystemState()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_provision_info/
H A Dapp_provision_info_rdb.cpp150 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetAppProvisionInfo()
162 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetAllAppProvisionInfoBundleName()
250 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetSpecifiedDistributionType()
296 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetAdditionalInfo()
/foundation/ability/ability_runtime/services/abilitymgr/src/rdb/
H A Dability_resident_process_rdb.cpp154 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in VerifyConfigurationPermissions()
195 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetResidentProcessEnable()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/uninstall_data_mgr/
H A Duninstall_data_mgr_storage_rdb.cpp86 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetUninstallBundleInfo()
/foundation/ability/form_fwk/services/src/
H A Dform_rdb_data_mgr.cpp327 ScopeGuard stateGuard([absSharedResultSet] { in QueryData()
378 ScopeGuard stateGuard([absSharedResultSet] { in QueryData()
444 ScopeGuard stateGuard([absSharedResultSet] { in QueryAllData()
509 ScopeGuard stateGuard([absSharedResultSet] { in QueryAllKeys()
H A Dform_cache_mgr.cpp315 ScopeGuard stateGuard([ashmem] { in GetImageDataFromAshmem()
370 ScopeGuard stateGuard([absSharedResultSet] { in GetDataCacheFromDb()
459 ScopeGuard stateGuard([absSharedResultSet] { in GetImgCacheFromDb()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/clone/
H A Dbundle_clone_installer.cpp194 ScopeGuard applyAccessTokenGuard([&] { in ProcessCloneBundleInstall()
214 ScopeGuard createCloneDataDirGuard([&] { RemoveCloneDataDir(bundleName, userId, appIndex); }); in ProcessCloneBundleInstall()
216 ScopeGuard addCloneBundleGuard([&] { dataMgr->RemoveCloneBundle(bundleName, userId, appIndex); }); in ProcessCloneBundleInstall()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_control/
H A Dapp_control_manager_rdb.cpp192 ScopeGuard stateGuard([&] { absSharedResultSet->Close(); }); in GetAppInstallControlRule()
324 ScopeGuard stateGuard([&] { absSharedResultSet->Close(); }); in GetAppRunningControlRule()
366 ScopeGuard stateGuard([&] { absSharedResultSet->Close(); }); in GetAppRunningControlRule()
483 ScopeGuard stateGuard([&] { absSharedResultSet->Close(); }); in GetDisposedStatus()
644 ScopeGuard stateGuard([&] { absSharedResultSet->Close(); }); in GetDisposedRule()
686 ScopeGuard stateGuard([&] { absSharedResultSet->Close(); }); in GetAbilityRunningControlRule()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/
H A Dbms_bundle_data_mgr_test.cpp1700 ScopeGuard stateGuard([&] { ResetDataMgr(); }); in HWTEST_F()
1852 ScopeGuard stateGuard([&] { ResetDataMgr(); }); in HWTEST_F()
1883 ScopeGuard stateGuard([&] { ResetDataMgr(); }); in HWTEST_F()
1925 ScopeGuard stateGuard([&] { ResetDataMgr(); }); in HWTEST_F()
1967 ScopeGuard stateGuard([&] { ResetDataMgr(); }); in HWTEST_F()
2099 ScopeGuard stateGuard([&] { ResetDataMgr(); }); in HWTEST_F()
2171 ScopeGuard stateGuard([&] { ResetDataMgr(); }); in HWTEST_F()
2615 ScopeGuard stateGuard([&] { ResetDataMgr(); }); in HWTEST_F()
4177 ScopeGuard stateGuard([&] { ResetDataMgr(); }); in HWTEST_F()
4201 ScopeGuard stateGuar in HWTEST_F()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_clone_installer_test/
H A Dbms_bundle_clone_installer_test.cpp186 ScopeGuard deleteGuard([this] { DeleteBundle(BUNDLE_NAME); }); in HWTEST_F()
292 ScopeGuard deleteGuard([this, bundleName] { DeleteBundle(bundleName); }); in HWTEST_F()

Completed in 23 milliseconds

12