Searched refs:make_scope_guard (Results 1 – 23 of 23) sorted by relevance
27 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()
647 auto guard = make_scope_guard([&] { in TEST()
38 using android::base::make_scope_guard;61 auto reaper = make_scope_guard([pid] { TEMP_FAILURE_RETRY(waitpid(pid, nullptr, WNOHANG)); }); in ReapOneProcess()
85 auto guard = android::base::make_scope_guard([&original_value]() { in TEST()
56 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()
45 android::base::make_scope_guard([&barrier]() { pthread_barrier_destroy(&barrier); }); in WriteFromMultipleThreads()
134 auto guard = android::base::make_scope_guard([&addr] { unlink(addr.sun_path); }); in CreateSocket()
766 auto guard = android::base::make_scope_guard([&sub_reason] { in DoUserspaceReboot()
121 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()
48 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()
62 ScopeGuard<F> make_scope_guard(F&& f) { in make_scope_guard() function
84 auto scope_guard = android::base::make_scope_guard(deleter); in ReplaceFiles()
49 android::base::make_scope_guard([&handle]() { CloseArchive(handle); }); in TEST()
84 auto preinstall_guard = android::base::make_scope_guard([&]() { in StageFnInstall()
386 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()
65 android::base::make_scope_guard([&handle] { CloseArchive(handle); }); in Open()
2760 auto deleter = android::base::make_scope_guard([&]() { in TEST_F()
104 android::base::make_scope_guard([path] { remove(path.c_str()); }); in LLVMFuzzerTestOneInput()
59 auto clearfscreatecon = android::base::make_scope_guard([] { setfscreatecon(nullptr); }); in prepare_dir()
46 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()
251 auto logOnScopeExit = android::base::make_scope_guard([&] { in get()
620 auto logOnScopeExit = android::base::make_scope_guard([&] { in generateKey()723 auto logOnScopeExit = android::base::make_scope_guard([&] { in importKey()
92 using android::base::make_scope_guard;2200 auto guard = android::base::make_scope_guard([&] { in TEST_F()