/foundation/ai/intelligent_voice_framework/utils/ |
H A D | scope_guard.h | 23 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 D | scope_guard.h | 29 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 D | scope_guard.h | 29 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 D | scope_guard.h | 29 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 D | scope_guard.h | 22 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 D | scope_guard.h | 22 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 D | scope_guard.h | 23 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 D | bundle_overlay_manager_host_impl.cpp | 53 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 D | ability_resident_process_rdb.h | 37 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 D | bms_bundle_data_group_test.cpp | 154 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 D | bundle_multiuser_installer.cpp | 97 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 D | shortcut_data_storage_rdb.cpp | 108 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 D | quick_fix_switcher.cpp | 71 ScopeGuard stateGuard([&] { in EnableQuickFix() 114 ScopeGuard stateGuard([&] { in DisableQuickFix() 150 ScopeGuard enableGuard([&] { dataMgr_->EnableBundle(bundleName_); }); in InnerSwitchQuickFix() 175 ScopeGuard innerBundleInfoGuard([&] { in InnerSwitchQuickFix()
|
H A D | quick_fix_deleter.cpp | 65 ScopeGuard stateGuard([&] { in DeleteQuickFix()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/navigation/ |
H A D | router_data_storage_rdb.cpp | 95 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 D | bundle_resource_rdb.cpp | 169 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 D | app_provision_info_rdb.cpp | 150 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 D | ability_resident_process_rdb.cpp | 154 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 D | uninstall_data_mgr_storage_rdb.cpp | 86 ScopeGuard stateGuard([absSharedResultSet] { absSharedResultSet->Close(); }); in GetUninstallBundleInfo()
|
/foundation/ability/form_fwk/services/src/ |
H A D | form_rdb_data_mgr.cpp | 327 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 D | form_cache_mgr.cpp | 315 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 D | bundle_clone_installer.cpp | 194 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 D | app_control_manager_rdb.cpp | 192 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 D | bms_bundle_data_mgr_test.cpp | 1700 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 D | bms_bundle_clone_installer_test.cpp | 186 ScopeGuard deleteGuard([this] { DeleteBundle(BUNDLE_NAME); }); in HWTEST_F() 292 ScopeGuard deleteGuard([this, bundleName] { DeleteBundle(bundleName); }); in HWTEST_F()
|