Home
last modified time | relevance | path

Searched refs:make_scope_guard (Results 1 – 14 of 14) sorted by relevance

/system/core/base/
Dscopeguard_test.cpp27 auto scopeguard = android::base::make_scope_guard([&guarded_var] { guarded_var = false; }); in TEST()
35 auto scopeguard = android::base::make_scope_guard([&guarded_var] { guarded_var = false; }); in TEST()
43 auto scopeguard = android::base::make_scope_guard([&guarded_var] { guarded_var = false; }); in TEST()
53 scopeguards.emplace_back(android::base::make_scope_guard( in TEST()
55 scopeguards.emplace_back(android::base::make_scope_guard( in TEST()
/system/core/init/
Dsigchld_handler.cpp37 using android::base::make_scope_guard;
58 auto reaper = make_scope_guard([pid] { TEMP_FAILURE_RETRY(waitpid(pid, nullptr, WNOHANG)); }); in ReapOneProcess()
Dueventd_test.cpp45 android::base::make_scope_guard([&barrier]() { pthread_barrier_destroy(&barrier); }); in WriteFromMultipleThreads()
/system/tools/sysprop/tests/
DCppGenTest.cpp497 auto sysprop_deleter = android::base::make_scope_guard( in TEST()
513 auto generated_file_deleter = android::base::make_scope_guard([&] { in TEST()
/system/core/base/include/android-base/
Dscopeguard.h62 ScopeGuard<F> make_scope_guard(F&& f) { in make_scope_guard() function
/system/apex/apexd/
Dapex_file_test.cpp47 android::base::make_scope_guard([&handle]() { CloseArchive(handle); }); in TEST()
Dapexd_prepostinstall.cpp74 auto preinstall_guard = android::base::make_scope_guard([&]() { in StageFnInstall()
Dapexd.cpp552 auto scope_guard = android::base::make_scope_guard(deleter); in MountPackageImpl()
641 auto scope_guard = android::base::make_scope_guard(cleaner); in RunVerifyFnInsideTempMount()
877 auto scope_guard = android::base::make_scope_guard(deleter); in BackupActivePackages()
900 auto scope_guard = android::base::make_scope_guard([&]() { in DoRollback()
1390 auto scope_guard = android::base::make_scope_guard(session_failed_fn); in scanStagedSessionsDirAndStage()
1564 auto scope_guard = android::base::make_scope_guard(deleter); in stagePackages()
Dapex_file.cpp115 android::base::make_scope_guard([&handle] { CloseArchive(handle); }); in Open()
/system/vold/
Dvold_prepare_subdirs.cpp59 auto clearfscreatecon = android::base::make_scope_guard([] { setfscreatecon(nullptr); }); in prepare_dir()
/system/core/logd/
DLogTags.cpp42 using android::base::make_scope_guard;
324 auto guard = make_scope_guard([&ctx]() { android_log_destroy(&ctx); }); in ReadPersistEventLogTags()
533 auto guard = make_scope_guard([&ctx]() { android_log_destroy(&ctx); }); in WritePmsgEventLogTags()
/system/extras/perfprofd/
Dperfprofdcore.cc545 auto scope_guard = android::base::make_scope_guard( in collect_profile()
/system/security/keystore/
DKeyStore.cpp251 auto logOnScopeExit = android::base::make_scope_guard([&] { in get()
Dkey_store_service.cpp656 auto logOnScopeExit = android::base::make_scope_guard([&] { in generateKey()
763 auto logOnScopeExit = android::base::make_scope_guard([&] { in importKey()