Home
last modified time | relevance | path

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

/system/libbase/
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()
Dlogging_test.cpp647 auto guard = make_scope_guard([&] { in TEST()
/system/core/init/
Dsigchld_handler.cpp38 using android::base::make_scope_guard;
61 auto reaper = make_scope_guard([pid] { TEMP_FAILURE_RETRY(waitpid(pid, nullptr, WNOHANG)); }); in ReapOneProcess()
Dproperty_service_test.cpp85 auto guard = android::base::make_scope_guard([&original_value]() { in TEST()
Dservice.cpp56 using android::base::make_scope_guard;
364 auto reboot_on_failure = make_scope_guard([this] { in ExecStart()
395 auto reboot_on_failure = make_scope_guard([this] { in Start()
Dueventd_test.cpp45 android::base::make_scope_guard([&barrier]() { pthread_barrier_destroy(&barrier); }); in WriteFromMultipleThreads()
Dutil.cpp134 auto guard = android::base::make_scope_guard([&addr] { unlink(addr.sun_path); }); in CreateSocket()
Dreboot.cpp766 auto guard = android::base::make_scope_guard([&sub_reason] { in DoUserspaceReboot()
/system/core/liblog/tests/
Dliblog_default_tag.cpp121 auto reset_tag_property_guard = make_scope_guard([=] { SetProperty(log_tag_property, ""); }); in TEST()
149 auto reset_tag_property_guard = make_scope_guard([=] { SetProperty(log_tag_property, ""); }); in TEST()
Dliblog_test.cpp48 using android::base::make_scope_guard;
92 auto alarm_guard = android::base::make_scope_guard([] { alarm(0); }); in RunLogTests()
1102 auto alarm_guard = android::base::make_scope_guard([] { alarm(0); }); in TEST()
/system/libbase/include/android-base/
Dscopeguard.h62 ScopeGuard<F> make_scope_guard(F&& f) { in make_scope_guard() function
/system/apex/apexd/
Dapexd_rollback_utils.h84 auto scope_guard = android::base::make_scope_guard(deleter); in ReplaceFiles()
Dapex_file_test.cpp49 android::base::make_scope_guard([&handle]() { CloseArchive(handle); }); in TEST()
Dapexd_prepostinstall.cpp84 auto preinstall_guard = android::base::make_scope_guard([&]() { in StageFnInstall()
Dapexd.cpp386 auto scope_guard = android::base::make_scope_guard(deleter); in MountPackageImpl()
586 auto scope_guard = android::base::make_scope_guard(cleaner); in RunVerifyFnInsideTempMount()
794 auto scope_guard = android::base::make_scope_guard(deleter); in BackupActivePackages()
1574 auto scope_guard = android::base::make_scope_guard(session_failed_fn); in scanStagedSessionsDirAndStage()
1726 auto scope_guard = android::base::make_scope_guard(deleter); in stagePackages()
Dapex_file.cpp65 android::base::make_scope_guard([&handle] { CloseArchive(handle); }); in Open()
Dapexservice_test.cpp2760 auto deleter = android::base::make_scope_guard([&]() { in TEST_F()
/system/media/audio_utils/fuzz/sndfile_fuzzer/
Dsndfile_fuzzer.cpp104 android::base::make_scope_guard([path] { remove(path.c_str()); }); in LLVMFuzzerTestOneInput()
/system/vold/
Dvold_prepare_subdirs.cpp59 auto clearfscreatecon = android::base::make_scope_guard([] { setfscreatecon(nullptr); }); in prepare_dir()
/system/core/logd/
DLogTags.cpp46 using android::base::make_scope_guard;
324 auto guard = make_scope_guard([&ctx]() { android_log_destroy(&ctx); }); in ReadPersistEventLogTags()
516 auto guard = make_scope_guard([&ctx]() { android_log_destroy(&ctx); }); in WritePmsgEventLogTags()
/system/security/keystore/
DKeyStore.cpp251 auto logOnScopeExit = android::base::make_scope_guard([&] { in get()
Dkey_store_service.cpp620 auto logOnScopeExit = android::base::make_scope_guard([&] { in generateKey()
723 auto logOnScopeExit = android::base::make_scope_guard([&] { in importKey()
/system/netd/tests/
Dbinder_test.cpp92 using android::base::make_scope_guard;
2200 auto guard = android::base::make_scope_guard([&] { in TEST_F()