Home
last modified time | relevance | path

Searched refs:guard (Results 1 – 25 of 53) sorted by relevance

123

/system/gsid/
Dgsi_service.cpp144 std::lock_guard<std::mutex> guard(lock_); in openInstall() local
166 std::lock_guard<std::mutex> guard(lock_); in closeInstall() local
201 std::lock_guard<std::mutex> guard(lock_); in createPartition() local
242 std::lock_guard<std::mutex> guard(lock_); in closePartition() local
259 std::lock_guard<std::mutex> guard(lock_); in commitGsiChunkFromStream() local
271 std::lock_guard<std::mutex> guard(progress_lock_); in StartAsyncOperation() local
280 std::lock_guard<std::mutex> guard(progress_lock_); in UpdateProgress() local
292 std::lock_guard<std::mutex> guard(progress_lock_); in getInstallProgress() local
303 std::lock_guard<std::mutex> guard(lock_); in commitGsiChunkFromAshmem() local
327 std::lock_guard<std::mutex> guard(lock_); in enableGsiAsync() local
[all …]
/system/netd/server/
DTcpSocketMonitor.cpp105 std::lock_guard guard(mLock); in dump() local
158 std::lock_guard guard(mLock); in setPollingInterval() local
168 std::lock_guard guard(mLock); in resumePolling() local
181 std::lock_guard guard(mLock); in suspendPolling() local
193 std::lock_guard guard(mLock); in poll() local
260 std::lock_guard guard(mLock); in waitForNextPoll() local
274 std::lock_guard guard(mLock); in isRunning() local
321 std::lock_guard guard(mLock); in TcpSocketMonitor() local
337 std::lock_guard guard(mLock); in ~TcpSocketMonitor() local
DNFLogListener.cpp152 std::lock_guard guard(mMutex); in NFLogListener() local
186 std::lock_guard guard(mMutex); in subscribe() local
201 std::lock_guard guard(mMutex); in unsubscribe() local
/system/security/keystore2/src/
Doperation.rs241 if let Ok(guard) = self.outcome.try_lock() { in get_pruning_info()
242 match *guard { in get_pruning_info()
267 Ok(guard) => match *guard { in prune()
268 Outcome::Unknown => guard, in prune()
323 let guard = self.outcome.lock().expect("In check_active."); in check_active() localVariable
324 match *guard { in check_active()
325 Outcome::Unknown => Ok(guard), in check_active()
327 .context(ks_err!("Call on finalized operation with outcome: {:?}.", *guard)), in check_active()
458 let guard = self.outcome.lock().expect("In drop."); in drop() localVariable
463 &guard, in drop()
[all …]
/system/chre/platform/shared/include/chre/platform/shared/
Dmemory_debug.h48 uint32_t guard; member
77 preamble->guard = kPreambleGuard; in debugAlloc()
101 } else if (preamble->guard != kPreambleGuard) { in debugFree()
/system/tools/hidl/
DgenerateCpp.cpp40 std::string guard; in makeHeaderGuard() local
43 guard += "HIDL_GENERATED_"; in makeHeaderGuard()
46 guard += StringHelper::Uppercase(mPackage.tokenName()); in makeHeaderGuard()
47 guard += "_"; in makeHeaderGuard()
48 guard += StringHelper::Uppercase(baseName); in makeHeaderGuard()
49 guard += "_H"; in makeHeaderGuard()
51 return guard; in makeHeaderGuard()
221 const std::string guard = makeHeaderGuard(ifaceName); in generateInterfaceHeader() local
223 out << "#ifndef " << guard << "\n"; in generateInterfaceHeader()
224 out << "#define " << guard << "\n\n"; in generateInterfaceHeader()
[all …]
Dmain.cpp870 std::string guard; in generateExportHeaderForPackage() local
876 guard = "HIDL_GENERATED_"; in generateExportHeaderForPackage()
877 guard += StringHelper::Uppercase(packageFQName.tokenName()); in generateExportHeaderForPackage()
878 guard += "_"; in generateExportHeaderForPackage()
879 guard += "EXPORTED_CONSTANTS_H_"; in generateExportHeaderForPackage()
882 << guard in generateExportHeaderForPackage()
884 << guard in generateExportHeaderForPackage()
897 << guard in generateExportHeaderForPackage()
/system/core/libmodprobe/
Dlibmodprobe_ext.cpp57 std::lock_guard guard(module_loaded_lock_); in Insmod() local
67 std::lock_guard guard(module_loaded_lock_); in Insmod() local
81 std::lock_guard guard(module_loaded_lock_); in Rmmod() local
/system/logging/logd/
DPkgIds.cpp61 std::lock_guard<std::mutex> guard(global->lock); in ReadPackageList() local
130 std::lock_guard<std::mutex> guard(gPkgIdMap->lock); in StartPkgMonitor() local
143 std::lock_guard<std::mutex> guard(gPkgIdMap->lock); in uidToName() local
/system/unwinding/libunwindstack/
DThreadEntry.cpp45 std::lock_guard<std::mutex> guard(entries_mutex_); in Get() local
62 std::lock_guard<std::mutex> guard(entries_mutex_); in Remove() local
DDexFile.cpp61 std::lock_guard<std::mutex> guard(g_lock); in CreateFromDisk() local
129 std::lock_guard<std::mutex> guard(dex_api_->lock_); // Protect both the symbols and the C API. in GetFunctionName() local
DElf.cpp100 std::lock_guard<std::mutex> guard(lock_); in GetSoname() local
112 std::lock_guard<std::mutex> guard(lock_); in GetFunctionName() local
204 std::lock_guard<std::mutex> guard(lock_); in Step() local
DMapInfo.cpp278 std::lock_guard<std::mutex> guard(elf_mutex()); in GetElf() local
311 std::lock_guard<std::mutex> guard(prev_real_map->elf_mutex()); in GetElf() local
335 std::lock_guard<std::mutex> guard(elf_mutex()); in GetFunctionName() local
/system/extras/libfec/test/
Dfec_unittest.cpp135 std::unique_ptr<fec_handle> guard(handle); in TEST_F() local
171 std::unique_ptr<fec_handle> guard(handle); in TEST_F() local
214 std::unique_ptr<fec_handle> guard(handle); in TEST_F() local
238 std::unique_ptr<fec_handle> guard(handle); in TEST_F() local
277 std::unique_ptr<fec_handle> guard(handle); in TEST_F() local
300 std::unique_ptr<fec_handle> guard(handle); in TEST_F() local
/system/media/audio_utils/include/audio_utils/
DSimpleLog.h138 std::lock_guard<std::mutex> guard(mLock); in logs()
164 std::lock_guard<std::mutex> guard(mLock);
DErrorLog.h73 std::lock_guard<std::mutex> guard(mLock); in log()
102 std::lock_guard<std::mutex> guard(mLock);
/system/libartpalette/
Dpalette_fake.cc41 std::lock_guard guard(g_tid_priority_map_mutex); in PaletteSchedSetPriority() local
48 std::lock_guard guard(g_tid_priority_map_mutex); in PaletteSchedGetPriority() local
/system/memory/libmeminfo/testdata1/
Dsmaps3257 70074a909000-70074a90a000 ---p 00000000 00:00 0 [anon:thread stack guard]
3258 Name: [anon:thread stack guard]
3378 70074c78d000-70074c78e000 ---p 00000000 00:00 0 [anon:thread stack guard]
3379 Name: [anon:thread stack guard]
3460 70074d293000-70074d294000 ---p 00000000 00:00 0 [anon:thread stack guard]
3461 Name: [anon:thread stack guard]
3542 70074db99000-70074db9a000 ---p 00000000 00:00 0 [anon:thread stack guard]
3543 Name: [anon:thread stack guard]
3583 70074dc93000-70074dc94000 ---p 00000000 00:00 0 [anon:thread stack guard]
3584 Name: [anon:thread stack guard]
[all …]
/system/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp205 std::lock_guard<std::mutex> guard(lock_); in StartRecording() local
222 std::lock_guard<std::mutex> guard(lock_); in PauseRecording() local
234 std::lock_guard<std::mutex> guard(lock_); in ResumeRecording() local
243 std::lock_guard<std::mutex> guard(lock_); in StopRecording() local
/system/tools/aidl/
Daidl_const_expressions.cpp161 bool processGuard(const OverflowGuard<T>& guard, const AidlConstantValue& context) { in processGuard() argument
162 if (guard.Overflowed()) { in processGuard()
174 OverflowGuard<T> guard(val); \
175 *out = __op__ guard; \
176 return processGuard(guard, context); \
180 OverflowGuard<T> guard(lval); \
181 *out = guard __op__ rval; \
182 return processGuard(guard, context); \
/system/libprocinfo/testdata/
Dmaps351 704defa000-704defb000 ---p 00000000 00:00 0 [anon:thread stack guard]
355 704e455000-704e456000 ---p 00000000 00:00 0 [anon:thread stack guard]
362 704e69d000-704e69e000 ---p 00000000 00:00 0 [anon:thread stack guard]
365 704f79b000-704f79c000 ---p 00000000 00:00 0 [anon:thread stack guard]
367 704f899000-704f89a000 ---p 00000000 00:00 0 [anon:thread stack guard]
420 7051326000-7051327000 ---p 00000000 00:00 0 [anon:thread stack guard]
546 705ddf8000-705ddf9000 ---p 00000000 00:00 0 [anon:thread stack guard]
550 705f5ec000-705f5ed000 ---p 00000000 00:00 0 [anon:thread stack guard]
554 705f7e8000-705f7e9000 ---p 00000000 00:00 0 [anon:thread stack guard]
557 705f8ee000-705f8ef000 ---p 00000000 00:00 0 [anon:thread stack guard]
[all …]
/system/core/init/
Dproperty_service_test.cpp86 auto guard = android::base::make_scope_guard([&original_value]() { in TEST() local
/system/update_engine/payload_consumer/
Dcertificate_parser_android.cc39 std::unique_ptr<void, decltype(&EndIteration)> guard(cookie, EndIteration); in IterateZipEntriesAndSearchForKeys() local
/system/libhidl/transport/base/1.0/vts/functional/
Dvts_ibase_test.cpp112 std::lock_guard<std::mutex> guard(gDeclaredServiceHalMapMutex); in GetHal() local
285 std::lock_guard<std::mutex> guard(gDeclaredServiceHalMapMutex); in TEST_F() local
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dhandler_manager.cpp343 std::lock_guard<std::mutex> guard(lock_); in TerminateMergeThreads() local
356 std::lock_guard<std::mutex> guard(lock_); in JoinAllThreads() local

123